How to install 2 Graphics drivers, and have Ubuntu detect and load which one (without conflict)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite
1












Originally I wanted to make a live CD with this... However I gave up on that.



So Is there a way to do this, have ubuntu figure out which card is loaded, before loading a driver.
Or... How could I create a script to load at boot to "| grep pci... etc" and print for variable to run "activate_AMD.sh" or "activate_NV.sh" etc...







share|improve this question
















  • 1




    Seems this is stil valid? askubuntu.com/questions/892532/…
    – Rinzwind
    May 24 at 6:55














up vote
3
down vote

favorite
1












Originally I wanted to make a live CD with this... However I gave up on that.



So Is there a way to do this, have ubuntu figure out which card is loaded, before loading a driver.
Or... How could I create a script to load at boot to "| grep pci... etc" and print for variable to run "activate_AMD.sh" or "activate_NV.sh" etc...







share|improve this question
















  • 1




    Seems this is stil valid? askubuntu.com/questions/892532/…
    – Rinzwind
    May 24 at 6:55












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





Originally I wanted to make a live CD with this... However I gave up on that.



So Is there a way to do this, have ubuntu figure out which card is loaded, before loading a driver.
Or... How could I create a script to load at boot to "| grep pci... etc" and print for variable to run "activate_AMD.sh" or "activate_NV.sh" etc...







share|improve this question












Originally I wanted to make a live CD with this... However I gave up on that.



So Is there a way to do this, have ubuntu figure out which card is loaded, before loading a driver.
Or... How could I create a script to load at boot to "| grep pci... etc" and print for variable to run "activate_AMD.sh" or "activate_NV.sh" etc...









share|improve this question











share|improve this question




share|improve this question










asked May 24 at 6:42









TardisGuy

379517




379517







  • 1




    Seems this is stil valid? askubuntu.com/questions/892532/…
    – Rinzwind
    May 24 at 6:55












  • 1




    Seems this is stil valid? askubuntu.com/questions/892532/…
    – Rinzwind
    May 24 at 6:55







1




1




Seems this is stil valid? askubuntu.com/questions/892532/…
– Rinzwind
May 24 at 6:55




Seems this is stil valid? askubuntu.com/questions/892532/…
– Rinzwind
May 24 at 6:55










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Ubuntu automatically detects which GPU is installed in your machine. If you want a script to switch between Nvida and Intel drivers I've found one you can modify here: bauca/graphics-switcher



It will require the program glxinfo which you can get by installing:



sudo apt install mesa-utils


One key function in the bash script that will interest you is this one:





function CheckForCurrentVideoCardInUse egrep "OpenGL vendor





share|improve this answer




















  • Doesn't seem to handle AMD unfortunately.
    – Sebastian Stark
    Aug 13 at 14:08










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039679%2fhow-to-install-2-graphics-drivers-and-have-ubuntu-detect-and-load-which-one-wi%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Ubuntu automatically detects which GPU is installed in your machine. If you want a script to switch between Nvida and Intel drivers I've found one you can modify here: bauca/graphics-switcher



It will require the program glxinfo which you can get by installing:



sudo apt install mesa-utils


One key function in the bash script that will interest you is this one:





function CheckForCurrentVideoCardInUse egrep "OpenGL vendor





share|improve this answer




















  • Doesn't seem to handle AMD unfortunately.
    – Sebastian Stark
    Aug 13 at 14:08














up vote
1
down vote













Ubuntu automatically detects which GPU is installed in your machine. If you want a script to switch between Nvida and Intel drivers I've found one you can modify here: bauca/graphics-switcher



It will require the program glxinfo which you can get by installing:



sudo apt install mesa-utils


One key function in the bash script that will interest you is this one:





function CheckForCurrentVideoCardInUse egrep "OpenGL vendor





share|improve this answer




















  • Doesn't seem to handle AMD unfortunately.
    – Sebastian Stark
    Aug 13 at 14:08












up vote
1
down vote










up vote
1
down vote









Ubuntu automatically detects which GPU is installed in your machine. If you want a script to switch between Nvida and Intel drivers I've found one you can modify here: bauca/graphics-switcher



It will require the program glxinfo which you can get by installing:



sudo apt install mesa-utils


One key function in the bash script that will interest you is this one:





function CheckForCurrentVideoCardInUse egrep "OpenGL vendor





share|improve this answer












Ubuntu automatically detects which GPU is installed in your machine. If you want a script to switch between Nvida and Intel drivers I've found one you can modify here: bauca/graphics-switcher



It will require the program glxinfo which you can get by installing:



sudo apt install mesa-utils


One key function in the bash script that will interest you is this one:





function CheckForCurrentVideoCardInUse egrep "OpenGL vendor






share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 12 at 18:34









WinEunuuchs2Unix

34.3k756131




34.3k756131











  • Doesn't seem to handle AMD unfortunately.
    – Sebastian Stark
    Aug 13 at 14:08
















  • Doesn't seem to handle AMD unfortunately.
    – Sebastian Stark
    Aug 13 at 14:08















Doesn't seem to handle AMD unfortunately.
– Sebastian Stark
Aug 13 at 14:08




Doesn't seem to handle AMD unfortunately.
– Sebastian Stark
Aug 13 at 14:08












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039679%2fhow-to-install-2-graphics-drivers-and-have-ubuntu-detect-and-load-which-one-wi%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error