LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to control the power button in redhat 7.3 like windows XP - please helps ! (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-control-the-power-button-in-redhat-7-3-like-windows-xp-please-helps-238555/)

kikkubey 10-04-2004 06:03 AM

How to control the power button in redhat 7.3 like windows XP - please helps !
 
Is there anyone know how to control the power button in redhat 7.3 like windows XP, for example, in WinXP, I could set that: when I press the power button and nothing is happened - that what I want because when I am running my model and I don't want if anyone press power button and everything is ... poor me :-(.

Thank you very much.

db391 10-04-2004 07:39 AM

you need to enable acpi & acpid support:

first edit (i forget the exact path) /etc/acpi/event.d/default

and edit the power line so that instead of '/sbin/init 0' you can put another command like 'echo 'i am doing nothing'' :)

now edit /etc/lilo.conf and add a line in your image section:

append="acpi=on"

update lilo, reboot, and start acpid.

kikkubey 10-05-2004 12:48 AM

Thank you so much. Now I will try to do what U said.


All times are GMT -5. The time now is 07:52 PM.