You are not logged in.

#1 2010-10-24 04:36:22

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,332

Rotating the screen and swapping touchscreen orientation?

I have a Dell Latitude XT tablet that folds into a usually-portrait format.  xrandr -o yadda will rotate the screen just fine, but my touchscreen still keeps the normal orientation.  Is there a way I can configure or script this computer to rotate the touchscreen orientation while rotating the display?

Here's the lsusb section related to this touchscreen device.  It is a dual-mode touchscreen and stylus input device.

Bus 003 Device 002: ID 1b96:0001 N-Trig Duosense Transparent Electromagnetic Digitizer

Offline

#2 2010-10-24 09:11:33

xvello
Member
Registered: 2010-05-15
Posts: 81
Website

Re: Rotating the screen and swapping touchscreen orientation?

Hello,

Sounds familiar to https://bbs.archlinux.org/viewtopic.php?id=106491

Please look at Xorg.log to determine which driver is used for your touchscreen.

Offline

#3 2010-10-24 09:17:24

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Rotating the screen and swapping touchscreen orientation?

Just looked into aur for the new synaptics multitouch support, and this scrolled by:
http://aur.archlinux.org/packages.php?ID=34369

Offline

#4 2010-10-26 07:47:59

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,332

Re: Rotating the screen and swapping touchscreen orientation?

Thanks for the help!  After playing around a bit with xinput, I eventually just wrote a bash script to do this:

#!/bin/bash

rangex=( 0 9640 )
rangey=( 0 7220 )
torotate=( 9 10 )

xrandrout="$(xrandr)"

case $xrandrout in
 *800x1280* ) cal=( ${rangex[@]} ${rangey[@]} ); rotate=0;;
 *1280x800* ) cal=( ${rangey[@]} ${rangex[@]} ); rotate=1;;
esac

xrandr -o $(( rotate * 3 ))
for input in ${torotate[@]}; do
 xinput set-prop $input "Evdev Axes Swap" $rotate
 xinput set-prop $input "Evdev Axis Inversion" 0, $rotate
 xinput set-prop $input "Evdev Axis Calibration" ${cal[@]}
done

Offline

Board footer

Powered by FluxBB