I have Arch Linux installed on a Dell XPS L502X laptop.
After installing OSS while following the guide on the Arch Wiki [link below], everything works perfectly.
After a couple of reboots, though, the sound is filled with noise: not white noise, something more, well, convoluted.
If I disable vmix0 (ossmix vmix0-enable OFF), mplayer's playback is almost perfect: there's some hickups and noise here and there, but it's nothing compared to using vmix0 (which isn't ideal, though, because I want flawless playback). Youtube videos remain impossibly awful, though (I have libflashsupport-oss installed).
I don't know what info to provide, so please tell me if you need to know something.
Help would be much appreciated.
Link to Arch Wiki's OSS page: wiki.archlinux.org/index.php/Open_Sound_System
The solution (more like a hack) was posted by cesium in this post: http://www.opensound.com/forum/viewtopic.php?f=3&t=4772&sid=a5299395cb3cfe94d77d348c2cae0858&sid=a5299395cb3cfe94d77d348c2cae0858#p18645
Basically, add this to /etc/rc.local
- Code: Select all
tar -C /lib/modules/$(uname -r) -xjf /lib/modules/$(uname -r)/sound-preoss.tar.bz2
soundon > /dev/null 2>&1
Make sure you don't have "oss" in the /etc/rc.conf daemons list.
Also, you need bzip2: pacman -S bzip2
Conclusion: how to use OSS on a Dell XPS L502X in Arch Linux (it adds 30 seconds to the boot time, but hey -- it works)
- Code: Select all
# Install OSS and libflashsupport-oss to add support to Flash (eg: Youtube videos)
sudo pacman -S oss libflashsupport-oss
# cesium's fix
sudo echo 'tar -C /lib/modules/$(uname -r) -xjf /lib/modules/$(uname -r)/sound-preoss.tar.bz2' >> /etc/rc.local
sudo echo 'depmod -a' >> /etc/rc.local
sudo echo 'modprobe snd-hda-intel' >> /etc/rc.local
sudo echo 'soundon > /dev/null 2>&1' >> /etc/rc.local
# Optional: add 96kHz sample rate support by adding "vmixctl rate /dev/dsp 96000" to the file
# /usr/lib/oss/soundon.user and making it executable
sudo sed '/exit 0/ i\vmixctl rate /dev/dsp 96000' -i /usr/lib/oss/soundon.user
sudo chmod +x /usr/lib/oss/soundon.user
# Optional: install a media player, mplayer, and configure it to use OSS
sudo pacman -S mplayer
mkdir -p /home/$USER/.mplayer
echo "ao=oss" >> /home/$USER/.mplayer/config