LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 12-28-2015, 04:56 PM   #1
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 185

Rep: Reputation: 59
Can keypress scancodes be interpreted to create xkeybindings?


A while ago I reconfigured two of the buttons on a gaming mouse to give me Copy and Paste at the file and folder level in Thunar. I did that by getting button numbers from xev and reconfiguring their function with xbindkeys.

I'm trying to see if I can do something similar with two of the extra keys on an old eMachines keyboard. The keys are designated Copy and Paste and probably did exactly that back in the days of XP, but they do not record any signal when I test them on xev.

I installed and ran evtest, which gave me the scancodes for them, but hexadecimal event codes are not workable as xbindkeys configuration entries, the way button press numbers are for a mouse. Is there some intermediate translation from scancodes to X-readable entries, perhaps in systemd, or is it a matter of changing something at serious kernel level? If it does go that deep, I probably wouldn't do it – I'm thinking of it as just a tweak to get a fast way to copy and paste files from place to place.

Distro: Xubuntu Core 15.10 with limited software added, adding more all the time.
 
Old 12-28-2015, 06:54 PM   #2
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
xmodmap may work for you.
Our friends over at Arch have good docs on it : https://wiki.archlinux.org/index.php/Xmodmap

I used to use it, but stopped cause I changed distros often.

Good luck !
 
Old 12-28-2015, 07:18 PM   #3
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 185

Original Poster
Rep: Reputation: 59
Thanks for the reply, but xmodmap also uses only X-readable keycodes/keysyms, not the scancodes that are buried somewhat deeper in the system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IR Remote: Keycodes but no scancodes? polemon Linux - Hardware 6 04-11-2013 06:46 PM
[SOLVED] Raw access to keycodes/scancodes from userspace? hda7 Programming 20 03-05-2011 02:38 PM
Keyboards, scancodes and BIOSes. GazL Linux - Hardware 4 11-27-2008 09:00 AM
Php is not getting interpreted? swatward Programming 1 07-31-2005 03:48 PM
HTML not interpreted os2 Programming 1 04-29-2005 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration