• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: How to switch of LEDS during halt  (Read 4487 times)
spinifex
Full Member
***

Karma: 8
Posts: 167



View Profile WWW
« 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


View Profile
« 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: 13


View Profile
« 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


View Profile
« 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


View Profile
« 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: 13


View Profile
« 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
Jump to: