Hello I have a few quick questions,
I saw a guide on single gpu- passthrough to a vm and I need to write a script which does these things:
- stop display manager
- unbind vconsoles
- unload amdgpu drivers
- reload amdgpu drivers
- bind vconsoles
- start display manager
I am using XFCE Manjaro so I have lightdm installed. After wondering why my VM doesnt output anything I tried to run the scripts without starting the vm. What I noticed:
When I type “systemctl stop lightdm.service” and try to start it again later it wont work. “systemctl restart lightdm.service” works how it should tho. What is the problem? I get a blackscreen when stopping lightdm but after that my script should start it again, but it doesn’t? The blackscreen persists and I cannot do anything except reboot my machine.
Second question I have is, when I try to unload the amdgpu drivers with modprobe -r, I get the message that it cannot be done, because the drivers are being used. lsmod doesnt list which modules its being used by tho. How do I unload the amdgpu drivers then?
You can see the script I mean at the end of this video. He uses another distro with kde tho, so I had to change a few things, like stopping the lightdm service insted of sddm service etc.
I hope someone can help