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

  1. sudo aptitude update
  2. sudo aptitude upgrade
  3. sudo aptitude install linux-headers-generic

Service Partition nicht automatisch mounten

  1. sudo pico /etc/fstab

Auskommentieren der zeile mit der Service partition (Type: vfat)

TrackPoint

  1. sudo pico /etc/X11/xorg.conf

In der "InputDevice" section mit dem Identifier "Configured Mouse", diese zwei optionen einfügen

  1. Option          "EmulateWheel"          "true"
  2. Option          "EmulateWheelButton"    "2"

Wacom Stylus

Installiere die wacom utilities

  1. sudo aptitude install xserver-xorg-input-wacom wacom-tools

Suspend Fix

  1. sudo aptitude install setserial
  2. sudo pico /etc/acpi/resume.d/20-setserial.sh

füge folgendes in das file ein

  1. #!/bin/bash
  2. /bin/setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig

danach

  1. 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:

  1. $ acpi_listen
  2. ibm/hotkey HKEY 00000080 00005009
  3. 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

  1. #!/bin/sh
  2. #/etc/acpi/x41tsdown.sh
  3. echo 'Rotating screen...'
  4. if [ "`/usr/bin/xrandr -o right -v | grep -i 'randr' | wc -l`" -ne "1" ]
  5. then
  6.     echo '!! Something went wrong...'
  7.     export DISPLAY=":0.0"
  8.     export XAUTHORITY=/var/lib/gdm/\:.Xauth
  9.     /bin/xset -display $DISPLAY dpms
  10.     echo 'Trying to rotate again...'
  11.     /usr/bin/xrandr -o right
  12. fi
  13. echo 'Rotating stylus...'
  14. /usr/bin/xsetwacom set stylus rotate 1
  15. echo 'Starting keyboard...'
  16. /usr/bin/xvkbd&

/etc/acpi/x41tsup.sh

  1. #!/bin/sh
  2. #/etc/acpi/x41tsup.sh
  3. echo 'Unrotating screen...'
  4. if [ "`/usr/bin/xrandr -o normal -v | grep -i 'randr' | wc -l`" -ne "1" ]
  5. then
  6.     echo '!! Something went wrong...'
  7.     export DISPLAY=":0.0"
  8.     export XAUTHORITY=/var/lib/gdm/\:.Xauth
  9.     /bin/xset -display $DISPLAY dpms
  10.     echo 'Trying to unrotate again...'
  11.     /usr/bin/xrandr -o normal
  12. fi
  13. echo 'Rotating stylus...'
  14. /usr/bin/xsetwacom set stylus rotate
  15. echo 'Killing keyboard...'
  16. killall xvkbd

make it executable

Then run:

  1. sudo chown root.root /etc/acpi/x41tsdown.sh
  2. sudo chmod 755 /etc/acpi/x41tsdown.sh
  3. sudo chown root.root /etc/acpi/x41tsup.sh
  4. 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.

  1. sudo cat <<EOF > /etc/acpi/events/x41t-swivel-down
  2. # /etc/acpi/events/x41t-swivel-down
  3. # called when tablet head swivels down
  4. event=ibm/hotkey HKEY 00000080 00005009
  5. action=/etc/acpi/x41tsdown.sh
  6. EOF  
  7. sudo cat <<EOF > /etc/acpi/events/x41t-swivel-up
  8. # /etc/acpi/events/x41t-swivel-up
  9. # called when tablet head swivels up
  10. event=ibm/hotkey HKEY 00000080 0000500a
  11. action=/etc/acpi/x41tsup.sh
  12. EOF

Now, awaken your inner ACPI daemon with the following commands:

  1. sudo /etc/init.d/acpid force-reload
  2. 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

  1. sudo aptitude install openoffice.org
  2. sudo aptitude install dia

DTP

sudo aptitude install scribus scribus-template

Tablet Spezifisch

Sketchpad

gsumi

  1. sudo aptitude install gsumi<code>
  2. <h4>Notepad</h4>
  3. <code>sudo aptitude install xournal

Trackback URL for this post:

http://www.2030.tk/trackback/57

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <fn>...</fn> to insert automatically numbered footnotes.
  • You can use the <go> tags just like the <a> for nicer urls.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.