You are not logged in.

#1 2012-04-12 07:29:32

Jurry
Member
Registered: 2012-04-12
Posts: 12

[SOLVED]HDMI audio and gnome volume applet issues

Hi all,

After setting up Arch without too many problems came the real pain in the ass: HDMI audio over a Asus NVIDIA GeForce EN210....
Eventually I got everything to work with the help of the ASLA en Pulse wiki pages, but I found the last piece of the puzzle here:
http://wiki.xbmc.org/index.php?title=HO … ,_or_GT240
Maybe this is useful for others too.

The only problem I have now is that the ALSA deamon fails to load. I found this in the boot log file (/var/log/boot):

Thu Apr 12 13:54:19 2012: :: Restoring ALSA Levels    [BUSY] Found hardware: "HDA-Intel" "Nvidia GPU 0b HDMI/DP" "HDA:10de000b,10de0101,00100200" "0x1043" "0x8343"
Thu Apr 12 13:54:20 2012: Hardware is initialized using a generic method

Does this mean I don't need the alsa deamon anymore? Sound still works normally after boot but a strange thing is that I can turn up and down the volume with the gnome shell volume applet but the volume of media applications like vlc do not react. Same problem with flash video's like youtube. I do hear the "blip" sound from the applet.

Does anyone have ideas how to fix this?

Last edited by Jurry (2012-04-26 23:46:31)

Offline

#2 2012-04-13 08:06:09

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Nobody?

Offline

#3 2012-04-13 10:17:28

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED]HDMI audio and gnome volume applet issues

I got this as well, so I ran "alsactl store" and now it's fine.

Offline

#4 2012-04-14 00:01:36

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Thanks, now the deamon loads without any problems.

The volume of media applications still doesn't react to the volume switch in the Gnome shell panel.

Any ideas?

Offline

#5 2012-04-14 00:47:33

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED]HDMI audio and gnome volume applet issues

I suppose the panel applet is trying to adjust the wrong volume control.

You can see the controls using e.g.:

alsamixer -c0     (if using pulseaudio, use -c0 to bypass the pulseaudio mixer crap)
amixer

Offline

#6 2012-04-14 12:20:43

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Hi brebs,

I opened alsamixer -c0 and muted all the S/PDIF channels except S/PDIF and S/PDIF1. I played around with it and this are the ones I need. Sound works. So does a speaker test in the terminal (speaker-test -c 2).

But the problem is still there. Changing the volume does nothing with the audio from any application. I tested with a video in VLC, youtube video's and music in Banshee.

When no audio/video application in running I do hear the "blip" sounds when changing volume with the applet. I also discovered that a speaker test in gnome sounds settings is not giving any sounds.

Any other things I should look at?

Offline

#7 2012-04-14 15:18:27

nashod
Member
Registered: 2012-03-23
Posts: 40

Re: [SOLVED]HDMI audio and gnome volume applet issues

yeah have the samre problem, adjusting sound in Amarok doesn't change anything.... happened after the last udev update, here is my bootup log :

Sat Apr 14 17:28:55 2012: :: Adjusting system time and setting kernel timezone    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Starting UDev Daemon    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Triggering UDev uevents    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Loading User-specified Modules    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Waiting for UDev uevents to be processed    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Bringing up loopback interface    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Unlocking encrypted volumes:    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Checking Filesystems    [BUSY] /dev/sda1: clean, 29/40160 files, 24631/160616 blocks
Sat Apr 14 17:28:55 2012: /dev/sda4: clean, 76872/18530304 files, 16371381/74101820 blocks
Sat Apr 14 17:28:55 2012:    [DONE]
Sat Apr 14 17:28:55 2012: :: Remounting Root    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Mounting Local Filesystems    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Activating Swap    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Configuring Time Zone    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Initializing Random Seed    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Removing Leftover Files    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Setting Hostname: Nashed    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Setting Consoles to UTF-8 mode    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Loading Keyboard Map: us    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Saving dmesg Log    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: INIT: Entering runlevel: 5
Sat Apr 14 17:28:55 2012: :: Starting Syslog-NG    [BUSY]    [DONE]
Sat Apr 14 17:28:55 2012: :: Starting Network    [BUSY]    [DONE]
Sat Apr 14 17:29:26 2012: :: Starting net-profiles    [BKGD]
Sat Apr 14 17:29:26 2012: :: Mounting Network Filesystems    [BUSY]    [DONE]
Sat Apr 14 17:29:26 2012: :: Starting crond daemon    [BUSY]    [DONE]
Sat Apr 14 17:29:26 2012: :: Restoring ALSA Levels    [BUSY] Found hardware: "HDA-Intel" "Realtek ALC888" "HDA:10ec0888,80860024,00100202" "0x8086" "0x0024"
Sat Apr 14 17:29:26 2012: Hardware is initialized using a generic method
Sat Apr 14 17:29:26 2012:    [FAIL]
Sat Apr 14 17:29:26 2012: :: Starting D-BUS system messagebus    [BUSY]    [DONE]

