[SOLVED] Restart Graphics Drivers with a Keyboard Shortcut?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
SpookyNoodle
Level 1
Level 1
Posts: 19
Joined: Sun Apr 11, 2021 4:35 pm

[SOLVED] Restart Graphics Drivers with a Keyboard Shortcut?

Post by SpookyNoodle »

Hi all!

My system is pretty old, I haven't had the funds to upgrade it or do a new build in a long time, and for a little over a year, I've been dealing with crashes: on Windows, whatever game or program I was running would freeze up, then the screen would go black, then my normal desktop environment would appear, except that whatever program I was previously running would be totally blank, and windows would greet me with a little dialog box saying "There was a graphics timeout, and we've restarted the graphics drivers." This whole process would take anywhere from 15 to 45 seconds, from the first freeze to when I had control again and could re-start the central effect program.

Now, after my switch to Mint, things are mostly running better, but that hasn't stopped the crashes, although, now they appear quite different. I get a freeze, and then various stages of frozen decay, before I'm greeted by a login screen. It takes the same amount of time, it's just that the results are different.

Now, I'm not asking you guys to solve this or anything, I know that the only real way to solve the problem is to get a new graphics card. I've already tried updating the drivers, rolling back the drivers, playing on minimal settings, and all of those options on both Windows and Mint. But I couldn't afford anything in November 2019, I certainly can't afford a new graphics card in the middle of the current micro chip shortage, so it's just an inconvenience I'm going to keep living with, unfortunately.

However, my question is this: is there a way to quickly restart the Mint graphics drivers (preferably in some way that I could set up and execute with a key bind)? When the system logs me out, it also closes all of the programs I had up previously, which is a bit more disruptive than the solution Windows was (purportedly) implementing to fix the freeze. If there isn't anything like that, then that's fine, I just thought I would ask.

EDIT: For those finding this in the future, there isn't a way to really do this in Mint.

Results of inxi:

Code: Select all

System:
  Kernel: 5.4.0-72-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASRock model: AB350 Pro4 serial: <filter> 
  UEFI: American Megatrends v: P5.00 date: 07/05/2018 
CPU:
  Topology: 6-Core model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen 
  rev: 1 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 76653 
  Speed: 1374 MHz min/max: 1550/3200 MHz boost: enabled Core speeds (MHz): 
  1: 1374 2: 1375 3: 1374 4: 1375 5: 1375 6: 1375 7: 1375 8: 1373 9: 1374 
  10: 1375 11: 1375 12: 1375 
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: PC Partner Limited driver: amdgpu v: kernel bus ID: 26:00.0 
  chip ID: 1002:67df 
  Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa tty: N/A 
  OpenGL: renderer: AMD Radeon RX 480 Graphics (POLARIS10 DRM 3.35.0 
  5.4.0-72-generic LLVM 11.0.1) 
  v: 4.6 Mesa 21.0.2 - kisak-mesa PPA direct render: Yes 
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  vendor: PC Partner Limited driver: snd_hda_intel v: kernel bus ID: 26:00.1 
  chip ID: 1002:aaf0 
  Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel 
  v: kernel bus ID: 28:00.3 chip ID: 1022:1457 
  Device-3: Blue Microphones Yeti Stereo Microphone type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-3:3 chip ID: b58e:9e84 
  serial: <filter> 
  Device-4: C-Media Audio Adapter (Unitek Y-247A) type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-7:3 chip ID: 0d8c:0014 
  Sound Server: ALSA v: k5.4.0-72-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASRock driver: r8169 v: kernel port: d000 bus ID: 25:00.0 
  chip ID: 10ec:8168 
  IF: enp37s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 6.60 TiB used: 634.64 GiB (9.4%) 
  ID-1: /dev/sda vendor: SanDisk model: SD8SBAT256G1122 size: 238.47 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 3000 scheme: GPT 
  ID-2: /dev/sdb type: USB vendor: Seagate model: Backup+ Hub BK 
  size: 3.64 TiB serial: <filter> rev: D781 scheme: GPT 
  ID-3: /dev/sdc vendor: Western Digital model: WD30EZRZ-00Z5HB0 
  size: 2.73 TiB speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> 
  rev: 0A80 scheme: GPT 
