You are not logged in.

#1 2023-02-22 21:50:38

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Display randomly freezes and 2nd monitor goes unresponsive

My booth screens often freeze for few seconds since the last upgrade and I don't know why. My 2nd external screen also completely freezes until I restart it with xrandr, but if I change its brightness or gamma with xrandr it changes, only the rendering stops.
The freezing is more intense when I'm playing 3D games and even more with one wine app that uses Vulkan.

WM: i3
compositor: picom
GPUs:
NVIDIA GeForce GTX 1650 Mobile / Max-Q
Intel CoffeeLake-H GT2 [UHD Graphics 630]

Also this is what I found in dmesg https://pastebin.com/nNe2Y6fn it doesn't seem right.
I noticed that my Intel GPU usage drops to 0 when it freezes.

Last edited by Wolfyxon (Today 16:10:34)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#2 2023-02-22 22:38:23

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

if I change its brightness or gamma with xrandr it changes, only the rendering stops.

compositor: picom

Next time it freezes, kill picom and see whether that "unfreezes" the output.

Other than that please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Offline

#3 2023-02-23 07:14:40

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

if I change its brightness or gamma with xrandr it changes, only the rendering stops.

compositor: picom

Next time it freezes, kill picom and see whether that "unfreezes" the output.

Other than that please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

I tried already, picom isn't causing it.
Here's my xorg log https://pastebin.com/UNeTR2yM (Asus is my external monitor)

Last edited by Wolfyxon (2023-02-23 07:20:25)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#4 2023-02-23 07:24:18

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

I think this might be an issue with my GPU drivers but not sure


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#5 2023-02-23 08:11:13

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

[     6.111] (==) Using config file: "/etc/X11/xorg.conf"

Get rid of that file, it's nvidia-settings generated pointless cruft.

It's a hybrid system, the ASUS VY279 is attached to the nvidia GPU, so you're at https://wiki.archlinux.org/title/PRIME#Reverse_PRIME and that is what you want the config file to look like.
Enable https://wiki.archlinux.org/title/NVIDIA … de_setting in doubt make sure to DISable https://wiki.archlinux.org/title/PRIME# … ronization and if the issues remain, post an updated xorg log and the entire system journal

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#6 2023-02-23 08:12:42

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

until I restart it with xrandr

This also works if I change the mode.  For now I made a script that changes the mode to lower then goes back.

#!/bin/bash
pkill -f polybar
xrandr --output HDMI-1-0 --mode 1680x1050 
sleep 2
xrandr --output HDMI-1-0 --auto --left-of eDP-1
~/.local/bin/polybar & disown

Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#7 2023-02-23 08:15:30

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:
[     6.111] (==) Using config file: "/etc/X11/xorg.conf"

Get rid of that file, it's nvidia-settings generated pointless cruft.

It's a hybrid system, the ASUS VY279 is attached to the nvidia GPU, so you're at https://wiki.archlinux.org/title/PRIME#Reverse_PRIME and that is what you want the config file to look like.
Enable https://wiki.archlinux.org/title/NVIDIA … de_setting in doubt make sure to DISable https://wiki.archlinux.org/title/PRIME# … ronization and if the issues remain, post an updated xorg log and the entire system journal

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Thanks, I'll let you know if anything changes.

Last edited by Wolfyxon (2023-02-23 08:19:36)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#8 2023-02-23 08:35:53

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

Still nothing.
Journal: http://0x0.st/HsWM.txt
Xorg log: https://pastebin.com/p8yVGCGh

xorg config

Section "ServerLayout"
        Identifier "layout"
        Screen 0 "intel"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
EndSection

Section "Device"
        Identifier "intel"
        Driver "modesetting"
        BusID "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "intel"
        Device "intel"

Last edited by Wolfyxon (2023-02-23 08:41:45)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#9 2023-02-23 09:13:20

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

nvidia_drm.modset=1

"modeset"
Ftr, that's not a valid xorg config (misses EndSection, but probably a cnp error when posting)

~/.local/bin/polybar & disown

Why are you restarting polybar around that?
You'll proabably also get away w/ only juggling the refresh rate?

When the output is "frozen", does that extend to the cursor as well?
(Ie. how exactly do you determine the frozen-ness, given the gamma changes are still applied?)

Offline

#10 2023-02-23 14:29:55

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:
nvidia_drm.modset=1

"modeset"
Ftr, that's not a valid xorg config (misses EndSection, but probably a cnp error when posting)

~/.local/bin/polybar & disown

Why are you restarting polybar around that?
You'll proabably also get away w/ only juggling the refresh rate?

When the output is "frozen", does that extend to the cursor as well?
(Ie. how exactly do you determine the frozen-ness, given the gamma changes are still applied?)

I set the flag and Xorg was unable to start. I tried running it manually but it also didn't work.
Log: https://pastebin.com/jRu57jbi (oh I've just fully read it and I see that I just had to run it as root, but it should start automatically anyway)
It started after I reverted the parameter.

When the output is "frozen", does that extend to the cursor as well?

Yes. It becomes completely frozen.

Why are you restarting polybar around that?

So it shows up again on my external monitor, that's a script that runs polybars for each monitor.

Last edited by Wolfyxon (2023-02-23 14:36:11)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#11 2023-02-23 14:41:31

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

[   159.588] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

Post your xinitrc and see the last link below, in doubt ensure to re-use the TTY w/ the xserverrc.

Offline

#12 2023-02-23 14:49:38

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:
[   159.588] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

Post your xinitrc and see the last link below, in doubt ensure to re-use the TTY w/ the xserverrc.

Uh seems like I don't even have it


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#13 2023-02-23 14:59:29

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

You don't have what?
How do you start the session? startx/xinit? Some DM?

Offline

#14 2023-02-23 15:07:20

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

You don't have what?
How do you start the session? startx/xinit? Some DM?

Via lightdm


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#15 2023-02-23 15:11:00

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

https://wiki.archlinux.org/title/LightD … TTY_output
But lightdm won't log X11 into your $HOME …

loginctl session-status
ps fax

Offline

#16 2023-02-23 15:11:49

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

Might be related to https://bbs.archlinux.org/viewtopic.php?id=282669
I also see the same errors in journalctl.
(The kernel mentioned here is newer than the one I had before upgrading, I forgot to do so for few months)

Last edited by Wolfyxon (2023-02-23 15:13:21)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#17 2023-02-23 15:26:37

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

https://wiki.archlinux.org/title/LightD … TTY_output
But lightdm won't log X11 into your $HOME …

loginctl session-status
ps fax

ps fax:

    617 ?        SLsl   0:00 /usr/bin/lightdm
 264931 tty7     Ssl+   4:24  \_ /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 265329 ?        Sl     0:00  \_ lightdm --session-child 14 22
 276489 ?        Ss     0:01      \_ i3

I don't see Xorg in loginctl session-status


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#18 2023-02-23 15:35:26

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

"Idling display engine timed out" wasn't in the journal you posted, though?

I don't see Xorg in loginctl session-status

That'd be normal for lightdm, but then /home/wolfyxon/.local/share/xorg/Xorg.0.log becomes irrelevant.

Offline

#19 2023-02-23 15:39:55

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

"Idling display engine timed out" wasn't in the journal you posted, though?

It is

Feb 23 15:39:03 WolfArch kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000c57e:0:0:1128
Feb 23 15:39:08 WolfArch kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000c57e:0:0:1128
Feb 23 15:39:20 WolfArch kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000c57e:0:0:1128
Feb 23 15:39:22 WolfArch kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000c57e:0:0:1128

Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#20 2023-02-23 15:52:06

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

I was talking about the one you posted:
https://0x0.st/HsWM.txt

The error is probably linked to the modeset=1 parameter.
But yeah, looks the same.

Since https://wiki.archlinux.org/title/PRIME# … ronization depends on modeset=1 and keeps flaring up, I'd look into that direction.

Offline

#21 2023-02-23 16:03:55

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

I was talking about the one you posted:

That's weird. It seems to have appeared.

Hmm I added intel_idle.max_cstate=1 to my kernel params and now it's not freezing randomly (even with that one app I was talking about) and my 2nd monitor is fine. It only freezes when there's a heavy task being processed (hopefully this is normal but it's rare).
I'll do some deeper testing to make sure it's fixed.

Last edited by Wolfyxon (2023-02-23 16:09:09)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#22 2023-02-23 17:07:52

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

This seems to be fixed now. Thanks for your time.

For those who found this post:
TESTING: So basically first I pressed E when hovering on "Arch Linux" in grub to enter the edit mode, then to the "linux" line I added intel_idle.max_cstate=1 to test the parameter.
APPLYING: It worked so I edited /etc/default/grub and added intel_idle.max_cstate=1 to GRUB_CMDLINE_LINUX_DEFAULT and ran sudo grub-mkconfig -o /boot/grub/grub.cfg to apply it.


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#23 2023-02-23 18:04:36

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

Wolfyxon wrote:

This seems to be fixed now. Thanks for your time.

For those who found this post:
TESTING: So basically first I pressed E when hovering on "Arch Linux" in grub to enter the edit mode, then to the "linux" line I added intel_idle.max_cstate=1 to test the parameter.
APPLYING: It worked so I edited /etc/default/grub and added intel_idle.max_cstate=1 to GRUB_CMDLINE_LINUX_DEFAULT and ran sudo grub-mkconfig -o /boot/grub/grub.cfg to apply it.

It just made the freezing much rarer. It sadly still happens.

Last edited by Wolfyxon (2023-02-23 18:06:15)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#24 2023-02-23 18:24:23

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

Since https://wiki.archlinux.org/title/PRIME# … ronization depends on modeset=1 and keeps flaring up, I'd look into that direction.

Offline

#25 2023-02-24 21:37:59

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 69
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

I tried everything you said with no effects neutral
Forgot to mention that the freeze also stops all input.


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

Board footer

Powered by FluxBB