This shows you the differences between two versions of the page.
|
tipsandtricks:start [2011/11/07 13:13] attila |
tipsandtricks:start [2012/09/04 13:00] (current) attila |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ==== Wacom Calibration Script (for Touchsmart TM2, X220t, X200t) ==== | ||
| + | |||
| + | Because gnome tool does not work | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | X_IFS=${IFS} | ||
| + | IFS='%' | ||
| + | DEVICES=( `xsetwacom --list devices | tr "\t" "%" | cut -d% -f1 | tr "\n" ","` ) | ||
| + | IFS=',' | ||
| + | DEVICES=( $DEVICES ) | ||
| + | value=$(zenity --list --title "Window title" --text "Select the input device you want to calibrate" --column "Detected input devices" "${DEVICES[@]}" ) | ||
| + | value=$(echo $value | sed 's/ *$//g') | ||
| + | IFS=${X_IFS} | ||
| + | xinput_calibrator --device "$value" > /tmp/__xinput_cal.data | ||
| + | MinX=$(cat /tmp/__xinput_cal.data | grep Option | grep MinX | awk '{print $3}' | tr \" " ") | ||
| + | MaxX=$(cat /tmp/__xinput_cal.data | grep Option | grep MaxX | awk '{print $3}' | tr \" " ") | ||
| + | MinY=$(cat /tmp/__xinput_cal.data | grep Option | grep MinY | awk '{print $3}' | tr \" " ") | ||
| + | MaxY=$(cat /tmp/__xinput_cal.data | grep Option | grep MaxY | awk '{print $3}' | tr \" " ") | ||
| + | rm /tmp/__xinput_cal.data | ||
| + | xsetwacom --set "$value" area $MinX $MinY $MaxX $MaxY | ||
| + | </code> | ||
| + | |||
| + | |||
| + | |||
| ==== Fix NVIDIA Optimus / Intel libGL conflict on SL 6.1 ==== | ==== Fix NVIDIA Optimus / Intel libGL conflict on SL 6.1 ==== | ||