0x10250137 needs addition to position_fix=1 whitelist

Bug #442748 reported by Shannon VanWagner
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Sound output is intermittent system-wide with nVidia MCP73 HDA

lspci |grep Audio
00:09.0 Audio device: nVidia Corporation MCP73 High Definition Audio (rev a1)

I get sound on some things and then on others and then sometimes the sound output is a "crunchy" sound instead of the intended sounds.

Workaround: Right Click Volume Icon, click "Sound Preferences", click the Hardware tab, take note of the "Profile" setting (e.g., Analog Stereo Duplex), then toggle it to off, then toggle it back to the noted setting.

Thanks for your help!

ProblemType: Bug
Architecture: i386
CheckboxCommand: gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink'
CheckboxData: I can hear sound if I toggle Hardware from Analog Surround 5.1 Output to of and then back on the Sound Preferences > Hardware tab.
CheckboxTest: playback_auto
Date: Sun Oct 4 19:18:26 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: python-gst0.10 0.10.16.3-1
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: gst0.10-python
Tags: checkbox-bug
Uname: Linux 2.6.31-11-generic i686
XsessionErrors:
 (gnome-settings-daemon:1867): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1867): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:1898): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:1921): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:1897): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 24

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :
Philip Muškovac (yofel)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Shannon,

Can you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach sound related debug info to this bug:

apport-collect -p alsa-base 442748

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : apport-collect data

Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: gamer 2120 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0xf9e78000 irq 7'
   Mixer name : 'Realtek ALC1200'
   Components : 'HDA:10ec0888,10250137,00100101'
   Controls : 37
   Simple ctrls : 22
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: alsa-base 1.0.20+dfsg-1ubuntu4
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-13.43-generic
Uname: Linux 2.6.31-13-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : AlsaDevices.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : AplayDevices.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : ArecordDevices.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : BootDmesg.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : Card0.Amixer.values.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : CurrentDmesg.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : Dependencies.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : PciMultimedia.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : XsessionErrors.txt
Changed in linux (Ubuntu):
status: Incomplete → New
tags: added: apport-collected
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : Re: [Bug 442748] Re: Sound output is intermittent system-wide with nVidia MCP73 HDA

Leann,
I've run the utility and it appears to have uploaded the information you
requested.

Thanks!
Shannon VanWagner

On Fri, Oct 9, 2009 at 7:20 PM, Leann Ogasawara <
<email address hidden>> wrote:

> Hi Shannon,
>
> Can you run the following command from a Terminal
> (Applications->Accessories->Terminal). It will automatically gather and
> attach sound related debug info to this bug:
>
> apport-collect -p alsa-base 442748
>
> ** Changed in: linux (Ubuntu)
> Status: New => Incomplete
>
> --
> Sound output is intermittent system-wide with nVidia MCP73 HDA
> https://bugs.launchpad.net/bugs/442748
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “linux” package in Ubuntu: Incomplete
>
> Bug description:
> Sound output is intermittent system-wide with nVidia MCP73 HDA
>
> lspci |grep Audio
> 00:09.0 Audio device: nVidia Corporation MCP73 High Definition Audio (rev
> a1)
>
> I get sound on some things and then on others and then sometimes the sound
> output is a "crunchy" sound instead of the intended sounds.
>
> Workaround: Right Click Volume Icon, click "Sound Preferences", click the
> Hardware tab, take note of the "Profile" setting (e.g., Analog Stereo
> Duplex), then toggle it to off, then toggle it back to the noted setting.
>
> Thanks for your help!
>
> ProblemType: Bug
> Architecture: i386
> CheckboxCommand: gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 !
> audioconvert ! audioresample ! gconfaudiosink'
> CheckboxData: I can hear sound if I toggle Hardware from Analog Surround
> 5.1 Output to of and then back on the Sound Preferences > Hardware tab.
> CheckboxTest: playback_auto
> Date: Sun Oct 4 19:18:26 2009
> DistroRelease: Ubuntu 9.10
> NonfreeKernelModules: nvidia
> Package: python-gst0.10 0.10.16.3-1
> ProcEnviron:
> SHELL=/bin/bash
> LANG=en_US.UTF-8
> ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
> SourcePackage: gst0.10-python
> Tags: checkbox-bug
> Uname: Linux 2.6.31-11-generic i686
> XsessionErrors:
> (gnome-settings-daemon:1867): GLib-CRITICAL **: g_propagate_error:
> assertion `src != NULL' failed
> (gnome-settings-daemon:1867): GLib-CRITICAL **: g_propagate_error:
> assertion `src != NULL' failed
> (nautilus:1898): Eel-CRITICAL **: eel_preferences_get_boolean: assertion
> `preferences_is_initialized ()' failed
> (polkit-gnome-authentication-agent-1:1921): GLib-CRITICAL **:
> g_once_init_leave: assertion `initialization_value != 0' failed
> (gnome-panel:1897): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to
> allocate widget with width -1 and height 24
>

