Author Topic: [How-To] Switch Nvidia & Nouveau Optimus With MHWD  (Read 27114 times)

0 Members and 1 Guest are viewing this topic.

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
[How-To] Switch Nvidia & Nouveau Optimus With MHWD
« on: 09. April 2013, 12:10:53 »
If you have Optimus and have troubles with install you can switch between Nouveau and Nvidia.

First you should know your hardware wth 'mhwd' command:

Code: [Select]
[yfdogan@manjaro ~]$ mhwd
> 0000:00:02.0 (0300:8086:0116) Display controller Intel Corporation:

--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2013.01.12               false            PCI
video-hybrid-intel-nouveau-bumblebee            2013.01.12                true            PCI
           video-intel            2013.01.12                true            PCI
            video-vesa            2012.09.18                true            PCI


> 0000:01:00.0 (0300:10de:0df5) Display controller nVidia Corporation:

--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2013.01.12               false            PCI
video-hybrid-intel-nouveau-bumblebee            2013.01.12                true            PCI
          video-nvidia            2013.01.01               false            PCI
   video-nvidia-legacy            2013.01.01               false            PCI
         video-nouveau            2012.09.18                true            PCI
              video-nv            2012.09.18                true            PCI
            video-vesa            2012.09.18                true            PCI


[yfdogan@manjaro ~]$

Code: [Select]
[yfdogan@manjaro ~]$ mhwd -l
> 0000:00:02.0 (0300:8086:0116) Display controller Intel Corporation:

--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2013.01.12               false            PCI
video-hybrid-intel-nouveau-bumblebee            2013.01.12                true            PCI
           video-intel            2013.01.12                true            PCI
            video-vesa            2012.09.18                true            PCI


> 0000:01:00.0 (0300:10de:0df5) Display controller nVidia Corporation:

--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2013.01.12               false            PCI
video-hybrid-intel-nouveau-bumblebee            2013.01.12                true            PCI
          video-nvidia            2013.01.01               false            PCI
   video-nvidia-legacy            2013.01.01               false            PCI
         video-nouveau            2012.09.18                true            PCI
              video-nv            2012.09.18                true            PCI
            video-vesa            2012.09.18                true            PCI


[yfdogan@manjaro ~]$

If you want Nvidia :

Code: [Select]
sudo mhwd -i pci video-hybrid-intel-nvidia-bumblebee
Nouveau:

Code: [Select]
sudo mhwd -i pci video-hybrid-intel-nouveau-bumblebee

For remove :
Code: [Select]
sudo mhwd -r pci video-hybrid-intel-nouveau-bumblebee

Code: [Select]
sudo mhwd -r pci video-hybrid-intel-nvidia-bumblebee

For run bumblebee at startup:

Code: [Select]
sudo systemctl enable bumblebeed.service

If you want start bumblebee:

Code: [Select]
sudo systemctl start bumblebeed.service

Check bumblebee:

Code: [Select]
sudo systemctl status bumblebeed.service
Code: [Select]
[yfdogan@manjaro Belgeler]$ sudo systemctl status bumblebeed.service
[sudo] password for yfdogan:                                                       
bumblebeed.service - Bumblebee C Daemon                                                   
          Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)                 
          Active:[color= active (running) since Thu, 04 Oct 2012 21:54:22 +0300; 1h 39min ago               
        Main PID: 4866 (bumblebeed)
          CGroup: name=systemd:/system/bumblebeed.service
                  └ 4866 /usr/sbin/bumblebeed

Oct 04 21:54:22 manjaro bumblebeed[4866]: [ 1286.332140] [INFO]/usr/sbin/bumblebeed 3.0.1 started

If something didn't went as it should be :
Code: [Select]
sudo mv /etc/bumblebee/xorg.conf.nvidia.pacnew /etc/bumblebee/xorg.conf.nvidia
Code: [Select]
sudo mv /etc/bumblebee/bumblebee.conf.pacnew /etc/bumblebee/bumblebee.conf
Reboot and check again.
« Last Edit: 09. June 2013, 17:21:51 by YFDogan »
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline colinkeenan

  • Vollwertiges Mitglied
  • ***
  • Posts: 184
  • Branch: unstable (or testing when advised)
  • Desktop: Xfce
  • GPU Card: Intel HD Graphics 4000 on Intel core i5 cpu
  • GPU driver: Intel
  • Kernel: latest available
  • Skill: Advanced
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #1 on: 09. April 2013, 15:21:24 »
You accidentally listed the same command for installing Nouveau as with installing Nvidia. You have nvidia in both commands.

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #2 on: 09. April 2013, 15:25:58 »
Thanks brother. :)
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline Matthias19281

  • Vollwertiges Mitglied
  • ***
  • Posts: 166
  • Branch: unstable
  • Desktop: Openbox
  • GPU Card: Intel (Laptop)/Nvidia (PC)
  • GPU driver: free
  • Kernel: Kernel 3.14 (Laptop) /Kernel 3.13 (PC)
  • Skill: Advanced
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #3 on: 02. May 2013, 18:22:00 »
How can I switch from nvidea drivers (that only make trouble on my system) to nouveau?
Extra information:
Nvidia GTS8800 512MB
Asus P5QE (if relevant)

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #4 on: 02. May 2013, 18:42:50 »
Remove Nvidia:
Code: [Select]
sudo mhwd -r pci video-hybrid-intel-nvidia-bumblebee
And install Nouveau
Code: [Select]
sudo mhwd -i pci video-hybrid-intel-nouveau-bumblebee
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline Roland

  • Administrator
  • *****
  • Posts: 626
    • Manjaro Linux
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #5 on: 02. May 2013, 18:57:12 »
You don't have to remove the old nvidia driver :) Just execute the last command posted by YFDogan.

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #6 on: 13. May 2013, 09:50:32 »
Do you want this one on the wiki YFDogan?

