You are not logged in.
Hello everyone, after updating the kernel version from 6.6.51-1-lts to 6.6.52-1-lts, my xrandr no longer lists my notebook's screen, it only displays the external monitor.
I have a notebook with both an nvidia and an Intel GPU.
This is the output of my xrandr:
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767DP-0 disconnected primary (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 630mm x 360mm
3840x2160 60.00*+ 59.94 50.00 30.00 29.97
2560x1440 59.95
1920x1080 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 This is the my xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 530.41.03
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Samsung4k"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
# Section "Device"
# Identifier "intel"
# Driver "modesetting"
# BusID "PCI:00:02:0"
# Option "ForceFullCompositionPipeline" "on"
# Option "AllowIndirectGLXProtocol" "off"
# Option "TripleBuffer" "on"
# EndSection
# Section "Device"
# Identifier "Intel Graphics"
# Driver "intel"
# Option "AccelMethod" "sna"
# EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:01:00:0"
Option "ForceFullCompositionPipeline" "on"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
Option "PrimaryGPU" "yes"
Option "Coolbits" "4"
Option "PowerMizerEnable" "yes"
Option "PowerMizerDefaultMode" "2"
EndSection
Section "Screen"
# Option "ForceFullCompositionPipeline" "on"
# Option "AllowIndirectGLXProtocol" "off"
# Option "TripleBuffer" "on"
Identifier "Screen0"
Device "nvidia" # change for Device0 (4k monitor) or intel for notebook screen
#Device "intel"
Monitor "Samsung4k"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSectionAfter the update this problem started.
I use a script to be able to make screen changes:
#!/bin/bash
EXTERNAL_OUTPUT="HDMI-0"
INTERNAL_OUTPUT="eDP-1-1"
# if we don't have a file, start at zero
if [ ! -f "/tmp/monitor_mode.dat" ] ; then
monitor_mode="all"
# otherwise read the value from the file
else
monitor_mode=`cat /tmp/monitor_mode.dat`
fi
if [ $monitor_mode = "all" ]; then
monitor_mode="EXTERNAL"
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto && notify-send "External Monitor" -t 3000
elif [ $monitor_mode = "EXTERNAL" ]; then
monitor_mode="INTERNAL"
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off && notify-send "Internal Monitor" -t 3000
# elif [ $monitor_mode = "INTERNAL" ]; then
# monitor_mode="CLONES"
# xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --same-as $INTERNAL_OUTPUT && notify-send "Clone Mode" -t 3000
else
monitor_mode="EXTEND-LEFT"
# xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --left-of $INTERNAL_OUTPUT && notify-send "Extend left mode"
# xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --right-of $INTERNAL_OUTPUT && notify-send "Extend right mode" -t 3000
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --left-of $INTERNAL_OUTPUT && notify-send "Extend left mode" -t 3001
fi
echo "${monitor_mode}" > /tmp/monitor_mode.datHas anyone experienced this? Help me?
Offline
Post a xorg log, generally speaking that xorg.config as it looks like will always have lead to this result (you only specify the nvidia device which means it's the only thing visible to the xorg server). I suggest you get rid of it. and instead do a configlet for the nvidia options e.g. /etc/X11/xorg.conf.d/20-nvidia.conf
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "ForceFullCompositionPipeline" "on"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
Option "PrimaryGPU" "yes"
Option "Coolbits" "4"
Option "PowerMizerEnable" "yes"
Option "PowerMizerDefaultMode" "2"
EndSectionBut if you're certain its a kernel update's fault then check whether you can reproduce if you go down a kernel and in consequence check e.g.
sudo journalctl -bbetween the two kernels on whether something isn't loaded properly.
Last edited by V1del (2024-09-20 09:08:28)
Offline
Once deleted my xorg.conf and create the /etc/X11/xorg.conf.d/20-nvidia.conf with:
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "ForceFullCompositionPipeline" "on"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
Option "PrimaryGPU" "yes"
Option "Coolbits" "4"
Option "PowerMizerEnable" "yes"
Option "PowerMizerDefaultMode" "2"
EndSectionI have the same behavior.
I tried to create the 20-intel.conf for my GPU intel, but when rebooted I failed to start Light Display Manager.
This is output the command lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT1 [UHD Graphics] (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)I used NVIDIA with my primary GPU.
Before updating the kernel with xorg.conf, xrandr was able to list both the notebook screen and the external monitor, after the update, xrandr only lists the external monitor.
Offline
First things first, make sure xf86-video-intel is not installed for a GPU this new and don't refrence the "intel" driver in any xorg.conf
If the only real difference is the kernel, check your
sudo journalctl -bfor the current boot -b-1 for the one before that and so forth and check whether kernel errors for the i915 kernel module can be found, or upload that to 0x0.st so we can take a look with
sudo journalctl -b | curl -F 'file=@-' 0x0.st(and we'd still need to see a xorg log)
Offline
Thanks for helping me, but I'm trying Hyprland and so far I haven't had any problems with monitors and nvidia.
Offline