Ahum.... sorry, I put in the code without testing it. Ofcourse the code
did not work due to some ownership I do not have as regular user.

So below the exact smae procedure, but now with a sudo-workaround so that it 
also works (and not give permission-errors). Sorry for the mistake.
#Procedure to add sound using the hda-verb software of Mandriva
mkdir -p ~/tmp/fixsound
cd ~/tmp/fixsound
wget ftp://ftp.suse.com/pub/people/tiwai/misc/hda-verb-0.3.tar.gz
tar -xvmf hda-verb-0.3.tar.gz
cd hda-verb-0.3
make
sudo cp hda-verb /usr/local/sbin
#next lines assumes that the string "exit 0" is the last uncommented command in 
the /etc/rc.local file (located at beginning of the line, otherwise substituse 
^exit by something like ^[ TABexit] where TAB is a "real" tab.
sudo cp -p /etc/rc.local /etc/rc.local_beforesound
sudo sh -c 'grep -v "^exit 0" /etc/rc.local_beforesound > /etc/rc.local'
sudo sh -c 'echo "/usr/local/sbin/hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 3
/usr/local/sbin/hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIRECTION 1
/usr/local/sbin/hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 1
exit 0" >> /etc/rc.local'

shutdown -r now

-- 
No sound in Ubuntu 9.10
https://bugs.launchpad.net/bugs/496186
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to