Thursday 31 January 2013

Using 635M Nvidia via Bumblebee on Ubuntu 12.10 64bit

After installing and re-installing the drivers multiple times the following order and packages worked for me. (Basically donig the same as most blogs advise but loaded the Nvidia current updates and configured Bumblebee to use it)

sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic

sudo apt-get install nvidia-current-updates

then edit /etc/bumblebee/bumblebee.conf

gedit /etc/bumblebee/bumblebee.conf
Driver=nvidia
KernelDriver=nvidia-current-updates
LibraryPath=/usr/lib/nvidia-current-updates:/usr/lib32/nvidia-current-updates
XorgModulePath=/usr/lib/nvidia-current-updates/xorg,/usr/lib/xorg/modules
reboot and test

user@machine:~$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0xb5
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile
59.965973 frames/sec - 66.922026 Mpixels/sec
59.915626 frames/sec - 66.865838 Mpixels/sec
59.936809 frames/sec - 66.889479 Mpixels/sec
59.938094 frames/sec - 66.890913 Mpixels/sec
59.933819 frames/sec - 66.886142 Mpixels/sec
59.936031 frames/sec - 66.888611 Mpixels/sec
59.938894 frames/sec - 66.891805 Mpixels/sec
user@machine:~$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 635M/PCIe/SSE2
132.639584 frames/sec - 148.025776 Mpixels/sec
144.849601 frames/sec - 161.652154 Mpixels/sec
143.661287 frames/sec - 160.325996 Mpixels/sec
143.061059 frames/sec - 159.656142 Mpixels/sec
142.425431 frames/sec - 158.946781 Mpixels/sec
152.831347 frames/sec - 170.559784 Mpixels/sec
user@machine:~$


Steam commands for different games:
Left 4 Dead 2 Beta - LD_PRELOAD=./left4dead2/bin/matchmaking.so vblank_mode=0 PRIMUS_SYNC=1 STEAM_RUNTIME=1 primusrun %command%
Dota 2 - optirun --bridge primus %command%
Counter Strike - vblank_mode=0 primusrun %command%

Friday 18 January 2013

Ubuntu create launcher in unity

I wanted to create some custom launchers on Ubuntu in order to cleanup my desktop and add them to the Unity dash and found

Create-launcher a brilliant app in the Ubuntu Software Centre at https://apps.ubuntu.com/cat/applications/quantal/create-launcher/

To install it just click the below:

Get it from the Ubuntu Software Centre!