Welcome,
Guest
. Please
login
or
register
.
May 21, 2013, 02:49:09 PM
The Plug Computer Forum
|
Linux Stuff
|
General Linux questions
|
How to switch of LEDS during halt
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to switch of LEDS during halt (Read 2591 times)
spinifex
Full Member
Karma: 8
Posts: 167
How to switch of LEDS during halt
«
on:
June 01, 2011, 07:44:33 AM »
Is there a simple way on the Dreamplug to disable all the LEDS during shutdown/halt processing? Like very near the 'halt'?
Logged
kjax
Newbie
Karma: 0
Posts: 3
Re: How to switch of LEDS during halt
«
Reply #1 on:
January 05, 2012, 08:58:13 PM »
turn off bluetooth led:
/sbin/blinkbtled 0xf1010148 w 0x000
turn on bluetooth led:
/sbin/blinkbtled 0xf1010148 w 0x8000
to turn on LEDs:
echo 1 > /sys/devices/platform/leds-gpio/leds/guruplug\:green\:health/brightness
echo 1 > /sys/devices/platform/leds-gpio/leds/guruplug\:green\:wmode/brightness
echo 1 > /sys/devices/platform/leds-gpio/leds/guruplug\:red\:health/brightness
echo 1 > /sys/devices/platform/leds-gpio/leds/guruplug\:red\:wmode/brightness
turn them off by sending 0 to the devices.
You could do something similar to /etc/init.d/rc.local on shutdown.
Logged
Hell-G
Newbie
Karma: 2
Posts: 12
Re: How to switch of LEDS during halt
«
Reply #2 on:
January 08, 2012, 06:13:08 AM »
Does anyone know how to do that on the D2plug?
The green power led on the D2plug is disturbingly bright.
Logged
kjax
Newbie
Karma: 0
Posts: 3
Re: How to switch of LEDS during halt
«
Reply #3 on:
January 08, 2012, 07:48:56 PM »
Personally, I haven't figured out how to turn off the power light. The LEDs are bright.
Logged
kjax
Newbie
Karma: 0
Posts: 3
Re: How to switch of LEDS during halt
«
Reply #4 on:
January 08, 2012, 08:09:58 PM »
I guess the OP already answered his own question.
http://www.plugcomputer.org/plugforum/index.php?topic=6003.0
Good job with the script.
Logged
Hell-G
Newbie
Karma: 2
Posts: 12
Re: How to switch of LEDS during halt
«
Reply #5 on:
January 09, 2012, 03:21:53 PM »
Yep, that looks nice!
But I think it does not work on the D2plug. At least I get a:
Code:
ls: cannot access /sys/class/leds: No such file or directory
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Application ideas and development Q/A
=> Success stories
=> Marvell PlugIN - Free Your Imagination
-----------------------------
Hardware and U-Boot firmware
-----------------------------
=> Hardware
=> U-Boot stuff
-----------------------------
Linux Stuff
-----------------------------
=> Android for SheevaPlug is Available!
=> General Linux questions
=> Kernel
=> Linux distributions
Loading...