Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » Debian/Angstorm On Zaurus

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
邮件灯的妙用
View previous topic :: View next topic  
Author Message
ruf



Joined: 30 Mar 2006
Posts: 71

小企鹅: 1378

PostPosted: 2008-Mar-15 Sat, am8:40 Reply with quote
 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
View user's profile Send private message
btest



Joined: 22 Nov 2007
Posts: 175

小企鹅: 4014

PostPosted: 2008-Mar-18 Tue, am7:25 Reply with quote
 Post subject:

不错,马上试一下。
_________________
http://btest.blog.ubuntu.org.cn/
Back to top
View user's profile Send private message
geely



Joined: 13 Feb 2008
Posts: 67

小企鹅: 2135

PostPosted: 2008-Mar-18 Tue, pm7:39 Reply with quote
 Post subject:

休眠的时候邮件灯亮,不费电吗?

可怜我的7500c的电池只有950ma啊, Crying or Very sad

_________________
SL-7500C @ Cacko1.23 with MSYH Font
1G SD & Z-Com XI-825 CF Wifi
Back to top
View user's profile Send private message MSN Messenger
ruf



Joined: 30 Mar 2006
Posts: 71

小企鹅: 1378

PostPosted: 2008-Mar-19 Wed, pm1:48 Reply with quote
 Post subject:

geely wrote:
休眠的时候邮件灯亮,不费电吗?

可怜我的7500c的电池只有950ma啊, Crying or Very sad


就几秒而已,休眠完成就断电了,灯自然灭了。
Back to top
View user's profile Send private message
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2008-Mar-19 Wed, pm3:31 Reply with quote
 Post subject:

按下on/off,开始“休眠”,灯亮。到真正进入“休眠后”,灯灭。

按下on/off,开始“恢复”,灯亮。“恢复完成”,灯灭。

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
btest



Joined: 22 Nov 2007
Posts: 175

小企鹅: 4014

PostPosted: 2008-Mar-20 Thu, am7:39 Reply with quote
 Post subject:

/etc/apm/apmd_proxy 7500中没有该配置文件。
_________________
http://btest.blog.ubuntu.org.cn/
Back to top
View user's profile Send private message
ruf



Joined: 30 Mar 2006
Posts: 71

小企鹅: 1378

PostPosted: 2008-Mar-20 Thu, am11:01 Reply with quote
 Post subject:

btest wrote:
/etc/apm/apmd_proxy 7500中没有该配置文件。


我猜你没有安装apmd,apt-cache search apmd
Back to top
View user's profile Send private message
btest



Joined: 22 Nov 2007
Posts: 175

小企鹅: 4014

PostPosted: 2008-Mar-20 Thu, pm3:08 Reply with quote
 Post subject:

噢,原来如此,谢谢。
_________________
http://btest.blog.ubuntu.org.cn/
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » Debian/Angstorm On Zaurus All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional