Bumblebee Ubuntu 12.04 Workaround [Cannot access secondary GPU - error: XORG NVIDIA(0): No display devices found for this X screen]

8:00 PM

nvidia optimus

I've recently got a Dell XPS L702X laptop and I was trying to get Nvidia Optimus GPU switching to work in Ubuntu 12.04, through Bumblebee but when running "optirun", I was getting this error:

[ERROR]Cannot access secondary GPU - error: XORG NVIDIA(0): No display devices found for this X screen.

After trying various different solutions available on the Bumblebee wiki and other websites, I've finally found one that worked, so I though I'd share it with you, in case you encounter the same issue as me.

Note: this has only been tested with Dell XPS L702X and may or may not work for other laptops.


Get Bumblebee working in Ubuntu 12.04 (tested on Dell XPS L702X)

1. Firstly, install Bumblebee if it's not already installed. If you've messed with the Bumblebee config files, it's probably best to revert them to their default values - you can do this by purging and then installing Bumblebee back:
sudo apt-get purge bumblebee
sudo apt-get install bumblebee

2. Now, to apply the workaround for getting Bumblebee to work:

You can see if you have the "nvidia-current" or "nvidia-current-updates" driver installed by searching for "nvidia-current" in in Synaptic.

If you are using the nvidia-current driver, copy/paste the following code in a terminal, as a single command (select all the code and paste it):
echo 'Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "true"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "true"
Option "UseEDID" "true"
Option "ConnectedMonitor" "DFP"
EndSection' | sudo tee /usr/share/X11/xorg.conf.d/10-nvidia-current-latitude-e6530.conf


If you're using the nvidia-current-updates driver, copy/paste the following code in a terminal window, as a single command:
echo 'Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "true"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "true"
Option "UseEDID" "true"
Option "ConnectedMonitor" "DFP"
EndSection' | sudo tee /usr/share/X11/xorg.conf.d/10-nvidia-current-updates-latitude-e6530.conf


After you're done, restart your computer and run "optirun glxspheres" in a terminal to see if Bumblebee / Nvidia Optimus is working correctly - you shouldn't see the error anymore and instead, something like this should be displayed:
andrei@andrei-desktop:~$optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 555M/PCIe/SSE2
108.341661 frames/sec - 120.909294 Mpixels/sec
115.823392 frames/sec - 129.258905 Mpixels/sec
118.948088 frames/sec - 132.746066 Mpixels/sec
118.903546 frames/sec - 132.696357 Mpixels/sec
119.179362 frames/sec - 133.004168 Mpixels/sec
And obviously, glxspheres should start and the framerate should be singnificantly better than running "glxspheres" without "optirun".


Thanks to lucazade @ Ubuntuforums for the Bumblebee Ubuntu 12.04 workaround; image via geeky-gadgets.com

0 comments

» read more....

Jupiter Applet Officially Switches To Python [Quick Update]

6:21 PM

A quick update for Jupiter users: Jupiter 0.1.2 has been released and it now uses Python by default instead of C#. The latest Jupiter comes with an Ubuntu AppIndicator as well as a notification area applet for those who don't use Ubuntu, so there's no need to use PyJupiter anymore. 

The new version also brings support Glidepoint touchpads and bug fixes.

Jupiter applet
Jupiter running in Ubuntu (AppIndicator)

Jupiter in Fuduntu (Tray applet)


If you're using the WebUpd8 PPA and have either PyJupiter or Jupiter installed, there's no need to remove any packages, just run a regular update (dist-upgrade may be needed if you run it from the command line) and you should get the new Jupiter 0.1.2. The "pyjupiter" package is now a metapackage so you can remove it if you want.

To install Jupiter in Ubuntu 12.04, 11.10, 11.04 or 10.10, use the commands below:
sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

The latest Jupiter 0.1.2 is also available as a RPM: download.

For other Linux distributions, you can get the Jupiter source via SourceForge.

second screenshot via Fewt

0 comments

» read more....

Jupiter Applet Ported To Python, Gets Ubuntu Indicator Support

11:15 PM

