blob: 4efee5a3104c44c43ed752983c312f3be63644d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# get an idea of the installed graphics hardware - might be needed if the
# 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 ) &
|