Page 7 of 8

Re: A quest, get the CF-19 front keys working!

Posted: Wed Jul 27, 2016 2:53 pm
by EdFromBJCS
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.
:pat: oops.

Added an annotation to the video and removed that part of the blog post. Thanks for the input.

Re: A quest, get the CF-19 front keys working!

Posted: Mon Apr 24, 2017 12:56 pm
by kode-niner
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

Re: A quest, get the CF-19 front keys working!

Posted: Fri Apr 28, 2017 6:54 pm
by kode-niner
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.

Re: A quest, get the CF-19 front keys working!

Posted: Sun Jul 02, 2017 3:34 pm
by kode-niner
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.

Re: A quest, get the CF-19 front keys working!

Posted: Fri Jul 07, 2017 7:10 pm
by SHEEPMAN!
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. :pat:

Re: A quest, get the CF-19 front keys working!

Posted: Fri Jul 07, 2017 7:28 pm
by kode-niner
xinput list --name only
?

Re: A quest, get the CF-19 front keys working!

Posted: Fri Jul 07, 2017 7:50 pm
by SHEEPMAN!
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.

Re: A quest, get the CF-19 front keys working!

Posted: Fri Jul 07, 2017 7:59 pm
by SHEEPMAN!
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.

Re: A quest, get the CF-19 front keys working!

Posted: Fri Jul 07, 2017 10:06 pm
by kode-niner
I posted in the calibration thread on how to do this. Need to use xsetwacom.

Here: http://www.toughbooktalk.com/viewtopic. ... =50#p27708

Re: A quest, get the CF-19 front keys working!

Posted: Fri Jul 07, 2017 10:26 pm
by SHEEPMAN!
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. :)