|
|
|
|
|
|
| Author |
Message |
Vladi Lemurov *nix forums beginner
Joined: 02 Jun 2006
Posts: 5
|
Posted: Fri Jul 21, 2006 6:00 am Post subject:
bind keyboard POWER button to start some program
|
|
|
Hello!
How can one bind a keyboard key (in my case I would like to bind
keyboard POWER button to /etc/init.d/poweroff script) or key sequence
(i.e. ctrl + f1)
to a script launch or something. For example one pushes keyboard POWER
BUTTON and the script /etc/init.d/poweroff is being started.
I need that working in terminal, don't need in X. I found hotkeys
package but this one requires X11. Thanks in advance.
Vladi.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
John O'Hagan *nix forums addict
Joined: 20 Apr 2005
Posts: 55
|
Posted: Fri Jul 21, 2006 9:50 am Post subject:
Re: bind keyboard POWER button to start some program
|
|
|
On Friday 21 July 2006 15:58, Vladi Lemurov wrote:
| Quote: | Hello!
How can one bind a keyboard key (in my case I would like to bind
keyboard POWER button to /etc/init.d/poweroff script) or key sequence
(i.e. ctrl + f1)
to a script launch or something. For example one pushes keyboard POWER
BUTTON and the script /etc/init.d/poweroff is being started.
|
[...]
If you use ACPI, you can create /etc/acpi/events/powerbtn containing:
event=button[ /]power
action=/etc/acpi/powerbtn.sh
where powerbtn.sh is the shutdown script that comes with acpid.
Any ACPI event can be used to trigger any command in this way, see man acpid.
HTH,
John
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sun Nov 23, 2008 12:40 pm | All times are GMT
|
|
Property in Spain | Uggs | Loans | MPAA | Home Equity Loan
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|