Partition:
  ID-1: / size: 216.77 GiB used: 12.03 GiB (5.6%) fs: ext4 dev: /dev/sda2 
  ID-2: /home size: 2.69 TiB used: 152.64 GiB (5.6%) fs: ext4 dev: /dev/sdc1 
  ID-3: swap-1 size: 17.14 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 28.5 C mobo: N/A gpu: amdgpu temp: 33 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 799 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
  1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/kisak-kisak-mesa-focal.list 
  1: deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-focal.list 
  1: deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://mirrors.xmission.com/linuxmint ulyssa main upstream import backport
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/slgobinath-gcalendar-focal.list 
  1: deb http://ppa.launchpad.net/slgobinath/gcalendar/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list 
  1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teams.list 
  1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list 
  1: deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main
Info:
  Processes: 323 Uptime: 4h 25m Memory: 15.63 GiB used: 2.31 GiB (14.8%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: zsh 
  v: 5.8 running in: terminator inxi: 3.0.38 
  
Results of xrandr:

Code: Select all

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x55
	Timestamp:  13405
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2 3 4 5
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	GAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	DEGAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	GAMMA_LUT: 0 
		range: (0, 65535)
	CTM: 0 
	DEGAMMA_LUT: 0 
		range: (0, 65535)
	TearFree: auto 
		supported: off, on, auto
	vrr_capable: 0 
		range: (0, 1)
	max bpc: 8 
		range: (8, 16)
	underscan vborder: 0 
		range: (0, 128)
	underscan hborder: 0 
		range: (0, 128)
	underscan: off 
		supported: off, on, auto
	scaling mode: None 
		supported: None, Full, Center, Full aspect
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 59 
		supported: 59
	non-desktop: 0 
		range: (0, 1)
DisplayPort-1 connected primary 1920x1080+0+0 (0x5c) normal (normal left inverted right x axis y axis) 531mm x 299mm
	Identifier: 0x56
	Timestamp:  13405
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      0 1 2 3 4 5
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID: 
		00ffffffffffff0004727204c3126064
		2e1a0104a5351e783b6435a5544f9e27
		125054b30c00d1c081c081009500b300
		81808140714f023a801871382d40582c
		4500132b2100001efc7e808870381240
		18203500132b2100001e000000fd0030
		92b4b421010a202020202020000000fc
		0041636572205846323430480a20016a
		020318f14b0102030411121305141f90
		2309070183010000866f80a070384040
		30203500132b2100001afe5b80a07038
		354030203500132b2100001a8c0ad08a
		20e02d10103e9600132b21000018011d
		007251d01e206e285500132b2100001e
		8c0ad090204031200c405500132b2100
		0018000000000000000000000000007a
	GAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	DEGAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	GAMMA_LUT: 0 
		range: (0, 65535)
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	DEGAMMA_LUT: 0 
		range: (0, 65535)
	TearFree: auto 
		supported: off, on, auto
	vrr_capable: 1 
		range: (0, 1)
	max bpc: 8 
		range: (8, 16)
	underscan vborder: 0 
		range: (0, 128)
	underscan hborder: 0 
		range: (0, 128)
	underscan: off 
		supported: off, on, auto
	scaling mode: None 
		supported: None, Full, Center, Full aspect
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 63 
		supported: 63
	non-desktop: 0 
		range: (0, 1)
  1920x1080 (0x5b) 148.500MHz +HSync +VSync +preferred
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x5c) 325.080MHz +HSync +VSync *current
        h: width  1920 start 1944 end 1976 total 2056 skew    0 clock 158.11KHz
        v: height 1080 start 1083 end 1088 total 1098           clock 144.00Hz
  1920x1080 (0x5d) 285.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock 137.26KHz
        v: height 1080 start 1083 end 1088 total 1144           clock 119.98Hz
  1920x1080 (0x5e) 235.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock 113.22KHz
        v: height 1080 start 1083 end 1088 total 1133           clock  99.93Hz
  1920x1080 (0x5f) 148.500MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz
  1920x1080 (0x60) 148.352MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1680x1050 (0x61) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x62) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1440x900 (0x63) 106.500MHz -HSync +VSync
        h: width  1440 start 1520 end 1672 total 1904 skew    0 clock  55.93KHz
        v: height  900 start  903 end  909 total  934           clock  59.89Hz
  1280x960 (0x64) 108.000MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock  60.00KHz
        v: height  960 start  961 end  964 total 1000           clock  60.00Hz
  1280x800 (0x65) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1152x864 (0x66) 108.000MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock  67.50KHz
        v: height  864 start  865 end  868 total  900           clock  75.00Hz
  1280x720 (0x67) 74.250MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  45.00KHz
        v: height  720 start  725 end  730 total  750           clock  60.00Hz
  1280x720 (0x68) 74.250MHz +HSync +VSync
        h: width  1280 start 1720 end 1760 total 1980 skew    0 clock  37.50KHz
        v: height  720 start  725 end  730 total  750           clock  50.00Hz
  1280x720 (0x69) 74.176MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  44.96KHz
        v: height  720 start  725 end  730 total  750           clock  59.94Hz
  1024x768 (0x6a) 75.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock  56.48KHz
        v: height  768 start  771 end  777 total  806           clock  70.07Hz
  1024x768 (0x6b) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x6c) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x6d) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  720x576 (0x6e) 27.000MHz -HSync -VSync
        h: width   720 start  732 end  796 total  864 skew    0 clock  31.25KHz
        v: height  576 start  581 end  586 total  625           clock  50.00Hz
  720x480 (0x6f) 27.027MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.50KHz
        v: height  480 start  489 end  495 total  525           clock  60.00Hz
  720x480 (0x70) 27.000MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.47KHz
        v: height  480 start  489 end  495 total  525           clock  59.94Hz
  640x480 (0x71) 30.240MHz -HSync -VSync
        h: width   640 start  704 end  768 total  864 skew    0 clock  35.00KHz
        v: height  480 start  483 end  486 total  525           clock  66.67Hz
  640x480 (0x72) 25.200MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.50KHz
        v: height  480 start  490 end  492 total  525           clock  60.00Hz
  640x480 (0x73) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  720x400 (0x74) 28.320MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock  31.47KHz
        v: height  400 start  412 end  414 total  449           clock  70.08Hz
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x57
	Timestamp:  13405
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2 3 4 5
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	GAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	DEGAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	GAMMA_LUT: 0 
		range: (0, 65535)
	CTM: 0 
	DEGAMMA_LUT: 0 
		range: (0, 65535)
	TearFree: auto 
		supported: off, on, auto
	vrr_capable: 0 
		range: (0, 1)
	max bpc: 8 
		range: (8, 16)
	underscan vborder: 0 
		range: (0, 128)
	underscan hborder: 0 
		range: (0, 128)
	underscan: off 
		supported: off, on, auto
	scaling mode: None 
		supported: None, Full, Center, Full aspect
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 68 
		supported: 68
	non-desktop: 0 
		range: (0, 1)
