Sony Vaio brightness on Ubuntu Karmic solved

Yes! Finally Ubuntu Karmic (9.10) recognizes the FN keys + F5 and F6 on my Sony Vaio AR71S. This has been annoying me ever since the Intrepid release. It still doesn’t work right out of the box because you need to add sony-brightness-up and sony-brightness-down in /etc/acpi/events, but it’s no big deal as long as the key events are recognized.

To get the key events just use acpi_listen and press down FN+F5, it will output something like this:

sony/hotkey SNC 00000001 00000010 (key combo pressed)
sony/hotkey SNC 00000001 0000003b (key combo released)

And when pressing FN+F6 we get this:

sony/hotkey SNC 00000001 00000011 (key combo pressed)
sony/hotkey SNC 00000001 0000003b (key combo released)

These events we’ll put in sony-brightness-up/down and my down script looks like this:

event=sony/hotkey SNC 00000001 00000010
action=/usr/bin/nvclock -S -12

I’m using nvclock because when using smartdimmer the intervals where just to low when dimming. I put a interval in nvclock of -12 which is reasonable. That’s it!

New way to detect laptop user presence

Sonar

Some researchers are experimenting with a new way of detecting the presence of a laptop user using sonar technique. The goal is to shut off the display direcly when the user leaves the computer, compare that to the slow way of reading timeouts from mouse and keyboard.

You can get a better overview and download the actual source code on their project site.

FRA changes voted through

FRA

With 158 votes to 153, the changes to the wiretapping law which will enable the civil agency (FRA – Defense Radio Agency) to snoop traffic crossing the Swedish border, was today voted through in the Swedish parliament.

I wasn’t expecting any other outcome than this because the current government is a bunch of idiots. All we can hope for now is that the opposition (S, V and MP) will win the next election and that they’ll go through with their promise of tearing up the law.

Atleast I’ll know where to put my vote and I hope all of you out there knows too. I don’t want my children to grow up in a society that monitors and controls every footstep and action you’re taking.

Polyfoto Trelleborg

VARNING! Om ni tycker om oklara besked, betala för mer än vad som är överenskommit och oproffsigt bemötande så fotografera Er på Polyfoto i Trelleborg. Vi är nöjda med ett av de barnfoto som vi till slut fick men det var knappt att vi ens fick ut dem. Läs mer här.

Ubuntu mail-notification with OpenSSL support

I wanted to use mail-notification for my home and work mailboxes, but I found out that the SSL/TLS support was left out due to licensing matters. As I’m using SSL on my mailboxes I needed to rebuild the package to use OpenSSL. So if you need SSL support with mail-notification(amd64) you can grab it here.

Add the following to /etc/apt/sources.list:

http://apt-get.se/ubuntu aptgetse-jaunty main

Get my public key for apt-secure:

wget -q http://apt-get.se/ubuntu/aptgetse.asc -O- | sudo apt-key add -