Results 1 to 2 of 2
Thread: Override LIRC Power button
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Oct 2007
Override LIRC Power button
So I have this Java program that receives a USB remote input as keyboard event. When the Power button is pressed, it would show a dialog for confirmation and shutdown a computer if confirmed. I asked this question before, and somehow resolved it a long while back.
However, I am setting up another computer, with exact setup and hardware so far, other than this configuration to prevent the computer shutdown when pressing the power button.
I just can't remember what I did to the other computer. I looked everywhere in that computer, (such as /etc/acpi/shutdown..., /etc/X11/xorg.conf, etc), but can't figure out where that is.
There was no .lircrc in the home folder. I even create one in the old computer, and irexec successfully call a command when Power was pressed on the remote.
So, back to the question, how, in OpenSuse, to override KDE, or whatever that processes the power keyboard event from the lirc remote?
I checked with the old computer, and without irexec running, if I press the power button the remote in the command console screen, it will still shutdown the computer. So the function is not entiredly removed. I also pressed the power button on the computer itself, and it would shutdown regardless or which program I run, so that is not disabled in the BIOS either.
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
This post was a long time ago so hopefully you have already sorted this out. However, for posterity's sake this is what you need to do.
1. Go to System->Preferences->Power Management
2. Select the "General" tab
3. Under "Actions - When the power button is pressed", select "Ask Me"
At least this works for RHEL systems. I suspect that SuSe works much the same way.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!