Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
3
votes
1
answers
5663
views
HDMI signal showing as disconnected on Manjaro
I have been doing some research and it looks like my xrandr has some issues. The problem is I connect a HDMI monitor and it shows that is disconnected; somehow the port is not working properly. I'm using Manjaro. xrandr output: Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767 eDP1...
I have been doing some research and it looks like my xrandr has some issues. The problem is I connect a HDMI monitor and it shows that is disconnected; somehow the port is not working properly. I'm using Manjaro.
xrandr output:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 380mm x 210mm
1920x1080 60.03*+ 48.01
1400x1050 59.98
1600x900 60.00
1280x1024 60.02
1280x960 60.00
1368x768 60.00
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
As you see, it show as disconnected but the HDMI is connected.
Is there any way to solve this?
Rey Pena
(31 rep)
Aug 16, 2016, 03:15 PM
• Last activity: Aug 2, 2025, 01:02 PM
4
votes
1
answers
3587
views
ALSA doesn't play on HDMI
I have Ubuntu 14.04.3 with kernel 3.16.0-48 installed on mini-PC Gigabyte GB-BXBT-2807. The chipset also integrates audio controller Realtek ALC283. I've been struggling to have my audio play over HDMI, with no luck. First of all, I removed PulseAudio and reinstalled ALSA as was recommended in multi...
I have Ubuntu 14.04.3 with kernel 3.16.0-48 installed on mini-PC Gigabyte GB-BXBT-2807. The chipset also integrates audio controller Realtek ALC283. I've been struggling to have my audio play over HDMI, with no luck.
First of all, I removed PulseAudio and reinstalled ALSA as was recommended in multiple articles on the web:
% dpkg -l | grep alsa
ii alsa-base 1.0.25+dfsg-0ubuntu4 ...
ii alsa-utils 1.0.27.2-1ubuntu2 ...
After reboot all modules seem to be present:
% lsmod | grep snd
snd_hda_codec_hdmi 47548 1
snd_hda_codec_realtek 77561 1
snd_hda_codec_generic 69011 1 snd_hda_codec_realtek
snd_hda_intel 30469 0
snd_soc_rt5640 93042 0
snd_soc_rl6231 13037 1 snd_soc_rt5640
snd_hda_controller 30228 1 snd_hda_intel
snd_hda_codec 139719 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 17698 1 snd_hda_codec
snd_soc_core 200204 1 snd_soc_rt5640
snd_compress 19200 1 snd_soc_core
snd_pcm_dmaengine 15172 1 snd_soc_core
snd_pcm 104112 7 snd_soc_rt5640,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller,snd_pcm_dmaengine
snd_seq_midi 13564 0
snd_seq_midi_event 14899 1 snd_seq_midi
snd_rawmidi 30876 1 snd_seq_midi
snd_seq 63074 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29562 2 snd_pcm,snd_seq
snd 79468 13 snd_hda_codec_realtek,snd_soc_core,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_compress
soundcore 15047 2 snd,snd_hda_codec
snd_soc_sst_acpi 13007 0
%
% aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
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
%
I also added my account in
audio
group. Here is a list of PCMs:
% aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC283 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC283 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Hardware device with all software conversions
%
What happens is that I'm able to play sounds via headset connected to audio jack, however I'm unable to do this via HDMI link hooked to a TV. I tried to run aplay -D
for different devices marked as DEV=3 as listed above, but none of them worked. Also, it doesn't work in FireFox.
Is there a special configuration to set audio play on HDMI? What else should I try?
Mark
(1943 rep)
Sep 7, 2016, 12:48 AM
• Last activity: Jul 29, 2025, 06:04 AM
0
votes
0
answers
34
views
No soundcards found on Asus NUC 14 Essential, HDMI audio codec/i915 probe failure on Linux Mint
A fresh Mint is installed, and volume control shows "no cards available for configuration"; it's an Asus NUC 14 Essential connected via HDMI to a SONY television. ```shell $ aplay -l aplay: device_list:277: no soundcards found... ``` ```shell $ dmesg | grep -i audio [ 5.761793] sof-audio-pci-intel-t...
A fresh Mint is installed, and volume control shows "no cards available for configuration"; it's an Asus NUC 14 Essential connected via HDMI to a SONY television.
$ aplay -l
aplay: device_list:277: no soundcards found...
$ dmesg | grep -i audio
[ 5.761793] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 5.762023] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 15.928887] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 15.929527] pci 0000:00:1f.3: deferred probe pending: sof-audio-pci-intel-tgl: init of i915 and HDMI codec failed
nightcod3r
(972 rep)
Jul 22, 2025, 12:54 PM
• Last activity: Jul 22, 2025, 12:58 PM
0
votes
1
answers
1912
views
Combine sound for Display port and HDMI
I have an nvidia gtx 1050 running on debian 9. I have 2 external monitors, one through Display port and one through HDMI. Both monitors output the sound just fine, but only one at a time. Is there any way to combine sound for both digital outputs? I tried using Pulse audio preferences to add a virtu...
I have an nvidia gtx 1050 running on debian 9. I have 2 external monitors, one through Display port and one through HDMI.
Both monitors output the sound just fine, but only one at a time. Is there any way to combine sound for both digital outputs?
I tried using Pulse audio preferences to add a virtual device, but that device is a bridger between the "Digital Ouput" (motherboard sound) and one of the HDMI outputs (whichever is currently enabled/active)
Seba Vasile
(1 rep)
Feb 4, 2018, 09:40 PM
• Last activity: Jul 17, 2025, 07:08 PM
1
votes
1
answers
2043
views
NVIDIA hdmi output not working
I'm running Garuda linux on my desktop and my computer has 2 HDMI ports and one of those comes from the NVIDIA 2070 super. The regular HDMI works all the time with no issues but the nvidia one just seems to stop working with no errors or anything. If the cable is plugged in on boot it will work if I...
I'm running Garuda linux on my desktop and my computer has 2 HDMI ports and one of those comes from the NVIDIA 2070 super. The regular HDMI works all the time with no issues but the nvidia one just seems to stop working with no errors or anything.
If the cable is plugged in on boot it will work if I'm in BIOS but after that the screen is frozen on the
welcome to grub
screen.
I'm guessing this is a problem with my nvidia drivers. How do I trouble shoot?
Dillon Cortez
(11 rep)
Dec 29, 2021, 04:52 PM
• Last activity: Jul 17, 2025, 02:03 AM
1
votes
2
answers
2969
views
HDMI not working in debian 11, should I update my graphics driver?
- Debian 11 laptop - Graphics Driver: Mesa Intel(R) UHD Graphics 630 (CFL GT2) When I plug in a HDMI connection from my laptop to my TV it doesn't connect. When I run `xrandr` the output isn't shown either. Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 eDP-1 connected prima...
- Debian 11 laptop
- Graphics Driver: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
When I plug in a HDMI connection from my laptop to my TV it doesn't connect. When I run
xrandr
the output isn't shown either.
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.03 + 60.01* 59.97 59.96 59.93 40.02
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
A while ago it used to work, when I was using PopOS but then abruptly stopped. I thought moving to another distro would help but nope, HDMI still does not work with debian 11. My best lead a post telling me to update my graphics driver but I don't know how to do that safely. Is this what I should do or is there an easier solution?
I see that alot of people have asked the same question and I'm sorry to pile on to that but I don't really know what to do honestly.
(No it is not the HDMI cable nor is it any combination of plugging the cable in and restarting the computer)
Erik Zubarev
(83 rep)
Jun 22, 2022, 06:11 PM
• Last activity: Jul 6, 2025, 11:07 AM
2
votes
2
answers
2688
views
Arch Linux won't play sound at all
My Arch Linux installation refuses to play sound regardless of what I do. I have run `aplay -l` and it is recognizing my sound cards. Here is the output: ``` **** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdev...
My Arch Linux installation refuses to play sound regardless of what I do. I have run
aplay -l
and it is recognizing my sound cards.
Here is the output:
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC245 Analog [ALC245 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Here is the output of lspci -k
:
Usage: lspci []
Basic display modes:
-mm Produce machine-readable output (single -m for an obsolete format)
-t Show bus tree
Display options:
-v Be verbose (-vv or -vvv for higher verbosity)
-k Show kernel drivers handling each device
-x Show hex-dump of the standard part of the config space
-xxx Show hex-dump of the whole config space (dangerous; root only)
-xxxx Show hex-dump of the 4096-byte extended config space (root only)
-b Bus-centric view (addresses and IRQ's as seen by the bus)
-D Always show domain numbers
-P Display bridge path in addition to bus and device number
-PP Display bus path in addition to bus and device number
Resolving of device ID's to names:
-n Show numeric ID's
-nn Show both textual and numeric ID's (names & numbers)
-q Query the PCI ID database for unknown ID's via DNS
-qq As above, but re-query locally cached entries
-Q Query the PCI ID database for all ID's via DNS
Selection of devices:
-s [[[[]:]]:][][.[]] Show only devices in selected slots
-d []:[][:] Show only devices with specified ID's
Other options:
-i Use specified ID database instead of /usr/share/hwdata/pci.ids
-p Look up kernel modules in a given file instead of default modules.pcimap
-M Enable `bus mapping' mode (dangerous; root only)
PCI access options:
-A Use the specified PCI access method (see `-A help' for a list)
-O = Set PCI access parameter (see `-O help' for a list)
-G Enable PCI access debugging
-H Use direct hardware access ( = 1 or 2)
-F Read PCI configuration dump from a given file
Here is the output of sudo alsactl init
Found hardware: "HDA-Intel" "ATI R6xx HDMI" "HDA:1002aa01,00aa0100,00100700" "0x103c" "0x8a31"
Hardware is initialized using a generic method
Found hardware: "acp" "" "" "" ""
Hardware is initialized using a generic method
Here is the output of lspci -v | grep -A7 -i audio
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
Subsystem: Hewlett-Packard Company Device 8a31
Flags: bus master, fast devsel, latency 0, IRQ 87, IOMMU group 14
Memory at d05c8000 (32-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
--
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
Subsystem: Hewlett-Packard Company Device 8a31
Flags: bus master, fast devsel, latency 0, IRQ 85, IOMMU group 18
Memory at d0580000 (32-bit, non-prefetchable) [size=256K]
Capabilities:
Kernel driver in use: snd_rn_pci_acp3x
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_sof_amd_renoir
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Subsystem: Hewlett-Packard Company Device 8a31
Flags: bus master, fast devsel, latency 0, IRQ 88, IOMMU group 19
Memory at d05c0000 (32-bit, non-prefetchable) [size=32K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
Oddly the sound cards seem to be HDMI so maybe that is the issue?
This is an HP Envy x360 and it has worked perfectly other than this small problem. I would like to be able to play sound though and would greatly appreciate any help in solving this problem. Thanks!
brekker
(83 rep)
Aug 1, 2022, 08:38 PM
• Last activity: Jun 10, 2025, 04:06 PM
1
votes
1
answers
45
views
No audio or video if machine booted without display on; can this be forced?
I have a Beelink SER3 mini-pC running Debian 12, fully patched. This machine is based on the AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx. The HDMI port is plugged into a Denon AVR receiver, and this receiver is plugged into a 4K TV. This works well. The X server starts up in 4K, and pulseaudio hap...
I have a Beelink SER3 mini-pC running Debian 12, fully patched. This machine is based on the AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx.
The HDMI port is plugged into a Denon AVR receiver, and this receiver is plugged into a 4K TV.
This works well. The X server starts up in 4K, and pulseaudio happily sends audio via the HDMI port, which the receiver can play through speakers.
The problem is if the machine is turned on while the TV is off. In this case it doesn't detect any ouput; pulseaudio goes to a null-sink and even if I turn on the TV later I don't get a display. A quick reboot with the TV on and everything is OK again.
Without the TV I see an extra line in the boot messages
kernel: [ 4.095325] amdgpu 0000:04:00.0: [drm] Cannot find any crtc or sizes
That's pretty much the only difference in "amdgpu" boot messages from the kernel.
Is there a way of forcing the kernel to believe there's a display connected at bootuo, even if there isn't? Or convincing pulseaudio to work (it just needs the AVR, not the TV) and the X server to detect when the TV is turned on?
Stephen Harris
(49069 rep)
May 27, 2025, 10:56 PM
• Last activity: May 28, 2025, 02:05 PM
0
votes
1
answers
57
views
Automatically select right sound output when plugging in HDMI
I'm using Fedora 40. I alternately plug in my monitor (without speakers) and my home theater system to my laptop's single HDMI port. I would like to automatically direct sound output to the home theater system if it's plugged in, and otherwise use the internal speakers. As it is, sound output automa...
I'm using Fedora 40. I alternately plug in my monitor (without speakers) and my home theater system to my laptop's single HDMI port. I would like to automatically direct sound output to the home theater system if it's plugged in, and otherwise use the internal speakers. As it is, sound output automatically switches to HDMI if it was previously set to do so, regardless of which device is connected.
Is there something I could configure to remember the desired sound output per connected device, instead of treating all devices connected via HDMI the same?
aplay -L
lists different names when the different devices are connected, but wireplumber does not update its node properties from ALSA when hotplugging.
Max
(101 rep)
Jan 31, 2025, 08:26 PM
• Last activity: May 14, 2025, 07:57 AM
0
votes
1
answers
141
views
Can I force my laptop to recognize its HDMI port?
I have an HP Zenbook Power G9 with Ubuntu, which comes with an HDMI port. My issue is that this port does not work. When I plug the cable into it, nothing happens and the extra screen stays black. I just checked to be sure (it's a dual boot machine) and also Windows does not detect it. Screen and ca...
I have an HP Zenbook Power G9 with Ubuntu, which comes with an HDMI port.
My issue is that this port does not work. When I plug the cable into it, nothing happens and the extra screen stays black. I just checked to be sure (it's a dual boot machine) and also Windows does not detect it.
Screen and cable work, I tested them with a different laptop. They also work if I plug the HDMI cable into the USB-C port through and adapter.
I have tried updating the NVidia drivers and Linux Kernel, but to no avail.
Strangely, the HDMI port is not even listed by
xrandr
:
0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 60.02*+ 40.02
1680x1050 60.02
1400x1050 60.02
1600x900 60.02
1280x1024 60.02
1400x900 60.02
1280x960 60.02
1440x810 60.02
1368x768 60.02
1280x800 60.02
1280x720 60.02
1024x768 60.02
960x720 60.02
928x696 60.02
896x672 60.02
1024x576 60.02
960x600 60.02
960x540 60.02
800x600 60.02
840x525 60.02
864x486 60.02
700x525 60.02
800x450 60.02
640x512 60.02
700x450 60.02
640x480 60.02
720x405 60.02
684x384 60.02
640x360 60.02
512x384 60.02
512x288 60.02
480x270 60.02
400x300 60.02
432x243 60.02
320x240 60.02
360x202 60.02
320x180 60.02
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
What could I try next?
Michele Bolognini
(1 rep)
Jun 8, 2023, 07:38 AM
• Last activity: Apr 28, 2025, 12:11 PM
0
votes
1
answers
125
views
How to keep laptop speakers working when the lid is closed while using an external monitor via HDMI?
I'm running Arch Linux on my laptop and have an external monitor connected via HDMI. I want to close the laptop lid while using the external monitor, but I want the laptop's internal speakers to keep working because I don’t have external speakers on the monitor. I’ve already configured my power mana...
I'm running Arch Linux on my laptop and have an external monitor connected via HDMI.
I want to close the laptop lid while using the external monitor, but I want the laptop's internal speakers to keep working because I don’t have external speakers on the monitor.
I’ve already configured my power management settings to prevent the system from suspending when the lid is closed.
Specifically, I’ve edited the
/etc/systemd/logind.conf
file with the following settings:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
However, even after this, the laptop’s internal screen still turns off when I close the lid, which is not what I want. I’d like to only turn off the internal screen while keeping the speakers active and the system running as usual.
I have also checked the power settings in KDE Plasma and set it to "Do nothing" when the lid is closed, but the issue persists.
What am I missing or doing wrong?
How can I close the lid and turn off the screen while keeping the internal speakers working when using an external monitor?
Alessandro Chitarrini
(105 rep)
Mar 1, 2025, 12:24 PM
• Last activity: Mar 7, 2025, 03:34 PM
0
votes
1
answers
79
views
How can I switch HDMI DPMS mode with Weston
With X.org I was using `/usr/bin/xrandr --off` to switch HDMI display power off. However, I can't find how to do this with Weston?
With X.org I was using
/usr/bin/xrandr --off
to switch HDMI display power off. However, I can't find how to do this with Weston?
Martin
(11 rep)
Feb 25, 2025, 10:40 AM
0
votes
0
answers
113
views
When HDMI is plugged into computer, run script
**Setup** Headless single board computer [(this one)][1] which has an HDMI **in**put *(To clarify, this is a port which takes in HDMI like a monitor would. It will* **receive** *HDMI feed, not export it, like a computer normally would. Most computers don't have an HDMI-in port, so it's necessary to...
**Setup**
Headless single board computer (this one) which has an HDMI **in**put
*(To clarify, this is a port which takes in HDMI like a monitor would. It will* **receive** *HDMI feed, not export it, like a computer normally would. Most computers don't have an HDMI-in port, so it's necessary to specify that this one does and that's what we're talking about.)*
Android device with HDMI output
**Goal**
As soon as the HDMI output cable gets plugged into the headless computer, a script is triggered which records the video stream. When it's disconnected, another script is triggered (to process the recorded video).
I haven't been able to nail down how to access an HDMI input programmatically, or how to edit the default behavior when one starts to receive input.
I'm guessing that Linux will have a way to do this, but if there's a solution with Android, Orange Pi Droid, or OpenWRT, I'll take it.
Thanks!
(I've read some other posts, but none of them had conclusive answers. Here are some of them:
Run a script on monitor connection/disconnection event
Triggering a script when I plug in an HDMI in Raspberry Pi 4
Commands to run when Connecting HDMI
)
EthanL
(1 rep)
Dec 13, 2024, 03:09 PM
• Last activity: Dec 13, 2024, 05:07 PM
0
votes
1
answers
945
views
HDMI detection on Debian
I have a headless home server running Debian 12 without X.org. I might need to occasionally plug in a screen over HDMI to troubleshoot issues, however that doesn't work unless I reboot the machine first. When I do, the screen is detected just fine and hot plugging/unplugging works as well. What do I...
I have a headless home server running Debian 12 without X.org. I might need to occasionally plug in a screen over HDMI to troubleshoot issues, however that doesn't work unless I reboot the machine first. When I do, the screen is detected just fine and hot plugging/unplugging works as well.
What do I need to do to have this functionality readily available without installing X?
astrochicken
(3 rep)
Nov 30, 2024, 08:06 PM
• Last activity: Dec 2, 2024, 08:52 AM
0
votes
0
answers
210
views
Debian no sound over HDMI
Sound wont play over HDMI,I tried all options from this list but no luck. Also my lap top has only 1 HDMI port, not sure what all these options come from. [![enter image description here][1]][1] [1]: https://i.sstatic.net/H3Lb1uVO.png
Sound wont play over HDMI,I tried all options from this list but no luck. Also my lap top has only 1 HDMI port, not sure what all these options come from.

Vojin Purić
(131 rep)
Nov 30, 2024, 09:37 PM
1
votes
2
answers
12616
views
How to connect hdmi to the television on linux mint cinnamon
When I connect to the television via HDMI, all I get on the screen is my desktop background. This is regardless of what is on my laptop screen. I am using Linux Mint cinnamon.
When I connect to the television via HDMI, all I get on the screen is my desktop background. This is regardless of what is on my laptop screen. I am using Linux Mint cinnamon.
displayman
(11 rep)
Feb 17, 2017, 05:15 PM
• Last activity: Nov 25, 2024, 02:05 AM
1
votes
0
answers
526
views
USB-C -> HDMI adapter not detected anymore
Since updating from Ubuntu 22.04 to 24.04, my [USB-C -> HDMI adapter](https://www.amazon.de/dp/B0C9MD3WHP) is not recognized anymore. I have tried to detect it with `lsusb`, `lspci`, `usb-devices`, `dmesg` ... whatever I do, plugging the adapter in does not change the output of any of these commands...
Since updating from Ubuntu 22.04 to 24.04, my [USB-C -> HDMI adapter](https://www.amazon.de/dp/B0C9MD3WHP) is not recognized anymore.
I have tried to detect it with
lsusb
, lspci
, usb-devices
, dmesg
... whatever I do, plugging the adapter in does not change the output of any of these commands. It's as if nothing was plugged in at all. (Plugging in other USB devices, such as USB sticks, shows up in dmesg
, for example.)
I have reproduced this behavior on different computers using Ubuntu 24.04, with different USB-C ports.
Interestingly, on an Android phone, the USB-C -> HDMI adapter is detected, but transmitting video is not possible (when setting USB to "Controlled by this device", I get the error message "Couldn't switch"). Still, the adapter worked a few days ago with a friend's phone (at a time where it already did not work anymore from Ubuntu).
How would you go about diagnosing this problem?
Michael F
(11 rep)
Nov 17, 2024, 06:43 PM
• Last activity: Nov 17, 2024, 06:53 PM
0
votes
2
answers
2824
views
how to get my AMD GPU to work under debian?
Okay guys i lost all hope to solve this problem. I have a dell m4800 which supports 2 gpu's Intel and AMD m5100. i tried everything to get the AMD GPU to work but with no luck, the main problem is that the HDMI port is connected to the AMD GPU and i cant get it to work. here is my xrandr output : $x...
Okay guys i lost all hope to solve this problem.
I have a dell m4800 which supports 2 gpu's Intel and AMD m5100.
i tried everything to get the AMD GPU to work but with no luck, the main problem is that the HDMI port is connected to the AMD GPU and i cant get it to work.
here is my xrandr output :
$xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0xdd cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 0 name:VERDE @ pci:0000:01:00.0*
so i cant tell it sees the GPU but i cant use it:
the out put for inxi -G:
Graphics:
Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
Device-2: AMD Venus XT [Radeon HD 8870M / R9 M270X/M370X] driver: radeon v: kernel
Display: x11 server: X.Org 1.20.8 driver: ati,modesetting,radeon
unloaded: fbdev,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.1.2
i checked archwiki but unfortunately with no luck to solve the problem.
any help would be great.
thanks
''''''''''''''''
Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 17707.015] Build Operating System: Linux 4.19.0-8-amd64 x86_64 Debian
[ 17707.015] Current Operating System: SMP Debian 5.6.14-2 (2020-05-23) x86_64
[ 17707.015] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.6.0-2Debian-amd64 root=UUID=41ce03bf-3470-48db-92d9-0552d7f254ac ro quiet splash noautomount quiet
[ 17707.015] Build Date: 31 March 2020 10:14:40AM
[ 17707.015] xorg-server 2:1.20.8-2 (https://www.debian.org/support)
[ 17707.015] Current version of pixman: 0.36.0
[ 17707.015] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 17707.015] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 17707.015] (==) Log file: "/var/log/Xorg.1.log", Time: Wed Jul 29 19:24:47 2020
[ 17707.015] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 17707.016] (==) No Layout section. Using the first Screen section.
[ 17707.016] (==) No screen section available. Using defaults.
[ 17707.016] (**) |-->Screen "Default Screen Section" (0)
[ 17707.016] (**) | |-->Monitor ""
[ 17707.016] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 17707.016] (==) Automatically adding devices
[ 17707.016] (==) Automatically enabling devices
[ 17707.016] (==) Automatically adding GPU devices
[ 17707.016] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 17707.016] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 17707.016] Entry deleted from font path.
[ 17707.016] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 17707.016] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 17707.016] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 17707.016] (II) Loader magic: 0x55bb4bc32e20
[ 17707.016] (II) Module ABI versions:
[ 17707.016] X.Org ANSI C Emulation: 0.4
[ 17707.016] X.Org Video Driver: 24.1
[ 17707.016] X.Org XInput driver : 24.1
[ 17707.016] X.Org Server Extension : 10.0
[ 17707.017] (--) using VT number 2
[ 17707.017] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 17707.018] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 17707.018] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 17707.018] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 17707.018] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[ 17707.020] (--) PCI:*(0@0:2:0) 8086:0416:1028:05cc rev 6, Mem @ 0xf5800000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 17707.020] (--) PCI: (1@0:0:0) 1002:6821:1028:05cc rev 0, Mem @ 0xe0000000/268435456, 0xf7c00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[ 17707.020] (II) LoadModule: "glx"
[ 17707.020] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 17707.021] (II) Module glx: vendor="X.Org Foundation"
[ 17707.021] compiled for 1.20.8, module version = 1.0.0
[ 17707.021] ABI class: X.Org Server Extension, version 10.0
[ 17707.021] (==) Matched modesetting as autoconfigured driver 0
[ 17707.021] (==) Matched fbdev as autoconfigured driver 1
[ 17707.021] (==) Matched vesa as autoconfigured driver 2
[ 17707.021] (==) Assigned the driver to the xf86ConfigLayout
[ 17707.021] (II) LoadModule: "modesetting"
[ 17707.021] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 17707.021] (II) Module modesetting: vendor="X.Org Foundation"
[ 17707.021] compiled for 1.20.8, module version = 1.20.8
[ 17707.021] Module class: X.Org Video Driver
[ 17707.021] ABI class: X.Org Video Driver, version 24.1
[ 17707.021] (II) LoadModule: "fbdev"
[ 17707.021] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 17707.021] (II) Module fbdev: vendor="X.Org Foundation"
[ 17707.021] compiled for 1.20.0, module version = 0.5.0
[ 17707.021] Module class: X.Org Video Driver
[ 17707.021] ABI class: X.Org Video Driver, version 24.0
[ 17707.021] (II) LoadModule: "vesa"
[ 17707.021] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 17707.021] (II) Module vesa: vendor="X.Org Foundation"
[ 17707.021] compiled for 1.20.4, module version = 2.4.0
[ 17707.021] Module class: X.Org Video Driver
[ 17707.021] ABI class: X.Org Video Driver, version 24.0
[ 17707.021] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 17707.021] (II) FBDEV: driver for framebuffer: fbdev
[ 17707.021] (II) VESA: driver for VESA chipsets: vesa
[ 17707.350] (WW) Falling back to old probe method for modesetting
[ 17707.350] (II) modeset(1): using default device
[ 17707.350] (II) Loading sub module "fbdevhw"
[ 17707.350] (II) LoadModule: "fbdevhw"
[ 17707.350] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 17707.350] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 17707.350] compiled for 1.20.8, module version = 0.0.2
[ 17707.350] ABI class: X.Org Video Driver, version 24.1
[ 17707.350] (**) FBDEV(2): claimed PCI slot 0@0:2:0
[ 17707.350] (II) FBDEV(2): using default device
[ 17707.350] (EE) Screen 0 deleted because of no matching config section.
[ 17707.350] (II) UnloadModule: "modesetting"
[ 17707.350] (EE)
Fatal server error:
[ 17707.350] (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
[ 17707.350] (EE)
[ 17707.350] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 17707.350] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 17707.350] (EE)
[ 17707.399] (EE) Server terminated with error (1). Closing log file.``
mobe
(1 rep)
Jul 29, 2020, 08:51 PM
• Last activity: Nov 13, 2024, 12:36 PM
1
votes
1
answers
44
views
I2S clock provider mode not supported - How to enable?
**Introduktion:** I having a HDMI PHY SII9022A. I want to enable audio on that PHY. **Requriments:** I need to create a proper device tree for the SII9022A. https://www.kernel.org/doc/Documentation/devicetree/bindings/display/bridge/sil%2Csii9022.yaml According to this file, I need to activate `audi...
**Introduktion:**
I having a HDMI PHY SII9022A. I want to enable audio on that PHY.
**Requriments:**
I need to create a proper device tree for the SII9022A.
https://www.kernel.org/doc/Documentation/devicetree/bindings/display/bridge/sil%2Csii9022.yaml
According to this file, I need to activate
My linux kernel configuration looks like this.
My device tree looks like this:
hdmi-transmitter@39{
compatible = "sil,sii9022";
reg = ;
iovcc-supply = ;
cvcc12-supply = ;
reset-gpios = ;
interrupts = ;
interrupt-parent = ;
#sound-dai-cells = ;
sil,i2s-data-lanes = ;
/*clocks = ;
clock-names = "mclk";*/
status = "okay";
ports{
#address-cells = ;
#size-cells = ;
port@0{
reg = ;
sii9022_in:endpoint{
remote-endpoint = ;
};
};
port@1{
reg = ;
sii9022_out:endpoint{
remote-endpoint = ;
};
};
port@3{
reg = ;
sii9022_tx_endpoint:endpoint{
remote-endpoint = ;
};
};
};
};
&i2s2{
pinctrl-names = "default", "sleep";
pinctrl-0 = ;
pinctrl-1 = ;
status = "okay";
/* USER CODE BEGIN i2s2 */
clocks = , , , ;
clock-names = "pclk", "i2sclk", "x8k", "x11k";
i2s2_port:port{
i2s2_endpoint:endpoint{
remote-endpoint = ;
dai-format = "i2s";
mclk-fs = ;
};
};
/* USER CODE END i2s2 */
};
**Question:**
As you can see, I'm using the
audio-graph-card bindings
and of course i2s
.
I have created my device tree. Notice that I have not using MCLK (Master Clock) because PLL can be used instead of MCLK.



dai-format = "i2s"
, but still, I'm getting this debug messages.
drivers/gpu/drm/bridge/sii902x.c:577 [sii902x]sii902x_audio_hw_params =p "%s: Unsupported i2s format %u\n"
drivers/gpu/drm/bridge/sii902x.c:560 [sii902x]sii902x_audio_hw_params =p "%s: I2S clock provider mode not supported\n"
From this .c
code: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/bridge/sii902x.c
static int sii902x_audio_hw_params(struct device *dev, void *data,
struct hdmi_codec_daifmt *daifmt,
struct hdmi_codec_params *params)
{
struct sii902x *sii902x = dev_get_drvdata(dev);
u8 i2s_config_reg = SII902X_TPI_I2S_SD_DIRECTION_MSB_FIRST;
u8 config_byte2_reg = (SII902X_TPI_AUDIO_INTERFACE_I2S |
SII902X_TPI_AUDIO_MUTE_ENABLE |
SII902X_TPI_AUDIO_CODING_PCM);
u8 config_byte3_reg = 0;
u8 infoframe_buf[HDMI_INFOFRAME_SIZE(AUDIO)];
unsigned long mclk_rate;
int i, ret;
if (daifmt->bit_clk_provider || daifmt->frame_clk_provider) {
dev_dbg(dev, "%s: I2S clock provider mode not supported\n", __func__); fmt) {
case HDMI_I2S:
i2s_config_reg |= SII902X_TPI_I2S_FIRST_BIT_SHIFT_YES |
SII902X_TPI_I2S_SD_JUSTIFY_LEFT;
break;
case HDMI_RIGHT_J:
i2s_config_reg |= SII902X_TPI_I2S_SD_JUSTIFY_RIGHT;
break;
case HDMI_LEFT_J:
i2s_config_reg |= SII902X_TPI_I2S_SD_JUSTIFY_LEFT;
break;
default:
dev_dbg(dev, "%s: Unsupported i2s format %u\n", __func__, daifmt->fmt); <--------------------------------
return -EINVAL;
}
So how can I get the I2S clock prover mode a proper setup?
euraad
(219 rep)
Oct 27, 2024, 11:18 AM
• Last activity: Oct 29, 2024, 08:39 PM
-1
votes
1
answers
253
views
Use external DisplayPort/HDMI audio with Nouveau
Good day everyone. My laptop has a RTX 4080 Nvidia dGPU with HDMI and DisplayPort directly connected to it. Video works perfectly, but I have no audio. I wonder if it’s fixable or just not supported with the open drivers. I use Tumbleweed, with Plasma (Wayland session). ~> aplay -l **** List of PLAY...
Good day everyone.
My laptop has a RTX 4080 Nvidia dGPU with HDMI and DisplayPort directly connected to it. Video works perfectly, but I have no audio. I wonder if it’s fixable or just not supported with the open drivers. I use Tumbleweed, with Plasma (Wayland session).
~> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [GP01]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
If I use alsamixer or simply the KDE's settings, I can clearly see that I can either select the laptop's audio output, or my HDMI's. If I use the latter, I can change the volume (lower or higher), but actually no sound is reproduced. Happens actually on any distro. Audio works good with Windows or any other device connected to the monitor (Android, ChromeOS, Fire TV stick, Nintendo Switch).
~> sudo lspci -nnk |grep -E "3D|VGA"
[sudo] password di root: 0000:00:02.0 VGA compatible controller : Intel Corporation Raptor Lake-S UHD Graphics [8086:a788] (rev 04)
0000:01:00.0 VGA compatible controller : NVIDIA Corporation AD104M [GeForce RTX 4080 Max-Q / Mobile] [10de:27a0] (rev a1)
shishimaru
(1 rep)
Oct 16, 2024, 12:53 PM
• Last activity: Oct 28, 2024, 07:35 PM
Showing page 1 of 20 total questions