Archive for July, 2007

Byta till från UTF-8 till ISO-8859-1 i Ubuntu eller Kubuntu 7.04 (Feisty)

Tuesday, July 24th, 2007

För ett tag sen gjorde jag en fin notering till mig själv hur man bytte från UTF-8 till ISO-8859-1 i Edgy. I Feisty funkade naturligtvis inte det utan man måste även in och meka i /etc/default/locale. Det var säkerligen så redan i Edgy men då verkade allt lira ändå.

Aja, nu är det som följer. Meka
sudo vim /var/lib/locales/supported.d/local och lägg til följande:
sv_SE ISO-8859-1
en_US ISO-8859-1

Meka en sudo locale-gen.
Ändra i /etc/environment OCH /etc/default/locale så det står:
LANG="sv_SE.ISO-8859-1"
eller
LANG="en_US.ISO-8859-1"

om du vill köra engelska. Det är så enkelt och simpelt och det är fan det som tar mig mest tid av allt när jag sätter upp en ny burk. Vansinnigt, vissa saker fastnar bara inte.

LG L1730SF on Kubuntu Feisty

Monday, July 23rd, 2007

This is a lovely success story about how ’simple’ it is to get the ITMTouch based L1730SF to work on Kubuntu Feisty. When I did this the first time in Dapper and later in Edgy it was a big hazzle, took me several month, some kernel patches, some modified kernel patches and a lot of hard work. This time, no patches, no extra special nothing. Just some config!

Jihaa!

On both Dapper/Edgy we had to modify an old ITMTouch-kernel-module. With Feisty the usbtouchscreen works just wunderfull without any changes.

I use evtouch with xorg, no problems here either but I haven’t got calibrate to work yet. One thing you should think of though. Change Device on InputDevice mouse to something else but
/dev/input/mice
If you stick with mice you will have some strange behavior. Like tapping always gives you a doubleclick, which is kind of hard to work with. I have set this to:
/dev/input/MOUSE_REPLACEME
I will explain why later. ;)

I also added this part to xorg.conf:
Section “InputDevice”
# Option “Calibrate” “1″
Identifier “touchscreen”
Driver “evtouch”
Option “CorePointer”
Option “Device” “/dev/input/TOUCH_REPLACEME”
Option “DeviceName” “touchscreen”
Option “MinX” “300″
Option “MinY” “226″
Option “MaxX” “3851″
Option “MaxY” “3954″
Option “TapTimer” “500″
Option “ReportingMode” “Raw”
Option “Emulate3Buttons”
Option “Emulate3Timeout” “50″
Option “SendCoreEvents” “On”
Option “Rotate” “cw”
Option “SwapY” “1″
EndSection

One more REPLACEME, oooh! Scary!

Why this REPLAMEME? Simply because I really suck at writing udev rules and I just can’t get good symlinks to /dev/input/ that I could use in xorg.conf. So, I solved devices changing pointers with that in xorg.conf and a lovely script called fix_xorg.conf.sh and it looks like this:
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
LOGITECH_MOUSE=`cat /proc/bus/input/devices | grep -A 3 “Logitech USB Receiver” | grep -o mouse.`
ITM=`cat /proc/bus/input/devices | grep -A 3 “ITM” | tail -1 | grep -o event.`

cat /etc/X11/xorg.conf_MALL | sed s/MOUSE_REPLACEME/$LOGITECH_MOUSE/g > /etc/X11/xorg.conf_TMP
cat /etc/X11/xorg.conf_TMP | sed s/TOUCH_REPLACEME/$ITM/g > /etc/X11/xorg.conf

And THIS is why I should start Ugly Solutions Inc or something. =)

However, if you run this script before KDM (in my case) starts you’ll have a working xorg.conf every reboot even if mouse/touchscreen change devices. Isn’t it just lovely?

Network problems in Kubuntu Feisty

Sunday, July 22nd, 2007

I just installed Kubuntu Feisty on my new hot HTPC. Almost everything works like a charm, even the touchscreen, I’ll get back to it later, from shit load of problems with LG L1730SF to almost none.

On thing which works like crap though is the network. At boot it works very good but when KDM starts the network releases its DHCP address or something and stops working. As soon as I log on KDE it starts working again when network manager wakes up with some frontend crap.

My solution was to remove network-manager. What I love with Linux as manual configuration. What I hate about Windows are all the magic that.. almost works. Ubuntu/Linux is going the same way and this network manager crap is a sign of that I think. After “apt-get remove network-manager” I have NO problems what so ever.

Later I will write a nice post about the LG L1730SF.

Irriterande saker

Friday, July 20th, 2007

Varför kan folk inte köra bil? Varför envisas människor med att surfa i vänsterbil i sakta mak? Eller kasta sig till mittfilen på tre-filig motorväg? Om man nu kör i 80 på 90-vägen, måste man ligga i mittfilen? Eller duger kanske vänsterfilen även om man vet att den försvinner om någon mil eller två?

Samma sak med kära 222an ute i Nacka som har avfart från vänsterfil ner i tunnel, måste människor harva i vänsterfilen flera mil innan för att de ska ner i tunneln? Det går inte att ligga kvar i högerfil tills man närmar sig tunnelavfarten? Eller är det för läskigt?

Fartdårar är fan mindre problem än mongon i trafiken goddamn.

Hmm, glömde ju

Wednesday, July 18th, 2007

Jag gjorde ett inhopp i SP på Falkenberg för någon månad sen på en lånad Aprilia RS250 och lyckades med konststycket att komma ihåg hur man kör hoj. Så pass bra att jag faktiskt kom på första pallplatsen även om det var den lägst.

Tredjeplats när man inte kört på 6-8 månader osv. Jag är nöjd faktiskt. Fick blodad tand och måste köpa mig en 125R till nästa år och köra på riktigt.

Pokal brum brum

A long time has passed

Tuesday, July 17th, 2007

I haven’t written here in a long time. Dunno why, probably since nothing fun happens. =)

But now at least I have bought myself a new lovely expensive whisky. Bottled at Balvenie by the independent distiller William Cadenhead. I haven’t opened and tasted this whisky yet but I will do it soon, I promise.

I am however a little disappointed about not having anything written by hand on the label. It says the quantity (264 bottles) but no serial number on my bottle(s:-)) or anything. I really like when a bottle of whisky has ‘Bottle nr 112 of 264′ or so written by hand on the label.

Cadenhead_liten