diff options
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 ) & |