HDMI-A-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x58
	Timestamp:  13405
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2 3 4 5
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	GAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	DEGAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	GAMMA_LUT: 0 
		range: (0, 65535)
	CTM: 0 
	DEGAMMA_LUT: 0 
		range: (0, 65535)
	TearFree: auto 
		supported: off, on, auto
	vrr_capable: 0 
		range: (0, 1)
	max bpc: 8 
		range: (8, 16)
	underscan vborder: 0 
		range: (0, 128)
	underscan hborder: 0 
		range: (0, 128)
	underscan: off 
		supported: off, on, auto
	scaling mode: None 
		supported: None, Full, Center, Full aspect
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 72 
		supported: 72
	non-desktop: 0 
		range: (0, 1)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x59
	Timestamp:  13405
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2 3 4 5
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	GAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	DEGAMMA_LUT_SIZE: 4096 
		range: (0, -1)
	GAMMA_LUT: 0 
		range: (0, 65535)
	CTM: 0 
	DEGAMMA_LUT: 0 
		range: (0, 65535)
	TearFree: auto 
		supported: off, on, auto
	max bpc: 8 
		range: (8, 16)
	underscan vborder: 0 
		range: (0, 128)
	underscan hborder: 0 
		range: (0, 128)
	underscan: off 
		supported: off, on, auto
	scaling mode: None 
		supported: None, Full, Center, Full aspect
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 76 
		supported: 76
	non-desktop: 0 
		range: (0, 1)
		
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Imma be honest: I'm real fockin' stupid.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by kelebek333 »

Kernel: 5.4.0-72-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
You can try to install newer kernel series with following command. Then reboot.

Code: Select all

 sudo apt install --install-recommends linux-generic-hwe-20.04
v: 4.6 Mesa 21.0.2 - kisak-mesa PPA direct render: Yes
You have updated mesa packages, but these packages are not related with GPU driver, this packages are includes improvements related with OpenGL etc. support.
Improvements related with amdgpu driver (or Ryzen CPU) comes with newer kernel series. The freezing issue may also be solved with newer kernel series.
SpookyNoodle
Level 1
Level 1
Posts: 19
Joined: Sun Apr 11, 2021 4:35 pm

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by SpookyNoodle »

