I haven’t been able to find one. Using Zorin OS which is GNOME.
Atemu ( @Atemu@lemmy.ml ) 21•1 year agoamdgpu
has a recovery mechanism built in that can be triggered usingsudo cat /sys/kernel/debug/dri/N/amdgpu_gpu_recover
where N is the number of the DRI device in question. You could bind a shortcut to doing that I presume.Hmm I have AMD but I’m getting
No such file or directory
Atemu ( @Atemu@lemmy.ml ) 3•1 year agoWhich part of the path does not exist?
Is it the correct GPU number?
ExtremeDullard ( @ExtremeDullard@lemmy.sdf.org ) 1•1 year agoI have an AMDGPU machine - a hateful HP laptop with a Vega 6 chipset - and the display regularly goes garbled when I switch VTs. I too am looking for a way to “reset the graphics card”
and cat /sys/kernel/debug/dri/N/amdgpu_gpu_recover
ain’t it: it resets it alright, but after that you get a frozen image and X is dead.Maybe Wayland survives that but Xorg definitely doesn’t.
The only reliable graphics card reset solution I’ve every found was to close then reopen the laptop to force the machine to go to sleep, then wake up and go through the restart rigmarole cleanly. I wish there was a way to do that sleep-wakeup routing with a keyboard shortcut, but I haven’t found one.
I think the real solution is to buy a decent replacement laptop though.
Atemu ( @Atemu@lemmy.ml ) 1•1 year agoYeah, Xorg (and the apps) will likely die. There is a wayland protocol in the works to be able to gracefully handle driver resets but I’m not sure on its implementation status.
Possibly linux ( @possiblylinux127@lemmy.zip ) English12•1 year agoMaybe
sudo systemctl restart gdm
? That’s not quite the same as it restarts gnome display manager.When your computer freezes and you can’t get to a tty with Ctrl+alt+F4 then it likely encountered a kernel panic. A panic is not recoverable. In some senerios I’ve seen the amdgpu module run into a kernel oops which is recoverable. It doesn’t really effect the desktop other than a studder as the kernel reinitializes in the background.
If your system is freezing start by checking RAM and then try a different GPU. Its likely a hardware issue
Pantherina ( @Pantherina@feddit.de ) 9•1 year agoPlease explain why you need that in the post.
MangoPenguin ( @MangoPenguin@lemmy.blahaj.zone ) English8•1 year agoAverage linux help post, someone comes along saying “why do you need that” instead of being helpful lol
And you know if I had actually given an answer he would have just told me why his way of doing things is better.
ceiphas ( @ceiphas@feddit.de ) 8•1 year agoThere used to exist a hotkey CTRL-ALT-BKSP for restarting your current X-Session, don’t know if this still exists
The Doctor ( @drwho@beehaw.org ) English5•1 year agoIt’s turned off by default in a lot of distros these days but it can be turned back on. It used to be that editing /etc/X11/xorg.conf was recommended but because file inclusions are a thing these days, it makes more sense to create a new file /etc/X11/xorg.conf.d/enable-killing-xserver.conf:
Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" Identifier "Keyboard Defaults" MatchIsKeyboard "yes" Option "XkbOptions" "terminate:ctrl_alt_bksp" EndSection
Then restart the X server (which, these days, is pretty much a reboot). Or, going through the x.org documentation archives, it looks like you could dispense with the config files and run
setxkbmap -option "terminate:ctrl_alt_bksp"
in a terminal session and that’ll do the same thing. Possibly linux ( @possiblylinux127@lemmy.zip ) English2•1 year agoThat doesn’t work for Wayland and I’m unsure which one Zorin uses
It uses Wayland
ReversalHatchery ( @ReversalHatchery@beehaw.org ) 2•1 year agoThat is not an equivalent.
On Linux, if a graphical app does not crash from this, that is a rare exception.
On windows, if a graphical app crashes from that, that is an exception. HubertManne ( @HubertManne@kbin.social ) 1•1 year agoI was thinking of that when I read this and was like. windows has something like this???
delirious_owl ( @delirious_owl@discuss.online ) 6•1 year agoCtrl+alt+backspace
ChojinDSL ( @ChojinDSL@discuss.tchncs.de ) 3•1 year agoI think on some distros this is disabled by default. I have forgotten how you can re-enable it.