You are not logged in.
I've intel graphic card and NVIDIA RTX 3050 in my Laptop, I swiched to Arch recently and can't get my HDMI external monitor to work, it is not recognized by xrandr at all. I think nVidia drivier works well
xrandr output
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 194mm
1920x1080 120.00*+ 60.01 59.97 59.96 59.93
1680x1050 59.95 59.88
1400x1050 74.76 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 85.02 75.02 60.02
1400x900 59.96 59.88
1280x960 85.00 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1280x800 59.99 59.97 59.81 59.91
1152x864 75.00
1280x720 60.00 59.99 59.86 59.74
1024x768 85.00 75.05 60.04 85.00 75.03 70.07 60.00
1024x768i 86.96
960x720 85.00 75.00 60.00
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 85.00 75.00 70.00 65.00 60.00 85.14 72.19 75.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
700x525 74.76 59.98
800x450 59.95 59.82
640x512 85.02 75.02 60.02
700x450 59.96 59.88
640x480 85.09 60.00 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
684x384 59.88 59.85
640x400 59.88 59.98 85.08
576x432 75.00
640x360 59.86 59.83 59.84 59.32
640x350 85.08
512x384 85.00 75.03 70.07 60.00
512x384i 87.06
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 85.27 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 85.18 72.81 75.00 60.05
360x202 59.51 59.13
360x200 85.04
320x200 85.27
320x180 59.84 59.32
320x175 85.27
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)Providers: number : 1
Provider 0: id: 0x47 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:modesettingfile: /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusId "PCI:1:0:0"
Option "Coolbits" "28"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
when i boot my PC only the main screen is working but the external screen connected to HDMI is black lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT1 [UHD Graphics] (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)and when i change the layout section in /etc/X11/xorg.conf to
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSectiononly the external screen is working
Last edited by enigma522 (2024-05-31 14:16:44)
Offline
Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General
Online
thanks for the reply
this is the content of /var/log/Xorg.0.log
https://pastebin.com/qnzjNg27
and i noticed that the HDMI is connected to the NVIDIA GPU
Offline
Your xorg config disables the nvidia driver (driving the HDMI out) and your alternate config disables the intel driver (driving the laptop display).
The solution here is not trying to be fancy, get rid of your config and boot without it. xorg will detect and logically setup both gpus correctly. You might be interested in https://wiki.archlinux.org/title/PRIME# … er_offload and the prime-run utility for selecting the rendering card for applications. You might want to setup modesetting on the nvidia card to enable PRIME sync working correctly: https://wiki.archlinux.org/title/PRIME# … ronization
Last edited by V1del (2024-05-30 17:03:31)
Offline
do you mean to get ride of /etc/X11/xorg.conf ??
cuz before i was without the custom config and it didnt work either (i mean the second screen didnt work)
Last edited by enigma522 (2024-05-30 17:32:06)
Offline
yes. If things still don't work, post a xorg log of trying it without any config.
Offline
ok so this is what i have now
https://pastebin.com/HmT3Ea6G
i tried to delete all the nvidia driver and use sudo modprobe nouveau
now the xrandr detect the HDMI but i cant use the other screen
Offline
Using the first device section listed.
[ 5.590] (**) | |-->Device "integrated"grep -r integrated /{etc,usr/share}/X11/xorg.conf*Do you use optimus-manager?
Online
yes i tried many solution here thats why i installed lot of things hhhh
Offline
do i need to remove it ?
Offline
You need to stop flailing around - you're creating a mess and a moving target.
Then yes: remove optimus-manager and post an updated xorg log and also system journal to illustrate where you are right now.
Online
I just remover Optimus-manager now my screen is black I can only use tty
Offline
cat /var/log/Xorg.0.log | curl -F 'file=@-' 0x0.st
sudo journalctl -b | curl -F 'file=@-' 0x0.stOnline
https://0x0.st/XNxn.txt ==> Xorg.conf
http://0x0.st/XNxR.txt ==> Journalctl
Offline
Remove every xf86-video-* package and re-install the nvidia drivers and enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter.
Nouveau has issues driving your GPU and crashes the X11 server.
Edit: then report back w/ an updated xorg log
Last edited by seth (2024-05-31 06:39:12)
Online
ok before i remove the xf86-video-*
i did installed the nvidia driver and i added nvidia_drm.modeset=1 to kernel param with grub and know everything works fine i can use the second screen
but i added thsi to xrog.cong
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSectionxrandr output
Providers: number : 2
Provider 0: id: 0x47 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 5 associated providers: 1 name:modesetting
Provider 1: id: 0x271 cap: 0x2, Sink Output crtcs: 4 outputs: 1 associated providers: 1 name:NVIDIA-G0even xrandr detect the hdmi now
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 194mm
1920x1080 120.00*+ 60.01 59.97 59.96 59.93
1680x1050 59.95 59.88
1400x1050 74.76 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 85.02 75.02 60.02
1400x900 59.96 59.88
1280x960 85.00 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1280x800 59.99 59.97 59.81 59.91
1152x864 75.00
1280x720 60.00 59.99 59.86 59.74
1024x768 85.00 75.05 60.04 85.00 75.03 70.07 60.00
1024x768i 86.96
960x720 85.00 75.00 60.00
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 85.00 75.00 70.00 65.00 60.00 85.14 72.19 75.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
700x525 74.76 59.98
800x450 59.95 59.82
640x512 85.02 75.02 60.02
700x450 59.96 59.88
640x480 85.09 60.00 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
684x384 59.88 59.85
640x400 59.88 59.98 85.08
576x432 75.00
640x360 59.86 59.83 59.84 59.32
640x350 85.08
512x384 85.00 75.03 70.07 60.00
512x384i 87.06
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 85.27 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 85.18 72.81 75.00 60.05
360x202 59.51 59.13
360x200 85.04
320x200 85.27
320x180 59.84 59.32
320x175 85.27
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)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)and this is the Xorg logs
http://0x0.st/XNIm.txt
Last edited by enigma522 (2024-05-31 11:40:41)
Offline
but i added thsi to xrog.cong
In theory that should not be necessary - what does the xorg log look w/o it?
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Online