Blue LED off

Moderators: mdrjr, odroid

Blue LED off

Unread postby were55 » Wed Mar 16, 2016 3:10 am

Hi,

I would like to turn off the blue LED that is blinking all the time, any idea how to deal it?

thanks
were55
 
Posts: 33
Joined: Thu Mar 03, 2016 4:20 am
languages_spoken: spanish
ODROIDs: waiting for Odroid-C2

Re: Blue LED off

Unread postby odroid » Wed Mar 16, 2016 9:40 am

LED trigger node doesn't exist. We will look into the kernel option.
User avatar
odroid
Site Admin
 
Posts: 24355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Blue LED off

Unread postby were55 » Thu Mar 17, 2016 9:01 am

Thanks Odroid, let me know to test it.
were55
 
Posts: 33
Joined: Thu Mar 03, 2016 4:20 am
languages_spoken: spanish
ODROIDs: waiting for Odroid-C2

Re: Blue LED off

Unread postby odroid » Fri Mar 18, 2016 8:58 am

The blue LED trigger node exists. :D

Turn off
Code: Select all
su -
echo none > /sys/class/leds/blue\:heartbeat/trigger


Turn on
Code: Select all
su -
echo deafult-on > /sys/class/leds/blue\:heartbeat/trigger


Hearbeat (original state)
Code: Select all
su -
echo heartbeat > /sys/class/leds/blue\:heartbeat/trigger


There are much more triggers. But some of them may not work.
Code: Select all
cat /sys/class/leds/blue\:heartbeat/trigger                                                                                                                                                                                                                                                                                                                     
none rc-feedback nand-disk timer oneshot [heartbeat] backlight gpio cpu0 cpu1 cpu2 cpu3 default-on transient flash torch sd emmc battery-charging-or-full battery-charging battery-full battery-charging-blink-full-solid ac-online   
User avatar
odroid
Site Admin
 
Posts: 24355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Blue LED off

Unread postby nstevens » Fri Mar 18, 2016 8:59 pm

I have a C2 and notice that one of the triggers for the blue LED is GPIO.
Anyone know which GPIO #
I know on a Raspberry Pi 2 it is GPIO 47 but that didn't work.
nstevens
 
Posts: 2
Joined: Fri Mar 18, 2016 1:52 pm
languages_spoken: english
ODROIDs: C2

Re: Blue LED off

Unread postby were55 » Sat Mar 19, 2016 6:51 am

@odroid: Thanks qorks fine off and hearbeat, not always on, but now my wife is happy :-)
were55
 
Posts: 33
Joined: Thu Mar 03, 2016 4:20 am
languages_spoken: spanish
ODROIDs: waiting for Odroid-C2

Re: Blue LED off

Unread postby odroid » Sat Mar 19, 2016 10:00 am

@were55
Good to know your wife is happy now.
I agree the blue LED is too much bright in night time.

@nstevens
As far as I know the GPIO(PIOAO-BIT13) pin for the blue LED was not exported to the sysfs.
Check LED driver source code in the Kernel if possible.
User avatar
odroid
Site Admin
 
Posts: 24355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Blue LED off

Unread postby toyanucci » Tue Apr 12, 2016 8:43 am

odroid wrote:The blue LED trigger node exists. :D

Turn off
Code: Select all
su -
echo none > /sys/class/leds/blue\:heartbeat/trigger


Turn on
Code: Select all
su -
echo deafult-on > /sys/class/leds/blue\:heartbeat/trigger


Hearbeat (original state)
Code: Select all
su -
echo heartbeat > /sys/class/leds/blue\:heartbeat/trigger


There are much more triggers. But some of them may not work.
Code: Select all
cat /sys/class/leds/blue\:heartbeat/trigger                                                                                                                                                                                                                                                                                                                     
none rc-feedback nand-disk timer oneshot [heartbeat] backlight gpio cpu0 cpu1 cpu2 cpu3 default-on transient flash torch sd emmc battery-charging-or-full battery-charging battery-full battery-charging-blink-full-solid ac-online   


