change LED behavior on Qube2

View: New views
3 Messages — Rating Filter:   Alert me  

change LED behavior on Qube2

by Sameer Verma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I noticed that on Lenny for Qube2, the green LED flickers with disk
activity, but stays 'off' otherwise. Can this be changed to a constant
'on' like before? I kinda like my office to be bathed in the eerie
green glow at night :-)

cheers,
Sameer
--
Dr. Sameer Verma, Ph.D.
Associate Professor, Information Systems
Director, Center for Business Solutions
San Francisco State University
http://verma.sfsu.edu/
http://cbs.sfsu.edu/
http://is.sfsu.edu/


--
To UNSUBSCRIBE, email to debian-mips-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: change LED behavior on Qube2

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Sameer Verma <sverma@...> [2009-09-14 11:51]:
> I noticed that on Lenny for Qube2, the green LED flickers with disk
> activity, but stays 'off' otherwise. Can this be changed to a constant
> 'on' like before? I kinda like my office to be bathed in the eerie
> green glow at night :-)

I don't have a Qube2 so I cannot test it, but the following should
work:

modprobe ledtrig-default-on

# 2.6.31 and lower
echo default-on > /sys/devices/platform/cobalt-qube-leds/leds/qube-front/trigger

# 2.6.32 and higher
echo default-on > /sys/devices/platform/cobalt-qube-leds/leds/qube::front/trigger

--
Martin Michlmayr
http://www.cyrius.com/


--
To UNSUBSCRIBE, email to debian-mips-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: change LED behavior on Qube2

by Florian Fainelli-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sameer, Martin,

Le mardi 17 novembre 2009 21:49:52, Martin Michlmayr a écrit :

> * Sameer Verma <sverma@...> [2009-09-14 11:51]:
> > I noticed that on Lenny for Qube2, the green LED flickers with disk
> > activity, but stays 'off' otherwise. Can this be changed to a constant
> > 'on' like before? I kinda like my office to be bathed in the eerie
> > green glow at night :-)
>
> I don't have a Qube2 so I cannot test it, but the following should
> work:
>
> modprobe ledtrig-default-on
>
> # 2.6.31 and lower
> echo default-on >
>  /sys/devices/platform/cobalt-qube-leds/leds/qube-front/trigger
>
> # 2.6.32 and higher
> echo default-on >
>  /sys/devices/platform/cobalt-qube-leds/leds/qube::front/trigger
We might want the following patch to restore the usual behavior, if it
is fine with you I can send this upstream.
---
diff --git a/drivers/leds/leds-cobalt-qube.c b/drivers/leds/leds-cobalt-qube.c
index 8816806..81b2014 100644
--- a/drivers/leds/leds-cobalt-qube.c
+++ b/drivers/leds/leds-cobalt-qube.c
@@ -31,7 +31,7 @@ static struct led_classdev qube_front_led = {
  .name = "qube::front",
  .brightness = LED_FULL,
  .brightness_set = qube_front_led_set,
- .default_trigger = "ide-disk",
+ .default_trigger = "default-on",
 };
 
 static int __devinit cobalt_qube_led_probe(struct platform_device *pdev)


--
To UNSUBSCRIBE, email to debian-mips-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...