Friday, February 3, 2012

Fix missing flag xfce4-xkb-plugin

When I use this plugin to change the keyboard layout to arabic. Text "ara" is appear instead of arabic flag.

I see arabic flag in /usr/share/xfce4/xkb/flags/ which has name sa.svg. To display flag in panel, simply copy or make link to ara.svg from that file.
$ cd /usr/share/xfce4/xkb/flags/
$ sudo ln -s sa.svg ara.svg


Wednesday, February 1, 2012

Hatteland 3M Microtouch Driver on Linux

The original driver work well if using default serial port, but it doesn't work for USB to Serial converter. If you have this problem, you can use open source mtouch driver in linux.

1. Detect your usb device
$ dmesg | grep usb
Usually /dev/ttyUSB0

2. Install mtouch driver
$ sudo apt-get install xserver-xorg-input-mutouch

3. Install inputattach to make the device using mtouch driver
$ sudo apt-get install inputattach
In other distro, it packaged as xinput-utils.

4. Connect the device
$ sudo inputattach -mtouch /dev/ttyUSB0

5. You can calibrate it by using xinput_calibrator
$ sudo apt-get install xinput-calibrator