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

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Message
Author
EdFromBJCS
Posts: 71
Joined: Thu Apr 03, 2014 2:28 pm

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

#61 Post 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.

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

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

#62 Post 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
Daily drives a CF-31

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

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

#63 Post 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.
Daily drives a CF-31

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

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

#64 Post 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.
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

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

#65 Post 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:
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

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

#66 Post by kode-niner »

xinput list --name only
?
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

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

#67 Post 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.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

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

#68 Post 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.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

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

#69 Post 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
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

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

#70 Post 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. :)
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

Post Reply

Return to “The LINUX forum!!!”