[ICE1712 - M Audio Audiophile 24/96, playback] no sound after suspend/resume in 12.04

Bug #1035768 reported by Ahren Fitzroy
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have perfectly fine sound playback from my Audiophile 2496 card on initial boot, but every time without fail when I suspend I have no audio upon resuming. When sound is gone after resume, activity can still be seen on the VU meters of envy24control when a sound is played. I found and tried a few recommendations online for dealing with similar problems, to no avail. Specifically:

Running "killall pulseaudio" does not solve the problem.
Running "sudo alsa force-reload" does not solve the problem.
Logging out and back in does not solve the problem.
Disabling my onboard Intel HD audio in the BIOS does not solve the problem.
Adding "options snd-ice1712 model=audiophile" to the end of my /etc/modprobe.d/alsa-base.conf file does not solve the problem.

The only thing that DOES solve the problem is a full reboot, which works every time.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: alsa-base 1.0.25+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
NonfreeKernelModules: fglrx
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: ahren 1931 F.... pulseaudio
 /dev/snd/controlC3: ahren 1931 F.... pulseaudio
 /dev/snd/controlC0: ahren 1931 F.... pulseaudio
 /dev/snd/controlC2: ahren 1931 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfdff4000 irq 44'
   Mixer name : 'Realtek ALC888'
   Components : 'HDA:10ec0888,1028020d,00100001'
   Controls : 41
   Simple ctrls : 23
Card1.Amixer.info:
 Card hw:1 'SP2208WFP'/'Mic-OmniVision Technologies, Inc.538-2640-07.08.09.6 Monitor Webcam (SP2208WFP)'
   Mixer name : 'USB Mixer'
   Components : 'USB05a9:2643'
   Controls : 4
   Simple ctrls : 3
Card2.Amixer.info:
 Card hw:2 'M2496'/'M Audio Audiophile 24/96 at 0xbf00, irq 16'
   Mixer name : 'ICE1712 - multitrack'
   Components : ''
   Controls : 48
   Simple ctrls : 26
Card3.Amixer.info:
 Card hw:3 'HDMI'/'HDA ATI HDMI at 0xfddfc000 irq 45'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100000'
   Controls : 6
   Simple ctrls : 1
Card3.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Sat Aug 11 20:12:25 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: alsa-driver
Symptom: audio
Symptom_Card: RV630 audio device [Radeon HD 2600 Series] - HDA ATI HDMI
Symptom_Type: Sound works for a while, then breaks
Title: [ICE1712 - M Audio Audiophile 24/96, playback] fails after a while
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/24/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.0.18
dmi.board.name: 0FM586
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: OEM
dmi.modalias: dmi:bvnDellInc.:bvr1.0.18:bd02/24/2009:svnDellInc.:pnInspiron530:pvr:rvnDellInc.:rn0FM586:rvr:cvnDellInc.:ct3:cvrOEM:
dmi.product.name: Inspiron 530
dmi.sys.vendor: Dell Inc.
mtime.conffile..etc.modprobe.d.alsa.base.conf: 2012-08-05T16:06:25.692043

Revision history for this message
Ahren Fitzroy (afitzroy440) wrote :
Revision history for this message
Ahren Fitzroy (afitzroy440) wrote :

After some more tinkering I've developed a reliable workaround to this issue. The tricky part seems to be getting the ice1712 driver to unload in the short time window between killing pulseaudio and when pulseaudio automatically restarts. I am still a linux novice so I am certain that there are better ways to go about this, but here is the script that has worked for me:

sudo killall pulseaudio; sudo rmmod snd_ice1712
sudo modprobe snd_ice1712
killall pulseaudio

This can be set to run automatically upon resume by creating a file in /usr/lib/pm-utils/sleep.d with the above code wrapped like so (found this tip at http://ubuntuforums.org/showthread.php?t=1484156):

#!/bin/bash
case "$1" in
 hibernate|suspend)
  #do nothing
 ;;
 thaw|resume)
  sudo killall pulseaudio; sudo rmmod snd_ice1712
  sudo modprobe snd_ice1712
  killall pulseaudio
 ;;
 *)
 ;;
esac
exit $?

This workaround seems to have my sound working as expected after resume with no interventions necessary.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
Oliver Willemse (oliver-willemse) wrote :

@Ahren does your sleep.d solution still work reliably? I noticed that once in every so many resumes my audio will still be non-functional and I have to repeat your steps (thanks by the way!) manually.

Revision history for this message
debili (karatedebili) wrote :

Thank you, this seems to work and solved my issue! What about the muting? is your sound also muten upon resume? lik you have to manualy click the 'unmute' under toppanel/soundmenu?

Revision history for this message
Kokoko3k (kokoko3k) wrote :

What if one doesn't use pulseaudio and/or the device is playing something when you try to rmmod snd_ice1712?
It won't work because the module is in use, and if you force with -f, you'll probably get a segmentation fault or a hung task timer kernel message.
After that the only way to resume the device will be a reboot.

The issue has to be solved at driver level; userspace tricks (which i used) are not reliable solutions.

It seems that some resume problems was fixed lately for another similar chip:
https://patchwork.kernel.org/patch/1604161/

I can't right now because my audiophile 2496 is not installed anymore (no free pci slots), but maybe a bug filed directly to alsa devs:
https://bugtrack.alsa-project.org/alsa-bug/ will have more effect.

Revision history for this message
Raymond (superquad-vortex2) wrote :

does it work if you modify module-udev-detect to exclude snd-ice1712 from being used/reserved by pulseaudio?

Revision history for this message
Kokoko3k (kokoko3k) wrote :

The bug is can be reproduced with and without pulseaudio. And is all about the module just not supporting resume as it should.

Revision history for this message
Dr Mike Brooks (michael-brooks-b) wrote :

Ahren Fitzroy's solution worked perfectly for me a year and a half on! Thank you!

Much better than the useless forum threads that just tail off and the bug reports that have gone unanswered by Canonical.

Revision history for this message
madbiologist (me-again) wrote :

Initial power management support for M-Audio devices will finally be available in the ICE1712 driver in the upcoming upstream 3.15 kernel. The 3.15 kernel will be available at http://kernel.ubuntu.com/~kernel-ppa/mainline/ and instructions on how to install and uninstall it are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in alsa-driver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.