Finally I understood what I really was looking for... OPTIMUS!
The main reason why I needed the a latest nvidia driver was to extend battery time.
On my Asus U31S I was promised 10h and ubuntus battery indicator told me 5.5h, almost the half!
Basically I installed bumblebee and the latest nvidia driver and now the battery indicator tells me 10h
(it was really close I switched to windows) Not very scientic values but at least I don't have to charge the computer 2 times a day.
For fun you can check the battery, before and after
watch grep rate /proc/acpi/battery/BAT0/state
My new rate after: 7546 mW
Before I had a rate approx 14000 mW
Here is the step by step, some steps my not be neede.d I just made some guessing as the guide didn't fit exactly.
The original guide is found here:
http://www.ivegotavirus.com/blog/201...11-10-oneiric/
(for ubuntu 11.01 but works for 10.10 as well):
1. You need to install the latest graphics drivers:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get upgrade
2. Enable active-state power management by adding pcie_aspm=force to the grub command:
Open the grub config file
sudo gedit /etc/default/grub
Find this line
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash"
Insert pcie_aspm=force inside the quotes so it looks like this
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash pcie_aspm=force”
Update grub to make the changes
sudo update-grub
3. Install and configure bumblebee:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee
sudo apt-get install acpi-call-tools
After installing bumblebee, you will have to add yourself to the bumblebee user group (change USERNAME to your accounts user name),
sudo usermod -a -G bumblebee YOURUSERNAME
Open your bumblebee.conf
sudo gedit /etc/bumblebee/bumblebee.conf
Find these two lines and make sure they =Y
STOP_SERVICE_ON_EXIT=Y
ENABLE_POWER_MANAGEMENT=Y
** [Volt] Here I couldn't find the above properties so I added them in section [bumblebeed] **
Open your xorg.conf.nvidia
sudo gedit /etc/bumblebee/xorg.conf.nvidia
Make sure it looks like this:
Section "ServerLayout
Identifier "Layout0" **YOUR'S MAYBE DIFFERENT DO NOT CHANGE**
Option "AutoAddDevices" "false"
EndSection
Section "Files"
ModulePath "/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules"
EndSection
Section "Device"
Identifier "Device1" **YOUR'S MAYBE DIFFERENT DO NOT CHANGE**
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "01:00:0" **YOUR'S MAYBE DIFFERENT DO NOT CHANGE**
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "ConnectedMonitor" "DFP-0" **YOUR'S MAYBE DIFFERENT DO NOT CHANGE**
EndSection
** [Volt] lspci shows two vga controllers, a guess and I picked this one...
BusID "PCI:01:00.0"
**
For this next part you are going to have to find the right ‘call off’ and ‘call on’ commands for your card.
Use this website to find them (If you don't have a Asus U31S)
http://hybrid-graphics-linux.tuxfami...tle=ACPI_calls
4. Create and open a ‘cardoff’ file
sudo gedit /etc/bumblebee/cardoff
Copy this into the ‘cardoff’ file and save it
\_SB.PCI0.PEG0.GFX0.DOFF
Create and open a ‘cardon’ file
sudo gedit /etc/bumblebee/cardon
Copy this into the ‘cardon’ and save it
\_SB.PCI0.PEG0.GFX0.DON
Your computer will now be configured for ‘Optimus’, if you want to use the Nvidia chip for any program just run ‘optirun’ before it. For example if you wanted to open gedit with your Nvidia chip you would run. ** [volt] it give's me 10h without to use 'optirun' **
Recommend to install Jupiter to easily change cpu performance modes (gnome applet).
(
http://www.webupd8.org/2011/09/jupit...lable-for.html)
sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter
sudo apt-get install jupiter-support-eee
Hopefully this might help other on the right track?