Easily switch Nvidia hybrid graphics (nvdia + intel)

Created a new repository for new NVIDIA closed drivers
After re trying out the many how to enable nvidia graphics on the laptop, I decided to write the easiest and most effective way. The whole setup was carried out on the Lenovo v580 laptop with hybrid graphics Intel HD 4000 + Nvidia GeForce GT645m
Before you configure we recommend to run:

sudo apt-get update; sudo apt-get update
sudo apt-get dist-upgrade
Now go to the Nvidia website and select your card and operating system Linux

Easily switch Nvidia hybrid graphics (nvdia + intel)

Look what version of the driver available for your graphics card. For me it 352.55

Easily switch Nvidia hybrid graphics (nvdia + intel)

Now you know the last compatible version of the driver for your system.
Then run in terminal:

sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install -y nvidia-352 nvidia-settings nvidia-prime
sudo rm /etc/apt/sources.list.d/xorg-edgers-ppa-trusty.list
After install go to Nvidia X Server Setting using the Menu Or in the terminal write:
nvidia-settings
In the opened window you will see the left Prime Profiles

Easily switch Nvidia hybrid graphics (nvdia + intel)

The switch at this point should stand on Nvidia. If everything is correct, then reboot. After the system is started, run Nvidia X Server Setting and check see whether there’s a map. All works without problems.

Easily switch Nvidia hybrid graphics (nvdia + intel)

To quickly check which card is currently in use, type in a terminal:

glxinfo | grep OpenGL
If you want to switch back to Intel, then go in Nvidia Settings and set the switch to Intel. After that, exit the system and log in again. Will now work card from Intel If you switch the graphics mode from Adaptive to another (PowerMizer), so after reboot this value is not reset, go to settings NVIDIA – go to Application Profiles – click on Save. After reboot the value will not be reset.
Good Luck!!!
http://www.mintlinux.ru/

Share to friends
Shekin
Rate author
( No ratings yet )
MintGuide.Org
Subscribe
Notify of
guest
6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Sayanel
Sayanel
2022 years ago

Before typping nvidia-settings , it is sometimes needed to restart the computer. Otherwise, the Nvidia X server will not integrate Prime and it won't be possible to choose the GPU

Shekin
Shekin
2022 years ago

may be install prime-indicator?

sudo apt-get install prime-indicator
Nic
Nic
2022 years ago

Wow — thank you so much for this!!!

I have been trying to get nvidia / htmi-out to work on my Asus UL80-VT for years with Mint. Tried so many ways. Never worked — until now!

This was so easy!

Sayanel was right about restarting before accessing nvidia-settings. My machine didn't integrate prime before the restart, and the settings didn't show the nvidia GPU. After the restart, everything was fine — same as what you show here. My HDMI-out works fine, too.

Thanks again!

M.Csaba
M.Csaba
2022 years ago

Guys, it is wonderful!
I can confirm that the method works for Nvidia GT-840M too.

Shekin
Shekin
2022 years ago

Eddi,
no way! currently, the manufacturers drivers are not made of this possibility. but I\’m sure NVIDIA will be the first.

Chris Kautz
Chris Kautz
Reply to  Shekin
1 year ago

[email protected]:~$ sudo apt-get install -y nvidia-450.57 nvidia-settings nvidia-prime
Reading package lists… Done
Building dependency tree      
Reading state information… Done
E: Unable to locate package nvidia-450.57
E: Couldn’t find any package by glob ‘nvidia-450.57’
E: Couldn’t find any package by regex ‘nvidia-450.57’
Went ok till tat command. What went wrong?