59
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 12 Mar 2024
59 points (95.4% liked)
Linux
48224 readers
635 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
amdgpu
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.I 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.
Yeah, 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.
Hmm I have AMD but I'm getting
No such file or directory
Which part of the path does not exist?
Is it the correct GPU number?