Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There is a keyboard with ' key broken. I've remapped it to the Wake button with xmodmap but that affects only X session, how can I achieve this for TTYs?

Note: editing keymap files directly is not the best option since I want the system to be upgradeable.

share|improve this question
    
I'm not sure there is a way to rebind keys for a TTY without some serious tinkering.. –  Seth Apr 5 '13 at 0:47

1 Answer 1

up vote 3 down vote accepted
+50

I haven't had to deal with a situation like yours nor am I sure about the 'Wake' button, but you may want to look into:

  • /etc/inputrc or .inputrc
  • loadkeys/dumpkeys
share|improve this answer
    
that might work, let me check... :) –  int_ua Apr 9 '13 at 20:30
    
yes, showkey to check the needed keycode (isn't the same for Xorg in my case), dumpkeys to get current values and sudo loadkeys file-with-only-new-values –  int_ua Apr 9 '13 at 22:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.