Author Topic: Kernel Patch To Turn On Green Led  (Read 3240 times)

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Kernel Patch To Turn On Green Led
« on: October 18, 2005, 09:22:06 pm »
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

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Kernel Patch To Turn On Green Led
« Reply #1 on: October 19, 2005, 01:21:25 pm »
Ooops, forgot to turn LED off when rebooting. Patch updated.
-albertr
« Last Edit: October 19, 2005, 01:22:28 pm by albertr »

jiangtao9999

  • Newbie
  • *
  • Posts: 32
    • View Profile
Kernel Patch To Turn On Green Led
« Reply #2 on: October 20, 2005, 04:08:20 am »
Hi!
Which cross-compiler was you uesd ?

none of kernel which I compiled can boot my C1000 ...
I'm sorry my poor English .....:unsure:

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Kernel Patch To Turn On Green Led
« Reply #3 on: October 22, 2005, 11:49:32 am »
Patch updated to take care of halting as well.
Jiangtao9999, I don't use cross compiler.
-albertr

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Kernel Patch To Turn On Green Led
« Reply #4 on: October 22, 2005, 05:56:12 pm »
actually, it would be good having the led functioning as a disk activity led - usefull and less power consuming

jiangtao9999

  • Newbie
  • *
  • Posts: 32
    • View Profile
Kernel Patch To Turn On Green Led
« Reply #5 on: October 22, 2005, 09:46:17 pm »
Quote
Patch updated to take care of halting as well.
Jiangtao9999, I don't use cross compiler.
-albertr
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100511\"][{POST_SNAPBACK}][/a][/div]
 
Built it by Zaurus ??
I'm sorry my poor English .....:unsure: