PulseAudio breaks suspend

Bug #450461 reported by mks99 on 2009-10-13
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Medium
Daniel T Chen

Bug Description

This isn't really a late resume failure. In fact, the machine doesn't even suspend - selecting "Suspend" from the menu or pressing Fn+F4 behaves like "Lock Screen" instead of "Suspend".
After trying to suspend the machine (and locking it instead), after the next boot the indicator icon informed me about this "late resume failure" and offered to report the bug.

ProblemType: KernelOops
Annotation: This occured during a previous suspend and prevented it from resuming properly. The resume processing hung very near the end and will have appeared to have completed normally.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 Cannot stat file /proc/2650/fd/18: No such file or directory
                      USER PID ACCESS COMMAND
 /dev/snd/controlC0: mks 2468 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xee400000 irq 17'
   Mixer name : 'Analog Devices AD1981'
   Components : 'HDA:11d41981,17aa2025,00100200'
   Controls : 20
   Simple ctrls : 11
Date: Tue Oct 13 17:33:37 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/apport/apportcheckresume
Failure: late resume
HibernationDevice: RESUME=UUID=16fdf2c6-a9d6-4a93-ba85-159de606f291
InterpreterPath: /usr/bin/python2.6
MachineType: LENOVO 8744HDG
Package: linux-image-2.6.31-13-generic 2.6.31-13.45
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.31-13-generic root=UUID=ccc3a33e-ebb2-42e6-8fb3-9d48b653bfc4 ro vga=0x31A
ProcCmdline: /usr/bin/python /usr/share/apport/apportcheckresume
ProcEnviron: PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-13.45-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-13-generic N/A
 linux-firmware 1.21
SourcePackage: linux
Tags: resume suspend resume-late-hang
Title: [LENOVO 8744HDG] late resume failure
Uname: Linux 2.6.31-13-generic x86_64
UserGroups:

dmi.bios.date: 09/19/2007
dmi.bios.vendor: LENOVO
dmi.bios.version: 7IET31WW (1.12 )
dmi.board.name: 8744HDG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7IET31WW(1.12):bd09/19/2007:svnLENOVO:pn8744HDG:pvrThinkPadT60:rvnLENOVO:rn8744HDG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 8744HDG
dmi.product.version: ThinkPad T60
dmi.sys.vendor: LENOVO

Related branches

mks99 (launchpad-schoenhaber) wrote :
mks99 (launchpad-schoenhaber) wrote :

Looking more closely at the issue that the machine does'nt suspend at all, it turned out that there were processes spawned by /usr/lib/pm-utils/sleep.d/01PulseAudio (pacmd, awk) still hanging around. Manually killing them made the machine suspend. Resuming afterwards failed, though.
Completely removing 01PulseAudio from /usr/lib/pm-utils/sleep.d makes suspend/resume work again.

summary: - [LENOVO 8744HDG] late resume failure
+ PulseAudio breaks suspend
affects: linux (Ubuntu) → pulseaudio (Ubuntu)
Jacob (jacob-winther) wrote :

I have the same issue. looks like root can't run:

echo list-sinks | pacmd | awk '/\* index:/ {print $3}'

or

echo list-sources | pacmd | awk '/\* index:/ {print $3}'

I've forced it by making it run under my account using sudo.

Sidenote: didn't think &> was supported in /bin/sh. Results in extra messages in the logs.

Those are all called using sudo -H -u, however.

On the other hand, those redirects definitely seem like bashisms,

Jacob (jacob-winther) wrote :

They aren't called with sudo in pulseaudio_0.9.19-0ubuntu3_amd64.deb.

The set commands are called with sudo, but the they don't have awk so they aren't the ones hanging.

echo set-sink-mute $j true | sudo -H -u \#$i pacmd &> /dev/null
echo set-source-mute $j true | sudo -H -u \#$i pacmd &> /dev/null

Daniel T Chen (crimsun) wrote :

I've uploaded some test packages to the ubuntu-audio-dev PPA, and they should build RSN. Please test them once they're available.

Changed in pulseaudio (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Daniel T Chen (crimsun)
mks99 (launchpad-schoenhaber) wrote :

With the packages from the PPA, I have had no problems suspeding/resuming my machine anymore.
This seems to have fixed it. Great work, thanks!

Jacob (jacob-winther) wrote :

Suspend, resume and redirects all fixed. Thank you.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:0.9.19-0ubuntu4

---------------
pulseaudio (1:0.9.19-0ubuntu4) karmic; urgency=low

  * Remove 0053-fix-sigsegv-module-bluetooth-device.patch, as it did
    more harm than good (reopens LP #437293).
  * debian/01PulseAudio: Fix bashisms, and make suspend/resume actually
    work with sudo -H -u (LP: #432096, #450461).

 -- Daniel T Chen <email address hidden> Tue, 20 Oct 2009 10:29:04 -0400

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers