2012年3月15日 星期四

[Linux] CentOS Disable power button in text mode

原因: 當按下power key後系統會自動關機
目的: 取消這個功能
OS: CentOS 6.2
1.先檢查BIOS中的電源管理item是否有Soft-Off by PWR-BTTN選項
    Soft-Off by PWR-BTTN < Instant-Off >
2.在/etc/acpi/events/ 中把powerbtn.conf裡的action mark就可以了

[root@localhost /]# vi /etc/acpi/events/powerbtn.conf
event=button/power.*
#action=.....
參考:http://www.centos.org/docs/5/html/5.1/Cluster_Administration/s2-bios-setting-CA.html
         http://bluequiet.blogspot.com/2009/05/linuxacpid.html

沒有留言:

張貼留言