hdaps-gl and lis3lv02d

I have an accelerometer in my hp compaq nc2400 laptop which I was trying to access with hdaps-gl. However, since hdaps-gl is written for thinkpad accelerometers, it did not work out of the box and I had to adjust the code to match the path to the ‘position’ file containing the coordinates of the device. I made a PKGBUILD that patches the link to the ‘position’ file in hdaps-gl.c. The program runs now, the orientation is still wrong and the sensitivity is too high though.

I might have a look at it soon again and fix it. Here is the PKGBUILD:

# Contributor: Tomas Kramar
# Edited by panuh to suit lis3lv02d

pkgdesc=’Thinkpad Accelerometer OpenGL monitor patched for lis3lv02d in hp compaq notebook’
arch=(‘i686′ ‘x86_64′)

cd $startdir/src/${pkgname}-${pkgver}
sed -i “s/hdaps\/position/lis3lv02d\/position/” hdaps-gl.c
make || return 1
mkdir -p $startdir/pkg/usr/bin
install hdaps-gl $startdir/pkg/usr/bin/hdaps-gl

Have fun.

Eduroam at FSU Jena with wicd / eduroam an der FSU Jena mit wicd

These are instructions to get connected with the eduroam and 802.1X networks at Jena University in Germany.

Atm I do not have the time to translate, but I will publish an e-mail that i sent to the system administrator of the URZ. Unfortunately they do not consider wicd common enough to be mentioned in their online instructions. Apparently they consider them bloated as they are.

Anmerkungen zu den templates:
Die templates müssen nach /etc/wicd/encryption/templates/ kopiert werden.

Dann müssen noch die Profile aktiviert werden (als root in einem terminal):
echo eduroam >> /etc/wicd/encryption/templates/active
echo wireless_8021x >> /etc/wicd/encryption/templates/active

Der wicd daemon muss anschliessend neu gestartet werden (im
Zweifelsfall Computer neu starten).
Unter Archlinux als root im terminal:
/etc/rc.d/wicd restart

Die Logindaten nach diesem Schema im wicd client eintragen (Das Zertifikat ist optional):

Evtl. müssen noch die Dateirechte angepasst werden.
Dazu als root ausführen:
chown root:root /etc/wicd/encryption/templates/wireless_8021x
chown root:root /etc/wicd/encryption/templates/eduroam
chmod 644 /etc/wicd/encryption/templates/wireless_8021x
chmod 644 /etc/wicd/encryption/templates/eduroam

The following is the template for eduroam. For 802.1X you will have to replace “eduroam” with 802.1X everywhere in the template. When adding the template to the list of active templates, be aware that is is case sensitive. You should save this in a file called eduroam, the modified version for 802.1X as wireless_8021x.

name = eduroam
author = panuh
version = 1
require identity *Identit”at password *Passwort
pairwise=CCMP TKIP

pm-suspend broken? disable tpm_tis

Recently I had problems suspending my Compaq nc2400 due to an update of the kernel (26.6.37).

Following this I could avoid the problem by blacklisting the kernel module tpm_tis. For blacklisting modules, add them to the MODULES-line in /etc/rc.conf with a prepending exclamation mark to disable:

MODULES=(… !tpm_tis)

The removal seems to have no negative impact on my system whatsoever.  rmmod tpm_tis didn’t do the trick after running pm-suspend with the module loaded. I had to reboot.

tpm_tis is some kind of  a workaround module for the intel tpm (Trusted Platform Module). I did not know about tpm (a quick scroogle on “use tpm with linux” will tell more). I wonder if it makes sense to use it. i’ll try to check it out.

Sakura Irssi Fix

I’ve been playing around with some terminal emulators this evening whereby I also tried Sakura.

I’ve been using rxvt-unicode for a while now and one thing that I still miss is being able to scroll via keyboard. On my search for the right combination I ended up trying different …oh, I’m repeating myself.

Well, as I tried sakura, which is a nice, plain client based on vte and gtk, i came across the problem that irssi wouldn’t respond to any Alt+n keypresses to change the window. Turned out this was because sakura has tab-management which is controlled by those keys.

So I asked Scroogle and it showed me the way to Virtual Disaster where a fix was posted. Actually it was just about removing those lines of code responsible for the shortcut.

Since the named Entry is from 2007 some things have changed of course. The lines I had to remove in Version 2.3.8 were 354-356:

  • if (topage <= npages)
  • gtk_notebook_set_current_page(GTK_NOTEBOOK(sakura.notebook), topage);
  • return TRUE;

Remove them, make, make install, et voilà! Sakura without the bugging Alt Keybinding.

I haven’t really tried it beyond this point. As I realized I don’t have the possibility to draw a selection block (instead if lines) what I’m used to from urxvt, I switched back. Maybe xterm or aterm can do it.

I also tried Eterm, which made a nice impression, too. But it seemed like you can’t turn off the menu bar. So I let it be. Yet, this was the first time I messed with code. Maybe I can also remove the bar from Eterm… hmmm…

