You are not logged in.

#1 2023-05-27 16:38:39

OsakiTsukiko
Member
Registered: 2023-05-06
Posts: 19

External Displays keep freezeing (nvidia mobile)

When I plug my external displays into my laptop GPU heavy apps, like Godot (vulkan) keep stunning, and sometimes the displays freeze and I must restart my laptop to use them.
Note that performance is bad only when displays are connected, everything works fine when using only the laptop monitor.

Laptop: ASUS TUF A15 (2022) FA507RC
Kernel: 6.1.29-1-lts
xorg, gnome and optimus prime set on default hybrid settings
CPU: AMD Ryzen 7 6800H with Radeon Graphics (16) @ 3.200GHz
GPU: NVIDIA GeForce RTX 3050 Mobile
GPU: AMD ATI Radeon 680M

I am not sure if this is a linux issue (i GPU issues across different arch based distros and even fedora) or if it's a GPU issue (as I haven't used the laptop with windows to know if it works fine) altho the laptop is quite new (~4m old) and I heard asus has a lot of compatibility issues on linux.

Last edited by OsakiTsukiko (2023-05-27 21:19:48)


- Thanks, Osaki.

Offline

#2 2023-05-27 16:40:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: External Displays keep freezeing (nvidia mobile)

Remove xf86-video-amdgpu if installed and check again

Offline

#3 2023-05-27 18:50:02

OsakiTsukiko
Member
Registered: 2023-05-06
Posts: 19

Re: External Displays keep freezeing (nvidia mobile)

> Remove xf86-video-amdgpu if installed and check again

xf86-video-amdgpu is not installed


- Thanks, Osaki.

Offline

#4 2023-05-27 18:57:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,681

Re: External Displays keep freezeing (nvidia mobile)

Please post your Xorg logwith the external output attached, https://wiki.archlinux.org/title/Xorg#General

Offline

#5 2023-05-27 21:18:45

OsakiTsukiko
Member
Registered: 2023-05-06
Posts: 19

Re: External Displays keep freezeing (nvidia mobile)

I'm not quite sure what I must send, so here's a bunch of them: 
/var/log/Xorg.0.log.old : https://pastebin.com/raw/rVgzERHH 
/var/log/Xorg.1.log.old : https://pastebin.com/raw/PA0uvYHv 
~/.local/share/xorg/Xorg.0.log.old : https://pastebin.com/raw/fjJXuh9B 
~/.local/share/xorg/Xorg.1.log.old : https://pastebin.com/raw/CagyaEVS

The page also states: "GDM users should check the systemd journal.", so here's the end of the journal before reboot: https://pastebin.com/raw/56TuWEcJ
(godot project selector launches using the radeon integrated GPU and then launches the editor with the dedicated nvidia GPU)

Last edited by OsakiTsukiko (2023-05-27 21:19:38)


- Thanks, Osaki.

Offline

#6 2023-05-27 21:23:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,681

Re: External Displays keep freezeing (nvidia mobile)

The xorg logs are 3 days old each.
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'f:1=<-' ix.io

Offline

#7 2023-05-27 23:52:59

OsakiTsukiko
Member
Registered: 2023-05-06
Posts: 19

Re: External Displays keep freezeing (nvidia mobile)

> sudo journalctl -b | curl -F 'f:1=<-' ix.io
http://ix.io/4wRz (the freeze hasn't occured yet since reboot)


- Thanks, Osaki.

Offline

#8 2023-05-28 05:57:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,681

Re: External Displays keep freezeing (nvidia mobile)

The configuration has changed

May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (==) ServerLayout "layout"
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (**) |-->Screen "integrated" (0)
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (**) |   |-->Monitor "<default monitor>"
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (**) |   |-->Device "integrated"
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (**) |   |-->GPUDevice "nvidia"
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (==) No monitor specified for screen "integrated".
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]:         Using a default monitor configuration.
May 27 23:40:17 yoru /usr/lib/gdm-x-session[738]: (**) |-->Inactive Device "nvidia"

you're now using optimus-manager and the general advice would to do not w/ your HW config (esp. if you're running in "hybrid" mode all the time anyway)

The next thing to point out would be that

