Skip to content

Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R

There is no 64 bit version of Google Earth for linux, so you'll need to make sure you have the latest version of the following packages first:

app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-gtklibs
app-emulation/emul-linux-x86-qtlibs
app-emulation/emul-linux-x86-soundlibs
app-emulation/emul-linux-x86-xlibs

This allowed me to start GE in the first place. But then it was horribly slow, although glxinfo reported "direct rendering: Yes" etc.

When started from the console, GE would output the following:

do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.

Doing a search led me to try setting LIBGL_ALWAYS_INDIRECT=1 before running Google Earth. Indeed the warning disappeared, and GE was really faster. However, as soon as I would zoom too close, the whole screen was getting more and more sky-blue, until no image was being displayed anymore...

Finally, I found this article, and especially the comments from Eduardo Habkost and "Researcher".

I followed Researcher's instructions, and Google Earth is now working perfectly. For your convenience, I've put drm_nowaitVblank.c here to download (you cannot copy-paste from the original page because the parser there treats the includes as html code). Also to compile the code on amd64 you'll want to use gcc32 and not gcc...
  • Twitter
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Mixx Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Bloglines Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Technorati Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Fark this: Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at YahooMyWeb
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at Furl.net
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at reddit.com
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at blinklist.com
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at Spurl.net
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at NewsVine
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at Simpy.com
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at blogmarks
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)

An update to my initial article on installing Gentoo on my nx7400 laptop:

I've switched to kernel 2.6.21-gentoo (latest gentoo-sources available currently with ~amd64), and to the latest versions of ipw3945, alsa and xorg, and suspend to ram works fine now. (the screen would not switch on again with vanilla kernel 2.6.19)

Hibernation (suspend to disk) seems to work as well, apart from the fact that the screen resolution is not restored correctly, but for now I'm happy with suspend-to-ram.
  • Twitter
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Mixx Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Bloglines Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Technorati Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Fark this: Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at YahooMyWeb
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at Furl.net
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at reddit.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at blinklist.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at Spurl.net
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at NewsVine
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at Simpy.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at blogmarks
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)

Fondu is "A set of programs to interconvert between mac font formats and pfb, ttf, otf and bdf files on unix."

I think that says it all :o) In particular, it allowed me to convert a .dfont-packaged font from a Mac to a set of .ttf files that I can use on my linux desktop.
  • Twitter
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Mixx Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Bloglines Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Technorati Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Fark this: Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at YahooMyWeb
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at Furl.net
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at reddit.com
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at blinklist.com
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at Spurl.net
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at NewsVine
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at Simpy.com
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at blogmarks
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)

For years I've been annoyed by the habit thunderbird has to set "Content-Disposition: inline" when you attach a text file to an outgoing e-mail.

Experimenting with our mail to fax gateway, I finally took the time to fix it today. As with some other "advanced" settings in Fireforx/Thunderbird, there is an option you can set to achieve the (imho) correct behavior, but no GUI dialog for it.

So in order to have outgoing text files attached with "Content-Disposition: attachment", you need to set mail.content_disposition_type to 1 (default is 0). You can do this by going to "Edit" -> "Preferences" -> "Advanced" -> "Config Editor". (Using the windows version it's probably "Tools" -> "Options" -> etc.)
  • Twitter
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)
  • Mixx How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)
  • Bloglines How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)
  • Technorati How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)
  • Fark this: How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at YahooMyWeb
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at Furl.net
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at reddit.com
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at blinklist.com
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at Spurl.net
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at NewsVine
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at Simpy.com
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) at blogmarks
  • Bookmark How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Diskless Linux on a Sunblade 100

Initially written on 2006-05-17

On my other (x86/amd64) diskless machines, I use PXE with pxegrub. My setup is quite similar to (and inspired by) this one.

Now, on sparc machines, there is no BIOS nor PXE. But you don't need all that, since you have the Open Boot... This is how I managed to make my Sunblade 100 totally diskless (using a "vanilla" kernel, the latest version being currently 2.6.16.16).

Note: In this example, 10.0.0.10 will be my dhcp/nfs/tftp server which I will refer to as 'fileserver'. 10.0.0.30 is the sunblade.

- when configuring the kernel:
[*] Default bootloader kernel arguments (ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/sunblade)

(in "Networking" -> "Networking support" -> "Networking options")
[*]   IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support

(in "File systems" -> "Network File Systems")
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Root file system on NFS

Configure all other settings as you would do for a disk install, but make sure you compile your NIC driver in the kernel (not as module)

Then:
make
make modules_install
make tftpboot.img ROOT_IMG=/dev/null
(the resulting tftpboot.img will be in arch/sparc64/boot/tftpboot.img)

I copied tftpboot.img to fileserver as tftpimage-2.6.16.16, and added the following entry in my dhcpd.conf:
host sunblade {
hardware ethernet 00:03:BA:08:12:34;
fixed-address 10.0.0.30;
always-reply-rfc1048 on;
filename "sunblade/boot/tftpimage-2.6.16.16";
}


Finally, to net-boot your diskless Sunblade you'll need to enter
boot net:dhcp
in the Open Boot prompt. When you are happy with it, you can set it as default:
setenv boot-device net:dhcp cdrom disk net



Notes:

- apparently, instead of using make tftpboot.img you can just "elftoaout" vmlinux

- another alternative would be to use tilo, which comes with silo, to build the image
  • Twitter
  • Bookmark Diskless Linux on a Sunblade 100 at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Diskless Linux on a Sunblade 100
  • Mixx Diskless Linux on a Sunblade 100
  • Bloglines Diskless Linux on a Sunblade 100
  • Technorati Diskless Linux on a Sunblade 100
  • Fark this: Diskless Linux on a Sunblade 100
  • Bookmark Diskless Linux on a Sunblade 100 at YahooMyWeb
  • Bookmark Diskless Linux on a Sunblade 100 at Furl.net
  • Bookmark Diskless Linux on a Sunblade 100 at reddit.com
  • Bookmark Diskless Linux on a Sunblade 100 at blinklist.com
  • Bookmark Diskless Linux on a Sunblade 100 at Spurl.net
  • Bookmark Diskless Linux on a Sunblade 100 at NewsVine
  • Bookmark Diskless Linux on a Sunblade 100 at Simpy.com
  • Bookmark Diskless Linux on a Sunblade 100 at blogmarks
  • Bookmark Diskless Linux on a Sunblade 100 with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca