Shutdown using Power Button [ClarkConnect]

ภพ ร้าน Room19 ถามว่าจะปิดเครื่อง clarkconnect ง่ายๆ ได้ไงโดยไม่ต้องใช้ command หรือเข้าไปปิดในเว็บ ไปค้นมาให้เจอวิธีการปรับใช้ปุ่ม Power ในการปิดเครื่อง อ่า แหล่มๆ จดๆๆ

Pressing the power button to shutdown a computer is always a bad thing to do, to properly shut down the system you must either log into the web interface and browse to ‘Tools – Shutdown/Restart’ or log in via PuTTY and enter the following:

shutdown -h now

This is a real problem especially as you will most probably have to power up one computer just to power down the other. A very useful tool can be installed that automatically runs the shutdown command for you when the Power Button is pressed safely shutting down the server.

Login in as root using PuTTY and type:

apt-get update
apt-get clean
apt-get install acpid

When you reboot you will find the power button now properly shuts down your computer.

(If this fails to work, it could be that your hardware doesn’t support the Advanced Configuration & Power Interface (ACPI) standard – check your motherboard’s BIOS settings and make sure it’s switched on.)

ACPID can be configured to run other scripts when acpi events occur, the configuration file is found at /etc/acpi/events/sample.conf if you fancy developing this further.

other tweaking @ http://www.ulverston.myzen.co.uk/mini-itx/pages/tuning.htm