Comment 1 for bug 261873

Revision history for this message
Oliver Grawert (ogra) wrote :

a script to apply calibration data based on teh xkb one we use:
cat ../hal-setup-touchscreen
#!/bin/sh
#
# borrowed from Fedora and modified to apply touchscreen calibration data
#

[ -x /usr/bin/hal-set-property ] || exit 0

. /etc/default/evtouch > /dev/null 2>&1 || exit 0

hal_set () {
    if [ -n "$2" ]; then
 /usr/bin/hal-set-property --direct --udi "$UDI" --key input.x11_options.$1 --string "$2"
    else
 /usr/bin/hal-set-property --direct --udi "$UDI" --key input.x11_options.$1 --remove
    fi
}

hal_set minx $MINX
hal_set miny $MINY
hal_set maxx $MAXX
hal_set maxy $MAXY
hal_set movelimit $MOVELIMIT