OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Kernel Patch To Turn On Green Led, when not suspended
albertr
post Oct 18 2005, 05:22 PM
Post #1





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Here's a two-liner to have a green front LED turned on when PXA270-based Zaurus is not suspended. The main idea behind this is to mimic OBSD behavior. IMHO, it's quite handy to see whever Zaurus is suspended based on status of the front LED. Tested on C1K only, C3K/C3.1K use green LED as an indicator of HD activity, so I'm not sure if they would benefit from that patch.
You might want to change CONFIG_ARCH_PXA_SPITZ to CONFIG_ARCH_PXA_AKITA to make it compile on C1K only.
http://www.iral.com/~albertr/linux/misc/led.diff
-albertr
Go to the top of the page
 
+Quote Post
albertr
post Oct 19 2005, 09:21 AM
Post #2





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Ooops, forgot to turn LED off when rebooting. Patch updated.
-albertr
Go to the top of the page
 
+Quote Post
jiangtao9999
post Oct 20 2005, 12:08 AM
Post #3





Group: Members
Posts: 32
Joined: 24-August 05
Member No.: 7,938



Hi!
Which cross-compiler was you uesd ?

none of kernel which I compiled can boot my C1000 ...
Go to the top of the page
 
+Quote Post
albertr
post Oct 22 2005, 07:49 AM
Post #4





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Patch updated to take care of halting as well.
Jiangtao9999, I don't use cross compiler.
-albertr
Go to the top of the page
 
+Quote Post
scoutme
post Oct 22 2005, 01:56 PM
Post #5





Group: Members
Posts: 579
Joined: 19-April 04
Member No.: 2,912



actually, it would be good having the led functioning as a disk activity led - usefull and less power consuming
Go to the top of the page
 
+Quote Post
jiangtao9999
post Oct 22 2005, 05:46 PM
Post #6





Group: Members
Posts: 32
Joined: 24-August 05
Member No.: 7,938



QUOTE(albertr @ Oct 22 2005, 11:49 PM)
Patch updated to take care of halting as well.
Jiangtao9999, I don't use cross compiler.
-albertr
*

huh.gif
Built it by Zaurus ??
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th December 2014 - 11:15 PM