Open SK10 opened 1 year ago
@SK10 we have the same laptop, are you sure the Nvidia drivers are properly loaded?
sudo akmods
sudo dmesg | grep nvidia
@bayasdev Yeah great laptop. I'm currently on hybrid mode, here's the commands output
sudo akmods
Checking kmods exist for 6.2.6-201.fsync.fc37.x86_64 [ OK ]
sudo dmesg | grep nvidia
[ 0.000000] Command line: BOOT_IMAGE=(hd0,gpt5)/vmlinuz-6.2.6-201.fsync.fc37.x86_64 root=UUID=0a38845d-27df-4b2d-aadb-33ccbc0fffd4 ro rootflags=subvol=@ quiet splash rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[ 0.057916] Kernel command line: BOOT_IMAGE=(hd0,gpt5)/vmlinuz-6.2.6-201.fsync.fc37.x86_64 root=UUID=0a38845d-27df-4b2d-aadb-33ccbc0fffd4 ro rootflags=subvol=@ quiet splash rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[ 8.218061] nvidia: module license 'NVIDIA' taints kernel.
[ 8.319107] nvidia-nvlink: Nvlink Core is being initialized, major device number 234
[ 8.319869] nvidia 0000:01:00.0: enabling device (0406 -> 0407)
[ 8.320026] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 8.613836] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 525.85.05 Sat Jan 14 00:40:03 UTC 2023
[ 8.622676] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 9.400323] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
@SK10 I'm not sure about Fedora KDE but I tested on Fedora 38 (Gnome) and envycontrol works as expected (gdm uses Wayland and fall backs to CPU copy for external screen).
Maybe they're now defaulting SDDM to Wayland or something that's not entirely compatible with Nvidia.
@SK10 please try creating a .conf file inside /etc/sddm.conf.d/
with:
DisplayServer=x11
Reboot and now SDDM should default to X11
@bayasdev Just tried that, unfortunately the issue persisted.
@SK10 when the problem occurs try to open a TTY and capture the X.org logs from /var/log/Xorg.0.log
@SK10 I'm reading that Fedora doesn't ship with xrandr so try to install it before switching to Nvidia mode:
sudo dnf -y install xrandr
@bayasdev here's the log: https://privatebin.net/?b5862a480d7981e4#E4x3HiozD5VUwXZuc9L6QUCtfRHwNiCpD4xXi8abWTGA I do have xrandr installed
@SK10 I think I found the problem, Fedora uses /etc/sddm/Xsetup
and not /usr/share/sddm/scripts/Xsetup
.
Switch to Nvidia mode and run the following commands:
# backup
sudo mv /etc/sddm/Xsetup /etc/sddm/Xsetup.bak
# move Envycontrol generated script to the correct path
sudo cp /usr/share/sddm/scripts/Xsetup /etc/sddm/Xsetup
# also give it exec permissions
sudo chmod +x /etc/sddm/Xsetup
sudo reboot
Let me know if it works 😉
Unfortunately it didn't work. Have I done something wrong?
ls -l /etc/sddm
total 20
-rw-r--r--. 1 root root 141 December 31 00:55 README.scripts
-rwxr-xr-x. 1 root root 1570 Octobor 25 09:06 wayland-session
-rwxr-xr-x 1 root root 122 March 19 19:01 Xsetup
-rwxr-xr-x. 1 root root 70 Octobor 25 09:06 Xsetup.bak
-rwxr-xr-x. 1 root root 53 Octobor 25 09:06 Xstop
cat /etc/sddm/Xsetup
#!/bin/sh
# Automatically generated by EnvyControl
xrandr --setprovideroutputsource "modesetting" NVIDIA-0
xrandr --auto
@SK10 let me see your sddm logs
journalctl -u sddm.service -b
@bayasdev
March 20 06:51:48 nobara-pc systemd[1]: Started sddm.service - Simple Desktop Display Manager.
March 20 06:51:53 nobara-pc sddm-helper[1317]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=985) by (uid=0)
March 20 06:51:53 nobara-pc sddm-helper[1317]: Starting X11 session: "" "/usr/bin/sddm-greeter --socket /tmp/sddm-:0-OPcFMp --theme /usr/share/sddm/themes/breeze"
System Information:
Additional context sudo envycontrol --verbose -s nvidia output: