Code:
denis@denis-M14xR2:~$ sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libnl2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
bbswitch-dkms dkms libturbojpeg linux-headers-3.2.0-33-generic nvidia-current
nvidia-settings screen-resolution-extra virtualgl virtualgl-libs
The following NEW packages will be installed:
bbswitch-dkms bumblebee bumblebee-nvidia dkms libturbojpeg
linux-headers-3.2.0-33-generic linux-headers-generic nvidia-current
nvidia-settings screen-resolution-extra virtualgl virtualgl-libs
0 upgraded, 12 newly installed, 0 to remove and 3 not upgraded.
Need to get 36.7 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ch.archive.ubuntu.com/ubuntu/ precise-updates/universe libturbojpeg i386 1.1.90+svn733-0ubuntu4.1 [127 kB]
Get:2 http://ppa.launchpad.net/bumblebee/stable/ubuntu/ precise/main virtualgl-libs i386 2.3.2-1~preciseppa1 [198 kB]
Get:3 http://ch.archive.ubuntu.com/ubuntu/ precise/main dkms all 2.2.0.3-1ubuntu3 [73.1 kB]
Get:4 http://ch.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-33-generic i386 3.2.0-33.52 [975 kB]
Get:5 http://ppa.launchpad.net/bumblebee/stable/ubuntu/ precise/main virtualgl i386 2.3.2-1~preciseppa1 [851 kB]
Get:6 http://ppa.launchpad.net/bumblebee/stable/ubuntu/ precise/main bbswitch-dkms all 0.4.2-2~preciseppa1 [10.1 kB]
Get:7 http://ppa.launchpad.net/bumblebee/stable/ubuntu/ precise/main bumblebee i386 3.0.1-3~preciseppa1 [52.1 kB]
Get:8 http://ppa.launchpad.net/bumblebee/stable/ubuntu/ precise/main bumblebee-nvidia i386 3.0.1-3~preciseppa1 [3968 B]
Get:9 http://ch.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic i386 3.2.0.33.36 [2638 B]
Get:10 http://ch.archive.ubuntu.com/ubuntu/ precise-updates/restricted nvidia-current i386 295.40-0ubuntu1.1 [33.4 MB]
Get:11 http://ch.archive.ubuntu.com/ubuntu/ precise/main screen-resolution-extra all 0.14ubuntu2 [12.8 kB]
Get:12 http://ch.archive.ubuntu.com/ubuntu/ precise/main nvidia-settings i386 295.33-0ubuntu1 [926 kB]
Fetched 36.7 MB in 28s (1282 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_TIME = "fr_CH.UTF-8",
LC_MONETARY = "fr_CH.UTF-8",
LC_ADDRESS = "fr_CH.UTF-8",
LC_TELEPHONE = "fr_CH.UTF-8",
LC_NAME = "fr_CH.UTF-8",
LC_MEASUREMENT = "fr_CH.UTF-8",
LC_IDENTIFICATION = "fr_CH.UTF-8",
LC_NUMERIC = "fr_CH.UTF-8",
LC_PAPER = "fr_CH.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libturbojpeg.
(Reading database ... 204449 files and directories currently installed.)
Unpacking libturbojpeg (from .../libturbojpeg_1.1.90+svn733-0ubuntu4.1_i386.deb) ...
Selecting previously unselected package virtualgl-libs.
Unpacking virtualgl-libs (from .../virtualgl-libs_2.3.2-1~preciseppa1_i386.deb) ...
Selecting previously unselected package virtualgl.
Unpacking virtualgl (from .../virtualgl_2.3.2-1~preciseppa1_i386.deb) ...
Selecting previously unselected package dkms.
Unpacking dkms (from .../dkms_2.2.0.3-1ubuntu3_all.deb) ...
Selecting previously unselected package bbswitch-dkms.
Unpacking bbswitch-dkms (from .../bbswitch-dkms_0.4.2-2~preciseppa1_all.deb) ...
Selecting previously unselected package bumblebee.
Unpacking bumblebee (from .../bumblebee_3.0.1-3~preciseppa1_i386.deb) ...
Selecting previously unselected package linux-headers-3.2.0-33-generic.
Unpacking linux-headers-3.2.0-33-generic (from .../linux-headers-3.2.0-33-generic_3.2.0-33.52_i386.deb) ...
Selecting previously unselected package linux-headers-generic.
Unpacking linux-headers-generic (from .../linux-headers-generic_3.2.0.33.36_i386.deb) ...
Selecting previously unselected package nvidia-current.
Unpacking nvidia-current (from .../nvidia-current_295.40-0ubuntu1.1_i386.deb) ...
Selecting previously unselected package bumblebee-nvidia.
Unpacking bumblebee-nvidia (from .../bumblebee-nvidia_3.0.1-3~preciseppa1_i386.deb) ...
Selecting previously unselected package screen-resolution-extra.
Unpacking screen-resolution-extra (from .../screen-resolution-extra_0.14ubuntu2_all.deb) ...
Selecting previously unselected package nvidia-settings.
Unpacking nvidia-settings (from .../nvidia-settings_295.33-0ubuntu1_i386.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libturbojpeg (1.1.90+svn733-0ubuntu4.1) ...
Setting up virtualgl-libs (2.3.2-1~preciseppa1) ...
Setting up virtualgl (2.3.2-1~preciseppa1) ...
Setting up dkms (2.2.0.3-1ubuntu3) ...
Setting up bbswitch-dkms (0.4.2-2~preciseppa1) ...
Loading new bbswitch-0.4.2 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-33-generic-pae
Building initial module for 3.2.0-33-generic-pae
Done.
bbswitch:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-33-generic-pae/updates/dkms/
depmod.......
DKMS: install completed.
Setting up bumblebee (3.0.1-3~preciseppa1) ...
Adding members from group(s) 'adm sudo admin' to 'bumblebee':
denis
Adding user denis to group bumblebee
update-initramfs: deferring update (trigger activated)
bumblebeed start/running, process 13235
Setting up linux-headers-3.2.0-33-generic (3.2.0-33.52) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-33-generic /boot/vmlinuz-3.2.0-33-generic
Setting up linux-headers-generic (3.2.0.33.36) ...
Setting up nvidia-current (295.40-0ubuntu1.1) ...
update-alternatives: using /usr/lib/nvidia-current/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode.
update-alternatives: warning: skip creation of /usr/lib32/libOpenCL.so because associated file /usr/lib32/nvidia-current/libOpenCL.so (of link group i386-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: skip creation of /usr/lib32/vdpau/libvdpau_nvidia.so.1 because associated file /usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so.1 (of link group i386-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: skip creation of /usr/lib32/libvdpau_nvidia.so because associated file /usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so (of link group i386-linux-gnu_gl_conf) doesn't exist.
update-alternatives: using /usr/lib/nvidia-current/alt_ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-current
DEBUG:Parsing /usr/share/nvidia-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/nvidia-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/nvidia-common/quirks/put_your_quirks_here
DEBUG:Processing quirk Latitude E6530
DEBUG:Failure to match Alienware with Dell Inc.
DEBUG:Quirk doesn't match
DEBUG:Processing quirk ThinkPad T420s
DEBUG:Failure to match Alienware with LENOVO
DEBUG:Quirk doesn't match
Loading new nvidia-current-295.40 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-33-generic-pae
Building for architecture i686
Building initial module for 3.2.0-33-generic-pae
Done.
nvidia_current:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-33-generic-pae/updates/dkms/
depmod....
DKMS: install completed.
Setting up screen-resolution-extra (0.14ubuntu2) ...
Setting up nvidia-settings (295.33-0ubuntu1) ...
update-alternatives: using /usr/lib/nvidia-settings/ld.so.conf to provide /etc/ld.so.conf.d/nvidia_settings.conf (nvidia_settings_conf) in auto mode.
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Setting up bumblebee-nvidia (3.0.1-3~preciseppa1) ...
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode.
bumblebeed stop/waiting
bumblebeed start/running, process 15312
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-33-generic-pae
denis@denis-M14xR2:~$ sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic bbswitch
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bbswitch
denis@denis-M14xR2:~$ sudo apt-get install bbswitch
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bbswitch
denis@denis-M14xR2:~$ sudo apt-get install build-essential checkinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following package was automatically installed and is no longer required:
libnl2
Use 'apt-get autoremove' to remove them.
Suggested packages:
gettext
The following NEW packages will be installed:
checkinstall
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 118 kB of archives.
After this operation, 514 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ch.archive.ubuntu.com/ubuntu/ precise/universe checkinstall i386 1.6.2-3ubuntu1 [118 kB]
Fetched 118 kB in 0s (428 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_TIME = "fr_CH.UTF-8",
LC_MONETARY = "fr_CH.UTF-8",
LC_ADDRESS = "fr_CH.UTF-8",
LC_TELEPHONE = "fr_CH.UTF-8",
LC_NAME = "fr_CH.UTF-8",
LC_MEASUREMENT = "fr_CH.UTF-8",
LC_IDENTIFICATION = "fr_CH.UTF-8",
LC_NUMERIC = "fr_CH.UTF-8",
LC_PAPER = "fr_CH.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package checkinstall.
(Reading database ... 213221 files and directories currently installed.)
Unpacking checkinstall (from .../checkinstall_1.6.2-3ubuntu1_i386.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up checkinstall (1.6.2-3ubuntu1) ...
denis@denis-M14xR2:~$ sudo apt-get install cvs subversion git-core mercurial dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version.
dkms set to manually installed.
The following package was automatically installed and is no longer required:
libnl2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
git git-man libapr1 libaprutil1 libdb4.8 liberror-perl libsvn1 mercurial-common
Suggested packages:
mksh rcs git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs
git-svn git-email git-gui gitk gitweb qct wish vim emacs kdiff3 tkdiff meld
xxdiff python-mysqldb python-pygments subversion-tools db4.8-util
The following NEW packages will be installed:
cvs git git-core git-man libapr1 libaprutil1 libdb4.8 liberror-perl libsvn1
mercurial mercurial-common subversion
0 upgraded, 12 newly installed, 0 to remove and 3 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 31.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ch.archive.ubuntu.com/ubuntu/ precise/main libdb4.8 i386 4.8.30-11ubuntu1 [711 kB]
Get:2 http://ch.archive.ubuntu.com/ubuntu/ precise/main libapr1 i386 1.4.6-1 [91.3 kB]
Get:3 http://ch.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 i386 1.3.12+dfsg-3 [75.4 kB]
Get:4 http://ch.archive.ubuntu.com/ubuntu/ precise/main libsvn1 i386 1.6.17dfsg-3ubuntu3 [839 kB]
Get:5 http://ch.archive.ubuntu.com/ubuntu/ precise/main cvs i386 2:1.12.13+real-8 [2469 kB]
Get:6 http://ch.archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
Get:7 http://ch.archive.ubuntu.com/ubuntu/ precise/main git-man all 1:1.7.9.5-1 [630 kB]
Get:8 http://ch.archive.ubuntu.com/ubuntu/ precise/main git i386 1:1.7.9.5-1 [5963 kB]
Get:9 http://ch.archive.ubuntu.com/ubuntu/ precise/main git-core all 1:1.7.9.5-1 [1384 B]
Get:10 http://ch.archive.ubuntu.com/ubuntu/ precise/universe mercurial-common all 2.0.2-1ubuntu1 [1945 kB]
Get:11 http://ch.archive.ubuntu.com/ubuntu/ precise/universe mercurial i386 2.0.2-1ubuntu1 [37.1 kB]
Get:12 http://ch.archive.ubuntu.com/ubuntu/ precise/main subversion i386 1.6.17dfsg-3ubuntu3 [293 kB]
Fetched 13.1 MB in 10s (1268 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_TIME = "fr_CH.UTF-8",
LC_MONETARY = "fr_CH.UTF-8",
LC_ADDRESS = "fr_CH.UTF-8",
LC_TELEPHONE = "fr_CH.UTF-8",
LC_NAME = "fr_CH.UTF-8",
LC_MEASUREMENT = "fr_CH.UTF-8",
LC_IDENTIFICATION = "fr_CH.UTF-8",
LC_NUMERIC = "fr_CH.UTF-8",
LC_PAPER = "fr_CH.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libdb4.8.
(Reading database ... 213253 files and directories currently installed.)
Unpacking libdb4.8 (from .../libdb4.8_4.8.30-11ubuntu1_i386.deb) ...
Selecting previously unselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.4.6-1_i386.deb) ...
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_i386.deb) ...
Selecting previously unselected package libsvn1.
Unpacking libsvn1 (from .../libsvn1_1.6.17dfsg-3ubuntu3_i386.deb) ...
Selecting previously unselected package cvs.
Unpacking cvs (from .../cvs_2%3a1.12.13+real-8_i386.deb) ...
Selecting previously unselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.7.9.5-1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.7.9.5-1_i386.deb) ...
Selecting previously unselected package git-core.
Unpacking git-core (from .../git-core_1%3a1.7.9.5-1_all.deb) ...
Selecting previously unselected package mercurial-common.
Unpacking mercurial-common (from .../mercurial-common_2.0.2-1ubuntu1_all.deb) ...
Selecting previously unselected package mercurial.
Unpacking mercurial (from .../mercurial_2.0.2-1ubuntu1_i386.deb) ...
Selecting previously unselected package subversion.
Unpacking subversion (from .../subversion_1.6.17dfsg-3ubuntu3_i386.deb) ...
Processing triggers for doc-base ...
Processing 6 added doc-base files...
Processing triggers for install-info ...
/etc/environment: line 4: warning: setlocale: LC_NUMERIC: cannot change locale (fr_CH.UTF-8)
/etc/environment: line 5: warning: setlocale: LC_TIME: cannot change locale (fr_CH.UTF-8)
/etc/default/locale: line 3: warning: setlocale: LC_NUMERIC: cannot change locale (fr_CH.UTF-8)
/etc/default/locale: line 4: warning: setlocale: LC_TIME: cannot change locale (fr_CH.UTF-8)
Processing triggers for man-db ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libdb4.8 (4.8.30-11ubuntu1) ...
Setting up libapr1 (1.4.6-1) ...
Setting up libaprutil1 (1.3.12+dfsg-3) ...
Setting up libsvn1 (1.6.17dfsg-3ubuntu3) ...
Setting up cvs (2:1.12.13+real-8) ...
Allowing use of questionable username.
Adding group `_cvsadmin' (GID 125) ...
Done.
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.7.9.5-1) ...
Setting up git (1:1.7.9.5-1) ...
Setting up git-core (1:1.7.9.5-1) ...
Setting up mercurial-common (2.0.2-1ubuntu1) ...
Setting up mercurial (2.0.2-1ubuntu1) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
Setting up subversion (1.6.17dfsg-3ubuntu3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
denis@denis-M14xR2:~$ cd
denis@denis-M14xR2:~$
denis@denis-M14xR2:~$ git clone git://github.com/Bumblebee-Project/bbswitch.git bbswitch
Cloning into 'bbswitch'...
remote: Counting objects: 314, done.
remote: Compressing objects: 100% (175/175), done.
remote: Total 314 (delta 156), reused 293 (delta 135)
Receiving objects: 100% (314/314), 50.42 KiB, done.
Resolving deltas: 100% (156/156), done.
denis@denis-M14xR2:~$ cd bbswitch
denis@denis-M14xR2:~/bbswitch$ sudo make -f Makefile.dkms
mkdir -p '/usr/src/bbswitch-0.5'
cp Makefile bbswitch.c '/usr/src/bbswitch-0.5'
sed 's/#MODULE_VERSION#/0.5/' dkms/dkms.conf > '/usr/src/bbswitch-0.5/dkms.conf'
dkms build -m bbswitch -v 0.5
Creating symlink /var/lib/dkms/bbswitch/0.5/source ->
/usr/src/bbswitch-0.5
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=3.2.0-33-generic-pae KVERSION=3.2.0-33-generic-pae....
cleaning build area....
DKMS: build completed.
dkms install -m bbswitch -v 0.5
bbswitch:
Running module version sanity check.
- Original module
- This kernel never originally had a module by this name
- Installation
- Installing to /lib/modules/3.2.0-33-generic-pae/updates/dkms/
depmod....
DKMS: install completed.
So is it installed now ? Should I reboot and check the battery life ?
Bookmarks