SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can get audio from the 3.5 mm audio jack ... I I guess it is enabled. Also aplay -L shows hdmi out:
Code:
root@darkstar:/var/log# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=Intel
HDA Intel, ALC283 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC283 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC283 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC283 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC283 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC283 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC283 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
HDA Intel, ID 2882 Digital
HDMI Audio Output
root@darkstar:/var/log#
It looks like that card 0 device 3 might be the hdmi output but I can't seem to play to it with
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
I noticed that I was getting really bad audio quality even out of the headphones so I thought it could be imputable to the kernel modules. I deiced to try using kernel from current ant things started working.
Code:
root@darkstar:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@darkstar:~# aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
root@darkstar:~#
Encouraged by having got everything to work on the one I got to test at work I got one for home (the same model) ... well so the appear externally .... but Intel changed the BIOS my unit comes with EFI Visual BIOS.
OK it can boot and be installed alright but I've still an issue with sound on the HDMI port: xfce seems not to be able to detect the HDMI audio channel.
I can get mplayer to put the audio on the HDMI port ignoring what xfce mixer has to offer as audio out (so I can play videos ok) but, for example, I can't get firefox to use HDMI audi while watching youtube.
The one at work has firefox reproducing sounds and alsamixed also shows the HDMI audio out.
Apart from the bios the only other difference on the unit at work is that it's running slaxbmc 14.1 while the home one is running slackware 14.1 (both with kernel from current).
Encouraged by having got everything to work on the one I got to test at work I got one for home (the same model) ... well so the appear externally .... but Intel changed the BIOS my unit comes with EFI Visual BIOS.
OK it can boot and be installed alright but I've still an issue with sound on the HDMI port: xfce seems not to be able to detect the HDMI audio channel.
I can get mplayer to put the audio on the HDMI port ignoring what xfce mixer has to offer as audio out (so I can play videos ok) but, for example, I can't get firefox to use HDMI audi while watching youtube.
The one at work has firefox reproducing sounds and alsamixed also shows the HDMI audio out.
Apart from the bios the only other difference on the unit at work is that it's running slaxbmc 14.1 while the home one is running slackware 14.1 (both with kernel from current).
Anyone know hot to solve this issue ?
An /etc/asound.conf might do the trick.
Code:
pcm.!default {
type plug
slave {
pcm "hw:0,3" # HD audio
}
}
pcm.!default {
type plug
slave {
pcm "hw:0,3" # HD audio
}
}
Ok I put that in /etc/asound.conf and rebooted but nothing changed. I'm oriented in assuming that the damm efi visual bios presents the audio hardware in a slightly different way that ordinary bios and alsa just can't figure out how to handle it:
Code:
bash-4.2# alsactl init 0
Found hardware: "HDA-Intel" "Intel Valleyview2 HDMI" "HDA:10ec0283,80862055,00100003 HDA:80862882,80860101,00100000" "0x8086" "0x2055"
Hardware is initialized using a generic method
bash-4.2# echo $?
99
bash-4.2#
But but mplayer and asplay seem to be able to use it fine if told specifically to use it.
I prefer putting that stuff in /lib/modprobe.d in any case I had already tried something similar (copied from the working unit without efi visual bios):
bash-4.2# alsamixer
cannot open mixer: No such file or directory
bash-4.2# alsactl init 1
Found hardware: "HDA-Intel" "Intel Valleyview2 HDMI" "HDA:10ec0283,80862055,00100003 HDA:80862882,80860101,00100000" "0x8086" "0x2055"
Hardware is initialized using a generic method
bash-4.2# echo $?
99
bash-4.2# alsactl init 0
alsactl: init:1777: Cannot find soundcard '0'...
bash-4.2#
I can't get the visual bios to display properly on the tv ... but when I had the thing connected to a PC monitor I remember that intel wanted feedback via email for the visual bios: anyone have the email off hand ? I want to tell intel that the new visual bios sucks and give them a link to this thread !!!
I commented back out the modprebe.d/alsa.conf to get alsa to at least see correctly the audio jack.
[CODE]
bash-4.2# cat /proc/asound/card*
cat: /proc/asound/card0: Is a directory
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xd0810000 irq 104
bash-4.2#
[CODE]
Ok I put that in /etc/asound.conf and rebooted but nothing changed. I'm oriented in assuming that the damm efi visual bios presents the audio hardware in a slightly different way that ordinary bios and alsa just can't figure out how to handle it:
You did change it to reflect your devices right? (1,3)
He may also need an argument passed to the module for his video card. For Radeon hardware you have to pass audio=1, or you get silence, for me the card shows up in AlSA as hda-intel and everything but you get no sound out. Might be a similar thing happening here.
I am also going to post asound.conf, once he gets some basic output working. I expect there are a few more details to HDMI audio he and others might like to resolve. This provides a volume control, format conversion to 48k so all samples play correctly, buffering to remove the skips and pops I was getting and a virtual (null) capture, device. I found some software like qemu did not like not having a capture device absent. DMIX should allow multiple streams to play as well.
Code:
pcm.hdmi_hw {
type hw
card 0 # <--- card number
device 3 # <--- device number
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hdmi_hw"
buffer_size 32768
rate 48000
period_time 0
period_size 1024
buffer_time 0
}}
pcm.rate_convert {
type plug
slave { pcm "dmixer"
}
}
pcm.hdmi_complete {
type softvol
slave { pcm "rate_convert" }
control.name "Master"
control.card 0
}
pcm.null_capture {
type null
}
pcm.!default {
type asym
playback.pcm {
type plug
slave { pcm "hdmi_complete" }
}
capture.pcm {
type plug
slave { pcm "null_capture" }
}
}
You did change it to reflect your devices right? (1,3)
This plays sound for me on the HDMI port on the unit I've at home, should I not be using 0,3 ?
Code:
bash-4.2# aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
bash-4.2#
I'll have a crack at chemfire's suggestions as soon as the kids free the TV
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.