No sound in wine with Ubuntu 10.10, native sound works fine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

No sound in wine with Ubuntu 10.10, native sound works fine

Post by Ryan4200782 »

Hello, i am a new Linux user as of last weekend. I successfully built my first computer and installed Ubuntu 10.10 and wine 1.2. I am using the hdmi out on my nvidia gtx 460 graphics card with on-board which works fine with standard pulseaudio for all tested native apps (system sounds, hulu on firefox, warzone 2100). I have tried every combination of winecfg audio tab settings as well as disabling and killing pulse audio. I have added my user to the audio group. I have purged and re-installed several times. I even reformatted the hd and re-installed ubuntu. No matter what i do the sound test failed, and i get this message:

fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer

I bet this is something simple, but i just can't seem to get it working. Before i accessed the audio tab, rome:total war was running perfectly on highest settings(without sound). Once i configured sound, it crashes before the first screen(looking for sound i guess). I can provide any terminal output need, of course. I can't go back to windows <shudder>
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

Any ideas? Non-sound wine-apps run perfectly, like Sketchup 8.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Ryan4200782 wrote:Any ideas? Non-sound wine-apps run perfectly, like Sketchup 8.
The usual culprit is PulseAudio, and while it seemed to work better with Wine for awhile, recent versions of Ubuntu seem to have big problems with it. You say you tried disabling it, but have you tried removing it entirely from your system?
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

Can you reccomend a good guide for that? I did try removing pulseaudio completely based on some directions posted on a site not directly linked with Ubuntu. I believe I installed some alsa packages, and native sounds still worked but did not do anything for wine. It was after trying this and some other things(winepulse)that I reformated the hard drive so as to have a "clean" install for troubleshooting. However if there is a reccomended guide for removing pulseaudio I will certainly try it(or anything else) again.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Ryan4200782 wrote:Can you reccomend a good guide for that? I did try removing pulseaudio completely based on some directions posted on a site not directly linked with Ubuntu. I believe I installed some alsa packages, and native sounds still worked but did not do anything for wine. It was after trying this and some other things(winepulse)that I reformated the hard drive so as to have a "clean" install for troubleshooting. However if there is a reccomended guide for removing pulseaudio I will certainly try it(or anything else) again.
This is something you should ask on Ubuntu forums, but sudo apt-get uninstall pulseaudio is sufficient, I *believe*. If it's not, uninstalling PulseAudio and then compiling the Linux kernel from (a non-Ubuntu) source would. (I heard some PA stuff is patched into the Ubuntu kernel, not sure though).
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

Ok, i have un-installed pulseaudio with a howto on ubuntu forums, and installed the necessary alsa packages. Sound in ubuntu works well(watching hulu while i type this) but i still get the same result when i go to the audio tab in winecfg:

fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer

when i try to set audio tab configuration options i get this:

err:winecfg:set_config_key Unable to set configuration key L"DefaultSampleRate" in section L"DirectSound", res=6

Any ideas? No sound at all in wine, ever. Should i consider reverting to Lucid? I am using the on-board sound on Asus m4a87td motherboard. This motherboard actually got a "works good with linux" review on newegg. Any ideas?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Ryan4200782 wrote:fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
This is harmless, and true - HDMA doesn't call it's volume controls the "master". So Wine won't be able to control volume on that device that's all.
Ryan4200782 wrote:when i try to set audio tab configuration options i get this:
err:winecfg:set_config_key Unable to set configuration key L"DefaultSampleRate" in section L"DirectSound", res=6
Looks like registry might be corrupted. Remove / rename ~/.wine directory and try again.


Also make sure you do not have "esd" or "arts" running. And that nothing is currently using sound (at least while you testing).
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

Ok, i have used apt-get remove --purge wine and removed all wine packages in synaptic. Also i have used rm .wine -R Then re-installed 1.3 from this site using the link. Here is what i get in the terminal while running winecfg, going to audio tab and changing settings:

