Help - Search - Members - Calendar
Full Version: Kernel Patch To Turn On Green Led
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
albertr
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
albertr
Ooops, forgot to turn LED off when rebooting. Patch updated.
-albertr
jiangtao9999
Hi!
Which cross-compiler was you uesd ?

none of kernel which I compiled can boot my C1000 ...
albertr
Patch updated to take care of halting as well.
Jiangtao9999, I don't use cross compiler.
-albertr
scoutme
actually, it would be good having the led functioning as a disk activity led - usefull and less power consuming
jiangtao9999
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 ??
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.