gpu-driver-swap icon indicating copy to clipboard operation
gpu-driver-swap copied to clipboard

REQUEST: Allow selection of GPU from GRUB boot menu when two GPUs are installed at same time..

Open oscarbg opened this issue 10 years ago • 10 comments

Hi, I found your project reading softpedia news and thought it will solve my need: namely with a system with a NV GPU and AMD GPU installed ability to select which binary driver to use.. your tool is good if you keep changing installed GPUs but I would like to select which GPU from GRUB menu as said.. I don't know so much about Linux still so can you add support for this? thanks..

oscarbg avatar Aug 06 '15 16:08 oscarbg

This sounds like a good idea and seems like it would be possible with GRUB. I shall take a look into this when I have time.

mikeanthonywild avatar Aug 13 '15 09:08 mikeanthonywild

Thanks.. That would be my biggest improvement to Linux in years! :-)

oscarbg avatar Aug 13 '15 13:08 oscarbg

This can be achieved using the systemd.unit argument in the GRUB entry to specify a systemd target (see here).

Base off the graphical.target file, and pass an argument to the gpuswap.sh script.

Will look into hooking this all up.

mikeanthonywild avatar Aug 20 '15 12:08 mikeanthonywild

Pardon if I'm doing it in the wrong place. I found your project the Brazilian website 'LinuxBuzz'. I have a doubt. If I remove my GPU NVIDIA or AMD is still possible to detect Intel graphics?

ghost avatar Sep 21 '15 02:09 ghost

That's currently not supported at the moment, however I can add this in quite easily. I have created a separate issue for this here: #9.

mikeanthonywild avatar Sep 21 '15 07:09 mikeanthonywild

Could you give me an example of how to do this?

ghost avatar Sep 21 '15 14:09 ghost

I added this today in commit 713096013def6786f68b005c90c009b132a3c477. Pull the latest changes, create a separate Xorg config file for your AMD, Nvidia and Intel adapters, and then update the paths in gupswap.sh.

mikeanthonywild avatar Sep 21 '15 14:09 mikeanthonywild

Hello,

I added code to support for vmware driver, thought you might like to know. That's fine and functional for Linux distributions that want to add GPU-driver-swap by default, along with the proprietary drivers from NVIDIA and AMD. This makes it easy to test and install the Linux distribution in VMWare and Oracle VM VirtualBox.

ghost avatar Sep 24 '15 17:09 ghost

Good job! Feel free to submit a pull request with your changes.

mikeanthonywild avatar Sep 27 '15 11:09 mikeanthonywild

Hello!

I made some changes in the code. AMD, NVIDIA, Intel, VMware and Oracle VM VirtualBox are now supported, either after the installed system or Live CD / DVD or Live USB.

Among the changes, it added the link to libGL.so.1 32bit. So the PlayOnLinux games work without error. To learn more and understand better, visit this link and download the file gpuswap.sh where I made all the changes. If good, do tests, try ... and implement the main code.

Download (Script tested on openSUSE 13.2 (64-bit)): https://drive.google.com/file/d/0B2Q3oSqM_6mOSUFTanBlTU9hY00/view?usp=sharing

Thank you! ;)

(Google Translate)

ghost avatar Oct 01 '15 16:10 ghost