Code: Select all

ryan@Ryans-System:~$ winecfg
wine: created the configuration directory '/home/ryan/.wine'
fixme:system:SetProcessDPIAware stub!
fixme:iphlpapi:NotifyAddrChange (Handle 0x8ede914, overlapped 0x8ede918): stub
wine: configuration in '/home/ryan/.wine' has been updated.
fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
err:winecfg:set_config_key Unable to set configuration key L"Audio" in section L"Drivers", res=6
err:winecfg:set_config_key Unable to set configuration key L"DefaultSampleRate" in section L"DirectSound", res=6
err:winecfg:set_config_key Unable to set configuration key L"Audio" in section L"Drivers", res=6
Any ideas?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Ryan4200782 wrote:Ok, i have used apt-get remove --purge wine
Why ppl never listen? Removing Wine won't give you anything!

What exact Wine version? Show output of "wine --version".
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

This is the output of wine --version:

Code: Select all

ryan@Ryans-System:~$ wine --version
wine-1.3.13
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

I tried the stable version(1.2) previously, no effect. Suggestions?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Ryan4200782 wrote:Ok, i have used apt-get remove --purge wine and removed all wine packages in synaptic.
This is not how you actually clean up Wine. The old, corrupt registry may still actually be there.

You want a clean slate, just remove/rename the $HOME/.wine directory.
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

Is rm .wine -R incorrect? Seemed to remove the wine directory. Not worried about the wine directory, no applications installed right now.
Martin Gregorie

No sound in wine with Ubuntu 10.10, native sound works fine

Post by Martin Gregorie »

On Fri, 2011-02-11 at 10:07 -0600, Ryan4200782 wrote:
Is rm .wine -R incorrect? Seemed to remove the wine directory. Not worried about the wine directory, no applications installed right now.
rm -rf .wine

is better: this says 'silently and recursively remove all files and
directories including the target directory' - in this case .wine


Martin
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Ryan4200782 wrote:Is rm .wine -R incorrect? Seemed to remove the wine directory.
Only if you're currently in your home directory. It will try to remove the .wine directory from whatever directory you are in right now, but the directory probably doesn't exist anywhere but in /home/username.

Doing:
rm -rf ~/.wine
or:
rm -rf $HOME/.wine

ensures that you remove the directory at the right location. (the f flag is for "force", which basically makes the rm command not ask any questions and "just do it".)
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

No sound in wine with Ubuntu 10.10, native sound works fine

Post by tparker »

On 02/10/2011 06:10 PM, DaVince wrote:
This is something you should ask on Ubuntu forums, but sudo apt-get uninstall pulseaudio is sufficient, I *believe*. If it's not, uninstalling PulseAudio and then compiling the Linux kernel from (a non-Ubuntu) source would. (I heard some PA stuff is patched into the Ubuntu kernel, not sure though).
Are you using speakers, or is this a headset? If it is a head set is it
USB or analog? I cannot get sound in wine to work with USB headphones,
but my analog speakers and headphones work fine. I'm not sure if that is
any help. :(

I am in Fedora and I don't know what differences there are in sound set
ups between that and Ubuntu. I do have pulse audio installed. In the
audio tab of winecfg I have both the pulseaudio and the OSS driver boxes
checked, hardware acceleration is 'Full,' default sample rate '44100',
and default bits per sample '16'. No clue if any of that is useful to you.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

I use built-in (also Intel HD) audio and both laptop speakers and plugging in something in the analog jack works just fine. But I don't see how it has a relation to this thread specifically? You should probably have made a new thread since using USB audio can make the problem of a different kind. Heck, if PA and/or ALSA can't detect it, it's effectively a distro problem and you should ask on your distro forum.

Anyway, to answer your question, maybe it's not detecting your headset, not every audio device is supported after all. Look around on the web if ALSA is supposed to support your USB headset (because it's ALSA that handles sound hardware, not PulseAudio, which is just supposed to be a mixer).

