3 ms·
No _need_ to reboot. Restarting the Xorg/Wayland server, maybe. You might be able to fool it into thinking you just hot-plugged the GPU, at least as far as the
by namibj 8y ago
No _need_ to reboot. Restarting the Xorg/Wayland server, maybe. You might be able to fool it into thinking you just hot-plugged the GPU, at least as far as the screen layout is concerned.
Remember: the only reason you need to reboot linux is to get a new kernel, or because the kernel FUBAR'd and corrupted data.
- Cyphase 8y agoI hear you, and I've restarted the display server plenty of times on my computers instead of restarting them, especially on my main desktop where I have lots more stuff running independent of the display (daemons, etc). But, I feel like particularly on a laptop, if you're restarting the display server, it's not much different than just restarting the whole machine. Certainly that's the case for the large majority of users. Anyway, I think the point is that it's a hassle, which it is, not that you literally "need to reboot".
- lmm 8y agoWould it be possible to start a second display server like we used to, one on ctrl-alt-F8 and one on ctrl-alt-F7? So when you want to do some gaming you start up your gaming workspace and switch to it, and when you want to turn off the nvidia graphics you destroy the gaming workspace, but your document workspace that was using the intel graphics is still there? That feels like it could be somewhat usable.
- namibj 8y agoShould be. Windows is actually not crashing the desktop when the driver balks, so you can AFAIK run a Windows VM on a Linux and switch the PCIe GPU (yes, i915 counts from Haswell on) via KVM/QUEMU/IO-MMU between host and VM, with the latter not caring much, but the former crashing Xorg.
- namibj 8y agoI prefer to keep things up/running, i.e. demon-based software, file transfers, mounts (including LUKS password unlocking), music players, etc. Even SSH sessions. I am still looking for a way to restart Xorg without having to restart the software on it, but so far I have not found a solution.
- resonious 8y agoThat makes sense. Pop_OS! has a button for switching graphics that prompts you to reboot. I bet that could be updated to only restart X11 or something https://github.com/pop-os/gnome-shell-extension-system76-power/blob/4855752a7b72f999242f4a5ee64253be58ad36a7/extension.js#L342 https://github.com/pop-os/gnome-shell-extension-system76-pow...