LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-22-2011, 10:40 AM   #1
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Rep: Reputation: Disabled
setkeycodes


So there are a couple of unused buttons on my laptop i'd like to make use of. when i press it it tells me use 'setkeycodes e0xx <keycode>' to make it known' (where e0xx is the scancode, i guess)

Running setkeycodes --help gives me an error which shows the usage;
'usage: setkeycode scancode keycode ...
(where scancode is either xx or e0xx, given in hexadecimal,
and keycode is given in decimal)'

So, if i am, for example, trying to set this key as F10, how would i go about getting (/what is) the correct keycode for this?

I have tried 'od -d <<< "[Ctrl+V then F10]"

which outputs '0000000 23323 12594 2686'

but 'setkeycodes xxxx 2686' returns 'Invalid arguement. failed to set scancode 84 to keycode 2686'.

same with every other comination of using these numbers so far.

same with using 'od -t u [etc]'

Last edited by sdfi; 10-22-2011 at 10:44 AM.
 
Old 10-23-2011, 07:27 AM   #2
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
OK, well it appears (here) that F10 is '68', F9 is '67' etc etc. But it seems to have little to do with any output i can get from 'od'. Perhaps just not what i thought. Any ideas on how to get the keycodes without just googling for them??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setkeycodes error, accidentally overwrote 'up' Romanus81 Linux - Software 1 04-27-2008 07:39 PM
Keyboard Remapping - setkeycodes problem tara Linux - General 0 02-07-2008 11:29 PM
setkeycodes permenantly Schalken Linux - Hardware 4 04-28-2006 09:00 PM
error with dumpkeys and setkeycodes patitoconejita Linux - General 3 09-13-2005 03:23 PM
setkeycodes for users/ath0 scripts delta3 Linux - General 0 05-24-2004 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:25 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