--
FREE YOURSELF, Use GNU/LINUX! gnu.org | fsf.org | linux.com |
getgnulinux.org | ubuntuguide.org | whylinuxisbetter.net | openoffice.org |
humans-enabled.com | ubuntu.com | distrowatch.com | makethemove.net

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: Sound output is intermittent system-wide with nVidia MCP73 HDA

Please try appending " position_fix=1" to the options snd-hda-intel line in /etc/modprobe.d/alsa-base.conf and rebooting.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

Daniel,

I've added " position_fix=1" and rebooted as you suggested and although it seems to help with how quickly the sound recovers itself from going "crunchy", it doesn't seem to have fixed the problem entirely.

Here's how I can reproduce the problem:
At the password entry field for login, I hit the backspace key repeatedly and the I hear an action sound(from the sound theme) on every other key entry. Then on about the fourth or fifth iteration of the sound, as I keep hitting backspace, it turns to the "crunchy static" sound that I mentioned previously. Then if I wait for about 30 seconds and hit the backspace again, the regular sound is back and working until I hit it repeatedly to duplicate the problem.

So then I logged in, the Ubuntu startup sound works, then I went to youtube and the sound works, then with youtube open, I launch C&C Red Alert II in wine, the sound went all crunchy again. I then exited youtube and the wine game, turned off sound via Sound Preferences>Hardware and back on again and sound is working once again.

So now I have turned of the alert sounds from the Sound Preferences all together (as opposed to having the Ubuntu theme sounds running) and I'm able to play my wine game with full sound.

Please let me know if there's anything else I should add to this report to help define the issue.

Thanks very much for your assistance!

Shannon VanWagner
humans enabled

Revision history for this message
Daniel T Chen (crimsun) wrote :

There are two issues here:

1) PA isn't running with realtime privileges. You can change this if you modify /etc/security/limits.conf, logout, and login. The web has instructions (google://ubuntu studio pam limits.conf realtime).

2) Wine, by default, doesn't have a native PA backend. Try Neil's PPA (again, use the web).

Changed in linux (Ubuntu):
status: Incomplete → New
summary: - Sound output is intermittent system-wide with nVidia MCP73 HDA
+ 0x10250137 needs addition to position_fix=1 whitelist
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

As suggested in #17, I've configured my system as follows per https://help.ubuntu.com/community/UbuntuStudioPreparation

------
Real-Time Support
After you've got the kernel you still need to set up real-time access for your applications.
All you have to do for this is give your audio group permissions to access the rtprio, nice, and memlock limits. To do this, you just need to run these commands, which will add some lines to the file /etc/security/limits.conf:
 sudo su -c 'echo @audio - rtprio 99 >> /etc/security/limits.conf'
 sudo su -c 'echo @audio - nice -10 >> /etc/security/limits.conf'
 sudo su -c 'echo @audio - memlock unlimited >> /etc/security/limits.conf'
(I replaced "unlimited" to 1024 because my machine has 2GB of RAM)
These value are suggested by http://jackaudio.org/faq. The memlock line determines how much of your memory can be locked by audio processes. Some recommend setting this as half of your total memory (RAM, in KB). See Florian Paul Schmidt's page.
If you use a Firewire sound card, you already done the step described here: in Hardy and Karmic beta, this group is already created at installation. You just have to do:
 sudo adduser <username> audio
Restart Ubuntu and it is ok.
If you experience freezes after rebooting Jaunty Jackalope, try removing the "memlock unlimited" line or changing it to a different value. Always keep a -generic kernel on your Grub list. If for some reason you can't boot with the -rt kernel, it will be very useful.
------

Thanks Daniel. I'll let you know how it works for me.

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

