This is not WINE, but more xinit question, so I am sorry if anyone is offended. I searched for two days for an answer that works for me , and did not get any answer in Ubuntu forums.I ask this question here, because it seems a lot of people run their win games in separate windows, so I hope on who knows might be willing to help. My problem Every game I run starts and works OK in a separate x-window session , but no sound... Games will have sound, when started in the default graphic environment. This is the command I use to run a game:( the example given is for Heroes3, but is true for every game)> cd '/home/deckoff/.wine/drive_c/Program Files/GOG.com/Heroes of Might and Magic 3 Complete' && xinit /usr/bin/sudo -u deckoff /usr/share/playonlinux/playonlinux --run "Heroes3" $* -- :1My searches found, that I will have to use> ck-launch-sessionn to provide sound... I simply dont know how to use this and when to execute. ( If yu think this might solve problem, pls step by step how to) Some bonus info - executing the command from tty1 when logged in, will provide sound for the tty, but not in the x-window I use Ubuntu 11.04 (kubuntu on the pc I run, and Ubuntu on my desktop) I now Ubuntu uses pulseaudio( AFAIK), and pulseaudio does not work very well with WINE (although games do have sound when run form KDE or gnome. Any info and help welcome, thank you in advance
deckoff
2011-Aug-28 20:27 UTC
[Wine] Re: second x-server window has no sound. Please help!
I've found a solution: edit /etc/group Code: Code: sudo vi /etc/group Next, search for audio, you shoud find somethink like this: Code: Code: audio:x:29:pulse Add a coma and your username afther pulse Code: Code: audio:x:29:pulse,username change username with yours Save and restart ubuntu, it should work. If I switch between sessions, I loose sound, but that is minor trouble. I hope this helps someone