Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576160 - media-sound/pulseaudio-8.0: Sound stopped working after suspend
Summary: media-sound/pulseaudio-8.0: Sound stopped working after suspend
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 20:07 UTC by Michal Špondr
Modified: 2016-07-02 16:07 UTC (History)
1 user (show)

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


Attachments
pavucontrol AFTER sleep (screenshot1.png,27.29 KB, image/png)
2016-03-06 12:02 UTC, Michal Špondr
Details
pavucontrol BEFORE sleep (screenshot2.png,26.13 KB, image/png)
2016-03-06 12:05 UTC, Michal Špondr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Špondr 2016-03-01 20:07:40 UTC
Few days ago sound stopped playing after my PC is woke up after suspend. I use
systemctl suspend
for activating suspend mode and it worked for years. I sync & update packages almost daily, but I don't know after which update it happened for the first time. I also can't find the reason in log files.
dmesg says this after it's woke up:

[11047.013820] Restarting tasks ... done.
[11047.019940] usb 5-1.5: USB disconnect, device number 3
[11047.143987] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[11047.144553] ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20150410/psargs-359)
[11047.144556] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT0._GTF] (Node ffff88021604b898), AE_NOT_FOUND (20150410/psparse-536)
[11047.145183] ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20150410/psargs-359)
[11047.145187] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT0._GTF] (Node ffff88021604b898), AE_NOT_FOUND (20150410/psparse-536)
[11047.145212] ata1.00: configured for UDMA/133
[11047.145960] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[11047.151538] ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20150410/psargs-359)
[11047.151541] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT1._GTF] (Node ffff88021604b910), AE_NOT_FOUND (20150410/psparse-536)
[11047.161819] ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20150410/psargs-359)
[11047.161823] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT1._GTF] (Node ffff88021604b910), AE_NOT_FOUND (20150410/psparse-536)
[11047.161829] ata2.00: configured for UDMA/100
[11048.266487] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[11048.268130] ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20150410/psargs-359)
[11048.268138] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT3._GTF] (Node ffff88021604ba00), AE_NOT_FOUND (20150410/psparse-536)
[11048.270537] ACPI Error: [DSSP] Namespace lookup failure, AE_NOT_FOUND (20150410/psargs-359)
[11048.270545] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SAT0.SPT3._GTF] (Node ffff88021604ba00), AE_NOT_FOUND (20150410/psparse-536)
[11048.270859] ata4.00: configured for UDMA/133
[11048.478889] atl1c 0000:05:00.0: atl1c: enp5s0 NIC Link is Up<100 Mbps Full Duplex>
[11048.800721] usb 5-1.5: new high-speed USB device number 4 using ehci-pci


$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT2020 Analog [VT2020 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: VT2020 Digital [VT2020 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: ID 40 Digital [ID 40 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

# emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.21-r2, 4.1.15-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8141296 total,   5150820 free
KiB Swap:   23437276 total,  23437276 free
Timestamp of repository gentoo: Tue, 01 Mar 2016 19:20:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.7.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.cz.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/ ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ rsync://mirror.opteamax.de/gentoo/ http://mirror.opteamax.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://gentoo.prz.rzeszow.pl/gentoo http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl rsync://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://tux.rainside.sk/gentoo/ ftp://tux.rainside.sk/gentoo/ http://gentoo.wheel.sk/ ftp://gentoo.wheel.sk/pub/linux/gentoo/"
LANG="cs_CZ.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="/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cli colord cracklib crypt cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fontconfig gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gudev http2 iconv imagemagick introspection ipv6 jabber jemalloc jingle jpeg jpeg2k lcms ldap libav libnotify libsecret mad matroska mmap mms mmx mmxext mng modules mp3 mp4 mpeg multilib musicbrainz nautilus ncurses networkmanager nls nptl nvidia ogg openal opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session sharedmem sound spell sse sse2 sse3 ssl startup-notification svg systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xattr xcb xft xinerama xml xmpp xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="systemd" 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 synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


# lspci |grep -i audio
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
Comment 1 Pacho Ramos gentoo-dev 2016-03-04 09:15:29 UTC
This are usually related with kernel updates, did you update your kernel recently?
Comment 2 Michal Špondr 2016-03-04 19:13:28 UTC
No, I am using linux-4.1.15-gentoo-r1 with date "Jan 23 22:48". It works like this about 1 month I guess.

It's also weird I can't restart alsa:

/etc/init.d/alsasound restart
 * WARNING: alsasound is already starting
Comment 3 Michal Špondr 2016-03-06 11:53:58 UTC
I tried to use older 4.1.12 kernel (it worked before) and it does the same, so I think it's not kernel related.
Comment 4 Michal Špondr 2016-03-06 12:02:46 UTC
Created attachment 427562 [details]
pavucontrol AFTER sleep

There's only S/PDIF output.
Comment 5 Michal Špondr 2016-03-06 12:05:40 UTC
Created attachment 427564 [details]
pavucontrol BEFORE sleep

There's "line out" output and the sound works without problem. This choice disappears after waking up from sleep mode.
Comment 6 Michal Špondr 2016-03-06 12:09:21 UTC
$ cat /proc/asound/cards 
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7310000 irq 28
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17

Could it be somehow related with nVidia sound output which I don't use?
Comment 7 Michal Špondr 2016-03-07 21:08:54 UTC
It seems to be Pulseaudio problem.
If I kill it directly via
pulseaudio -k
the sound starts playing.

Still not sure why Pulseaudio has such problem after sleep mode.
Comment 8 Pacho Ramos gentoo-dev 2016-03-08 11:27:03 UTC
What pulseaudio version are you running? Anyway, I am unsure if it's really a pulseaudio problem, maybe killing it makes sound to start again simply because pulseaudio was the last one getting the sound device before suspending :/
Comment 9 Pacho Ramos gentoo-dev 2016-03-08 11:28:29 UTC
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#No_sound_after_resume_from_suspend

Umm, if this is the case we should likely try to forward this to pulseaudio upstream to finally know what is causing this instead of relying on workaround
Comment 10 Michal Špondr 2016-03-08 20:27:52 UTC
It's version 8.0.

"/usr/bin/pasuspender /bin/true" worked, I had to run pavucontrol after it and the sound started playing.
Comment 11 Pacho Ramos gentoo-dev 2016-03-09 15:30:48 UTC
Can you please send this bug to upstream then?
https://bugs.freedesktop.org/enter_bug.cgi?product=PulseAudio

L:ater, also post the link here to let us track the issue (and also for learning what kind of information we need to ask for this kind of bugs)

Thanks
Comment 12 Michal Špondr 2016-03-10 20:00:25 UTC
I can try to submit it to freedesktop.
Sound is working when using previous version pulseaudio-7.1.
Comment 13 Pacho Ramos gentoo-dev 2016-07-02 16:07:41 UTC
Please try with pulseaudio-9.0, is still failing please report to upstream and paste the link here to let us track the issue