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.

BigChris

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    BigChris got a reaction from manuti in [Solved] Shutdown Button for NanoPi Neo Air   
    I think i answer myself
     
    I am to stupid to do it like i want, with python. But, shell scripts work everywhere an i understand it in most cases. So, here is an solution for my Problem.
     
    I use PIN 18, which Linux GPIO is 201. I pot a pullup resistor (10kOhm) to PIN 17 - 3,3V.
    After this, i configure the PIN18.
    echo 201 > /sys/class/gpio/export echo "in" > /sys/class/gpio/gpio201/direction Now i can check the value

     
    cat /sys/class/gpio/gpio201/value The answer should be 1.
    If now the PIN18 is shorted to PIN 20 (GND), the answer is 0.

    A little script does it for me:
    #!/bin/sh BUTTON=201 # shutdown button echo "$BUTTON" > /sys/class/gpio/export echo "in" > /sys/class/gpio/gpio$BUTTON/direction while true ; do   data=`cat /sys/class/gpio/gpio$BUTTON/value`   if [ "$data" -eq "0" ] ; then     shutdown -h now   else     cnt=0 fi   done
     
     
     
     
  2. Like
    BigChris got a reaction from manuti in [Solved] Shutdown Button for NanoPi Neo Air   
    I want to use a shutdown button to make a secure shutdown with the nanopi neo air. But i am completly lost how it works. I don't find out, which GPIO's i can use for a script.  And if i need a puuldown or not.
    Can somebody help me?
     
    Thanks 
    Chris
  3. Like
    BigChris got a reaction from Igor in Dual boot on nanopi neao air?   
    Thank you very much. 
     
    I use armbian since a while on cubietruckl, i don't get the idea that it is still the same with nand-sata-install.
    Shame on me, life can be so easy
  4. Like
    BigChris got a reaction from Igor in Cubietruck no firstrun?   
    Ok
    Thx! I've use an older image on an other CT and i loving it!

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.