Hi flipphos & Frank,
I too have been struggling to get xinput_calibrator to work. (I'm using the march 2016 image for Pi2 and Pi3 on a Pi2).
It wasn't installed, so first I did
- Code: Select all
pacman -S xinput_calibrator
I got xinput_calibrator to work through .xinitrc, but then you never get to see its output. xinput_calibrator does no configuration/calibration by itself, so that is an issue (it gives text output that you're supposed to paste in a config file by yourself).
In the end, what worked for me (and may be handy for others), is the following change to .xinitrc:
- Code: Select all
#!/bin/bash
export XDG_CACHE_HOME="/tmp/.cache" &
export DISPLAY=":0" &
# start the touchscreen calibration utility
# needed for some screens (Pollin 7" tft)
# for this to work you have to disable loading midori
#xinput_calibrator &
# turn on display power management, set to 15 minutes
xset -dpms 0 0 9000 &
# turn off screensaver
xset s off &
# start the window manager without titlebar and mouse
matchbox-window-manager -use_titlebar no -use_cursor no &
# install multimedia keyboard shortcuts
xbindkeys &
# start midori in privat mode with fullscreen display
#midori -p -e Fullscreen http://localhost
xinput_calibrator > /var/log/xinput_calib.log
Note there is no & at the end of the xinput_calibrator line, it does not work for me with & added.
The nice thing about this trick is that then you can go to /var/log/xinput_calib.log to see what it outputted.
In my case, the following:
- Code: Select all
[root@runeaudio log]# cat xinput_calib.log
Setting calibration data: 0, 4095, 0, 4095
Calibrating EVDEV driver for "Microchip Technology Inc. AR1100 HID-MOUSE" id=6
current calibration values (from XInput): min_x=0, max_x=4095 and min_y=0, max_y=4095
Doing dynamic recalibration:
Setting calibration data: 85, 3992, 19, 4097
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
Identifier "calibration"
MatchProduct "Microchip Technology Inc. AR1100 HID-MOUSE"
Option "Calibration" "85 3992 19 4097"
Option "SwapAxes" "0"
EndSection
So then I added that config to /etc/X11/xorg.conf.d/99-calibration.conf (had to create that file), re-edited .xinitrc to disable xinput_calibrator again, and enable midori, and then reboot.
That did the trick for me! I hope this is helpful to others!
Regards,
PiFi