ASUS Laptop Screen Energy Saving keeps waking up

Hi Folks,
I have an ASUS Zephyrus

Blockquote
G513RW75x75 G513RW

  • NVIDIA GeForce RTX 3070 Ti 8GB GDDR6 with ROG Boost up to 1460MHz at 150W (125W+25W with Dynamic Boost)
  • Latest 6th Gen AMD Ryzen 9 6900HX Processor
  • 165Hz 3ms 15.6” WQHD (2560 x 1440) IPS-Type Display
  • 16GB DDR5 4800MHz RAM 1TB PCIe SSD Windows 11 Pro
  • ROG Intelligent Cooling thermal system with Thermal Grizzly Liquid Metal Thermal Compound
  • Wi-Fi 6E & Blueto

Blockquote
I am running Tumbleweed (dual boot) and KDE, with prime_select set to NVIDIA.
I have the Screen Energy Saving switch set to switch off the screens, which it does, but then a few seconds later it lights up again.
Any advice?
Cheers,
Brad

@bcain Hi, I’m assuming the amdgpu is still being loaded, (even though using Nvidia), I would suggest adding amdgpu.dc=0 to your kernel boot options and see if that helps.

@malcolmlewis I tried disabling the amdgpu as you suggested, but that did not seem to help with the screen power saving.
Disabling the amdgpu did result in the laptop display being unavailable, but left my external monitors fully functional, so it did have some effect.

Are two HDMI outputs connected to different GPUs?

@bcain interesting, sounds like your not using both gpus then…

xrandr --listproviders
xrandr --listmonitors
glxinfo | grep "OpenGL renderer"

@arvidjaar I don’t believe that they are connected to diff GPUs…they are both connected through a USB-C splitter and config’d as extended screens with the laptop monitor.

@malcolmlewis
I’ve reverted back to my original setup without disabling the amdgpu and here is the output. I will post the output with the amdgpu disabled in a moment…

Output from xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x1b7; cap: 0x1 (Source Output); crtcs: 4; outputs: 6; associated providers: 1; name: NVIDIA-0
    output DP-0.8
    output DP-0.9
    output DP-0
    output DP-1
    output DP-2
    output HDMI-0
Provider 1: id: 0x204; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 6; associated providers: 1; name: modesetting
    output eDP-1-1
    output DP-1-1
    output DP-1-2
    output DP-1-3
    output DP-1-4
    output DP-1-5

Output from xrandr --listmonitors

Monitors: 3
 0: +*eDP-1-1 1920/344x1080/193+0+0  eDP-1-1
 1: +DP-0.8 1920/510x1080/287+1920+0  DP-0.8
 2: +DP-0.9 1920/510x1080/287+3840+0  DP-0.9

Output from glxinfo | grep “OpenGL renderer”

string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2

With the amdgpu disabled, there is the output you asked for:

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x1b7; cap: 0x1 (Source Output); crtcs: 4; outputs: 6; associated providers: 0; name: NVIDIA-0
    output DP-0.8
    output DP-0.9
    output DP-0
    output DP-1
    output DP-2
    output HDMI-0
Provider 1: id: 0x1fa; cap: 0x0 (); crtcs: 0; outputs: 0; associated providers: 0; name: modesetting

xrandr --listmonitors

 0: +*DP-0.8 1920/510x1080/287+0+0  DP-0.8
 1: +DP-0.9 1920/510x1080/287+1920+0  DP-0.9

glxinfo | grep “OpenGL renderer”

string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2

As noted, the eDP laptop display is not on the list, which I assume should be running off of Provider 1?
Oh, and is there a tool for pasting longish text in a code window for this new forum interface? I couldn’t find an etiquette guide.
Cheers

@bcain can you show the output from;

cat /proc/cmdline
fgrep nouveau /etc/modprobe.d/*

Also see Regressions AMD+nvdia Multi Monitor buggy

~> cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.2.6-1-default root=UUID=719f45f5-953f-4ffa-8ce0-6fb60c637af3 splash=nosilent resume=/dev/disk/by-uuid/fa178602-e3fb-44ce-8484-2bb62934065f noquiet security=apparmor nosimplefb=1 amdgpu.dc=0 mitigations=auto

~> fgrep nouveau /etc/modprobe.d/*
/etc/modprobe.d/50-blacklist.con:blacklist nouveau

I will check out the buggy link in a moment

I suspect that qwert.zuiop has a diff prob to mine.
The symptoms sound diff; I don’t have to “deactivate/reactivate” my screens at all and my mouse is fine except with the cat
he’s not using the amdgpu.dc=0 boot option, which is similar to my original setup

@bcain can you change nosimplefb=1 to nvidia_drm.modeset=1 and remove amdgpu.dc=0 and see if that helps.

That change does leave all three screens running, but it doesn’t change the screen power savings behaviour…the screens go dark, then back on within a couple of seconds

@bcain I suspect it’s related to the (now 4 years old) AMD bug…https://gitlab.freedesktop.org/drm/amd/-/issues/662

One of the reasons I dumped my RX550 (Desktop) and switched to all nvidia.

So if you only run the AMD, your external monitors don’t run?

That is correct; I couldn’t figure out how to make the amdgpu drive the external monitors, although it seems to work well enough on that other operating system…

@bcain The only thing I can suggest is researching the amdgpu options /sbin/modinfo amdgpu | grep parm: and seeing if one or more options work.

I do know that on my system with AMD primary and Nvidia as prime render offload that I had the set amdgpu.dc=0 for screen power saving to work on GNOME DE (lost hdmi sound as well).

You can see what the current parameters are set too via systool -vm amdgpu

I will tuck into it. I’m just going through the (long) discussion on HDMI connected monitors fail to sleep and instead turn back on when amdgpu.dc=1 (#662) · Issues · drm / amd · GitLab
Thanks for your help.
Cheers!

may be it can be related to this post:

Hi pier_andreit, I had run across that page also. I’ve tried some of the suggestions that seemed relevant, but there was no effect.
Thanks! I’ll keep looking…

I had a similar issue with the screen going on and off unexpectedly. I resolved it in Power Management in System Settings. There was some kind of conflict with monitor blanking and/or sleeping. I turned off power saving and the problem disappeared. If you want to keep using a power saving setting, look to tweak the settings there until you get what you want. It may also be related to sleep mode.

Hi Folks,
I should have done some troubleshooting and reported this before, but…sorry.
I disconnected all peripherals and the laptop screen powered down as expected.
I have 2 external monitors: Samsung, E2320, connected from the display DVI port through a KVM switch into a USB-C port splitter adapter. I think it is the KVM switch that is waking up the system when it powers down the displays as I’ve disconnected the monitors from the KVM and the symptoms persist.
Soooo, now I just have to figure out how to stop the KVM switch from triggering the system.
Cheers all.