You are not logged in.

#1 2025-02-08 18:22:13

Ride Garcher
Member
Registered: 2023-09-30
Posts: 48

[Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

Hello, I’ve been facing an issue where my screen goes black after playing a game for a while while using the DWM window manager on Arch Linux. The screen sometimes comes back by disconnecting and reconnecting the cable, but other times it won’t come back on unless I exit the game using the Alt+D shortcut in DWM. Interestingly, this problem does not occur when I switch to KDE, where the screen works fine without issues.
System Information:

    Arch Linux
    DWM window manager / KDE
    NVIDIA GPU with both open and closed-source drivers tested:
        Open-source nvidia dkms
        Closed-source nvidia driver
    Xorg setup (DWM)
    Wayland (KDE)

Problem Behavior:

    The screen goes black after playing a game for a while.
    It sometimes comes back when I disconnect and reconnect the cable.
    It doesn’t always come back, but it does when I press Alt+D to exit the game in DWM.
    The issue does not happen in KDE, indicating that it might be specific to DWM.

Things I’ve Tried:

    Switched between open-source and closed-source NVIDIA drivers (same issue with both).
    Switched to KDE (This works, but obviously i'd like to continue using dwm)

Log Snippets:

Here’s part of the log around the time the issue happens:

Feb 08 17:27:07 Richard plasmashell[4426]: QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Feb 08 17:27:07 Richard org_kde_powerdevil[4466]: busno=5, sleep-multiplier =  2.00. Testing for supported feature 0x10 returned Error_Info[DDCRC_RETRIES in ddc_write_read_with_retry, causes: DDCRC_DDC_DATA(10)]
Feb 08 17:27:07 Richard backlighthelper[4595]: org.kde.powerdevil: no kernel backlight interface found
Feb 08 17:27:07 Richard org_kde_powerdevil[4466]: org.kde.powerdevil.backlighthelper.brightness failed

What I’ve Considered:

    The issue might be related to power management or backlight control settings in DWM or Xorg.
    The NVIDIA driver settings might be causing instability.
    The difference between KDE and DWM might explain why the problem only occurs in DWM.

Questions:

    Has anyone encountered a similar issue with DWM and NVIDIA drivers?
    Are there any specific settings or configurations I should check for DWM/Xorg/NVIDIA to prevent this screen issue?
    Any ideas on debugging this further or any suggestions on potential fixes?

I appreciate any help or insights!

Last edited by Ride Garcher (2025-02-08 18:26:41)


Jr. Web developer

Offline

#2 2025-02-09 08:35:21

seth
Member
Registered: 2012-09-03
Posts: 61,477

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

Do you run a compositor along DWM? (picom)

The screen goes black after playing a game for a while.

Black like "black" or
* do you still have a mouse pointer?
* does the output indicate there's no signal?
* does the output enter a sleep state?

It doesn’t always come back, but it does when I press Alt+D to exit the game in DWM.

What if you alt+tab (or whatever shortcut you've configured) to switch to a different window?

Offline

#3 2025-02-09 11:04:36

Ride Garcher
Member
Registered: 2023-09-30
Posts: 48

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

No i don't use any compositor.

Black like no pointer and the monitor turns off.

still ain't tried to switch window.


Jr. Web developer

Offline

#4 2025-02-09 14:05:29

seth
Member
Registered: 2012-09-03
Posts: 61,477

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

    Xorg setup (DWM)
    Wayland (KDE)

What about KDE on X11?
Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Does the game use a native wayland output or xwayland?

Offline

#5 2025-02-19 19:55:23

Ride Garcher
Member
Registered: 2023-09-30
Posts: 48

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

I am going to go do a game session using xorg shortly and will let you know if the problem occurs.

Xorg log:

    9.000] (II) event4  - CM Storm Quickfire Pro Ultimate 6 key Consumer Control: is tagged by udev as: Keyboard
[     9.000] (II) event4  - CM Storm Quickfire Pro Ultimate 6 key Consumer Control: device is a keyboard
[     9.000] (II) event4  - CM Storm Quickfire Pro Ultimate 6 key Consumer Control: device removed
[     9.026] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-5/2-5:1.1/0003:2516:0015.0002/input/input4/event4"
[     9.026] (II) XINPUT: Adding extended input device "CM Storm Quickfire Pro Ultimate 6 key Consumer Control" (type: KEYBOARD, id 11)
[     9.026] (II) event4  - CM Storm Quickfire Pro Ultimate 6 key Consumer Control: is tagged by udev as: Keyboard
[     9.027] (II) event4  - CM Storm Quickfire Pro Ultimate 6 key Consumer Control: device is a keyboard
[     9.027] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event11)
[     9.027] (II) No input driver specified, ignoring this device.
[     9.027] (II) This device may have been added with another device file.
[     9.027] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event12)
[     9.027] (II) No input driver specified, ignoring this device.
[     9.027] (II) This device may have been added with another device file.
[     9.027] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event13)
[     9.027] (II) No input driver specified, ignoring this device.
[     9.027] (II) This device may have been added with another device file.
[     9.028] (II) config/udev: Adding input device HDA Intel PCH Line Out Front (/dev/input/event14)
[     9.028] (II) No input driver specified, ignoring this device.
[     9.028] (II) This device may have been added with another device file.
[     9.028] (II) config/udev: Adding input device HDA Intel PCH Line Out Surround (/dev/input/event15)
[     9.028] (II) No input driver specified, ignoring this device.
[     9.028] (II) This device may have been added with another device file.
[     9.028] (II) config/udev: Adding input device HDA Intel PCH Line Out CLFE (/dev/input/event16)
[     9.028] (II) No input driver specified, ignoring this device.
[     9.028] (II) This device may have been added with another device file.
[     9.028] (II) config/udev: Adding input device HDA Intel PCH Line Out Side (/dev/input/event17)
[     9.028] (II) No input driver specified, ignoring this device.
[     9.028] (II) This device may have been added with another device file.
[     9.029] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event18)
[     9.029] (II) No input driver specified, ignoring this device.
[     9.029] (II) This device may have been added with another device file.
[     9.029] (II) config/udev: Adding input device PC Speaker (/dev/input/event6)
[     9.029] (II) No input driver specified, ignoring this device.
[     9.029] (II) This device may have been added with another device file.
[    24.909] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    24.909] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    24.909] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[    24.909] (--) NVIDIA(GPU-0): 
[    24.910] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    24.910] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    24.910] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    24.910] (--) NVIDIA(GPU-0): 
[    24.955] (--) NVIDIA(GPU-0): Samsung C27F390 (DFP-2): connected
[    24.955] (--) NVIDIA(GPU-0): Samsung C27F390 (DFP-2): Internal TMDS
[    24.955] (--) NVIDIA(GPU-0): Samsung C27F390 (DFP-2): 600.0 MHz maximum pixel clock
[    24.955] (--) NVIDIA(GPU-0): 
[    24.955] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    24.955] (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
[    24.955] (--) NVIDIA(GPU-0): DFP-3: 2660.0 MHz maximum pixel clock
[    24.955] (--) NVIDIA(GPU-0): 
[    24.955] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    24.955] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[    24.955] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[    24.955] (--) NVIDIA(GPU-0): 
[    24.955] (--) NVIDIA(GPU-0): DFP-5: disconnected
[    24.955] (--) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[    24.955] (--) NVIDIA(GPU-0): DFP-5: 2660.0 MHz maximum pixel clock
[    24.955] (--) NVIDIA(GPU-0): 
[    24.956] (--) NVIDIA(GPU-0): DFP-6: disconnected
[    24.956] (--) NVIDIA(GPU-0): DFP-6: Internal TMDS
[    24.956] (--) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[    24.956] (--) NVIDIA(GPU-0): 
[    24.956] (--) NVIDIA(GPU-0): DFP-7: disconnected
[    24.956] (--) NVIDIA(GPU-0): DFP-7: Internal DisplayPort
[    24.956] (--) NVIDIA(GPU-0): DFP-7: 2660.0 MHz maximum pixel clock
[    24.956] (--) NVIDIA(GPU-0): 
[    24.986] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    24.986] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    24.986] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[    24.986] (--) NVIDIA(GPU-0): 
[    24.986] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    24.986] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    24.986] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    24.986] (--) NVIDIA(GPU-0): 
[    25.032] (--) NVIDIA(GPU-0): Samsung C27F390 (DFP-2): connected
[    25.032] (--) NVIDIA(GPU-0): Samsung C27F390 (DFP-2): Internal TMDS
[    25.032] (--) NVIDIA(GPU-0): Samsung C27F390 (DFP-2): 600.0 MHz maximum pixel clock
[    25.032] (--) NVIDIA(GPU-0): 
[    25.032] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    25.032] (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
[    25.032] (--) NVIDIA(GPU-0): DFP-3: 2660.0 MHz maximum pixel clock
[    25.032] (--) NVIDIA(GPU-0): 
[    25.032] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    25.032] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[    25.032] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[    25.032] (--) NVIDIA(GPU-0): 
[    25.032] (--) NVIDIA(GPU-0): DFP-5: disconnected
[    25.032] (--) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[    25.032] (--) NVIDIA(GPU-0): DFP-5: 2660.0 MHz maximum pixel clock
[    25.032] (--) NVIDIA(GPU-0): 
[    25.032] (--) NVIDIA(GPU-0): DFP-6: disconnected
[    25.032] (--) NVIDIA(GPU-0): DFP-6: Internal TMDS
[    25.032] (--) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[    25.032] (--) NVIDIA(GPU-0): 
[    25.032] (--) NVIDIA(GPU-0): DFP-7: disconnected
[    25.032] (--) NVIDIA(GPU-0): DFP-7: Internal DisplayPort
[    25.032] (--) NVIDIA(GPU-0): DFP-7: 2660.0 MHz maximum pixel clock
[    25.032] (--) NVIDIA(GPU-0): 
[    25.062] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080_72 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[richard@Richard ~]$ 

