Auto Rate TouchScreen calibration for OneMix 2S

Hi all,

I am running Ubuntu Mate image for UMPC on the OneMix 2s. All works well apart from auto-rotate (and calibration when the screen is manually auto-rotate using xrandr).

Auto-rotate would be nice but I've setup some keyboard shortcuts using xrandr for rotating the screen which are fine but the calibration on the touchscreen is way 'off' when auto-rotated to portrait and if you auto-rotate back to landscape ('right' using xrandr) then you end up with the same problem. The only solution is to logout to have the touchscreen work again on landscape.

I have been around the houses so to speak trying to resolve this. I have tried:

  • Creating a file /etc/udev/hwdb.d/61-sensor-local.hwdb with this content (there's a space at the beginning of the second line ACCELL_MOUNT...)


ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1

  • Running the command

sudo systemd-hwdb update

  • Reboot

which does not seem to do anything

and I've tried using a third party program called 2in1screen:

$> git clone
$> cd 2in1screen
$> make
$> sudo make install

which does indeed rotate the screen but does not fix the calibration problem.

Anyone come across this or solved it ? It seems that I am missing config for portrait touchscreen calibration but I've seen nothing concrete on how to resolve this for Mate. I've seen people giving advice for Pocket on Ubuntu or on Arch Linux but invariably the config is different enough that it does not work on Ubuntu Mate.