py-jupiter applet indicator ubuntu

Jupiter is an applet designed to improve laptops / netbooks battery life. It can be used to switch between maximum, high performance and power saving modes, change the screen resolution and orientation, enable or disable bluetooth, touchpad, WiFi (if available) and so on. If you own an Asus EeePC netbook, there's also a separate package that adds support for Asus Super Hybrid Engine (SHE) as well as some other EeePC tweaks.

Jupiter applet is written in Mono and it comes with a systray icon only, so to use it in Ubuntu you have to whitelist Jupiter to get it to work. Jorge Luis Betancourt Gonzalez has re-written Jupiter applet in Python (there are no more Mono dependencies) and added Ubuntu appindicator support, so there's no need to whitelist the systray anymore. The new Jupiter applet written in Python is called pyJupiter.

This isn't an official Jupiter port to Python, though Fewt, the Jupiter developer, is considering switching Jupiter to Python. Update: Jupiter has officially switched to Python so there's no need to use pyJupiter anymore. Just install Jupiter as usual.

For now, the Jupiter indicator only comes with Ubuntu mono light (for dark panels) icons but if you want to use it with a light panel, you can download Ubuntu mono dark Jupiter icons from HERE (to use them, copy the icons to the /usr/share/pixmaps folder).


Install pyJupiter in Ubuntu


Update: Jupiter has officially switched to Python so there's no need to use pyJupiter anymore. Just install Jupiter as usual.

To install pyJupiter in Ubuntu 12.04, 11.10, 11.04 or 10.10 (it doesn't work properly in Ubuntu 10.04), use the following commands:
sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install pyjupiter

Note: Installing pyJupiter will remove Jupiter, so you can't have both in the same time.

If you own Asus EeePC netbook, also install jupiter-support-eee - required for SHE (Super Hybrid Engine):
sudo apt-get install jupiter-support-eee

Many thanks to Jorge Luis Betancourt Gonzalez and to Ernesto Acosta from desdelinux.net!

0 comments

» read more....

How To Dual-Boot Android-x86 And Ubuntu (With GRUB 2)

6:56 PM

Android 4.0 ice cream sandwich

Some of you have asked how to dual-boot Android-X86 4.0 ICS (which uses GRUB legacy) with Ubuntu (GRUB 2), so here's how to do it, including a video showing all the required steps as well as installing Android-X86.

It doesn't matter in which order you install Ubuntu and Android-x86 40, but if you install Android-x86 after Ubuntu, make sure you don't select to install GRUB or else you'll have to reinstall GRUB manually using a Live CD.

Notes:
  • All Android-x86 supported filesystems should work (ext2, ext3, fat32 and ntfs)
  • It may work with other Linux distributions that use GRUB 2, but I've only tested it with Ubuntu. Some parts of the instructions below may be different for other Linux distributions. Also, the Android-X86 version used in my test was 4.0 Ice Cream Sandwich RC1.

Firstly, here's a video with all the required steps to dual-boot Android-x86 4.0 and Ubuntu:


(direct video link)



How to dual-boot Android-X86 and Ubuntu


1. After you've installed both Ubuntu and Android-x86, you need to boot into Ubuntu and modify the "40_custom" GRUB script:
gksu gedit /etc/grub.d/40_custom

And at the bottom of the file, add this:
menuentry "Android-x86" {
set root='(hd0,0)'
linux /android-4.0-RC1/kernel quiet root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode SRC=/android-4.0-RC1 SDCARD=/data/sdcard.img
initrd /android-4.0-RC1/initrd.img}

There are some changes you'll need to make to the above menu entry (code above):
  • If you didn't create an sdcard image, remove the "SDCARD=/data/sdcard.img" part from the 3rd line (make sure you don't remove anything else!)
  • The above menu entry uses "eeepc" for androidboot.hardware, but you can replace it with your hardware, depending on the ISO you've downloaded (use "asus_laptop" for the ASUS Laptop ISO, etc.) or use "generic_x86".
  • If you haven't installed Android-x86 4.0 RC1 but some other version, replace the lines containing "android-4.0-RC1" with your version.
  • For Android-x86 versions older than 4.0, use "androidboot_hardware" instead of "androidboot.hardware"

