Second screen not waking up at all with nvidia GeForce RTX 4060 Ti

Hi Garudalinux users,
I am still new to garudalinux and discourse forums, and am very grateful, that out of a few distros that I have tried, garudalinux instantly booted a desktop, right from the installer AND after the first reboot.
Now I need some help:

I ran into some problems, one screen didn’t get seen in xrandr at first at all, it is in standby modus and stays there. When I manually turned it on from standby it became visible in xrandr output, but stayed black, even when I tried to give it a secondary role.
I have found the Display Manager multi-monitor configuration tutorial and a follow up on it here:
Multi-monitor Xsetup script not working after sleep

I am trying to connect two screens to my newly installed garuda system.
One screen stays black, at first I did not even get an output from xrandr.

╰─λ garuda-inxi
System:
Kernel: 6.9.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=e7cb1af2-f296-4590-a4ed-6dc38ab8187b rw rootflags=subvol=@
nvidia-drm.modeset=1 quiet
resume=UUID=7aa0d346-898d-4481-b614-c00ddc0a0872 loglevel=3 ibt=off
Desktop: KDE Plasma v: 6.1.3 tk: Qt v: N/A info: frameworks v: 6.4.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Desktop System: Micro-Star product: MS-7E26 v: 1.0
serial: <superuser required>
Mobo: Micro-Star model: B650 GAMING PLUS WIFI (MS-7E26) v: 1.0
serial: <superuser required> uuid: <superuser required> UEFI: American
Megatrends LLC. v: 1.F1 date: 07/08/2024
Battery:
Device-1: hidpp_battery_0 model: Logitech MX Ergo Multi-Device Trackball
serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: AMD Ryzen 5 7500F bits: 64 type: MT MCP arch: Zen 4 gen: 5
level: v4 note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25)
model-id: 0x61 (97) stepping: 2 microcode: 0xA601206
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 6 MiB desc: 6x1024 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 545 min/max: 545/5074 scaling: driver: amd-pstate-epp
governor: powersave cores: 1: 545 2: 545 3: 545 4: 545 5: 545 6: 545 7: 545
8: 545 9: 545 10: 545 11: 545 12: 545 bogomips: 88799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA AD106 [GeForce RTX 4060 Ti] vendor: Micro-Star MSI
driver: nvidia v: 555.58.02 alternate: nouveau,nvidia_drm non-free: 550.xx+
status: current (as of 2024-06) arch: Lovelace code: AD1xx
process: TSMC n4 (5nm) built: 2022+ pcie: gen: 4 speed: 16 GT/s lanes: 8
ports: active: none off: DP-1,DP-3 empty: DP-2,HDMI-A-1 bus-ID: 01:00.0
chip-ID: 10de:2803 class-ID: 0300
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nvidia d-rect: 3840x1080
display-ID: 0
Monitor-1: DP-1 pos: primary,left res: 1920x1080 size: N/A modes: N/A
Monitor-2: DP-3 pos: right res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia
x11: drv: zink inactive: device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 555.58.02
glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2
memory: 15.62 GiB display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 1 device: 0 type: discrete-gpu name: NVIDIA
GeForce RTX 4060 Ti driver: nvidia v: 555.58.02 device-ID: 10de:2803
surfaces: xcb,xlib,wayland
Audio:
Device-1: NVIDIA AD106M High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
bus-ID: 01:00.1 chip-ID: 10de:22bd class-ID: 0403
Device-2: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 10:00.6 chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.9.10-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.2.1 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 0c:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp12s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
bus-ID: 0d:00.0 chip-ID: 14c3:0616 class-ID: 0280
IF: wlp13s0 state: down mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:4 chip-ID: 0e8d:0616
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c0104
Drives:
Local Storage: total: 931.51 GiB used: 30.58 GiB (3.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: WD Blue SN580 1TB size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 281010WD temp: 41.9 C scheme: GPT
Partition:
ID-1: / raw-size: 897.17 GiB size: 897.17 GiB (100.00%)
used: 30.58 GiB (3.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 897.17 GiB size: 897.17 GiB (100.00%)
used: 30.58 GiB (3.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 897.17 GiB size: 897.17 GiB (100.00%)
used: 30.58 GiB (3.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 897.17 GiB size: 897.17 GiB (100.00%)
used: 30.58 GiB (3.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 30.95 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
ID-2: swap-2 type: partition size: 34.05 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 40.9 C mobo: 34.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB note: est. available: 30.95 GiB used: 4.32 GiB (14.0%)
Processes: 366 Power: uptime: 32m states: freeze,mem,disk suspend: deep
avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 12.34 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1603 libs: 429 tools: octopi,pamac,paru
Compilers: clang: 18.1.8 gcc: 14.1.1 Shell: garuda-inxi default: fish
v: 3.7.1 running-in: konsole inxi: 3.3.35
Garuda (2.6.26-1):
System install date:     2024-07-14
Last full system update: 2024-07-21 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

xrandr output now with second screen in standby mode

Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
DP-3 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 597mm x 336mm

When I now turn on the other screen both screens go black and no more KDE visible, just plain black, I am not sure where I am, so when I enter CTRL+ALT+F1 nothing happens (no tty) CTRL+ALT+F2 opens a black screen but with mousepointer, which I can control, but can do nothing else, I have to hit CTRL+ALT+F3 twice to go back to tty3.

The same happens when I log in as user and type startx
or do garuda-inxi from tty3 (remaining screen going black and even in standby)
the second screen is not waking up at all.
I had the situation that I could detect the second screen and with manage-displays (Anzeige-einrichtung) could asign it the role to extend into some direction or mirror the main display, however it always stayed black and didn’t go into active-mode.
two identical screens both connected to DP on the GPU. The two Ports on the main board do not seem to react at all, (the CPU doesn’t have internal graphics)
https://www.amd.com/en/products/processors/desktops/ryzen/7000-series/amd-ryzen-5-7500f.html

Now, when I do

startx

out of that state above, I find following errors in Xorg.0.log:

https://paste.debian.net/1323972/

Probably the relevant output in that paste above being:

     9.135] (II) LoadModule: "nouveau"
[     9.136] (WW) Warning, couldn't open module nouveau
[     9.136] (EE) Failed to load module "nouveau" (module does not exist, 0)
[     9.136] (II) LoadModule: "nv"
[     9.136] (WW) Warning, couldn't open module nv
[     9.136] (EE) Failed to load module "nv" (module does not exist, 0)
[     9.138] (II) LoadModule: "fbdev"
[     9.138] (WW) Warning, couldn't open module fbdev
[     9.138] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     9.138] (II) LoadModule: "vesa"
[     9.138] (WW) Warning, couldn't open module vesa
[     9.138] (EE) Failed to load module "vesa" (module does not exist, 0)

I am a little hesitant modifying my config files, since that messed up the system completely before with debian… So that I did not even get a tty running afterwards, and had to re-install…

I thought that I do not need nouveau, as I am using the proprietary nvidia drivers, and I have no idea what to do next…

Try X11 from login screen.
Use

startplasma-x11 

or

startplasma-wayland

from TTY.

1 Like

Thank you for this reply,
I think that the Problem is not just wayland or X11 (the single screen is working fine until the computer goes to standby, when I now start, it will not re-activate the screen)
So now I restarted the machine and it went back into Plasma (with wayland)
So my guess is, that there is no wake-up signal to the screens properly,

startplasma-wayland

no response, no change (I guess that

ps jaxwww | grep wayland

shows, that a wayland session is running defunct: https://paste.debian.net/1324250

startplasma-x11
$DISPLAY is not set or cannot connect to the X server.

so if the problem is wayland, should stop wayland first?
Do these commands need to be run as root / sudo?

Okay, now I have done:

sudo systemctl stop sddm.service

there is no more wayland process, but startplasma-x11 still gives the same message back $DISPLAY is not set.

now on tty2 there is no mouse pointer, on black screen, but a normal tty2 cli login, on tty1 there is a blinking cursor.

Now, wenn I do startplasma-wayland from tty3 it goes black and monitor looses signal and goes into standby, I can wake it up with typing CTRL+ALT+F2 or F4/F5/F6 repeatedly
I get only the tty, whenever I go to tty3 there is no signal and monitor searches for HDMI / DP input it doesn’t get one, then turns to standby.

Okay, after all this fiddling, I have pasted the Xorg.0.log
https://paste.debian.net/1324259
But I am still without a clue, what the best next step would be.

OK, I have now tried to use the other kernel (6.6… lts) with the latest updates from 2024-07-24 and logged into the session with wayland and X11, the behaviour is identical, black screen after I activate second screen.
also when I call garuda-inxi from tty it turns to that black tty

I have followed following threads:

here I have tried updating the Mirror lists with reflector, done startx from tty and pasted the output, done the startplasma-X11 and startplasma-wayland

I tried this: Display Manager multi-monitor configuration but there I do not even get the second monitor displayed with xrandr (as long as I have Plasma running, just now it just lists DP-3 as connected) as soon as I turn on second monitor I lose the Plasma desktop and have to login with tty and there is no xrandr (Can’t open display)

I have now read [545.29.06-18.1]Flip event timeout error on startup, shutdown and sometimes suspend. Wayland unusable - #18 by shelter - Linux - NVIDIA Developer Forums

Now there is a hint at NVidia 555 Display Issues with Dual Monitor on Gnome / Kernel & Hardware / Arch Linux Forums however, downgrading to the 550 series nvidia drivers did not work as described in the post. This seems to be different in garudalinux vs archlinux

sudo pacman -Rns nvidia nvidia-utils nvidia-settings
Fehler: Ziel nicht gefunden: nvidia

pacman -Qs 'kernel|nvidia'
local/b43-fwcutter 019-5
firmware extractor for the b43 kernel module
local/dkms 3.0.12-1
Dynamic Kernel Modules System
local/egl-wayland 3:1.1.13-1
EGLStream-based Wayland external platform
local/embree 4.3.3-1
Collection of high-performance ray tracing kernels
local/exfatprogs 1.2.4-1
exFAT filesystem userspace utilities for the Linux Kernel exfat driver
local/fuse2 2.9.9-5
Interface for userspace programs to export a filesystem to the Linux kernel
local/fuse3 3.16.2-1
Interface for userspace programs to export a filesystem to the Linux kernel
local/garuda-nvidia-config 2:1.1.6-1
Meta configuration package for nvidia systems on Garuda Linux
local/gwe 0.15.9-1
A system utility for controlling NVIDIA GPUs
local/iptables-nft 1:1.8.10-2
Linux kernel packet control tool (using nft interface)
local/kernel-modules-hook 0.1.7-3
Keeps your system fully functional after a kernel upgrade
local/kmod 32-1
Linux kernel module management tools and library
local/lib32-libdrm 2.4.122-1
Userspace interface to kernel DRM services (32-bit)
local/lib32-nvidia-utils 555.58.02-1
NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 555.58.02-1
OpenCL implemention for NVIDIA (32-bit)
local/libdrm 2.4.122-1
Userspace interface to kernel DRM services
local/libnetfilter_conntrack 1.0.9-2
Library providing an API to the in-kernel connection tracking state table
local/libnfnetlink 1.0.2-2
Low-level library for netfilter related kernel/userspace communication
local/libsysprof-capture 46.0-4
Kernel based performance profiler - capture library
local/libvdpau 1.5-3
Nvidia VDPAU library
local/libxnvctrl 555.58.02-1
NVIDIA NV-CONTROL X extension
local/linux-api-headers 6.10-1
Kernel headers sanitized for use in userspace
local/linux-lts 6.6.42-1
The LTS Linux kernel and modules
local/linux-lts-headers 6.6.42-1
Headers and scripts for building modules for the LTS Linux kernel
local/linux-zen 6.10.2.zen1-1
The Linux ZEN kernel and modules
local/linux-zen-headers 6.10.2.zen1-1
Headers and scripts for building modules for the Linux ZEN kernel
local/mhwd-nvidia 555.58.02.1-1
NVIDIA pci id list for MHWD
local/mhwd-nvidia-390xx 390.143-1
mhwd-nvidia-390xx PCI ID database
local/mhwd-nvidia-470xx 470.94-1
mhwd-nvidia-470xx PCI ID database
local/mtdev 1.1.7-1
A stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol
local/nvidia-dkms 555.58.02-1
NVIDIA drivers - module sources
local/nvidia-settings 555.58.02-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 555.58.02-1
NVIDIA drivers utilities
local/opencl-nvidia 555.58.02-1
OpenCL implemention for NVIDIA
local/quota-tools 1:4.09-2
Tools to manage kernel-level quotas in Linux
local/texlive-latex 2024.2-2 (texlive)
TeX Live - LaTeX fundamental packages

tried:

pacman -Syu nvidia
nvidia-555.58.02-10 and nvidia-dkms-555.58.02-1 are in conflict (NVIDIA-MODULE). Remove nvidia-dkms? [j/N]

of course, I didn’t do it, but I am surprised that nvidia is 02-10 and nvidia-dkms is 02-1

also the downgrade did not work. due to dependencies.

i had problems with my 4080 waking up and this solved my trouble, it may yours also.

See how you go.

#commands to fix suspending computer
sudo micro /etc/modprobe.d/nvidia-preserve-video-memory.conf
#paste
options nvidia NVreg_PreserveVideoMemoryAllocations=1
#press Ctrl s and then Ctrl q
#activate services.
sudo systemctl enable nvidia-suspend.service
sudo systemctl enable nvidia-hibernate.service
sudo systemctl enable nvidia-resume.service
#reboot.

Another issue maybe that you need to downgrade, or upgrade your Nvidia drivers, to get it to work properly. i do this by installing the nvidia all drivers, which gives you a choice what driver version to install, also proprietary, or open source. i use proprietary for best results, but that may vary for you.

git clone https://github.com/Frogging-Family/nvidia-all.git
cd nvidia-all
makepkg -si
(sudo pacman -S mkinitcpio)
sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg
reboot
3 Likes

Very good notes! Except this should be left out of it:

We use dracut instead of mkinitcpio for some time now. If you were to switch back to mkinitcpio, you would need to configure /etc/mkinitcpio with needed modules and hooks–it is not “ready” out of the box. Also all dracut packages should be removed so there are not competing image generation methods.

Better to keep dracut installed, and regenerate the initramfs like this:

sudo dracut-rebuild
5 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

Thank you for re-opening this topic, I was on holiday :slight_smile:

Okay, thank you , now I have tried the steps of Jeshu (which sounds like a Zen practitioner to me) and although I do not understand the exact meaning of those, I figure, that now I have installed a list of nvidia drivers:

==> WARNUNG: Please make sure you have the corresponding kernel headers package installed for each kernel on y
our system !


> Which driver version do you want?
1.Vulkan dev: 550.40.67
2.560 series: 560.35.03
3.555 series: 555.58.02
4.550 series: 550.107.02
5.470 series: 470.256.02
6.Older series
7.Custom version (396.xx series or higher)
choice[1-7?]: 3
Build the dkms package or the regular one?
> 1.dkms (recommended)
2.regular
choice[1-2?]: 1
-> Checking open driver availability...
-> - Open source kernel modules available -
==> WARNUNG: IT ONLY OFFERS SUPPORT FOR TURING AND NEWER, AND DOESN'T OFFER ALL THE FEATURES OF THE PROPRIETAR
Y ONE.
==> WARNUNG: SLI, G-Sync on notebooks and virtual GPU support are notably missing.
Do you want to use it instead of the proprietary one?
> N/y :
-> Building driver version 555.58.02 on branch regular.
-> Selected driver integrity check behavior (md5sum or SKIP): f6efa3d40fccc97fbac9b55fc81e30d7
...
-> exit cleanup done
:: nvidia-dkms-tkg-555.58.02-257 and nvidia-dkms-555.58.02-1 are in conflict (nvidia). Remove nvidia-dkms? [j/
N] N
:: nvidia-dkms-tkg-555.58.02-257 and nvidia-dkms-555.58.02-1 are in conflict
==> WARNUNG: Konnte die erstellten Pakete nicht installieren.
-> exit cleanup done

i answered precisely the other way around, both times, and solved the issue of the old dkms being in conflict. Did you try doing that?

so pick propriety drivers (n)
and delete the old dkms drivers (y)

Unless you do not want the propriety drivers of course, but then you can still delete the old drivers it seems to me.

See how you go

1 Like

Thank you for replying, I had indeed used the proprietary driver but there was this conflict, so I didn’t follow through, nevertheless did my system for the first time accept both monitors (only in tty mode),
I did now pick the latest from nvidia.com recommended proprietary Driver 550.107.02
Now there was conflict between 6 packages (560.35.03) vs. 550.107.02
since I have to do it in tty, I cannot just make a screengrab, it does that:

>Paket (14)                Alte Version     Neue Version
egl-wayland                4:1.1.16-1
lib32-nvidia-utils         560.35.03-1
lib32-opencl-nvidia        560.35.03-1
nvidia-dkms                560.35.03-2
nvidia-setting             560.35.03-1
nvidia-utils               560.35.03-2
opencl-nvidia              560.35.03-2
`lib32-nvidia-utils-tkg                     550.107.02-257
lib32-nvidia-utils-tkg                      550.107.02-257
lib32-opencl-nvidia-t                       550.107.02-257
nvidia-dkms-tkg                             550.107.02-257
nvidia-egl-wayland-tkg                      550.107.02-257
nvidia-settings-tkg                         550.107.02-257
nvidia-utils-tkg                            550.107.02-257
opencl-nvidia-tkg                           550.107.02-257

There was one ERROR:

(13/16) Update Nvidia modules in initcpio
.
dracut [F] Can't write to /boot/efi/26f......./6.10.8-zen1-1-zen: Directory /boot/efi/26f.../6.10.8-zen1-1-zen does not exist or is not accessible 
.
.
dracut [F] Can't write to /boot/efi/26f......./6.6.49-1-lts: Directory /boot/efi/26f.../6.6.49-1-lts does not exist or is not accessible 

Nevertheless I did
sudo dracut-rebuild which went through without error for both linux-zen and linux-lts.

I will try a reboot.

Thank you very much, @SGS @Jeshu @BluishHumility : I have now a working setup with two screens working.
I marked Jeshu’s post as the solution, but think, that the whole community of Garuda Linux earns credits.
It just took me two months to arrive at that point.
I owe you all a good cup of coffee or tea, if you are around Frankurt / Germany, let me know.
You made my day! I was just about to try booting another iso because I was so frustrated and hope that it now keeps working.

2 Likes

Rather than posting “Thank you”, “+1” or “Agreed”, use the like button :heart: .
:slight_smile:

From
https://forum.garudalinux.org/faq

2 Likes