Comment 14 for bug 858978

Revision history for this message
john burns (burnsajohn) wrote :

Hi Favux,

Thanks for the awesomely detailed reply.

here is the relevant output from xinput (I had to install xorg-x11-apps to get the command to work):

$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Wacom ISDv4 E6 Pen stylus id=10 [slave pointer (2)]
⎜ ↳ Wacom ISDv4 E6 Finger touch id=11 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=14 [slave pointer (2)]
⎜ ↳ Wacom ISDv4 E6 Pen eraser id=16 [slave pointer (2)]

Come to think of it, maybe that's why the call to get the device names was coming from so deep in the script. xrotate.py probably tried to pull the device list from the xinput --list command at line 26, but that command didn't exist for me, so it went to a call that actually gave output "xsetwacom list"... And that is proibably why I had such a curt debug output... most of the script was being skipped due to lack of input from my computer.

So, after installing xorg-x11-apps (xorg-x11-apps-7.6-2.fc15.x86_64 for me) and the necessary dependencies, I tried the unmodified xrotate.py script again, and it worked flawlessly out of the box. Somehow I missed that I needed that package.

Here is what the debug output looks like now that the script gets output from xinput --list; much nicer:

$ ./xrotate.py
 Rotating screen
xrandr -o left

testing 2
testing 4
testing 10
rotating wacom device Wacom ISDv4 E6 Pen stylus
skipping next rotation check
xsetwacom set 10 rotate ccw

testing 11
rotating wacom device Wacom ISDv4 E6 Finger touch
skipping next rotation check
xsetwacom set 11 rotate ccw

testing 13
testing 14
rotating evdev device TPPS/2 IBM TrackPoint
going: left
normal: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
left
tablet x: 1366
screen x: 768
tablet y: 768
screen y: 1366
top x: 1366.0
max x: 1366.0
sum x: 2902.0
top y: 768.0
max y: 1366.0
sum y: 3500.0
tablet x offset: 0
tablet y offset: 0
screen x offset: 1366.0
screen y offset: 0.0
left: [0.0, -1.0, 1, 0.5622254758418741, 0.0, 0.0, 0.0, 0.0, 1.0]
xinput set-prop 14 'Coordinate Transformation Matrix' 0.0 -1.0 1 0.562225475842 0.0 0.0 0.0 0.0 1.0
left: [0.0, -1.0, 1, 0.5622254758418741, 0.0, 0.0, 0.0, 0.0, 1.0]
testing 16
rotating wacom device Wacom ISDv4 E6 Pen eraser
skipping next rotation check
xsetwacom set 16 rotate ccw

testing 3
testing 5
testing 6
testing 7
testing 8
testing 9
testing 12
testing 15

Thanks again for the input. I hope this helps someone... I guess I was missing the dependency somewhere.

-j