Setup & Software Discussions
A script to change Xorg config
 

[Sticky] A script to change Xorg config  

Page 4 / 4
  RSS

Sebulon
(@sebulon)
Trusted Member
Joined: 7 months ago
Posts: 51
May 19, 2019 10:02 pm  

Hey hey hey!

Amazing what a weekend can do for a hobby project 🙂 'gswitch-gui 0.3' is now enhanced to be able to call the setup routine directly from the GUI!

Screenshot available on the github page:
https://github.com/karli-sjoberg/gswitch-gui

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
(@hang245141253)
New Member
Joined: 3 weeks ago
Posts: 0
May 29, 2019 5:36 am  

I can't edit the BusID, click "setup" again, BusID is still 00:02.0

what should I do?

 

# hang @ hang-NUC8i7BEH in ~ [13:41:23]
$ lspci |grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Device 3ea5 (rev 01)
07:00.0 VGA compatible controller: NVIDIA Corporation Device 1f02 (rev a1)

# hang @ hang-NUC8i7BEH in ~ [13:41:27]
$ sudo gswitch setup
[sudo] hang 的密码:
BusID: 00:02.0 VGA compatible controller: Intel Corporation Device 3ea5 (rev 01)
BusID: 07:00.0 VGA compatible controller: NVIDIA Corporation Device 1f02 (rev a1)
Which of these cards is your eGPU?
Please type in the BusID, e.g: 00:02.0
07:00.0
Setup complete!

# hang @ hang-NUC8i7BEH in ~ [13:42:19]
$ sudo gswitch setup
BusID: 00:02.0 VGA compatible controller: Intel Corporation Device 3ea5 (rev 01)
BusID: 07:00.0 VGA compatible controller: NVIDIA Corporation Device 1f02 (rev a1)
Which of these cards is your eGPU?
Please type in the BusID, e.g: 00:02.0

# hang @ hang-NUC8i7BEH in ~ [14:56:39]
$ $ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
zsh: command not found: $

# hang @ hang-NUC8i7BEH in ~ [14:56:40] C:1
$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics (Coffeelake 3x8 GT3)

# hang @ hang-NUC8i7BEH in ~ [14:56:49]
$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics (Coffeelake 3x8 GT3)

# hang @ hang-NUC8i7BEH in ~ [14:56:54]
$ lspci |grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Device 3ea5 (rev 01)
07:00.0 VGA compatible controller: NVIDIA Corporation Device 1f02 (rev a1)

# hang @ hang-NUC8i7BEH in ~ [14:57:03]
$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x45 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting

This post was modified 3 weeks ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 7 months ago
Posts: 51
May 29, 2019 1:21 pm  

@hang245141253

So you've got it set up but you haven't actually switched. There's one step to set it up, which you've made, and another step to switch over:

$ sudo gswitch setup
$ sudo gswitch egpu

And when you want to switch back:

$ sudo gswitch internal

Please note that the setup step only needs to be done once! The "BusID" printed is just what it says, an example, nothing more.

This post was modified 3 weeks ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


theitsage liked
ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 7 months ago
Posts: 51
Jun 12, 2019 6:41 pm  

Hey!

Update for 'gswitch-0.4':
Minor fix in the 'boot' routine, to make it reload only when needed. Before this, it reloaded every time you booted, you could see the messages printed in the console and it stole a couple of seconds each time. Eventually it annoyed me enough to get it sorted 😉

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
theitsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
Posts: 4016
Jun 19, 2019 3:32 pm  

@sebulon I tried gswitch with an Alienware 13 R3 + Vega Nano today and it worked great! I'd like to clarify what the [internal] button does. My guess was it switches to the internal GPU of the host system. This AW13R3 has both Intel HD Graphics 630 iGPU and Nvidia GTX 1060 dGPU. My current distro is Pop_OS! 19.04 which has the ability to switch off GTX 1060 dGPU to save power. It's an amazing feature which helps this laptop last 10 hours on battery! Windows cannot match half that. The issue is a login loop when I switch between eGPU and Internal. It's stuck at the login screen. I can boot into the Desktop successfully with eGPU connected. Booting the laptop without eGPU requires switching to [internal] first. Otherwise it hangs at black screen. Thank you!

This post was modified 19 hours ago

Best ultrabooks for eGPU use

eGPU enclosure buying guide

94 external GPU build guides


ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 7 months ago
Posts: 51
Jun 19, 2019 4:51 pm  

@theitsage

That looks a lot like what you can do with "NVIDIA X Server Settings":

Screenshot 20190619 183827

For me, switching only works on "Performance Mode" for some reason. With "Power Saving Mode", I have the same problem as you. 

What graphics mode are you in when you get the login loop, "High Performance" or "Battery Life"?

This post was modified 16 hours ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


theitsage liked
ReplyQuote
theitsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
Posts: 4016
Jun 19, 2019 10:12 pm  

The laptop would always be in [Balanced] mode when first powered on. When running off the battery I use it in [Battery Life] mode. While connected to the charger I have it in [High Performance] mode. Regarding the login loop, I believe it occurs in both modes. Switching modes does not activate Nvidia GTX 1060 dGPU. Do you think having the dGPU active and [High Performance] mode would prevent login loop?

This post was modified 13 hours ago

Best ultrabooks for eGPU use

eGPU enclosure buying guide

94 external GPU build guides


ReplyQuote
Page 4 / 4