Good, but if there is anyone with the sakura+irssi problem out there, I hope I could help.

P.S.: Sorry I still haven’t looked for some html snippet to paste code more eye-friendly.

Hide floating layer in wmii

I noticed a nice standard feature in wmii some days ago, that is that the floating layer doesn’t HAVE to be on top.

Since I don’t use it so frequently I never considered it an issue that I couldn’t do it but now it’s nice. Sometimes it’s practical to have a transparent floating terminal window over the browsing window. At least on a 12″ widescreen it is.

I think this is not mentioned in the manpage but it’s standard at least in wmii-hg with tha bash config.

What you have to do is use the shortcut for maximization (Mod-m) on the floating window. This will also effect all other floating windows with the same tag to disappear so that only one will show up. In the upper right of the shown window will be it’s number and the amount of windows in floating mode. When you switch to the managed layer they will all disappear.

Btw. I’ll switch to the ruby port soon, probably. I’ve chosen it to be the first language to actually learn and thereby exceed my very basic knowledge from school. Which is also some time ago…

I hope this will be a nice and smooth way to get into Ruby and programming itself.

Wireless solved!

Okay, so I had this problem with my Wireless device (Intel 3945ABG) which now has a nice workaround which I like to consider a solution :D

Actually it’s just about two things: Using wicd and adding a pre-connection script to remove and add the iwl3945 Module. Precautions as I am I also added a line to remove a dhcpcd lease. So that would be:

  • rm /var/lib/dhcpcd/dhcpcd-wlan0.lease
  • modprobe -r iwl3945
  • modprobe iwl3945

Put that in /etc/wicd/scripts/preconnect, don’t forget to make it executable et voilà!
It would have been nice to find a solution for netcfg though. I’m so happy with my autoconnect in wicd right now that I will leave it like that but when I’m used to it I’ll have a look into netcfg again. Probably it has a similar script function, too. I just don’t know it and I didn’t look for it.

How cool is that?

Haha! I haven’t really understood how cmus works but it seems just to play cool music from my collection without needing me to choose it^^

I mean, when the playlist is over it will sometimes just continue to play and it’s always something I like. This is going to be a big facepalm when I realize the reason for it I think. Bbut right now it’s just magic, hrhr.

Seems to rock away MPD for me. Still not sure. I’m just checking out different players. Actually I couldn’t figure out how to let MPD access folders in my home(runnin as its own user). Had it working before but with an own folder in /var and loved it so far. So don’t see this as hidden MPD bashing ;) ID3 editing rules in MPD!


Since I’m using vimprobable for the most part of browsing and I want to use Tor for everything, that doesn’t need lots of bandwidth I’ve been looking for a nice solution to start vimprobable with and without Proxy enabled.

Since it uses the http_proxy variable for this I tried to set a shortcut in wmiirc to start vimprobable in Tor mode which wouldn’t work since wmii tries to execute each part of ‘http_proxy=”″ vimprobable’.

So I set up two small scripts in /usr/bin and called them vimpossible and vimpossible2.

It’s just

  • #!/bin/bash
  • export http_proxy=”″
  • vimprobable $1

nothing fancy :) Now I can start vimprobable using tor just by using the ‘vimpossible’ command.

Need to find a way to nicely paste code here…


First I wanted my first entry to be nagging about my wireless but well, wouldn’t be such a nice way to start out.

So I decided to rather start out with my system :)

I’m running Arch on a HP Compaq nc2400 kind of subnotebook which actually runs out of the box without any problems (except for my wifi  problem which is to follow).

Lately the Arch community and all of its maniacs for CLI applications and tiling WMs have taken over all of what I am doing voluntarily on my computer so I spend much time on looking for nice and fast solutions for everything. Actually the only thing I still do via GUI is browsing the internet. And even that recently got a cut-down since I have decided to use newsbeuter for my frequently visited news-pages.

Well now,  so what I’m running is:

  • WM: wmii (wmii-hg from AUR)
  • Terminal: urxvt (-d/-c) –> screen and dvtm as multiplexers
  • Browser: vimprobable/firefox (only where vimprobable fails)/links
  • Media: mplayer, vlc for broken files
  • OpenOffice for homeworks (to be replaced by LaTeX)

I could go on there but I consider these the ones where I am more or less fixed at this point of time. I wanted to add vim for an editor but I thought it’d fit better in this comment. Uuuh, I should stick to small posts about cool stuff :D

For wmii I am using the almost stock dash script as wmiirc. Since I lack any profound programming knowledge this is where I can still do the most. I might give python a try in the future though.

Uhm… Well wasn’t this interesting?

Well, for the future this blog is supposed to be a way to publish my configuration issues nice new discoveries (like xcalib, yeah!) and wireless issues grr! So nothing fancy. But since many times I am looking for a very particular problem a small blog like this saves my day so this is my contibution :D


I’m glad crouse made this possible and I’m really looking forward to using this blog soon.

Some exams to pass and there we go :)

Until then I just wanted to replace the standard post which always looks soo idle^^

A presto!