2009-11-23, 05:49
This may be helpful to some of you who are upgrading to a newer nVidia graphics card. I just got an MSI N210-MD512H GeForce 210 so that I could take advantage of VDPAU. My motherboard, an AN-M2HD, has a built-in nVidia 7050 graphics adapter plus sound card. I just upgraded to Ubuntu Karmic 9.10 to get the nVidia 190.42 driver working via their PPA.
My problem was that the sound would work sometimes, and other times not. A friend who is an occasional kernel developer helped me track down the race condition. The new nVidia driver now supports audio over HDMI (yay for some folks) but I'm not using it, and it was breaking my onboard sound (sometimes).
The solution is to blacklist the hdmi audio. To do that, add the following line to /etc/modprobe.d/blacklist.conf:
blacklist snd_hda_codec_nvhdmi
That seems to have solved the problem after the last several reboots, but if it is a race condition, you never really know.
----
I know there are now lots of guides for installation, but here are the notes I took during my install in case they are helpful for others.
Install Karmic
* Select auto login
Wifi
* Connect to network w/ password
* Save wifi key, but create blank password
Update
* System -> Administration -> update
ssh
* aptitude install openssh-server
* cp old /etc/ssh dir
* cp old /home/elvis/.ssh dir
Desktop
* Remove icons on desktop
* Alt-f2 run gconf-editor
* \apps\nautilus\desktop uncheck volumes_visible
* Turn off desktop effects
* System -> Preferences -> Appearance
* Add panels on left & right as buffer
nVidia driver
* Add ppa
* System -> Administration -> Software Sources
* add ppa:nvidia-vdpau/ppa
* add key
* sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CEC06767
* aptitude update
* aptitude install nvidia-190-modaliases nvidia-glx-190 nvidia-settings-190
* Turn on restricted 190.42 driver
* System->Administration -> Hardware driver
* reboot before
XBMC
* Add ppa as above
* ppa:team-xbmc/karmic-ppa
* aptitude install xbmc
* Launch xbmc on login
* System -> Preferences -> startup
Sound
* System -> Preferences -> Sound
* Choose iec958
* blacklist hdmi audio to prevent conflict
* "blacklist snd_hda_codec_nvhdmi" in /etc/modprobe.d/blacklist.conf
Remote
* aptitude install lirc
* Choose Windows MCE (all) for remote
* Choose none for next
* Set rule for 2 sensors
* http://ubuntuforums.org/showthread.php?t=892647&page=2
* or just blacklist imon
* append "blacklist lirc_imon" to /etc/modprobe.d/blacklist.conf
Sensors
* apt-get install lm-sensors sensors-applet
* sudo sensors-detect
* no need for disk daemon
* add hardware-sensors to panel
Root
* sudo -s
* passwd
Disk spindown
* aptitude install hdparm
* copy old hdparm settings
My problem was that the sound would work sometimes, and other times not. A friend who is an occasional kernel developer helped me track down the race condition. The new nVidia driver now supports audio over HDMI (yay for some folks) but I'm not using it, and it was breaking my onboard sound (sometimes).
The solution is to blacklist the hdmi audio. To do that, add the following line to /etc/modprobe.d/blacklist.conf:
blacklist snd_hda_codec_nvhdmi
That seems to have solved the problem after the last several reboots, but if it is a race condition, you never really know.
----
I know there are now lots of guides for installation, but here are the notes I took during my install in case they are helpful for others.
Install Karmic
* Select auto login
Wifi
* Connect to network w/ password
* Save wifi key, but create blank password
Update
* System -> Administration -> update
ssh
* aptitude install openssh-server
* cp old /etc/ssh dir
* cp old /home/elvis/.ssh dir
Desktop
* Remove icons on desktop
* Alt-f2 run gconf-editor
* \apps\nautilus\desktop uncheck volumes_visible
* Turn off desktop effects
* System -> Preferences -> Appearance
* Add panels on left & right as buffer
nVidia driver
* Add ppa
* System -> Administration -> Software Sources
* add ppa:nvidia-vdpau/ppa
* add key
* sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CEC06767
* aptitude update
* aptitude install nvidia-190-modaliases nvidia-glx-190 nvidia-settings-190
* Turn on restricted 190.42 driver
* System->Administration -> Hardware driver
* reboot before
XBMC
* Add ppa as above
* ppa:team-xbmc/karmic-ppa
* aptitude install xbmc
* Launch xbmc on login
* System -> Preferences -> startup
Sound
* System -> Preferences -> Sound
* Choose iec958
* blacklist hdmi audio to prevent conflict
* "blacklist snd_hda_codec_nvhdmi" in /etc/modprobe.d/blacklist.conf
Remote
* aptitude install lirc
* Choose Windows MCE (all) for remote
* Choose none for next
* Set rule for 2 sensors
* http://ubuntuforums.org/showthread.php?t=892647&page=2
* or just blacklist imon
* append "blacklist lirc_imon" to /etc/modprobe.d/blacklist.conf
Sensors
* apt-get install lm-sensors sensors-applet
* sudo sensors-detect
* no need for disk daemon
* add hardware-sensors to panel
Root
* sudo -s
* passwd
Disk spindown
* aptitude install hdparm
* copy old hdparm settings