antix live - how to set sound output to hdmi

Post Reply
Message
Author
User avatar
Laurentius
Posts: 96
Joined: Sat Jan 20, 2018 9:44 pm

antix live - how to set sound output to hdmi

#1 Post by Laurentius »

Hello.
I have connected my tv to hdmi on netbook.
I could get display output fine but no luck with the sound. I can t find how to set the sound output to hdmi.
after trying on control centre I have installed pulseaudio and pavucontrol. If I launch pavucontrol, in the configration tab says "no cards available for configuration".
May be some step is missing.
Do I need pulseaudio for this or is it possible with default antix and alsa alone?
The card is HDA intel PCH.

System info-

Code: Select all

stem:
  Host: antix1 Kernel: 4.9.160-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc 
  v: 6.3.0 Desktop: IceWM 1.4.2 Distro: antiX-17.4_x64-full Helen Keller 6 March 2019 
  base: Debian GNU/Linux 9 (stretch) 
Machine:
  Type: Laptop System: Intel product: Intel powered classmate PC v: Clamshell 
  serial: <root required> 
  Mobo: Intel model: Intel powered classmate PC v: Clamshell serial: <root required> 
  UEFI [Legacy]: Phoenix v: MPBYT10A.88F.0039.2016.0622.1403 date: 06/22/2016 
Battery:
  ID-1: BAT1 charge: 14.5 Wh condition: 32.2/36.6 Wh (88%) model: ECS CMPC 
  status: Discharging 
CPU:
  Topology: Dual Core model: Intel Celeron N2808 bits: 64 type: MCP arch: Silvermont 
  rev: 8 L2 cache: 1024 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 6330 
  Speed: 2249 MHz min/max: 500/2249 MHz Core speeds (MHz): 1: 2249 2: 2249 
Graphics:
  Device-1: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display 
  vendor: Elite Systems driver: i915 v: kernel bus ID: 00:02.0 
  Display: server: X.Org 1.19.2 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1366x768~60Hz, 1360x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel Bay Trail v: 3.3 Mesa 13.0.6 direct render: Yes 
Audio:
  Device-1: Intel Atom Processor Z36xxx/Z37xxx Series High Definition Audio 
  vendor: Elite Systems driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Sound Server: ALSA v: k4.9.160-antix.1-amd64-smp 
Network:
  Device-1: Realtek RTL8723BE PCIe Wireless Network Adapter driver: rtl8723be 
  v: kernel port: 2000 bus ID: 01:00.0 
  IF: wlan0 state: up mac: 74:c6:3b:c0:31:59 
  Device-2: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet 
  vendor: Elite Systems RTL810xE driver: r8169 v: 2.3LK-NAPI port: 1000 
  bus ID: 02:00.0 
  IF: eth0 state: down mac: b8:ae:ed:15:fe:a2 
Drives:
  Local Storage: total: 494.60 GiB used: 26.76 GiB (5.4%) 
  ID-1: /dev/sda vendor: Western Digital model: WD5000LPCX-22VHAT0 size: 465.76 GiB 
  ID-2: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0 size: 28.84 GiB 
Partition:
  ID-1: / size: 2.97 GiB used: 327.5 MiB (10.8%) fs: overlay source: ERR-102 
  ID-2: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda7 
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 144 Uptime: 56m Memory: 3.74 GiB used: 1020.7 MiB (26.6%) Init: SysVinit 
  runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.29 
And this is the output of aplay -l

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
So, I think I should use device 3 as output. But I don't know how to do that.
Last edited by Laurentius on Sun May 19, 2019 10:06 am, edited 1 time in total.

User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

Re: antix liive - how to set sound output to hdmi

#2 Post by namida12 »

Looks like you have one device:

Audio:
Device-1: Intel Atom Processor Z36xxx/Z37xxx Series High Definition Audio
vendor: Elite Systems driver: snd_hda_intel v: kernel bus ID: 00:1b.0
Sound Server: ALSA v: k4.9.160-antix.1-amd64-smp

Control Center and choose hardware See attached image
Choose Sound card, if you have hdmi capabilities it will show up in "Sound Card Chooser" and you can test the sound -
You might need some powered speakers with volume control or maybe you already have a descent wired headset

See my antix sound problems in thread: viewtopic.php?f=107&t=45796&start=10 Message # 13 from Jim how to set sound in the mixer...
You do not have the required permissions to view the files attached to this post.

User avatar
Laurentius
Posts: 96
Joined: Sat Jan 20, 2018 9:44 pm

Re: antix live - how to set sound output to hdmi

#3 Post by Laurentius »

namida12 wrote: Sun May 12, 2019 1:12 am Looks like you have one device:

Audio:
Device-1: Intel Atom Processor Z36xxx/Z37xxx Series High Definition Audio
vendor: Elite Systems driver: snd_hda_intel v: kernel bus ID: 00:1b.0
Sound Server: ALSA v: k4.9.160-antix.1-amd64-smp
Oh, yes. There is only one sound card on that netbook (card 0: PCH [HDA Intel PCH]), I was referring to the aplay -l output. where Hdmi is related to device 3. I don't know what that means.
namida12 wrote: Sun May 12, 2019 1:12 am Control Center and choose hardware See attached image
Choose Sound card, if you have hdmi capabilities it will show up in "Sound Card Chooser" and you can test the sound -
You might need some powered speakers with volume control or maybe you already have a descent wired headset

See my antix sound problems in thread: viewtopic.php?f=107&t=45796&start=10 Message # 13 from Jim how to set sound in the mixer...
"Only one sound card was found PCH: HDA-intel - HDA intel PCH Nothing to do" That's what the "Set default sound card" window at the Control Center says.
Nothing about HDMI there.
While in Antix, I can hear sound through analog stereo (speakers and headphones). But I haven't been able to get sound through HDMI with Antix.

The device has HDMI capabilities. It works with MX (selecting hdmi on the pavucontrol window). But I was trying to use it with antix (and, if possible, without pulseaudio).

Thank you namida12 for your reply!

ner0
Posts: 3
Joined: Tue Jun 30, 2020 6:30 pm

Re: antix live - how to set sound output to hdmi

#4 Post by ner0 »

I have the same issue, any help would be appreciated.

antiX-Dave
Developer
Posts: 372
Joined: Mon Apr 16, 2012 4:51 pm

Re: antix live - how to set sound output to hdmi

#5 Post by antiX-Dave »

There is some finagling needed to get the hdmi output correct. Once you have it setup you can make a udev rule to automatically switch the sound outputs on inserting an hdmi cable. Myself I have used arandr to setup the video output, saved the video output (which is a script). Then added the commands to switch asoundrc files around and restart alsa. That way I can run the script to set the video and it also sets the audio (and one for back to normal).

The arch wiki has a nice quick guide for figuring out the alsa hdmi output.
https://wiki.archlinux.org/index.php/Ad ... oting#HDMI

ner0
Posts: 3
Joined: Tue Jun 30, 2020 6:30 pm

Re: antix live - how to set sound output to hdmi

#6 Post by ner0 »

Thanks for the reply and the link.
Unfortunately in my case it seems I may need to patch the kernel (something which I have no clue how to do):

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC269VB Digital [ALC269VB Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
PCM through HDMI does not work (Intel Gfx)
To make it work in Linux 3.1 you need to apply the following patches:
drm: support routines for HDMI/DP ELD
drm/i915: pass ELD to HDMI/DP audio driver

Post Reply

Return to “antiX”