¡¡¡¡ÖØбàÒëÁËÄںˣ¬ÉèÖÃÁËacpiµÄÖ§³Ö²¢Æô¶¯ÁËacpid¡£°´µçÔ´¼ü£¬½á¹ûÆÁÄ»ÏÔʾϵͳ×Ô¶¯½øÈëÁ˹ػú³ÌÐò£¬Ð¶ÔØÍêËùÓÐÎļþϵͳ²Å¶ÏµÄµçÔ´£¬ÖØпª»úûÓгöÏÖ¼ì²éÎļþϵͳµÄÏÖÏ󣬺ÍÕý³£¹Ø»úÒ»ÑùÆô¶¯acpic¸ÃÔõôÆô¶¯£¿
¡¡¡¡ÄãÐèÒªÔÚ /etc/rc.d/rc.M ÎļþÀïÃæ°ÑÓйØrc.acpidµÄÐÐÇ°ÃæµÄ#È¥µôÈÃËüÉúЧ£¬»¹Òª¿´¿´ÊDz»ÊÇ´æÔÚ /etc/rc.d/rc.acpid Õâ¸öÎļþÇÒÊÇ¿ÉÖ´Ðеġ£
¡¡¡¡acpiÊÇÈ¡´úapmµÄµçÔ´¹ÜÀí¼¼Êõ£¬¶þÕßÈ¡ÆäÒ»¼´¿ÉʵÏÖÈí¹Ø»ú¡£
¡¡¡¡Èκΰ汾¶¼¿ÉÒÔʵÏÖÕâÒ»¹¦ÄÜ£¬ÄÚºËÖ§³ÖacpiÊÇÖص㣬Æä´ÎÊÇÓÐÒ»¸öapcidµÄdaemon£¬Ëü»á¼àÊÓ/proc/acpi/event£¬µ±°´ÏµçÔ´°´Å¥Ê±»á×Ô¶¯Ö´ÐÐ/etc/powerbtn.sh
¡¡¡¡Æä´ÎÊÇÓÐÒ»¸öapcidµÄdaemon£¬Ëü»á¼àÊÓ/proc/acpi/event£¬µ±°´ÏµçÔ´°´Å¥Ê±»á×Ô¶¯Ö´ÐÐ/etc/powerbtn.sh
¡¡¡¡It depends on different distributions. For Slackware, it will execute /etc/acpi/acpi_handler.sh instead. And the default acpi_handler.sh almost does nothing in Slackware. I've written a custom script for my laptop. You may download it and modify it as you want
jerry520 ÓÚ 2009-03-27 15:14:22·¢±í:
ѧϰÁË.