Kali linux on cf-19 mk3
-
- Posts: 30
- Joined: Wed Mar 25, 2015 9:02 pm
Re: Kali linux on cf-19 mk3
found another piece that I edited to fit what I wanted to do, I have my script to rotate left then back to normal (left for me is with the strap, back, of the 19 to my left (I am right handed so works for me).
#!/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 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
the sites I got this info from are as follows:
the screen rotation for cf-19
http://crunchbang.org/forums/viewtopic.php?id=36173
the script to toggle the rotation from one command:
http://forums.linuxmint.com/viewtopic.php?f=42&t=110395
(use method #1)
once I have the acpi event figured out this is the script that I will use for the rotation button, just press button and it will rotate back and forth.
[Edit} i messed up in the rotation script for the return to normal orientation. it has been fixed now. what I changed is the second "coordination transform matrix" line added a 1 to the end, this fixes the problem with calibration going off when you rotate back to normal.
#!/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 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
the sites I got this info from are as follows:
the screen rotation for cf-19
http://crunchbang.org/forums/viewtopic.php?id=36173
the script to toggle the rotation from one command:
http://forums.linuxmint.com/viewtopic.php?f=42&t=110395
(use method #1)
once I have the acpi event figured out this is the script that I will use for the rotation button, just press button and it will rotate back and forth.
[Edit} i messed up in the rotation script for the return to normal orientation. it has been fixed now. what I changed is the second "coordination transform matrix" line added a 1 to the end, this fixes the problem with calibration going off when you rotate back to normal.
Last edited by scottie4442 on Fri May 29, 2015 4:33 pm, edited 1 time in total.
CF-19KHRAX2M upgraded to 4gb ram and 128gb ssd, adding gps.
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
Re: Kali linux on cf-19 mk3
That's great!!!
Thanks to the kernel module, the buttons can now be intercepted as standard input events.
The lock button is:
The rotate button is:
The enter button is the same as the enter key
I get nothing for the soft keyboard button, though.
I can finally use my window manager's (Openbox) hotkeys to run whatever script or application for these events. Many thanks!
Thanks to the kernel module, the buttons can now be intercepted as standard input events.
The lock button is:
Code: Select all
XF86ScreenSaver
Code: Select all
XF86RotateWindows
Code: Select all
Return
I can finally use my window manager's (Openbox) hotkeys to run whatever script or application for these events. Many thanks!
Daily drives a CF-31
-
- Posts: 30
- Joined: Wed Mar 25, 2015 9:02 pm
Re: Kali linux on cf-19 mk3
how did you figure out that the rotate button was x86rotatewindows. I can see the acpi codes, but my the keyboard and rotate buttons do not show up under xev (key scancode program) at all. I am looking into how to setup acpi button events to run a script, when I have figure this out I will post my results, as you can see from my post before I have the script already written, just not sure how to apply it yet. Also I am trying to figure out what I want to do with the return button, do not need a button to press enter.
CF-19KHRAX2M upgraded to 4gb ram and 128gb ssd, adding gps.
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
Re: Kali linux on cf-19 mk3
xev works for me. Are you sure the little white window is in the foreground when you hit the buttons?
Since I use Openbox, it's a trivial matter to run anything I want with the front buttons. Does your desktop manager have some sort of hotkey functionality? For the return button/key, you might have to modify the source code since it now acts the same as the enter key on your keyboard.
Since I use Openbox, it's a trivial matter to run anything I want with the front buttons. Does your desktop manager have some sort of hotkey functionality? For the return button/key, you might have to modify the source code since it now acts the same as the enter key on your keyboard.
Daily drives a CF-31
-
- Posts: 30
- Joined: Wed Mar 25, 2015 9:02 pm
Re: Kali linux on cf-19 mk3
xev works but does not show the keyboard and rotation button scan codes, I am going to figure out how to get these two buttons working and then figure out what to do with the return button.
CF-19KHRAX2M upgraded to 4gb ram and 128gb ssd, adding gps.
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
-
- Posts: 30
- Joined: Wed Mar 25, 2015 9:02 pm
Re: Kali linux on cf-19 mk3
must be my windows/desktop manager. Kali uses gnome mate, this might be the issue with the screen rotation
CF-19KHRAX2M upgraded to 4gb ram and 128gb ssd, adding gps.
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
Re: Kali linux on cf-19 mk3
So you're sticking with Kali on the 'ole 19, eh? Hehehe.
Daily drives a CF-31
-
- Posts: 30
- Joined: Wed Mar 25, 2015 9:02 pm
Re: Kali linux on cf-19 mk3
at least for the moment, until I figure out which one I like better for my network business. then I am going to convert the other to just plain debian or mint.
CF-19KHRAX2M upgraded to 4gb ram and 128gb ssd, adding gps.
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps
CF-30FASEZAM upgraded to 4gb ram, sr71 wlan and 128gb ssd, adding gps