Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498742 - No sound (thru HDMI) in KDE after startup
Summary: No sound (thru HDMI) in KDE after startup
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 02:47 UTC by Dmitry Isaenko
Modified: 2014-12-11 16:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot of the defect (pic1.png,52.18 KB, image/png)
2014-01-21 02:47 UTC, Dmitry Isaenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Isaenko 2014-01-21 02:47:29 UTC
Created attachment 368314 [details]
Screenshot of the defect

After KDE starts, if notification option is set (System settings -> Manage Notifications -> System configuration notification -> KDE Workspace -> Login) pop-up message occurs 'Next devices will be removed':

Output: HDA Intel MID, HDMI 1 (HDMI Audio Output)
Output: HDA Intel PCH, ALC1150 Analog (Default Audio Device)

If I set 'execute program' in notification configuration for startup to 'mplayer /something.mp3' the issue will represented too.

Solution - is not to set up anything in there(Login notification section) and switch-off this functionality.

Same pop-up windows shows to me if I decide to "switch user" (notification off).

So, if I see this message, whatever I do next - i will have no ability to hear the sound thru HDMI output. My ALSA setup configured to simultaneous playing sound thru both available sound cards. 

PulseAudio not installed, and installation has no effect, as I may see.

I use Intel Haswell CPU and ALC1150 on my system. 

See all additional information below:
==================================================
# eix kde-meta
[I] kde-base/kde-meta
     Installed versions:  4.11.2-r1(4)(04:39:54 10.12.2013)(nls semantic-desktop -accessibility -aqua -sdk)

==================================================
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

==================================================
$ cat /etc/asound.conf 
################## dmix my native sound #######################
pcm.dmix_1      {
        type dmix
        ipc_key 56754164        # selected by user, garantee random
        ipc_perm 0660
        ipc_gid audio
        ipc_key_add_uid true

        slave {
                channels 2 # make 6 or 5.1 channel
                pcm {
                        format S32_LE
                        rate 48000 # can also be 44100
                        type hw
                        card 1 # your card              1 for PCH       0 for HDMI
                        device 0 # your device          0 for PCH       7 for HDMI
                        subdevice 0 #important?


                     }
        #       period_time 0
                period_size 1024
        #       buffer_size 4096
        #       buffer_time 0
                periods 8
        }

       bindings {
                 0 0
                 1 1
# Uncomment below if using 6 channel
#                2 2
#                3 3
#                4 4
#                5 5
                }

}
################## dmix my HDMI sound #######################
# HDMI 0
pcm.hdmi_generic {
        format S32_LE
        rate 48000 # can also be 44100
        type hw
        card MID # your card
        device 7 
        channels 2
}
################ Cotrol for all HDMI ####
pcm.control_hdmi
{
        type softvol
        slave {
                pcm "dmix_2"

        }

        control {
                name "evil"
                card 0
        }
}

# HDMI 0 dmix
pcm.dmix_2
{
        type dmix
        ipc_key 88896452        # selected by user, garantee random
        ipc_perm 0660
        ipc_gid audio
        ipc_key_add_uid true
        slave {
                pcm "hdmi_generic"
        #       period_time 0
                period_size 1024
        #       buffer_size 4096
        #       buffer_time 0
                periods 8
        }
        bindings {
        0 0
        1 1
# Uncomment below if using 6 channel
#                2 2
#                3 3
#                4 4
#                5 5
        }
}
################## Default ##################
pcm.!default {
        type plug
        slave.pcm "both"

}

### Output simultaneously
pcm.both {
    type route;
    slave.pcm {
        type multi;
        slaves.a.pcm "dmix_1";
        slaves.b.pcm "control_hdmi";

        slaves.a.channels 2;
        slaves.b.channels 2;

        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        
        bindings.2.slave b;
        bindings.2.channel 0;
        bindings.3.slave b;
        bindings.3.channel 1;

    }
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.0.2 1;
        ttable.1.3 1;

        hint {
             show on
             description "Duplicate"
        }
}
===================================================
# lsmod |grep snd
snd_hda_codec_realtek    39597  1 
snd_hda_codec_hdmi     28505  1 
snd_hda_intel          32038  4 
snd_hda_codec         131128  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               5859  1 snd_hda_codec
snd_pcm                76512  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          7324  2 snd_pcm,snd_hda_intel
snd_timer              18156  1 snd_pcm
snd                    60310  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
====================================================
# emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     7853248 total,   4576160 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 17 Jan 2014 19:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo steam-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.iteam.net.ua/ http://gentoo.kiev.ua/ftp/ ftp://gentoo.kiev.ua/"
LANG="ru_RU.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam"
USE="7zip X aac acl acpi alsa amd64 animate apache2 apng avx berkdb bluetooth bzip2 cairo chm cli connection-sharing consolekit cracklib crypt cups cxx dbus declarative dhcp dhcpcd djvu dri dvd dvdr embedded encode extras fbcon fbcondecor ffmpeg flac foomaticdb fortran fts3 fuse g3dvl gd gdbm ghostscript gif gimp gles2 glitz gnutls google gstreamer gtk gudev hwdb iconv icotools icq icu ipv6 jabber java6 jpeg kde kipi libkms minizip mmx mmxext mng modemmanager modules mp3 mp4 mplayer mppe-mppc mtp mudflap multilib mustek mysql ncurses networkmanager nls nowlistening nptl nptlonly ntfs ntfs-3g ntp ogg opengl openmp oscar pam pascal pcre pdo phonon php png policykit ppds prison private-headers python qt3support qt4 rar rdesktop readline reiserfs resolvconf scanner script semantic-desktop session smb sql sqlite sse sse2 sse3 sse4 ssl ssse3 suid svg synaptics tcpd themes theora threads tiff truetype udev unicode upcall upnp usb v4l v4l2 vaapi visualization vorbis vpn wavpack webkit wifi winetools wma x264 xcb xcomposite xinerama xml xmp xulrunner zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="access compat socache_shmcb unixd authn_core authz_core authz_host dir mime autoindex" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

==================================================
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-02-25 19:10:02 UTC
Which backend do you use, phonon-gstreamer? Which version of that?
Comment 2 Dmitry Isaenko 2014-02-25 20:18:04 UTC
(In reply to Michael Palimaka (kensington) from comment #1)

Correct, Phonon-gstreamer 4.6.3
Comment 3 Michael Palimaka (kensington) gentoo-dev 2014-02-26 06:57:18 UTC
If it still persists with KDE 4.11.5, I guess you could ask upstream for some more ideas.
Comment 4 G.Wolfe Woodbury 2014-03-08 22:48:35 UTC
I have a similar problem.  The kernel and useability of the "intel-hda" device is a bit sensitive to how your kernel is configured.  I have a working kernel config but trying to simplify or change everything to non-modular makes a kernel that sometimes shows the device, but trying to use it has no output.

The haswell chipset and the motherboard being used make some strange configurations where a modular sound card is required to be able to use an HDMI2 output.  Even in this case, some browser flash extensions cannot produce audio output with flash.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2014-11-27 12:07:25 UTC
Does this still happen with latest KDE/phonon?