View previous topic :: View next topic |
Author |
Message |
ruf
Joined: 30 Mar 2006 Posts: 71
小企鹅: 1378
|
Posted: 2008-Mar-15 Sat, am8:40 |
|
Post subject: 邮件灯的妙用 |
|
ccpaging兄曾经说,邮件灯在c1000上没什么用,可以用来提示休眠进度,今天试了一下,效果很好。
修改 /etc/apm/apmd_proxy ,将下面两行间增加一行:
Code: |
if [ "${1}" = "suspend" -o "${1}" = "standby" ]; then
run-parts --arg="${1}" --arg="${2}" /etc/apm/event.d
|
成为:
Code: |
if [ "${1}" = "suspend" -o "${1}" = "standby" ]; then
( echo 1 > /sys/bus/platform/devices/spitz-led/leds:spitz:green/brightness ; sleep 18 ; echo 0 > /sys/bus/platform/devices/spitz-led/leds:spitz:green/brightness ) &
run-parts --arg="${1}" --arg="${2}" /etc/apm/event.d
|
然后按电源键休眠的时候,邮件灯会亮;重新开机后熄灭。大家试试。 |
|
Back to top |
|
btest
Joined: 22 Nov 2007 Posts: 175
小企鹅: 4014
|
|
Back to top |
|
geely
Joined: 13 Feb 2008 Posts: 67
小企鹅: 2135
|
Posted: 2008-Mar-18 Tue, pm7:39 |
|
Post subject: |
|
休眠的时候邮件灯亮,不费电吗?
可怜我的7500c的电池只有950ma啊,  _________________ SL-7500C @ Cacko1.23 with MSYH Font
1G SD & Z-Com XI-825 CF Wifi |
|
Back to top |
|
ruf
Joined: 30 Mar 2006 Posts: 71
小企鹅: 1378
|
Posted: 2008-Mar-19 Wed, pm1:48 |
|
Post subject: |
|
geely wrote: | 休眠的时候邮件灯亮,不费电吗?
可怜我的7500c的电池只有950ma啊,  |
就几秒而已,休眠完成就断电了,灯自然灭了。 |
|
Back to top |
|
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
|
Back to top |
|
btest
Joined: 22 Nov 2007 Posts: 175
小企鹅: 4014
|
|
Back to top |
|
ruf
Joined: 30 Mar 2006 Posts: 71
小企鹅: 1378
|
Posted: 2008-Mar-20 Thu, am11:01 |
|
Post subject: |
|
btest wrote: | /etc/apm/apmd_proxy 7500中没有该配置文件。 |
我猜你没有安装apmd,apt-cache search apmd |
|
Back to top |
|
btest
Joined: 22 Nov 2007 Posts: 175
小企鹅: 4014
|
|
Back to top |
|
|