LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-27-2010, 12:28 AM   #1
DebianUser
Member
 
Registered: Apr 2010
Posts: 88

Rep: Reputation: 15
Mapping a command to a button


I have a headless server and i'd like to add a physical button that when pressed would execute a specific command, is there such a device?
 
Old 10-27-2010, 12:35 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Short answer: Sure

Longer answer: exactly how is this "physical button" going to be connected to your system? That will determine how to perform I/O with it.

RS-232 has always been a Pop Favorite. USB might also be a good choice. There are lots of other alternatives, too.

PS:
Q: How do you think a mouse button works? Or a joystick?

PPS:
Have a look at D-Bus, too:

Last edited by paulsm4; 10-27-2010 at 12:36 AM.
 
  


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
Logitech g5 button mapping Zaskar Linux - Hardware 1 02-03-2008 09:58 PM
Mapping the mouse wheel button jfranks214 *BSD 1 12-19-2004 08:50 PM
Mouse button mapping beyond 4-5 Nichole_knc Slackware 1 07-02-2004 06:26 AM
mapping mouse button to keystroke? ldhertert Linux - General 2 11-19-2003 10:24 AM
Mouse Button Mapping in X Windows ascii2k Linux - General 4 07-27-2001 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:45 AM.

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