From ca2b9b1ff1e0bb783a0ff3b747d41e18f9e9553e Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 11 Jan 2009 17:34:14 +0000 Subject: Better configuration of touchpads ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2463 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/xserver/init-hooks/00-started/xserver.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh') 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 ) & -- cgit v1.2.3-55-g7522