HI
I got an old X41 Tablet, it runs Linux Mint 18(32bit) XFCE, I use it for painting with MyPaint...
looking to get the buttons under the screen to work..
found this link:
http://www.thinkwiki.org/wiki/Tablet_Hardware_Buttons
but did not got it to work.
does any one know or had any success of getting those buttons to work under Linux ?
Thanks
G
Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
X41 Tablet Hardware Buttons with linux Mint 18 XFCE
-
- Senior Member
- Posts: 837
- Joined: Wed May 19, 2010 11:21 pm
- Location: Pardubice, Czech Republic
- Contact:
Re: X41 Tablet Hardware Buttons with linux Mint 18 XFCE
One approach to solving the problem is to:
A) figure out what output it generated by pushing each button, and then
B) map that output to the correct behavior/function and save this as a configuration file
C) [may not be necessary] set your OS to automatically load the configuration file at startup
Try 'xev' from the command line -- and output the lines which say "keycode":
Then figure out how to remap your keycode to the correct value (Return, Escape, Next, Prior) in your OS and windows manager by searching for 'remap key xev mint xfce'
This may work:
replace 000 with the keycode you get when pushing the 'next' button on the tablet screen.
A) figure out what output it generated by pushing each button, and then
B) map that output to the correct behavior/function and save this as a configuration file
C) [may not be necessary] set your OS to automatically load the configuration file at startup
Try 'xev' from the command line -- and output the lines which say "keycode":
Code: Select all
xev|grep keycode
The output of pressing Enter, Esc, Page up, Page down from my x60 is:xev - print contents of X events
DESCRIPTION
Xev creates a window and then asks the X server to send it events
whenever anything happens to the window (such as it being moved,
resized, typed in, clicked in, etc.). You can also attach it to
an existing window. It is useful for seeing what causes events to
occur and to display the information that they contain; it is
essentially a debugging and development tool, and should not be
needed in normal usage.
Code: Select all
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
state 0x0, keycode 117 (keysym 0xff56, Next), same_screen YES,
state 0x0, keycode 112 (keysym 0xff55, Prior), same_screen YES,
This may work:
Code: Select all
xmodmap -e "keycode 000 = Next Next"
T420 i7 3612QM seabios; T420 i7 3630QM; T400 Q9100 seabios; T61 P9600; T60 libreboot; x62; x60s libreboot, led; x24 xiphmont led
Re: X41 Tablet Hardware Buttons with linux Mint 18 XFCE (Solved)
HI jaspen-meyer
and thank you for your replay.
I did not got any sight from the buttons with the command
but you gave me a direction and I did more search and found that the command
pop out a small menu and when choosing option number 3 -"AT Translated Set 2 keyboard "
it gives to fallowing results:
Tablet button Enter = value 69
Tablet button Esc = value 6b
Tablet button left arrow = value 6e
Tablet button right arrow = value 6d
also in the output of the command "sudo evtes" there is a list with numbers of all other keyboard keys...
So now with the command:
I can set:
Tablet button Enter to do Enter
Tablet button Esc to do Esc
Tablet button left arrow to do Volume down
Tablet button right arrow to do Volume up
in order to make those changes permanent I put this command without the sudo in the file :
it works Just like magic
Thanks allot
and thank you for your replay.
I did not got any sight from the buttons with the command
Code: Select all
xev|grep keycode
Code: Select all
sudo evtest
it gives to fallowing results:
Tablet button Enter = value 69
Tablet button Esc = value 6b
Tablet button left arrow = value 6e
Tablet button right arrow = value 6d
also in the output of the command "sudo evtes" there is a list with numbers of all other keyboard keys...
So now with the command:
Code: Select all
sudo setkeycodes 69 28 6b 1 6e 114 6d 115
Tablet button Enter to do Enter
Tablet button Esc to do Esc
Tablet button left arrow to do Volume down
Tablet button right arrow to do Volume up
in order to make those changes permanent I put this command without the sudo in the file :
Code: Select all
/etc/rc.local
Thanks allot
-
- Similar Topics
- Replies
- Views
- Last post
-
-
X230 trackpoint, mouse buttons and some keys still not working after keyboard change
by frog4 » Mon Jan 22, 2024 4:24 pm » in ThinkPad X230-X280 / X390 Series - 2 Replies
- 1251 Views
-
Last post by frog4
Tue Jan 23, 2024 5:22 am
-
-
- 2 Replies
- 117 Views
-
Last post by dr_st
Fri Mar 29, 2024 4:35 pm
-
-
[FA][UK & global] Mint 380E from S/390 mainframe
by ThinkDan » Thu Jan 18, 2024 7:23 pm » in Marketplace - Forum Members only - 1 Replies
- 889 Views
-
Last post by ThinkDan
Fri Feb 02, 2024 4:20 am
-
-
- 3 Replies
- 866 Views
-
Last post by BillMorrow
Tue Mar 19, 2024 1:25 pm
Who is online
Users browsing this forum: No registered users and 34 guests