kelebek333 wrote: Mon Apr 19, 2021 9:00 pm You can try to install newer kernel series with following command. Then reboot.
I gave it a shot, but this message (and ones very similar to it) were printed during the installation process.

W: Possible missing firmware /lib/firmware/amdgpu/navi12_dmcu.bin for module amdgpu

Is that something I should be worried about, or is it pretty normal?
kelebek333 wrote: Mon Apr 19, 2021 9:00 pm Improvements related with amdgpu driver (or Ryzen CPU) comes with newer kernel series. The freezing issue may also be solved with newer kernel series.
I would be very impressed if a single kernel update managed to fix such a persistent issue when it's survived dozens of Windows/driver versions, but fingers crossed! I believe in the strange Linux-hacky-voodoo-magic

On a different note, is there some way that I can enable GPU-logging? Maybe it will write stuff to a text file, and then if/when I experience another crash, I can look at it and see what exactly is going wrong ??
Imma be honest: I'm real fockin' stupid.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by kelebek333 »

I gave it a shot, but this message (and ones very similar to it) were printed during the installation process.

W: Possible missing firmware /lib/firmware/amdgpu/navi12_dmcu.bin for module amdgpu
Most likely, these firmware files are added to the system with the update of linux-firmware package and then you will no longer see these outputs. Also, these firmware files are not related to your device. For this reason, you can ignore the outputs.
On a different note, is there some way that I can enable GPU-logging? Maybe it will write stuff to a text file, and then if/when I experience another crash, I can look at it and see what exactly is going wrong ??
You can use the gnome-logs application for logs. Amdgpu driver can be filtered from Hardware tab.
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by SMG »

SpookyNoodle wrote: Mon Apr 19, 2021 9:29 pm I believe in the strange Linux-hacky-voodoo-magic
There have been a lot of issues noted with first gen Ryzen processors and freezing issues on Mint. I do not know if that might be related to the issue you are seeing.

Solutions for computers with Ryzen processors with the first gen Zen chipset are mentioned in this post. Read through it and the subsequent posts as well as the links for some tips that may help. The issues seen seem to be power-state related issues and the person in that thread changed his/her power supply idle control to get the system stabilized. Quite a few people have found success doing that. I do not know if that was a recommendation for Windows installs for first gen Ryzens.

I believe at least some of those tips are also included in this web page Fix system freezing trouble with AMD Ryzen CPU's.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
SpookyNoodle
Level 1
Level 1
Posts: 19
Joined: Sun Apr 11, 2021 4:35 pm

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by SpookyNoodle »

Well, I applied the steps from the article you linked, but this doesn't really answer my question: is there a way to force a graphics driver restart?
Imma be honest: I'm real fockin' stupid.
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by SMG »

SpookyNoodle wrote: Tue Apr 20, 2021 2:21 amWell, I applied the steps from the article you linked, but this doesn't really answer my question: is there a way to force a graphics driver restart?
One can restart X Server which loads/manages the graphics drivers with Ctl-Alt-Backspace, but that will shut down any open programs. I am not aware of any way of reloading the driver without restarting that which controls the driver (which is what I understand your question to be).

The graphics driver for your card comes from the kernel. I do not know the specifics of the amdgpu driver in reference to the particular AMD card you have, so I do not know if the newer drivers in the newer kernel you just installed impact your card.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
SpookyNoodle
Level 1
Level 1
Posts: 19
Joined: Sun Apr 11, 2021 4:35 pm

Re: Restart Graphics Drivers with a Keyboard Shortcut?

Post by SpookyNoodle »

SMG wrote: Tue Apr 20, 2021 9:11 amOne can restart X Server which loads/manages the graphics drivers with Ctl-Alt-Backspace, but that will shut down any open programs. I am not aware of any way of reloading the driver without restarting that which controls the driver (which is what I understand your question to be).
Yeah, that basically cuts to the core of it, I'm trying to restart the thing that translates processes into a display, without actually shutting down those processes, which it sounds like Mint can't do. That's totally fine, I just figured I'd ask in case there was some neat work-around or hack that I could try.

I've applied the suggestions that people have made, like updating the kernel and adjusting settings to match my Ryzen processor, and I haven't had any crashes yet, so I guess we'll see. I'm gonna mark this one as [SOLVED], since my question about a quick restart has been answered. Thanks all!
Imma be honest: I'm real fockin' stupid.
Locked

Return to “Graphics Cards & Monitors”