FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Location
    Lancaster, UK
    Posts
    932
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fedora 18 - Disable Nvidia card (Optimus laptops) to double battery life

    This is for Fedora 18, see next post for Fedora 19.

    Nvidia optimus (on windows) allows the Nvidia GPU to take over when needed, and when it is not, the i3/i5/i7 GPU takes over and the Nvidia card shuts down to save power (This can double the battery life).
    On Linux bumblebee is an attempt to allow all of these features. I am not bothered about them, I just want to power the Nvidia card off permanently; The intel GPU is powerful enough for my needs, and the more than doubled battery life is needed. (I was seeing 2:15 battery life with wireless off and nvidia card on to 6hrs with nvidia card off and wireless on, and 8:30 with nvidia card and wireless off.)

    First things first, the disclaimer - may not work, may break something, no guarantees.

    Unless you have the Nvidia drivers installed, start at step 1. If you have Nvidia drivers installed, start at step 0;

    Known bug: Without nouveau installed I do not know how to get hibernate to work.
    Fault with something else. Hibernate DOES with this set-up.

    0. Unistall the Nvidia drivers
    If you have the Nvidia drivers installed *I think* you need to reverse all of Leigh's instructions (like so: http://forums.fedoraforum.org/showpo...postcount=1006). You definitely need to un-install the Nvidia drivers, but I think you also need to run the last step again involving initramfs. So for those with nvidia drivers installed only start with:
    PHP Code:
    su
    yum erase 
    *nvidia*; 
    then:
    PHP Code:
    su
    mv 
    /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nvidia.img
    dracut 
    /boot/initramfs-$(uname -r).img $(uname -r) 
    Everyone else start here:

    1. Install bbswitch:

    PHP Code:
    su
    yum 
    -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora18/noarch/bumblebee-release-1.0-1.noarch.rpm
    yum -y install bbswitch 
    Source: https://fedoraproject.org/wiki/Bumblebee

    2. Disable nouveau:
    PHP Code:
    su
    grep 
    -i "blacklist nouveau" /etc/modprobe.d/blacklist.conf 1>/dev/null \
    || echo 
    "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
    ln 
    -s /etc/modprobe.d/blacklist.conf /usr/lib/modprobe.d/blacklist.conf 
    3. Enable bbswitch

    PHP Code:
    su
    echo -e "#load bbswitch \nbbswitch" >> /etc/modules-load.d/bbswitch.conf
    echo -e "#options for bbswitch,  disable it \noptions bbswitch load_state=0 unload_state=0" >> /etc/modprobe.d/bbswitch.conf 
    4. Restart
    That should do it. Just restart and check that the card is switched off by doing:

    5. Check it worked
    PHP Code:
    cat /proc/acpi/bbswitch 
    if it is off you should see

    PHP Code:
    0000:01:00.0 OFF 
    That is it. Any suggestions on anything I have done wrong, or anything that can be improved (including working hibernate) are welcome.
    Last edited by Adunaic; 24th November 2013 at 05:51 PM.

  2. #2
    Join Date
    Mar 2009
    Location
    Lancaster, UK
    Posts
    932
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 - Disable Nvidia card (Optimus laptops)

    Fedora 19 and 20:

    1. Up date kernel and remove nouveau/nvidia:

    PHP Code:
    yum -y update kernel*; yum -y erase *nouveau* *nvidia*; 
    2. Install bbswitch:
    for fedora 19 do:
    PHP Code:
    yum -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora19/noarch/bumblebee-release-1.1-1.noarch.rpm 

    for fedora 20 do:
    PHP Code:
    yum -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora20/noarch/bumblebee-release-1.1-1.noarch.rpm 
    for fedora 19 and 20 do:

    PHP Code:
    yum -y install bbswitch 
    3. blacklist nouveau and enable bbswitch on boot:

    PHP Code:
    echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
    ln 
    -s /etc/modprobe.d/blacklist.conf /usr/lib/modprobe.d/blacklist.conf 
    echo -e "#load bbswitch \nbbswitch" >> /etc/modules-load.d/bbswitch.conf
    echo -e "#options for bbswitch,  disable it \noptions bbswitch load_state=0 unload_state=0" >> /etc/modprobe.d/bbswitch.conf 
    4. Reboot

    5. Build initrd:

    PHP Code:
    mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-old.img
    dracut 
    /boot/initramfs-$(uname -r).img $(uname -r) 
    7. Reboot

    Test with:

    PHP Code:
    cat /proc/acpi/bbswitch 
    which should show:
    PHP Code:
    0000:01:00.0 OFF 
    Last edited by Adunaic; 15th February 2014 at 06:29 PM.

  3. #3
    Join Date
    Nov 2013
    Location
    USA
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 - Disable Nvidia card (Optimus laptops)

    I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will locate that extremely useful


    OpeningTimesUK
    Last edited by shahzaib85; 16th October 2015 at 10:44 AM.

Similar Threads

  1. [ASK] Install NVIDIA Optimus On Fedora 18
    By sabto in forum Hardware
    Replies: 5
    Last Post: 24th June 2013, 07:50 AM
  2. [SOLVED] Disable nVidia Optimus discrete card
    By joseph1802 in forum Hardware
    Replies: 1
    Last Post: 29th December 2012, 10:19 PM
  3. Replies: 10
    Last Post: 20th September 2012, 10:18 PM
  4. is fedora 17 support nvidia optimus technology ?
    By tacgiaviet in forum Hardware
    Replies: 1
    Last Post: 19th July 2012, 12:28 PM
  5. Nvidia Optimus (How in fedora?)
    By jonashendrickx in forum Hardware
    Replies: 2
    Last Post: 23rd March 2012, 09:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •