Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-07-2020, 12:27 AM
|
#1
|
Member
Registered: Jan 2019
Posts: 80
Rep: 
|
testing my keyboard - some keys not working?
hello, my program does not receive function keys from F13 and above. Maybe some process is capturing the keys or something.
First I want to know if the key sent by the keyboard is actually recognized as F13.
I did this with `xinput test 12` and the result is:
key press 191
I cannot remember how to check which character it is...
|
|
|
04-07-2020, 12:35 AM
|
#2
|
Member
Registered: Jan 2019
Posts: 80
Original Poster
Rep: 
|
I used xev which is more helpful, here is the result:
Code:
KeyRelease event, serial 37, synthetic NO, window 0xb400001,
root 0x168, subw 0x0, time 7929582, (224,720), root:(2145,772),
state 0x10, keycode 70 (keysym 0xffc1, F4), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0xb400001,
root 0x168, subw 0x0, time 7938566, (224,720), root:(2145,772),
state 0x10, keycode 191 (keysym 0x1008ff81, XF86Tools), same_screen YES,
XKeysymToKeycode returns keycode: 179
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
as you can see I pressed F4 in the first event.
in the second event instead of F13 it indicates XF86Tools
|
|
|
04-07-2020, 12:47 AM
|
#3
|
Member
Registered: Jan 2019
Posts: 80
Original Poster
Rep: 
|
so I checked with xmodmap and it turns out none of my function keys above F12 are defined.
The keycodes are in use, however, and I am not sure if I need them.
Can I simply add them without affecting the current bindings?
For example, changing
keycode 179 = XF86Tools NoSymbol XF86Tools
into
keycode 179 = F13 F13 F13 F13 F13 F13 XF86Tools
or maybe
keycode 179 = F13 F13 F13 F13 XF86Tools F13 XF86Tools
?
|
|
|
All times are GMT -5. The time now is 01:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|