![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2006
Beans: 26
|
VMPlayer and ALSA
I have had a nagging problem with VMPlayer: it uses OSS for sound. That means that unless OSS is enabled and loaded, I get the annoying /dev/dsp not found message when the player starts; as I was moving to Dapper, many updates broke OSS and made the problem reappear. Additionally, this means that while another application is using OSS and the player tries to access it, it will hang with an error message.
To enable OSS to begin with, follow the first section of this thread: http://www.ubuntuforums.org/showthre...light=oss2jack The best solution for me was adapted from this thread on the vmware forums; it uses the alsa-oss package and enables VMPlayer to use ALSA for sound. 1. Install VMPlayer and create your image. I was greatly helped by this guide; browse the rest of the thread for instructions on using qemu without wine. After you have a working image and preliminary installation of the guest OS: 2. Get the alsa-oss package: Code:
sudo apt-get install alsa-oss Code:
sudo chmod +s /usr/lib/libaoss.so.* Code:
sudo mv /usr/bin/vmplayer /usr/bin/vmplayerorig Code:
sudo vi /usr/bin/vmplayer Code:
#!/bin/bash LD_PRELOAD=libaoss.so exec /usr/bin/vmplayerorig "$@" Code:
sudo chmod +x /usr/bin/vmplayer |
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Feb 2005
Beans: 29
|
Fixed it for me. Thanks for your work!
|
|
|
|
|
|
#3 |
|
Way Too Much Ubuntu
![]() |
Re: VMPlayer and ALSA
I tried this but now I can't open or edit my windows xp vm.
Code:
Unable to get information for disk (IDE 0:0) Unable to open file "/home/username/.vmware/Windows XP Professional/Windows XP Professional.vmdk": Fil för stor. I can open it if I start vmwareorig. Last edited by Rizado; June 17th, 2006 at 05:50 AM.. |
|
|
|
|
|
#4 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2006
Beans: 26
|
Re: VMPlayer and ALSA
Rizado, this fix is specifically for VMPlayer. VMWare server has the option to choose the sound device. I prefer the player simply because it seems to be the same speed of the server, and the interface is not as cluttered. The server gives you, naturally, much more for the money you don't pay.
Grundlebug, I am glad I helped. This problem is application-specific, and as I said, was already solved in the VMWare server. Generally speaking, this workaround helps with many applications that default to OSS. |
|
|
|
|
|
#5 | |
|
Spilled the Beans
![]() Join Date: Jun 2006
My beans are hidden!
|
Re: VMPlayer and ALSA
Quote:
|
|
|
|
|
|
|
#6 |
|
Way Too Much Ubuntu
![]() |
Re: VMPlayer and ALSA
I couldn't fix it, had to reinstall windows, but it was a fresh install anyway. I've seen the same problem on vmware forums but noone knew how to fix it. The audio is crap using alsa anyway so I'm back to oss.
|
|
|
|
|
|
#7 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2008
Beans: 1
|
Re: VMPlayer and ALSA
I found I had to give the full name of the library to get it working, i.e.
LD_PRELOAD=libaoss.so.0.0.0 exec /usr/bin/vmplayer "$@" |
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2008
Location: Somma Lombardo - Italy
Beans: 152
Ubuntu 9.04 Jaunty Jackalope
|
Re: VMPlayer and ALSA
Hi, I'm trying to make it work on Hardy but it doesn't...
I followed your guide. The only difference is that instead of renaming wmplayer I did a new script called /usr/bin/vmplayer-alsa that contains: Code:
#!/bin/bash LD_PRELOAD=libaoss.so exec /usr/bin/vmplayer "$@" Then I run it: Code:
vmplayer-alsa <path to my vmx file> That was working with Gusty... In the vmx file I have the following settings: Code:
sound.present = "TRUE" sound.virtualDev = "es1371" sound.device = /dev/snd/pcmC0D0c Any idea? |
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: May 2006
My beans are hidden!
|
Re: VMPlayer and ALSA
I know this is three weeks old, but thanks for posting it! Got my VMPlayer sound going.
When's Ubuntu going to fully switch to ALSA?!? I've been cleaning up little sound problems all over the place. |
|
|
|
|
|
#10 |
|
Way Too Much Ubuntu
![]() |
Re: VMPlayer and ALSA
Well I have sound through the kernel oss emulation but if I use that I can't use anything else. Will this guide make it mixable or is it just for people with sound problems?
EDIT: Ok I got mixing working now, don't know what the problem was but now it works. But the sound is horrible! BTW it's no problem getting vmware to work with this guide. The steps are the same. Last edited by Rizado; June 17th, 2006 at 05:39 AM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|