A script to change Xorg config
What's this about the "systemctl stop nvidia-persistenced.service" that I've just merged, what does it do?
Thing is, there is no such service in openSUSE so it's annoying to have it stop on that. I wouldn't want to axe it, I'm sure you put it there for a good reason! I'd just like to find a more distro agnostic way of achieving the same goal.
Hey, that's OK. I'm on Ubuntu 20.04 and also Windows 10. I wound up returning the eGPU and GPU because under Windows the performance was only a little better than my internal GPU, and I decided it wasn't worth the cost for the incremental increase. Never did figure out how to make Ubuntu use it, it was seen, was working properly, but wasn't being used. And every time I tried something to make it be used I wound up looking at a black screen, and had to reboot in console mode to fix it. I think the fact that I have 2 external monitors plus the internal screen made things a lot harder. Anyways, I decided to fool around with cloud-based solutions for now - less junk on my desk.
I actually wouldn't mind if you removed that line stopping the nvidia-persistanced.service. I added that line because the nvidia persistence daemon caused problems with the code I added. But reading more about it, it seems like it should only be used in a compute only setup without a gui. Since the whole point of gswitch is to setup the xorg.conf it's probably safe to say everyone's using a gui. You can read more about it here.
@edgibbs, Aha, I see, that's strange, because Ubuntu doesn't have a '/etc/X11/xorg.conf', nor any other distro that I know of any more, it's a very old school thing to have. Is it possible you put it there for some reason (trying to make the eGPU work) and forgot about it?
@nu_ninja, Haha, alrighty then! 🙂 Makes my work a lot easier and I agree with you that it felt misplaced. Awesome, I'll keep hacking and keep you posted!
Darn, I'll be working on my "datacenter" today but the new version is close to ready actually. I'm using the old, packaged version right now in openSUSE Tumbleweed and it works! I "just" have to test out your code and package it up. But since I now know how the packaging is done, that'll just be a matter of adding the updated file and triggering the build. Stay tuned!
Update for ' gswitch -0.7':
First of all @nu_ninja has added a new beta function called 'remove' that tries to make it safe to pull out the thunderbolt cable without rebooting the computer. This works to a certain degree for me, with KDE. It reloads, I get back to the SDDM login screen, I can remove the thunderbolt cable without crashing, YEAY! However, plasmashell is NOT a happy camper when trying to log in, so something else needs to be done there to make it work properly. Please try out and see how it works for you, especially using another desktop environment, like GNOME or whatever! Huge creds to @nu_ninja for this!
Second, BIG, BIG update is that gswitch is from now on also supported on openSUSE! Adding my personal repository is as easy as:
Just replace the version with whatever you're running. If something's missing or not quite right, give me shout and I'll make sure to fix it!