diff options
author | Dirk von Suchodoletz | 2009-01-11 18:34:14 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-01-11 18:34:14 +0100 |
commit | ca2b9b1ff1e0bb783a0ff3b747d41e18f9e9553e (patch) | |
tree | e159719a6aae9422ef9f8e31b4dc0dea56455a2a /os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh | |
parent | Some fixes to x11vnc plugin (x11mod). (diff) | |
download | core-ca2b9b1ff1e0bb783a0ff3b747d41e18f9e9553e.tar.gz core-ca2b9b1ff1e0bb783a0ff3b747d41e18f9e9553e.tar.xz core-ca2b9b1ff1e0bb783a0ff3b747d41e18f9e9553e.zip |
Better configuration of touchpads ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2463 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh')
-rw-r--r-- | os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh b/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh index 880bcb8d..4efee5a3 100644 --- a/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh +++ b/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh @@ -2,7 +2,23 @@ # automatic Xorg configation fails in this field. If no useable info was # detected just delete the file. +# tablet detection function +tabletdetect () { + sleep 1; waitfor /etc/hwinfo.bios 20000 + # quickhack for IBM X61 tablet detection + if grep -qi tablet /etc/hwinfo.bios ; then + echo 'wacomdev="ttyS0"' >/etc/tablet.conf + fi + # wacom device attached to usb - code to be tested + if [ ! -e /etc/tablet.conf ]; then + if hwinfo --usb | grep -qi tablet ; then + echo 'wacomdev="input/wacom"' >/etc/tablet.conf + fi + fi +} + ( hwinfo --monitor >/etc/hwinfo.display; grep "Generic Monitor" \ /etc/hwinfo.display >/dev/null 2>&1 && rm /etc/hwinfo.display ) & ( hwinfo --gfxcard >/etc/hwinfo.gfxcard ) & +( tabletdetect ) & |