But the most important thing you need to change in the menuentry is the partition on which you've installed Android-x86, "(hd0,0)" in my example. If you don't know on which partition you've installed it, run the following command in a terminal:
sudo fdisk -l

In the video above, I've installed Android-x86 on "sda6", so I've replaced "(hd0,0)" with "(hd0,6)" - hd0 means the first hard disk ("sda") and "6" is the partition and comes from "sda6".

Hard disk naming starts with 0 so basically, sda is "hd0", sdb is "hd1" and so on. Counting partitions doesn't start with 0, so if you've installed Android x86 on let's say "sda5", you'd use "(hd0,5).

Once you make these changes, save the file.

2. Now let's make the file executable and update GRUB 2:
sudo chmod +x /etc/grub.d/40_custom
sudo update-grub

3. That's pretty much it. Now you can restart your laptop/netbook and while it boots, press and hold the SHIFT key (before GRUB loads) or else the GRUB menu won't be displayed. Here, select if you want to boot Ubuntu or Android-x86 (or whatever other operating systems you may have).

If you want the GRUB menu to show up on every boot, you can tweak it using a tool such as Grub Customizer or Startup Manager.


Reference: Grub 2 Basics; thanks to xshaneyx's comments.

0 comments

» read more....

Android-x86 4.0 RC1 Released (Android Ice Cream Sandwich Optimized For Netbooks / Laptops)

2:56 AM

android x86 4.0 ice cream sandwich

Android-x86 is a project that provides Android support for x86, making it easy to install it on netbooks or laptops. You can use it like any other Android 4.0 Ice Cream Sandwich device: install applications from the Android Market, add widgets and so on.

The Android x86 team has released Android x86 4.0 RC1, based on Android 4.0.3 (Ice Cream Sandwich) and features:
  • Support Multi-touch, Wifi, Audio, Bluetooth, G-sensor and Camera.
  • OpenGL hardware acceleration for AMD Radeon and Intel chipsets
  • Kernel 3.0.8 with KMS enabled - most netbooks can run Android-x86 in the native resolution.
  • V8 javascript engine
  • Simulate sdcard by internal storage
  • External usb drive and sdcard are auto mounted to /mnt/USB on plugging
  • Experimental support of Renderscript
  • A text based GUI installer which supports ext3/ext2/ntfs/fat32 filesystems
  • Hybrid ISO (you can dump the iso into a usb drive using "dd if=android-x86-4.0-xxx.iso of=/dev/sdX")

In my test Android x86 4.0 worked great on my  Asus EeePC: the camera, Wifi and so on are supported out of the box. The only issue I've had was related to suspend/sleep: I was unable to unlock the screen, but at least in my case, there was a fix (see under tips below). Also, applications compiled for ARM like Chrome, Firefox or Netflix and others don't work (they don't even show up in the Market) unless you recompile them.

If you don't have a netbook or laptop to test it and you want to give it a try in VirtualBox, unfortunately the ethernet won't work for now. You can, of course, test it in VirtualBox without an Internet connection - simply download the EeePC version, create a new VirtualBox machine and run it.

Update: for a custom ISO with a patch that adds ethernet support, see THIS post (thanks to Paweł Lesiecki!) but please note that this build doesn't have the Android Market installed by default (and comes with some other customizations). Since this not an official Android-x86 ISO, use it at your own risk!

A few Android-x86 4.0 (ICS) tips:
  • When using it in VirtualBox, but make sure you select "Disable Mouse Integration" (under the "Machine" menu) to get the mouse to work once you boot the Android x86 4.0 Live ISO
  • Disable screen autorotate from the Android-x86 settings, or else some application might rotate it for you (and that's quite annoying if your device doesn't support it)
  • If you can't unlock the screen, try to use the built-in wake-up keyboard shortcut if available (Fn + F1 for my Asus EeePC), then use the mouse to slide the keyguard
  • For shutdown / power off, you can use an application such as Shutdown.


Android x86-4.0 RC1 screenshots


Here are a few screenshots from my Asus EeePC running Android-x86 4.0 RC1:

android x86 4.0 screenshot

android x86 4.0 screenshot


android x86 4.0 screenshot

android x86 4.0 screenshot

android x86 4.0 screenshot

android x86 4.0 screenshot

android x86 4.0 screenshot


Download Android x86 4.0


Android-x86 4.0 has been tested / it should work on AMD Brazos (MSI 110W), Asus EeePC or some Asus laptops/tablets and Tegav2 / Viewpad 10. These are the officially supported devices, but Android-x86 should work on others too. An old list of supported devices / hardware can be found HERE.

Download Android-x86 4.0 RC1 Live CD ISO.

To use it, write the ISO on an USB stick using Unetbootin, Linux Live USB Creator (LiLi) or using the command line (example: "dd if=android-x86-4.0-RC1-eeepc.iso of=/dev/sdX", where "sdaX" is your USB drive). For more info, see the Android-x86 installation page or see here: 4 Ways to Create Bootable Live USB Drives (For Windows, Linux and Mac OS X).

Update: also see -> How To Dual-Boot Android-x86 And Ubuntu (With GRUB 2)

news via lffl.org

0 comments

» read more....

Bumblebee 3.0 Released (Nvidia Optimus GPU Switching For Linux)

11:35 PM

Nvidia Optimus is a technology available for notebooks, used to increases battery life by switching the dedicated GPU off when it's not needed and then switching it on again when it's needed. When the dedicated GPU is off, the integrated graphics chip is used.

Nvidia Optimus GPU switching is officially only supported on Windows 7, but it's also unofficially available on Linux thanks to the Bumblebee project.


Bumblebee 3.0 "Tumbleweed" has been released yesterday - here are the release highlights:
  • Server / client re-written in C which provides increased performance and reliability
  • Automatic power management which also survives suspend
  • Improved error detection and reporting
  • Better system integration
  • Switch to Upstart startup mechanism
  • acpi_call has been replaced with bbswitch and vga_switcheroo
  • Nouveau support for the Ubuntu PPA package
  • "optirun --status" will now show the current status of Bumblebee and the secondary GPU on your system
  • Xorg configuration greatly simplified, provided defaults usually work out of the box.
The complete  changelog can be found here.


Please note that I do not own a Nvidia Optimus powered device so I couldn't test this!

To install Bumblebee 3.0 "Tumbleweed", see the Bumblebee installation wiki page (instructions for Arch Linux, Debian, Ubuntu - PPA included, and installation from source). Oh, and to use it, you obviously need a Nvidia Optimus powered notebook.


0 comments

» read more....

CPU Frequency Scaling Indicator, Fixed For Ubuntu 11.10 Oneiric Ocelot

5:01 AM

Indicator CPUFreq Ubuntu 11.10

CPUFreq Indicator is a CPU frequency scaling GNOME panel applet replacement.

A new CPUFreq Indicator version has been uploaded to its PPA for Ubuntu 11.10 Oneiric Ocelot. The new version comes with some very important fixes, such as: the bug that caused CPUFreq Indicator to only manage one core as well as the bug that was causing it not to work at all in Ubuntu 11.04 have been fixed for Ubuntu 11.10. The latest version also comes with a new AppIndicator icon.

Unfortunately these fixes are not available (at least for now) for Ubuntu 11.04. The PPA now provides the new version for Ubuntu 11.04 Natty Narwhal too.


To install the latest CPU Frequency Indicator in Ubuntu 11.10 Oneiric Ocelot or 11.04 Natty Narwhal, use the commands below:
sudo add-apt-repository ppa:artfwo/ppa

sudo apt-get update

sudo apt-get install indicator-cpufreq

CPUFreq Indicator will be automatically added to your startup applications (only available for the Oneiric version) so it will start automatically when you log in. To run it manually, press ALT + F2 and type:
indicator-cpufreq

Report any bugs you may find @ Launchpad.

0 comments

» read more....