Install Xubuntu 7.04 on IBM X41 Tablet
Dieses HOWTO Arbeitet mit der Version 7.04 von Xubuntu
Getting the Image
Hier kann man das image runterladen
post Install stuff
Distro auf den auktuellsten Stand bringen
-
sudo aptitude update
-
sudo aptitude upgrade
-
sudo aptitude install linux-headers-generic
Service Partition nicht automatisch mounten
-
sudo pico /etc/fstab
Auskommentieren der zeile mit der Service partition (Type: vfat)
TrackPoint
-
sudo pico /etc/X11/xorg.conf
In der "InputDevice" section mit dem Identifier "Configured Mouse", diese zwei optionen einfügen
-
Option "EmulateWheel" "true"
-
Option "EmulateWheelButton" "2"
Wacom Stylus
Installiere die wacom utilities
-
sudo aptitude install xserver-xorg-input-wacom wacom-tools
Suspend Fix
-
sudo aptitude install setserial
-
sudo pico /etc/acpi/resume.d/20-setserial.sh
füge folgendes in das file ein
-
#!/bin/bash
-
/bin/setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig
danach
-
sudo chmod +x /etc/acpi/resume.d/20-setserial.sh
ACPI Swivel Events
When you swivel your tablet's LCD down or up your computer triggers what's called an ACPI event. This is an event similar to pushing the power or sleep buttons -- it's telling the OS about something that's going on with the hardware.
In Linux, ACPI event handling is bundled into a nice neat little package. First, to make sure you can hear the ACPI event when it happens, run the command 'acpi_listen'. The command line will hang there until it picks up on an ACPI event that's occuring, and then it will dump it to the screen. After running acpi_listen, while it's hanging there, swivel your screen down, and then back up. You should get a result similar to this:
-
$ acpi_listen
-
ibm/hotkey HKEY 00000080 00005009
-
ibm/hotkey HKEY 00000080 0000500a
The first HKEY entry is your swivel-down-event identifier and the second is your swivel up. If your values differ from those displayed here, be sure to use your values instead.
Next, what we do is create new ACPI handler entries for the specified events, which we operate on in /etc/acpi/.
The /etc/acpi/ folder generally contains shell files to be executed when events occur. Since there's no shell files to handle swivel events yet, we're gonna go ahead and create some. Yeah, that'd be great.
Use your favorite text editor to modify the following files (the file names are the second line with the # symbol).
/etc/acpi/x41tsdown.sh
-
#!/bin/sh
-
#/etc/acpi/x41tsdown.sh
-
echo 'Rotating screen...'
-
if [ "`/usr/bin/xrandr -o right -v | grep -i 'randr' | wc -l`" -ne "1" ]
-
then
-
echo '!! Something went wrong...'
-
export DISPLAY=":0.0"
-
export XAUTHORITY=/var/lib/gdm/\:.Xauth
-
/bin/xset -display $DISPLAY dpms
-
echo 'Trying to rotate again...'
-
/usr/bin/xrandr -o right
-
fi
-
echo 'Rotating stylus...'
-
/usr/bin/xsetwacom set stylus rotate 1
-
echo 'Starting keyboard...'
-
/usr/bin/xvkbd&
/etc/acpi/x41tsup.sh
-
#!/bin/sh
-
#/etc/acpi/x41tsup.sh
-
echo 'Unrotating screen...'
-
if [ "`/usr/bin/xrandr -o normal -v | grep -i 'randr' | wc -l`" -ne "1" ]
-
then
-
echo '!! Something went wrong...'
-
export DISPLAY=":0.0"
-
export XAUTHORITY=/var/lib/gdm/\:.Xauth
-
/bin/xset -display $DISPLAY dpms
-
echo 'Trying to unrotate again...'
-
/usr/bin/xrandr -o normal
-
fi
-
echo 'Rotating stylus...'
-
/usr/bin/xsetwacom set stylus rotate
-
echo 'Killing keyboard...'
-
killall xvkbd
make it executable
Then run:
-
sudo chown root.root /etc/acpi/x41tsdown.sh
-
sudo chmod 755 /etc/acpi/x41tsdown.sh
-
sudo chown root.root /etc/acpi/x41tsup.sh
-
sudo chmod 755 /etc/acpi/x41tsup.sh
If you'd like to edit these scripts with your favorite text editor (which, I realize, is most likely ed), it's fairly obvious that they're located in /etc/acpi/ as x41tsdown.sh and x41tsup.sh. These commands make the shell scripts that handle the events... once we register the events. Let's do that now.
-
sudo cat <<EOF > /etc/acpi/events/x41t-swivel-down
-
# /etc/acpi/events/x41t-swivel-down
-
# called when tablet head swivels down
-
event=ibm/hotkey HKEY 00000080 00005009
-
action=/etc/acpi/x41tsdown.sh
-
EOF
-
sudo cat <<EOF > /etc/acpi/events/x41t-swivel-up
-
# /etc/acpi/events/x41t-swivel-up
-
# called when tablet head swivels up
-
event=ibm/hotkey HKEY 00000080 0000500a
-
action=/etc/acpi/x41tsup.sh
-
EOF
Now, awaken your inner ACPI daemon with the following commands:
-
sudo /etc/init.d/acpid force-reload
-
sudo /etc/init.d/acpid restart
And swivel down your LCD to make sure it works.
Software die ich Installiert habe
Netzwerk
Wireless Netzwerk GUI
sudo aptitude install wifi-radar
Office
-
sudo aptitude install openoffice.org
-
sudo aptitude install dia
DTP
sudo aptitude install scribus scribus-template
Tablet Spezifisch
Sketchpad
-
sudo aptitude install gsumi<code>
-
<h4>Notepad</h4>
-
<code>sudo aptitude install xournal

Post new comment