EDIT:
I just finished 2 hunting sessions. one on monster hunter rise and one on monster hunter world.
I did not experience any video problems. of course I was on KDE xorg session.

Last edited by Ride Garcher (2025-02-19 20:35:39)


Jr. Web developer

Offline

#6 2025-02-20 11:25:38

d.ALT
Member
Registered: 2019-05-10
Posts: 953

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

Ride Garcher wrote:

the monitor turns off.

Concurrences? > https://bbs.archlinux.org/viewtopic.php?id=303525


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#7 2025-02-20 13:31:20

seth
Member
Registered: 2012-09-03
Posts: 61,477

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

xset -q

Do you use a gamepad/joystick and what about mouse+wasd games for realmen™?

Offline

#8 Yesterday 19:39:35

Ride Garcher
Member
Registered: 2023-09-30
Posts: 48

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  built-ins
DPMS (Display Power Management Signaling):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Enabled
  Monitor is On

@Seth it depends on the game, currently i am playing monster hunter using an xbox one controller.

@d.ALT I read the other thread. I have an ssd with Arch which is my primary system, and another ssd with windows 10, which I no longer use. Do you think that could be the cause?

Last edited by Ride Garcher (Yesterday 19:45:30)


Jr. Web developer

Offline

#9 Yesterday 21:37:42

seth
Member
Registered: 2012-09-03
Posts: 61,477

Re: [Issue] Screen goes black while gaming in DWM (NVIDIA drivers)

Offline

Board footer

Powered by FluxBB