Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 down vote accepted

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


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.