Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
EdFromBJCS
Posts: 71 Joined: Thu Apr 03, 2014 2:28 pm
#61
Post
by EdFromBJCS » Wed Jul 27, 2016 2:53 pm
kode-niner wrote: Good job! One thing though, it is not necessary to run a make. The install.sh script does that already. We only ran that command separately here for troubleshooting.
oops.
Added an annotation to the video and removed that part of the blog post. Thanks for the input.
kode-niner
Posts: 700 Joined: Sat Jun 07, 2014 7:39 am
Location: Canada
#62
Post
by kode-niner » Mon Apr 24, 2017 12:56 pm
Well I guess you had to see this one coming. CF-19 MK4 Dual Touch won't work with the rotate script in this post. Here is a replacement that'll swap coords for both touch and pen. Pretty easy to see what I did here: doubled the xinput lines and put in the proper device names.
Code: Select all
#!/bin/sh
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
# Using current screen orientation proceed to rotate screen and input tools.
case "$rotation" in
normal)
# rotate to the left
xrandr -o left
xinput set-prop 'Wacom ISDv4 93 Finger touch' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
xinput set-prop 'Wacom ISDv4 93 Pen stylus' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
;;
left)
# rotate to inverted
xrandr -o inverted
xinput set-prop 'Wacom ISDv4 93 Pen stylus' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
xinput set-prop 'Wacom ISDv4 93 Finger touch' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
;;
inverted)
# rotate to the right
xrandr -o right
xinput set-prop 'Wacom ISDv4 93 Pen stylus' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
xinput set-prop 'Wacom ISDv4 93 Finger touch' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
;;
right)
# rotate to normal
xrandr -o normal
xinput set-prop 'Wacom ISDv4 93 Pen stylus' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
xinput set-prop 'Wacom ISDv4 93 Finger touch' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
;;
esac
Daily drives a CF-31
kode-niner
Posts: 700 Joined: Sat Jun 07, 2014 7:39 am
Location: Canada
#63
Post
by kode-niner » Fri Apr 28, 2017 6:54 pm
Looking at the above, I should probably have added the coordinates for the eraser too. Didn't think of it because my stylus has a broken button.
Daily drives a CF-31
kode-niner
Posts: 700 Joined: Sat Jun 07, 2014 7:39 am
Location: Canada
#64
Post
by kode-niner » Sun Jul 02, 2017 3:34 pm
Ran into a few minor snags after upgrading to Debian stretch with kernel 4 and panasonic-hbtn. I got it sorted, so if anybody is still using this and has issues, don't be shy!
It might have involved copying the ko file in /var/lib/modules/4.xxxxxx and running depmod -a to rebuild the module dependencies.
Daily drives a CF-31
SHEEPMAN!
Posts: 2239 Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California
#65
Post
by SHEEPMAN! » Fri Jul 07, 2017 7:10 pm
Screen rotation is fine.
Getting an error each time as /usr/local/bin/rotate points at Fujitsu TS.
Code: Select all
#!/bin/sh
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
# Using current screen orientation proceed to rotate screen and input tools.
case "$rotation" in
normal)
# rotate to the left
xrandr -o left
xinput set-prop 'Fujitsu Component USB Touch Panel' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
;;
left)
# rotate to inverted
xrandr -o inverted
xinput set-prop 'Fujitsu Component USB Touch Panel' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
;;
inverted)
# rotate to the right
xrandr -o right
xinput set-prop 'Fujitsu Component USB Touch Panel' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
;;
right)
# rotate to normal
xrandr -o normal
xinput set-prop 'Fujitsu Component USB Touch Panel' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
;;
esac
FYI to show someone is working with this. I see what I have to do.
kode-niner
Posts: 700 Joined: Sat Jun 07, 2014 7:39 am
Location: Canada
#66
Post
by kode-niner » Fri Jul 07, 2017 7:28 pm
xinput list --name only
?
Daily drives a CF-31
SHEEPMAN!
Posts: 2239 Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California
#67
Post
by SHEEPMAN! » Fri Jul 07, 2017 7:50 pm
I knew you would ask.
CF-19MK6
Code: Select all
xinput -list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Wacom ISDv4 93 Pen id=9 [slave pointer (2)]
⎜ ↳ Wacom ISDv4 93 Finger id=10 [slave pointer (2)]
⎜ ↳ ImPS/2 Generic Wheel Mouse id=12 [slave pointer (2)]
⎣
I deleted usr/local/bin/rotate and pasted your post above to new file of the same name.
SHEEPMAN!
Posts: 2239 Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California
#68
Post
by SHEEPMAN! » Fri Jul 07, 2017 7:59 pm
O.K. I got to here by page 4 ......need to go find out why the touch input is bassackwards.
Oh yeah this is MX-16.
SHEEPMAN!
Posts: 2239 Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California
#70
Post
by SHEEPMAN! » Fri Jul 07, 2017 10:26 pm
O.K. great.
I went back through this and used your second file. (panasonic-hbtn) It seemed to be more clear (to me) the second time around.....it did ask if it should overwrite.
Rotate and button worked until I rebooted.
Thanks....hey there are no complaints here....this is progress.