View previous topic :: View next topic |
Author |
Message |
thin-cup-4349 n00b
Joined: 26 Jan 2024 Posts: 2
|
Posted: Fri Jan 26, 2024 10:20 pm Post subject: Working HDMI setup not detected by drm subsystem |
|
|
Hi all,
I have X11 running on an nvidia optimus card (intel HD + nvidia). xrandr works as expected and I am able use an external monitor connected via HDMI. I am trying to set up autorandr by modifying a udev rule (see https://bugs.gentoo.org/803545).
e.g. /etc/udev/rules.d/90-monitor-hotplug.rules
Code: | ACTION=="change", SUBSYSTEM=="drm", RUN+="/usr/bin/autorandr --change --default default" |
Running the command on its own works correctly, however the rule itself is not being triggered. Nothing is logged in udevadm monitor when connecting/disconnecting the HDMI, moreover in /sys/class/drm/, the two HDMI cards: card0-HDMI-A-1 and card0-HDMI-A-2 show as disconnected when /status is read regardless of the working HDMI output.
xrandr --listmonitors shows the external and built in monitors as 0:HDMI-0 and eDP-1-1.
Running xrandr -q :
Code: | HDMI-0 connected primary 2560x1600+1920+0 (normal left inverted right x axis y axis) 641mm x 401mm
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis) |
I have a hunch that this is caused by xrandr using HDMI-0 instead of HDMI-1-1 or HDMI-1-2 (after all HDMI-0 does not exist in /sys/class/drm), but I do not know why it would do this or where to go from here.
Thanks in advance! |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Sat Jan 27, 2024 3:56 pm Post subject: |
|
|
You can give Linux kernel parameters instead that fixe the resolution on each screen video=HDMI-A-1:1920x1080-32 video=HDMI-A-2:1280x1024-32
The resolutions I give are only examples and must be adjust to your screens resolution. It depend of which Nvidia drivers you use too. I t work with nouveau. I don't know for the proprietaries Nvidia drivers. A good idea is to put the Intel and Nvidia framebuffer modules in the initramfs or in the kernel itself. _________________ Paul |
|
Back to top |
|
|
thin-cup-4349 n00b
Joined: 26 Jan 2024 Posts: 2
|
Posted: Tue Jan 30, 2024 12:02 am Post subject: |
|
|
Logicien wrote: | You can give Linux kernel parameters instead that fixe the resolution on each screen video=HDMI-A-1:1920x1080-32 video=HDMI-A-2:1280x1024-32
The resolutions I give are only examples and must be adjust to your screens resolution. It depend of which Nvidia drivers you use too. I t work with nouveau. I don't know for the proprietaries Nvidia drivers. A good idea is to put the Intel and Nvidia framebuffer modules in the initramfs or in the kernel itself. |
What is the kernel CONFIG name for that? I tried adding the Intel and Nvidia framebuffer support but did not see any difference. The wiki says that the kernel support for the Nvidia Framebuffer driver conflicts with the proprietary nvidia binaries. Unfortunately I cannot use nouveau as I need to work with CUDA for AI/ML applications. https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
My current workaround is to add "exec_always autorandr -c" to i3's config file so I just have to run $MOD+R every time I plug/unplug. |
|
Back to top |
|
|
|