Monday, December 08, 2008

Important Privacy Notice

If you care for your privacy, make sure to always delete /var/lib/zypp/AnonymousUniqueId before using any of the package management tools (YaST2, zypper).

Setting the repeat rate on an input device (Kernel 2.4 and 2.6)

If you ever come into the situation of having to set the repeat delay/period on an input device (/dev/input/eventX), with the additional challenge of needing it to work on both 2.4 and 2.6 kernels, maybe this code snippet might help you (fd is the filedescriptor of the device, opened writable):
        #include <linux/input.h>
struct input_event ie;
ie.type = EV_REP;
ie.code = REP_DELAY;
ie.value = 1000; /* 1 second initial delay */
if (write(fd, &ie, sizeof(ie)) == -1)
perror("REP_DELAY");
ie.code = REP_PERIOD;
ie.value = 250; /* 4 events per second */
if (write(fd, &ie, sizeof(ie)) == -1)
perror("REP_PERIOD");

Looks pretty trivial, doesn't it? But it took me quite some time to realize that I needed to write a "magic" event into the device to set the properties ;)

Wednesday, December 03, 2008

WINE followup: Open Source Software Rocks!

Just a short followup to my last post about WINE and the problems it had with "Avatar - Legends of the Arena": most likely, with the next WINE version it will just work out of the box, due to this commit to the WINE git repository.

Yay! That's quick bug fixing (or actually: implementing a feature). Thanks!

Sunday, November 30, 2008

WINE makes my kids happy

Of course my kids have a Windows 2000 on their machine, used only as a "game bootloader". And of course this Windows has no internet connectivity, since I would not even know how to keep it somewhat secure.
But now my son came up with that new, apparently uber-cool game from nick.com called "Avatar - Legends of the Arena", and he really wanted me to make it work with his machine. Unfortunately this game is - of course - only available for Windows, and it needs an internet connection - something I was not willing to enable on the Windows installation.

The way out of the dilemma: WINE.
There were only minor problems, e.g. that the game would install, but then still could not connect to the game server, but a look at the console output showed

fixme:wininet:InternetSetOptionW Option 28 STUB
fixme:wininet:InternetSetOptionW Option 29 STUB


And with the help of Marcus Meissner (also here), we found out that all that was needed to get it going was that the original W2K wininet.dll had to be copied to ~/.wine/drive_c/windows/system32/ and then the game could be started with

WINEDLLOVERRIDES="wininet=n" wine AvatarMP.exe

Cool stuff, WINE developers!

Now the next thing to get going is the TomTom Software ;)

Friday, November 28, 2008

Konqueror finally got decent adblock support!

Today I finally updated my machine to openSUSE 11.1 beta6 (was still running plain beta5 before). Then I started to wonder what this small red icon in the lower right corner of Konqueror (KDE 4) could be.
Clicking on it, it popped up an adblock dialog, listing all the blockable items on the current site and showing if they are already blocked or not. It also allows to add items to the block list.

Basically that's functionality that's present in Firefox extensions since years, but it is nice to finally see it also implemented in my favorite browser.

Thanks, KDE team!

Monday, November 10, 2008

NLUUG "Mobility" Conference

Last week, I was attending the NLUUG autumn conference, themed "Mobility" (Unfortunately, there is no usable english page, but at least the programme should be available here). I was giving two talks on the topics "suspend" and "UMTS/3G", which went pretty well.
Apart from the 10+ hours train ride to and from Ede, this was a very nice event with many good talks and lots of interested and interesting people. Additionally, the ELC-E Embedded Linux Conference Europe was held simultaneously, which provided for even more interesting talks. Unfortunately I could not stay for the second day of ELC-E talks, because I had to take care of returning home in time for the weekend.

The papers are already up on the conference website, I assume that the slides will follow soon, too.

Wednesday, October 08, 2008

"smart" suspend in pm-utils

I finally implementd the "smart" suspend in our pm-utils package. This means that hopefully more machines will just suspend to RAM "out of the box" without any tweaking of configuration etc. It also leverages the quirks list in HAL which is a bit bigger than the one in s2ram (but IMVHO also of lower quality...) in case the machine is unknown to s2ram.

Give it a try in the next beta, or, if you can't wait any longer, fetch it from home:seife:Factory (the Build Service is pretty busy lately, so the packages are not built for Factory yet, just use the 11.0 version, it should work in 11.1 too).