Daniel,

After making the changes above(assuming that implemented the real time support stuff properly... the post in 18 appears to mention using a custom -rt built kernel, which I haven't done.. not sure if that's the correct thing to do or not. Also, I tried setting the memlock to unlimited and that doesn't help either), then rebooting, I am still having problems with the sound going to static.

Here's how I am able to easily duplicate the problem:
1.) Launch an mp3 file to play in the movie player and it starts playing.
2.) Open the terminal and hit the Backspace key 3 times... then all sound goes to static. The mp3 file continues to play but it's now garbled static instead of the music.

The same thing happens if I use youtube in step 1. and then repeat step 2.

To reset the garbled sound, I right-click the volume control and launch Sound Preferences. Then from the hardware tab, I select it to Off, and then back to something like "Analog Surround 5.0 Output + Analog Stereo Input", or "Analog Stereo Duplex" and it fixes the sound. But then I can break the sound easily by repeating the above steps again.

Also, when I play games in wine, sometimes the sound works at first, and then, as if to get overloaded, the sound goes to garbled static. I then hit ctrl+alt+d to show the Desktop, and set the sound hardware to off and then back on, but this is very difficult to do sometimes because the screen resolution is set to something like 640x480 while playing a wine game, and then I can't even get to the dropdown selector to turn off the sound because it's off the bottom of the screen.

Can anyone suggest how to fix this? Let me know if you need any further information.

Thanks!
Shannon

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

Daniel,

here's my current situation:
Every time I first login, the sound(regardless of user acct used) is set to the lowest level (in muted status).

So then I turn up the sound and it works.. but as mentioned above, the sound is very "fragile", as I can easily break it by hitting backspace twice in the terminal. Also, sometimes when I launch more than one sound source, i.e., youtube and an mp3 in movie player at the same time, the sound breaks until I reset it again. To reset everything I have to turn the sound to "Off" in the hardware tab of sound preferences, and then back to something like "Stereo Duplex".

Switching the sound off and on again would be an acceptable work-around if I could assign that action to a keystroke or something. Can you provide instructions for how to do this? What terminal or command-line action happens when I switch the sound off and then back on? The problem is that if I run a game in wine, the screen resolution changes and it's then very hard (after hitting ctrl+alt+d to show the desktop) to access the on/off control in the sound preferences.

This problem seems to only be with the NVIDIA-chipset-based computer that I have, as I just recently upgraded my Dell Inspiron 2650 to Karmic and it works fine.

Thanks for any help you can provide. I greatfully appreciate it!

Sincerely,
Shannon VanWagner

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

I have workarounds, but it would be great if they were better, for these two nagging problems:
1.) Every time I reboot the computer and login, the sound volume is turned all the way down. Is there a way to modify this setting?

2.) My sound is very fragile... I can easily break the sound into "static crunchiness" by hitting backspace in the terminal 3 times while any sounds (e.g., music) are playing from another application. As a workaround for this problem, I can reset the sound by turning the hardware off and back on from the gnome-volume-control on the panel. However, this is a very tedious workaround because it takes about 8 clicks to go through the process, sometimes more - if I have to minimize something that's full screen first. Is there a setting somewhere in the system where I could setup a batch script, tied to a launcher or keystroke, that could automate this "power cycling" of the sound hardware into 1 click?

Thanks for making Ubuntu and GNU/Linux awesome!!
Shannon

Revision history for this message
cement_head (andorjkiss) wrote :

I also have this bug. This appeared AFTER I installed the Ubuntu Pulseaudio PPA to solve the HSF modem problem.

I have also ran the command apport-collect -p alsa-base 442748

Let me know if you need more information

Revision history for this message
cement_head (andorjkiss) wrote : apport-collect data

Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: andor 2970 F.... pulseaudio
 /dev/snd/pcmC0D0c: andor 2970 F...m pulseaudio
 /dev/snd/pcmC0D0p: andor 2970 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xd8544000 irq 17'
   Mixer name : 'Analog Devices AD1981'
   Components : 'HDA:11d41981,103c30c1,00100200 HDA:14f12c06,103c1379,00100000'
   Controls : 12
   Simple ctrls : 10
