You are not logged in.
Im having a lot of bugs with amdgpu. So i decided to just use radeon.
However, I still need amdgpu when I play games (and radeon for everything else). However, swapping kernel parameters and rebooting takes a pretty time. Is there a way to do it without rebooting?
I already tried using modprobe for this: "modprobe --remove-dependencies radeon && modprobe -rf radeon", but this doesn't work. It seems like radeon is still in use (modprobe: FATAL: Module radeon is in use.) even though Im running the command on a tty. Also, if I run "lsof | grep radeon", the output is empty.
How could I use modprobe to remove radeon, and then use modprobe again to load amdgpu?
Last edited by Sempiternal-Futility (2023-11-17 18:46:31)
Offline
Effectively "not" - if that's your only GPU.
(Certainly not w/o restarting your GUI session which likely is the brunt of the "rebooting" hassle anyway?)
Im having a lot of bugs with amdgpu. So i decided to just use radeon.
Some recent posts where actually more the other round.
What kind of "bugs with amdgpu"? Maybe it's easier to straighten those.
Offline
You would have to end all graphical sessions: end X server/Wayland session(s), get away from graphical.target to multi-user.target: 'systemctl isolate multi-user.target', change amdgpu module to radeon or vice versa and return back to graphical.target, start graphical session...
You could try if that work but as day to day solution would it be comfortable?
Offline
Even in the multi-user.target the console is gonna claim the device for KMS, https://unix.stackexchange.com/question … -rebooting
Offline
Ok, So I just wrote a script to:
1- edit /etc/default/grub
2- run grub-mkconfig
3- reboot
It does all of these 3 steps automatically, so it's pretty quick
Last edited by Sempiternal-Futility (2023-11-20 19:55:58)
Offline
Now, how do I mark this post as [SOLVED] or close it?
Offline
Edit the title in the first post (might have to shorten a little)
Offline
Ok, So I just wrote a script to:
1- edit /etc/default/grub
2- run grub-mkconfig
3- rebootIt does all of these 3 steps automatically, so it's pretty quick
Thank you for sharing your solution. So, I'm assuming that this just refreshes the GUI/desktop to recognize the GPU driver switch. How are you switching the GPU drivers? Are you using modprobe?
Arch Linux with Openbox & Tint2
Offline
Fwwy, you could also have two different bootloader entries with the desired amdgpu/radeon parameters to steer the selection and call them "Archlinux/amdgpu" and "Archlinux/radeon" respectively, so you can skip the grub-mkconfig part. You just reboot and select what you want.
Edit: maybe even use https://wiki.archlinux.org/title/GRUB/T … _only_once
Last edited by seth (2023-11-27 07:20:21)
Offline