I'm running libreelec and these commands work but are reset upon reboot. How do I make them stick?
toyanucci
 
Posts: 18
Joined: Sat Apr 02, 2016 12:13 am
languages_spoken: english
ODROIDs: Odroid-c2

Re: Blue LED off

Unread postby were55 » Thu Apr 14, 2016 10:32 am

@toyanucci ,you can add the lines in crontab ,it works fine in libreelec.
were55
 
Posts: 33
Joined: Thu Mar 03, 2016 4:20 am
languages_spoken: spanish
ODROIDs: waiting for Odroid-C2

Re: Blue LED off

Unread postby redbird » Tue Jun 21, 2016 9:02 pm

In Android Lollipop on the C2 I was able to add the following as the last lines of the "on boot" section int /system/init.odroidc2.rc:
Code: Select all
    #Turn off blue led heart beat
    write /sys/class/leds/blue\:heartbeat/trigger none


...but when I try in Ubuntu I get the following:
Code: Select all
odroid@odroid64:~$ sudo echo none >/sys/class/leds/blue\:heartbeat/trigger
-bash: /sys/class/leds/blue:heartbeat/trigger: Permission denied
odroid@odroid64:~$


What am I missing?
redbird
 
Posts: 55
Joined: Thu Nov 14, 2013 1:23 am
languages_spoken: english
ODROIDs: U2, C2x5

Re: Blue LED off

Unread postby odroid » Tue Jun 21, 2016 9:10 pm

Run "sudo su" first and type "echo ~~~" command.
User avatar
odroid
Site Admin
 
Posts: 24355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Blue LED off

Unread postby redbird » Wed Jun 22, 2016 12:53 am

Thanks very much -- that pointed me in the right direction. The following in /etc/rc.local did the trick:
Code: Select all
echo none >/sys/class/leds/blue\:heartbeat/trigger


Now, I'll go for the gold.

1) Any way to turn off the red power led?
2) Any way to turn off the green/yellow ethernet light?

No other entries in the /sys/class/leds directory. Would it be possible with a custom kernel config/build? Any ideas or pointers would be appreciated.

Stealth mode could likely save my marriage!
redbird
 
Posts: 55
Joined: Thu Nov 14, 2013 1:23 am
languages_spoken: english
ODROIDs: U2, C2x5

Re: Blue LED off

Unread postby endecotp » Wed Jun 22, 2016 3:19 am

I thought that ethtool could perhaps change the ethernet led behaviour, but perhaps not.
Some googling finds a very recent proposed kernel patch related to this; its existence suggests that it was not previously possible in software: http://www.spinics.net/lists/netdev/msg380767.html

Black PVC tape or similar might work!
endecotp
 
Posts: 227
Joined: Sun May 08, 2016 12:30 am
languages_spoken: english
ODROIDs: c2

Re: Blue LED off

Unread postby endecotp » Wed Jun 22, 2016 3:54 am

OK, the phy chip definitely has a register that can turn off the LEDs. It's the "led control register" or LEDCR at mii address 0x18. I'm not sure how to write to it. There is an ioctl, SIOCMIIREG, that would probably work.
endecotp
 
Posts: 227
Joined: Sun May 08, 2016 12:30 am
languages_spoken: english
ODROIDs: c2

Re: Blue LED off

Unread postby jeff » Sat Aug 26, 2017 1:54 pm

Not sure where my C2 is right now, but at least on the XU4 you can turn the LED trigger to "none" (as described above) and set the blue LED brightness 0-255 with /sys/class/leds/blue\:heartbeat/brightness
jeff
 
Posts: 4
Joined: Thu Aug 24, 2017 10:30 am
languages_spoken: english
ODROIDs: XU4Q, C2


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 2 guests