CheckboxSubmission: 34e39cc89f11f35837162c4183aa954e
CheckboxSystem: b845c366ea09c60efa3a45c1b5b21525
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: hsfengine wl
Package: alsa-base 1.0.20+dfsg-1ubuntu5
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-18.55-generic
Uname: Linux 2.6.31-18-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
cement_head (andorjkiss) wrote : AlsaDevices.txt
Revision history for this message
cement_head (andorjkiss) wrote : AplayDevices.txt
Revision history for this message
cement_head (andorjkiss) wrote : ArecordDevices.txt
Revision history for this message
cement_head (andorjkiss) wrote : BootDmesg.txt
Revision history for this message
cement_head (andorjkiss) wrote : Card0.Amixer.values.txt
Revision history for this message
cement_head (andorjkiss) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
cement_head (andorjkiss) wrote : Card0.Codecs.codec.1.txt
Revision history for this message
cement_head (andorjkiss) wrote : CurrentDmesg.txt
Revision history for this message
cement_head (andorjkiss) wrote : Dependencies.txt
Revision history for this message
cement_head (andorjkiss) wrote : PciMultimedia.txt
Revision history for this message
cement_head (andorjkiss) wrote : XsessionErrors.txt
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

I found something that seems to help.

I modified the last line in /etc/modprobe.d/alsa-base.conf with the text below and rebooted ( added options: model=6stack-dig and position_fix=1 ):
options snd-hda-intel power_save=10 power_save_controller=N position_fix=1 model=6stack-dig

I also removed the /home/myusername/.pulse* directories but I don't know if that made any difference.

Here's more details on my hardware for comparison ( http://www.humans-enabled.com/2009/09/gnulinux-3d-gaming-box-no-monitor-get.html ):
$ lspci |grep Audio
00:09.0 Audio device: nVidia Corporation MCP73 High Definition Audio (rev a1)

$ cat /proc/asound/card0/codec#* |grep Codec
Codec: Realtek ALC1200

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So now the "crunchiness" has gone away, and the sound doesn't go to mute everytime I reboot and log back in.

This rocks!
Shannon VanWagner

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

I've attached my /etc/modprobe.d/alsa-base.conf so you can compare yours to the one that works well for me.

Cheers!
Shannon VanWagner

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

So after some testing, I found the volume was still being muted after some reboots. So then I commented out (per a tip I found on debian bug reports) "load-module module-device-restore" in /etc/pulse/default.pa

So instead of /etc/pulse/default.pa containing:
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

it's now changed to
### Automatically restore the volume of streams and devices
#load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

So now my sound doesn't crackle anymore(per changes in #35 above), and doesn't startup in a muted state (per the changes above).

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Shannon,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 442748

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
tags: removed: needs-upstream-testing
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

Hi Jeremy,
after some "learning-curvage" on my part, completely reverting/reinstalling 9.10, and reconfiguring grub2, I was finally able to test my system with the 2.6.34-999-generic kernel (current upstream for my arch https://wiki.ubuntu.com/KernelMainlineBuilds).

Tests checked out good. Sound is good. After multiple reboots into 2.6.34-999-generic, I get sound, not broken by constant backspace at terminal, and sound leveling kept the same as I set it throughout. Beautiful. I've removed the 'needs-upstream-testing' per your tag.

Furthermore, this system (like most systems I've tested so far) works beautifully (and sound too) with Ubuntu 10.04 (04-02-10 Daily LiveCD).

Thanks and Nice Work!!

Shannon VanWagner
humans-enabled.com

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu development release http://cdimage.ubuntu.com/daily-live/current/ . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote : Invitation to connect on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Shannon

Shannon VanWagner
Network Administrator / IT Support at Airbiquity
Greater Seattle Area

Confirm that you know Shannon VanWagner:
https://www.linkedin.com/e/-dyx1pl-h0hg0lgc-5s/isd/6509491589/Ue3A5SVo/?hs=false&tok=1MoUq7kDLo3Rc1

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/-dyx1pl-h0hg0lgc-5s/Ac0p6JZtqCGQ-7_9GIDGA2AtgnZ48Wcx6QeCtIM/goo/442748%40bugs%2Elaunchpad%2Enet/20061/I2257832211_1/?hs=false&tok=1EsikAiNTo3Rc1

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.

Revision history for this message
Shannon VanWagner (shannon-vanwagner) wrote :

Sorry about the linkedin spam.. I think I bombed my address book with it. Please feel free to delete comment #41.

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.