I hope it helps identify the problem

Offline

#8 2012-04-15 10:35:21

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Thanks, but the deamon starts correctly. The only problem now is with the volume applet.

Offline

#9 2012-04-15 11:58:12

nashod
Member
Registered: 2012-03-23
Posts: 40

Re: [SOLVED]HDMI audio and gnome volume applet issues

Jurry wrote:

Thanks, but the deamon starts correctly. The only problem now is with the volume applet.

yep my exact same problem,sound works,daemon starts correctly but changing sound in amarok has no effect...

Offline

#10 2012-04-16 00:45:12

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Managed to get it to work sort of...
I deleted ~/.asoundrc and changed the content of /etc/asound.conf:

pcm.!default hdmi:NVidia
pcm:iec958 hdmi:NVidia

Now the volume changes work with the applet. Problem now is that the sound in Banshee doesn't work and sound in VLC is sometimes heavily distorted.
Speaker tests do not work. I get this error:

speaker-test -c 2

speaker-test 1.0.25

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

Offline

#11 2012-04-16 01:19:51

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED]HDMI audio and gnome volume applet issues

First of all, there is no such thing as an ALSA deamon.

Playback open error: -16,Device or resource busy

So look:

fuser -fv /dev/snd/* /dev/dsp*

If any program had ALSA open while you changed /etc/asound.conf, then close them. Probably, restarting xorg will do the trick.

Offline

#12 2012-04-16 05:12:28

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

I'm pretty new to Arch. The ALSA Wiki told me to start ALSA as a deamon. That's why I called it the ALSA deamon. I changed the name of the topic.
Learning every step of the way. smile

Anyway, fuser -fv /dev/snd/* /dev/dsp* gives me this output: Specified filename /dev/dsp* does not exist.
But I did a reboot and the speaker test runs, but no sound. The same with Banshee and flash video's. Also still distorted sound in VLC but the sounds in xbmc is clear. The volume, however can now be adjusted with the volume applet.

I have an Asus Geforce EN210 card.

I'm really stuck here... sad

Offline

#13 2012-04-16 05:20:33

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED]HDMI audio and gnome volume applet issues

That's an initscript, which loads the ALSA kernel modules and sets the volume.

Don't worry about /dev/dsp* - it's for OSS ("opensound"), and it's good that you don't have it. Opensound has been deprecated for years.

speaker-test, if you don't specify the PCM, will use the PCM named "default" - as will flash. So your redefinition of default (the line starting with pcm.!default) must be wrong.

Offline

#14 2012-04-17 00:31:57

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Speaker test works again. I changed the asound.conf to it's original. I will give some more info.

Output from lspci -v:

04:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device 8343
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at febfc000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Kernel driver in use: snd_hda_intel

My /etc/pulse/default.pa has:
load-module module-alsa-sink device=plughw:0,7

My /etc/asound.conf has:
pcm.!default {
      type plug
      slave.pcm {
              type hw
              card 0
              device 7
      }
}

My .asoundrc is empty.

Maybe something wrong with those settings?

Offline

#15 2012-04-19 23:51:02

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

Anyone?

Offline

#16 2012-04-26 23:46:03

Jurry
Member
Registered: 2012-04-12
Posts: 12

Re: [SOLVED]HDMI audio and gnome volume applet issues

I've got this working now. Solution was actually quite simple and on the alsa wiki.... big_smile

Just needed to change the asond.conf or asoundrc to this:

defaults.pcm.card 0
defaults.pcm.device 7
defaults.ctl.card 0

Offline

Board footer

Powered by FluxBB