News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

LEDs of Raspi

Started by dingo35, October 29, 2013, 11:13:37

Previous topic - Next topic

dingo35

Attached a patch to have the green on board led working as an on/off indicator for vompclient.

The other leds (except for the red power led) can be cleared by this patch (but the kernel needs to be recompiled for that):
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=31&t=12530&sid=f152b5af6d3915a18ed8b2d005daa801&start=25

MartenR

Thanks for the patch. I have it it in my git.
But it is only working, if you run vomp as root.

Marten

dingo35

Hi Marten,

You are right, the default Raspbian permissions for the interface my patch is using is:
root@raspvideo:/sys/class/leds/led0# ls -l brightness
-rw-r--r-- 1 root root 4096 Oct 30 09:04 brightness


If you change these permissions to writeable for the user that is running vompclient, it should work.

Or one could add to /etc/rc.local:
chmod o+w /sys/class/leds/led0/brightness

AFAIK there is no significant security issue with this, as long as you don't mind that anyone that has access to your raspi can turn your LED on or off :-)