LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2011, 04:55 PM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
Turn the power button into a key press?


Is it possible to have the power button emulate the press of a key? On my media centre I have XBMC running and it doesn't recognise me pressing the power button. If I press S (on the keyboard) the shutdown menu pops up. This would be very helpful.

Thanks
 
Old 04-20-2011, 07:40 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You question isn't too clear. Do you want your power button to work, or do you want it to "pop" your shut down menu?

In either case, check your BIOS settings to see if your BIOS is "pre-empting" your power key actions, and then look under the "General" tab for the "When the power button is pressed" and see what you have set. (Note: I don't use XBMC. But a search of the XBMC WiKi manual for "power button" turned up that suggestion.)
 
Old 04-21-2011, 01:47 AM   #3
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
I want the key "s" to be issued when I press the power button; I don't want the power button to work in the usual way.

Thanks
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make mid-mouse button send key press to application utahnix Linux - Software 2 10-09-2007 05:14 PM
i hv to manually press the power button on shutdown after all daemons have been stopp alice_neo Linux - Software 6 09-12-2007 02:55 PM
disable shutdown by press the power button nickraj General 8 03-02-2007 11:16 PM
Press power button can't turn down the computer shadkong Linux - Hardware 2 05-04-2005 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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