If your USB headset is supposed to just work, PulseAudio might not be picking it up, I've encountered such oddities before. Try removing PA and using a purely ALSA-based volume control application to check it out in that case.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Ryan4200782 wrote:

Code: Select all

err:winecfg:set_config_key Unable to set configuration key L"Audio" in section L"Drivers", res=6
err:winecfg:set_config_key Unable to set configuration key L"DefaultSampleRate" in section L"DirectSound", res=6
err:winecfg:set_config_key Unable to set configuration key L"Audio" in section L"Drivers", res=6
This looks like a problem in writing to the registry. What happens if you try to set those keys yourself using regedit?
Ryan4200782
Level 1
Level 1
Posts: 9
Joined: Wed Feb 09, 2011 10:56 am

Post by Ryan4200782 »

I am using the internal speakers in my Viewsonic monitor, hence the hdmi audio through video card. I have deleted the wine directory as advised:

Code: Select all

ryan@Ryans-System:~$ rm -rf $HOME/.wine 
ryan@Ryans-System:~$ ls wine
ls: cannot access wine: No such file or directory
ryan@Ryans-System:~$ 
Then re-booted and entered winecfg:

Code: Select all

ryan@Ryans-System:~$ winecfg
wine: created the configuration directory '/home/ryan/.wine'
fixme:system:SetProcessDPIAware stub!
fixme:iphlpapi:NotifyAddrChange (Handle 0x8ede914, overlapped 0x8ede918): stub
wine: configuration in '/home/ryan/.wine' has been updated.
fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
So, the registry errors went away, which is good. However, I still have:perfect sound native, no sound in wine. Do i need to buy a cheap sound card and speakers? At first, hdmi audio did not work for Ubuntu, but i followed a howto at
http://ubuntuforums.org/showthread.php?t=1668737&page=2
which fixed the problem. The sound test for wine as always failed no matter what i have tried, consistently through a hd re-format/ re-install of ubuntu
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: No sound in wine with Ubuntu 10.10, native sound works f

Post by vitamin »

Martin Gregorie wrote:rm -rf .wine

is better
No, it's not. You are not specifying the full path, so it will try to remove ".wine" directory in whatever your CWD is now.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Ryan4200782 wrote:At first, hdmi audio did not work for Ubuntu, but i followed a howto at http://ubuntuforums.org/showthread.php?t=1668737&page=2
That howto for pulseaudio. See sticky post about no sound. Pulseaudio in many cases conflicts with Wine.
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

No sound in wine with Ubuntu 10.10, native sound works fine

Post by tparker »

On 02/11/2011 05:24 PM, DaVince wrote:
You should probably have made a new thread since using USB audio can make the problem of a different kind.
I'm sorry, I wasn't clear in what I typed. I was wondering if the
problem in this thread was the use of USB headphones, that the sound
through wine might be working just not with those if they were what the
original poster had.
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

No sound in wine with Ubuntu 10.10, native sound works fine

Post by tparker »

On 02/11/2011 06:24 PM, Ryan4200782 wrote:
hence the hdmi audio through video card.
Sorry, I misread that part, my brain skipped right over the word 'audio'
so I was still wondering what you used.
User avatar
André H.
Moderator
Moderator
Posts: 207
Joined: Sun Dec 07, 2008 8:33 am

Post by André H. »

Ryan4200782 wrote: Then re-booted and entered winecfg:
Yes you are new to Linux :D, you don't have to reboot when you delete, install something (beside kernelupdates).


Further if you have some normal analog speakers around or some headset(but no USB stuff), try it through them. I wouldnt trust in HDMI Audio.
joem
Level 1
Level 1
Posts: 5
Joined: Wed Aug 17, 2011 2:06 am

Post by joem »

I am using the version 0.9.43 of wine. I have problems installing it with Kubuntu 6.06. any ideas? it is simply not running..
Locked