Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I'm trying to link a button(now without function) to a script that I have made. I'm using a notebook with several extra buttons

This button however is like the power on button, it stands by itself and is not part of my keyboard.

I don't get any output of xev, getscancodes or cat /dev/input/eventX when pressing this button.

How can I use this button to run the script?

Many thanks Simon

share|improve this question

migrated from Apr 20 '11 at 14:44

This question came from our site for professional and enthusiast programmers.

More information, please. – Matt Ball Apr 19 '11 at 21:29
Notebook? Vendor? What language do you use? – halfdan Apr 19 '11 at 21:30
I'm using a clevo notebook W150HNM is there something else in particular you need to know? – Simon Deruyter Apr 19 '11 at 21:39

This topic is discussed in these two questions:

  1. key bindings - link key to a bash script
  2. Bind key to a bash script
share|improve this answer

Your Answer


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