Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday, 26 April 2013

Ubuntu 13.04 Nvidia Optimus Bumblebee

This is how to make Bumblebee works in Ubuntu 13.04 otherwise you will get [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

I have Nvidia GT540M and Intel HD Graphics 3000 on Alienware M11x R3
Open the terminal and follow the instructions below:

1) Add the repository:

sudo add-apt-repository ppa:bumblebee/stable


2) Update the repository index:

sudo apt-get update


3) Install bumblebee:

sudo apt-get install bumblebee bumblebee-nvidia


4) Reboot your system



5) Now we need to get the BusID. Open the terminal again and type:
lspci | grep NVIDIA

It will give you the output:


01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev ff)


01:00.0 is my BusID


6) We need to edit xorg.conf.nvidia. Install GKSU if it is not installed yet.
sudo apt-get install gksu

7) Edit the file:
gksu gksu gedit /etc/bumblebee/xorg.conf.nvidia

8) Go to section device and add the BusID as below:

Section "Device"
    Identifier  "Device1"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    BusID "PCI:01:00:0"

Take note, it is BusID 01:00:0 instead of dot 01:00.0


9) Restart your system


10) Test to run the bumblebee
optirun glxspheres


Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
134.682392 frames/sec - 150.305550 Mpixels/sec
146.435690 frames/sec - 163.422230 Mpixels/sec
145.848772 frames/sec - 162.767230 Mpixels/sec

That's it! It should run perfectly

Saturday, 25 February 2012

Kubuntu 11.10 No Sound, Dummy Output Selected.

My Laptop is Asus A43S with sound card GF108 High Definition Audio Controller.
I understand that by selecting the profile to off and use internal Audio will solve the problem but my case is different. It will become dummy output and Internal Audio Analog Stereo is greyed out.























Phonon is sucks, simple solution is to use Pulse Audio Volume Control
sudo apt-get install pavucontrol
and set as below:

Now the sound is back.

Monday, 2 May 2011

Ubuntu 11.04 can't apt-get update

This is the continuation from my last post Gnome 3 on Ubuntu 11.04 Natty Narwhal

After I uninstall the Gnome 3 and revert to unity, I've decided to upgrade back to Gnome 3 again, honestly I'm not happy with Unity, it's very lag.

As usual, I run the apt-get update and this is what I got:
E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/gnome3-team-gnome3-natty.list


I try to delete the gnome3 list and successful!
Check the entry:
ls -l /etc/apt/sources.list.d/

and delete it:
rm /etc/apt/sources.list.d/gnome3-team-gnome3-natty.list

rm /etc/apt/sources.list.d/gnome3-team-gnome3-natty.list.save

Then run the apt-get update and it should be okay.


Note: After I got this update this morning May 2nd 2011 (Malaysia Local Time), I was surprised that Gnome3 now has included maximize and minimize button, this is awesome news

Related post:
Gnome 3 on Ubuntu 11.04 Natty Narwhal

Saturday, 30 April 2011

Gnome 3 on Ubuntu 11.04 Natty Narwhal

Last night I slept late until 3:30 am because I wanted to try out Gnome 3  hehe interesting, What I can say is.. wow! it's lighter and faster than the previous one. By the time I'm writing this, The only problem is lack of development on customization software. Maybe it's still new or developers concentrate more on Unity now.

So, let's have a try: (these steps maybe outdated soon because they keep on patching it everyday )
Open Terminal and enter this command

Add to repository:
sudo add-apt-repository ppa:gnome3-team/gnome3

And get the update:
sudo apt-get update

Get the upgrade:
sudo apt-get dist-upgrade

Now this is important otherwise you'll be shocked by the ugly interface just like windows 95, delete it:
sudo apt-get remove gnome-accessibility-themes

Install the standard Gnome 3 theme:
sudo apt-get install gnome-themes-standard

Restart your PC to complete the update and at the login screen, select Ubuntu Gnome Desktop and there you go, it's done.

In case you don't like it and want to revert back to Unity, follow this to remove Gnome 3.
sudo apt-get install ppa-purge

sudo ppa-purge ppa:gnome3-team/gnome3

aptitude will gives the following output:
Leave the following dependencies unresolved:
     gnome-control-center-data recommends gnome-control-center

When it asks you to enter yes/no: type the following.
- gnome-control-center-data

And proceed to select Y if it asks for any prompt. Logout and select ubuntu, done.