I'm not familiar with the problem, is it going to go away soon or be around long enough that the wiki would be the right place for it?
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #7 on: 13. May 2013, 09:59:40 »
This depends on Optimus. May be this questions answer may given by Philip.
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline Khazrak

  • Neuling
  • *
  • Posts: 2
  • Branch: stable
  • Desktop: Cinnamon 1.8
  • GPU Card: Nvidia
  • GPU driver: want to use non-free
  • Kernel: linux38-x64
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #8 on: 21. May 2013, 14:21:33 »
After a fresh install and update (which package-query and yaourt requires fix-around) I now want to switch to the non-free nvidia drivers.
So I write:
Code: [Select]
sudo mhwd -i pci video-hybrid-intel-nvidia-bumblebee
And it gives the error:
Code: [Select]
Error: config 'video-hybrid-intel-nvidia-bumblebee' conflicts with config(s): video-hybrid-intel-nouveau-bumblebee
I've tried to remove the nuoveau drivers and installing the nvidia and doing the switch-command. After rebooting the system has a major breakdown and needs reinstalling.

Any suggestions?

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #9 on: 21. May 2013, 14:22:44 »
Try with force option:
Code: [Select]
sudo mhwd -i pci video-hybrid-intel-nvidia-bumblebee -f
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline Khazrak

  • Neuling
  • *
  • Posts: 2
  • Branch: stable
  • Desktop: Cinnamon 1.8
  • GPU Card: Nvidia
  • GPU driver: want to use non-free
  • Kernel: linux38-x64
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #10 on: 21. May 2013, 14:33:45 »
Try with force option:
Code: [Select]
sudo mhwd -i pci video-hybrid-intel-nvidia-bumblebee -f

Same error  :(

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #11 on: 21. May 2013, 14:36:16 »
Try with force option to remove your current driver friend.
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline chris16940

  • Neuling
  • *
  • Posts: 21
  • Kernel: none at the moment
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #12 on: 30. September 2013, 19:10:07 »
Hello,

I am confused by this post, excuse my ignorance for asking but when I start up, Bumbleebee C Daemon is enabled which I thought enabled the Nvidia card without any further action.  Is this not so or do I have to run the scripts as advised in this post?

Any clear advice much appreciated.

Offline aaditya

  • OpenRC Team
  • ****
  • Posts: 2844
    • My Website
  • Branch: Testing
  • Desktop: Xfce, Openbox
  • GPU Card: Intel HD 4000
  • Kernel: Linux 4.4 x86_64
  • Skill: Intermediate
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #13 on: 30. September 2013, 19:26:35 »
Hello,

I am confused by this post, excuse my ignorance for asking but when I start up, Bumbleebee C Daemon is enabled which I thought enabled the Nvidia card without any further action.  Is this not so or do I have to run the scripts as advised in this post?

Any clear advice much appreciated.

For clear advice, you should post clear question, no :D
Which scripts are you talking about?

If bumblebee daemon is enabled on startup
Code: [Select]
sudo systemctl enable bumblebeed.service
 and
Code: [Select]
mhwd -li lists your card, then you dont need to do anything else unless you are having problems.

If you are having some problem ,make a seperate thread for it.

Offline Salatfreak

  • Neuling
  • *
  • Posts: 1
    • YoruGameDev
  • Desktop: Xfce
  • GPU Card: nVidia GeForce GT 325M
  • Kernel: 3.10.15-1-MANJARO
  • Skill: Novice
Re: [How-To] Switch Nvidia & Nouveau Optimus With MHWD
« Reply #14 on: 20. October 2013, 17:10:07 »
Hi
I'm a linux newbi and I installed Manjaro on my Asus Pro64J and i love it. Manjaro automatically installed Bumblebee for me but the optirun and primusrun commands doesn't work. So I installed the "video-hybrid-intel-nvidia-bumblebee" driver and tried again:
Code: [Select]
>> optirun blender
[  788.331665] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0

[  788.331711] [ERROR]Aborting because fallback start is disabled.
Code: [Select]
>> primusrun blender
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0
When i start the nvidia-settings it tells me to run nvidia-xconfig, but that changes nothing...
What do i have to do now to use my nVidia graphics for blender or playing games?
I currently use xrandr to use a hdmi connected display next to my laptop display if that helps.
Thank you :D
« Last Edit: 20. October 2013, 18:41:56 by Salatfreak »