LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2013, 04:38 AM   #1
eeluve
Member
 
Registered: Nov 2011
Location: Russia, SPb
Distribution: all of 'em
Posts: 49

Rep: Reputation: Disabled
setkeycodes


Ok, short story is - I want to assign key/scan-code to a non-functional for this moment button(s). The keyboard works trough 485 translating bytes to rs232 by "inputattach". Doing:
Code:
setkeycodes e046 121
for example, checked dumpkeys and 121 is still free. Then check "dmesg" again, and it recommends me to reassign once more. Are the changes I make not applied, how do I accomplish that? Yes, im pretty sure the scan is right, checked several times with different buttons logged to "dmesg", for working ones - both with "xev" and "showkey -s".

Last edited by eeluve; 03-13-2013 at 06:12 AM.
 
Old 03-13-2013, 05:19 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Test it with showkey -k: what does it show when you press the key in question?

Last edited by NevemTeve; 03-13-2013 at 05:23 AM.
 
Old 03-13-2013, 05:27 AM   #3
eeluve
Member
 
Registered: Nov 2011
Location: Russia, SPb
Distribution: all of 'em
Posts: 49

Original Poster
Rep: Reputation: Disabled
Come on, nothing of course
EDIT: this time I have read the "setkeycodes" manual more carefully, and it turns out that my keyboard is not really "slightly unusual" as they state there, cba checking their source .. honestly. But if someone might help still, I'd love it.

Last edited by eeluve; 03-13-2013 at 07:12 AM.
 
Old 03-14-2013, 12:42 AM   #4
eeluve
Member
 
Registered: Nov 2011
Location: Russia, SPb
Distribution: all of 'em
Posts: 49

Original Poster
Rep: Reputation: Disabled
some keys do not work rs485 debian5 inputattach

Sorry, I've got to copy the thread, maybe posted in wrong section. Really need assistance.

Ok, short story is - I want to assign key/scan-code to a non-functional for this moment button(s). The keyboard works trough 485 translating bytes to rs232 by "inputattach". Doing:
Code:
setkeycodes e046 121
for example, checked dumpkeys and 121 is still free. Then check "dmesg" again, and it recommends me to reassign once more. Are the changes I make not applied, how do I accomplish that? Yes, im pretty sure the scan is right, checked several times with different buttons logged to "dmesg", for working ones - both with "xev" and "showkey -s". Probably "setkeycodes" is not an utility for my situation, haven't seen source. But, considering system gives me the scan-codes to assign, how do I solve it then?

Code:
inputattach --daemon --always --noinit --baud 4800 -ps2ser /dev/ttyS№
EDIT: ok, I even wrote letter to Vojtech, considering he's author of both evdev and inputattach. don't really expect answer tho, kind of cba writing new driver for that.
EDIT2: just thinking, what exactly does log this "Use 'setkeycodes bla-bla" to the dmesg(because it actually reads my scan-code), as I have found nothing similar in driver. Ok I'm blind, its atkbd.c, also written by Vojtech of course

Last edited by eeluve; 03-14-2013 at 03:35 AM.
 
Old 03-15-2013, 11:21 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by eeluve View Post
Sorry, I've got to copy the thread, maybe posted in wrong section. Really need assistance.
Moderator note: please, the next time just edit (or post again in) your original thread to avoid duplicates and keep the discussion in one place. For any assistance, please consider to report your own thread/post and ask a moderator to take the proper action. In this case I have merged the two threads into this one and I bumped it to the top of the forum list, in order to let it gain more visibility for a while.
 
  


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
setkeycodes sdfi Debian 1 10-23-2011 07:27 AM
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 - Newbie

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