0
$\begingroup$

Rosanswers logo

How to make use of the nvidia gpu on ASUS 1215N for rviz and gazebo.

The default Intel gpu and driver does not support GLX Direct Rendering, so rviz and gazebo will not run.


Originally posted by hsu on ROS Answers with karma: 5780 on 2011-09-23

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

Please note this list of instructions is constructed off my memory, and it will almost certainly semi-permanently mess up rendering on your laptop, please only attempt it at your own risk!

Steps to "working" nvidia gpu in Natty on ASUS 1215N:

  • Upgrade to Natty
  • Blacklist nouveau, fbcon, vga16fb in /etc/modprobe.d/blacklist.d by adding following lines:
blacklist nouveau
blacklist fbcon
blacklist vga16fb
  • Make a backup of /usr/lib/xorg/modules/extensions/libglx.so (sometimes installing nvidia proprietary driver overwrites libglx.so, breaking glx for the intel driver). If that happens, restore it with the copy that you've backed up, or reinstall xserver-xorg-core.
  • Follow instructions on the Ironhide Project Website and install Ironhide. This automatically pulls in nvidia-current. Make sure this process does not create /etc/X11/xorg.conf, if that happens, rename it to something else. Otherwise, you'll get a blank screen when you boot up your laptop again.
  • Reboot your laptop.
  • now try optirun -f glxinfo, and you should see Direct Rendering: Yes. (Also, glxgears gets about 60 fps with i915, but ~170 fps with nvidia (optirun -f glxgears).

Finally, to start rviz:

roscd rviz
optirun -f ./bin/rviz

How this works: By default, all rendering to the screen are done through the i915 kernel module. Ironhide tunnels an invisible rendering buffer for the nvidia gpu to the screen using VirtualGL. For details, please consult the ironhide site.

Potential trouble: If something goes wrong, and you find yourself having to "type in the dark" because screen rendering has been compromised, boot into rescue mode, remove or rename /etc/X11/xorg.conf, make sure you have the i915 kernel module installed:

sudo apt-get install --reinstall xserver-xorg-video-intel xserver-xorg-core

and reboot.

Please let me know if you make any attempts to replicate this process, so I can refine and make corrections to the above instructions.

Lastly, for reference, turtlebot gazebo simulation runs about 1.4Xreal-time on the asus laptop if sensor generation is not activated. Once you subscribe to the kinect point clouds, simulation drops to about 0.15Xreal-time.


Originally posted by hsu with karma: 5780 on 2011-09-23

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$
0
$\begingroup$

Rosanswers logo

With my Asus 1215N that came with my turtlebot...

I had trouble with Ironhide; instead, I ended up using Bumblee Project at https://github.com/Bumblebee-Project/Bumblebee . With it, I get ~250 fps from optirun glxgears (and it requires no configuration; just download, install, reboot).

Note: do not confuse "Bumblee Project" with just plain "Bumblebee," which is a parent of both Bumblebee Project and Ironhide.


Originally posted by Nick Armstrong-Crews with karma: 481 on 2011-12-23

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.