|  | ||
|---|---|---|
| README.md | ||
| egpu.conf | ||
| egpu.sh | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	eGPU switch script
Basic script that sets xorg config for an eGPU, if an eGPU is found.
Usage
- Place both egpu.shandegpu.confsomewhere on your system. For example in/opt/config
- Edit egpu.shaccording to the comment in the file. So it knows how to find your eGPU and where to copy the config to and from.
- Edit egpu.confto add your GPU's PCI-E address. See Arch wiki if you are unsure how to find your PCI-E address.
- Make egpu.shrun on boot before your display manager and xorg starts.
How to run egpu.sh before your display manager varies from system to system. On systemd you can create a simple service while that runs it, containing Before=<your display manager>. On runit, it can be achieved by putting the script in /etc/runit/core-services.