May 27 23:40:42 yoru kernel: pcieport 0000:00:01.1: AER: Corrected error received: 0000:01:00.0
May 27 23:40:42 yoru kernel: nvidia 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
May 27 23:40:42 yoru kernel: nvidia 0000:01:00.0:   device [10de:25a2] error status/mask=00000040/0000a000
May 27 23:40:42 yoru kernel: nvidia 0000:01:00.0:    [ 6] BadTLP                
May 27 23:40:42 yoru kernel: pcieport 0000:00:01.1: PME: Spurious native interrupt!
May 27 23:40:42 yoru kernel: pcieport 0000:00:01.1: AER: Corrected error received: 0000:01:00.0
May 27 23:40:42 yoru kernel: nvidia 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
May 27 23:40:42 yoru kernel: nvidia 0000:01:00.0:   device [10de:25a2] error status/mask=00000040/0000a000
May 27 23:40:42 yoru kernel: nvidia 0000:01:00.0:    [ 6] BadTLP                

apparently there's a problem on the bus. (The device is your nvidia GPU)
It's been corrected, but the freeze also hasn't occurred yet.

Make sure the GPU has proper power supply (PCIe x16 slot, dedicated 6/8-pin power adapter, …) and make sure that it's seated properly.
Keep an eye open for more PCIe bus errors.

Offline

#9 2023-05-28 08:58:55

OsakiTsukiko
Member
Registered: 2023-05-06
Posts: 19

Re: External Displays keep freezeing (nvidia mobile)

> you're now using optimus-manager and the general advice would to do not w/ your HW config (esp. if you're running in "hybrid" mode all the time anyway) 
Vulkan wont work without it, it used to work just fine, but a day after installing arch it stopped working, no idea why, and i couldn't get it to work without installing optimus prime 
Also, when using the dedicated mode it runs worse (e.g. when playing Minecraft it barely gets to 50fps, this on a RTX3050, while on my PC with a GTX1650 i get around 250 fps, but this only seems to occur with Minecraft (opengl i think), vulkan apps seem to work fine)

> Make sure the GPU has proper power supply (PCIe x16 slot, dedicated 6/8-pin power adapter, …) and make sure that it's seated properly.
> Keep an eye open for more PCIe bus errors.
I'm on a laptop, so could it be an issue with the actual GPU? (i have never opened it up), It should still be in warranty so I could try getting it replaced if it's a hardware issue.


- Thanks, Osaki.

Offline

#10 2023-05-28 10:26:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,681

Re: External Displays keep freezeing (nvidia mobile)

i couldn't get it to work without installing optimus prime

"optimus-manager", optimus prime is who fights megatron wink

Is this when your freezing problems started?
In case and in general I'd suggest to remove optimus-mananger and address the actual vulkan situation - you might simply have to specify the ICD, https://wiki.archlinux.org/title/Vulkan … initialize

Is maybe vulkan what causes/caused those freezes?
https://wiki.archlinux.org/title/PRIME# … erse_PRIME

Offline

#11 2023-05-28 18:09:12

OsakiTsukiko
Member
Registered: 2023-05-06
Posts: 19

Re: External Displays keep freezeing (nvidia mobile)

> "optimus-manager", optimus prime is who fights megatron wink
yes yes :)) I keep forgetting the name

> Is this when your freezing problems started?
No, I had the freezing issue for a while now, and not only on arch. I jumped distros quite a bit trying to escape display issues. (Arch, Endeavor and even Fedora)
But it all got worse when i tried booting windows of an external ssd and installed a few drivers among which a nvidia driver but when i booted back into arch, my external displays were not working. I've reinstalled/changed my os a few times since. Last time i switched was last week (i was on endeavor at the time), i had not experienced the freezing yet on that install, but i tried a Nintendo switch emulator in which the game crashed and upon reboot, i experienced the freeze and stun quite often. I switched back to arch and everything was working fine until 9 in the morning (at 8 it was working perfectly) when the frequent stunning while using vulkan apps started, with no reboot/update in the meantime.

> Is maybe vulkan what causes/caused those freezes?
Not sure, I experienced the freeze also while using streaming/watching a stream in a discord call (which has some GPU acceleration stuff, but I don't think it's using vulkan)

> In case and in general I'd suggest to remove optimus-mananger and address the actual vulkan situation - you might simply have to specify the ICD, https://wiki.archlinux.org/title/Vulkan … initialize
I will try tinkering more with it after a bit, as I have a big exam coming up and I need my laptop working (even if partially). I have wasted quite a few weekends soo far reinstalling drivers and switching kernels instead of studying :))

Last edited by OsakiTsukiko (2023-05-28 18:09:29)


- Thanks, Osaki.

Offline

Board footer

Powered by FluxBB