Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Disable leds

Featured Replies

Hi,

 

3 flashing led diodes of my Banana Pi make good party atmosphere when I want to sleep.

 

what are ways to disable led diodes on Banana Pi? Is there a way to disable them without recompiling kernel? Can it be done by editing script file in /boot?

 

What exactly do I need to change to switch them off?

 

Thank you very much!

 

 

Hi,

 

I have the following bash script in /usr/local/bin/

#!/bin/bash
echo none > /sys/class/leds/green\:ph24\:led1/trigger
#GB: New for 4.2 kernel+
echo none > /sys/class/leds/bananapi\:green\:usr/trigger

That will turn off the green LED.

 

And then to turn off the blue LED with:

#!/bin/bash
/usr/local/bin/bpi_ledset eth0 b

You need to have bpi_ledset from https://github.com/n1tehawk/bpi_ledset

 

Then to have these run at boot I've got the following in /etc/rc.local

#!/bin/bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/local/bin/blueoff.sh &
/usr/local/bin/greenoff.sh &
exit 0
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.