08-27-2016, 10:11 PM
(This post was last modified: 08-27-2016, 10:23 PM by MarkHaysHarris777.)
(08-27-2016, 09:11 PM)pfeerick Wrote: There is a third instance you can use it, as if you have linux running, pressing the power button will trigger an event you can have code respond to, but I haven't bothered doing anything with that myself (other than to prove it can work).
With the system LED, that probably doesn't do what you think it does. It's a user programmable LED, and can be controlled just like any of the other GPIO ports. Like xalius demonstrates here.
I will also add, in addition to what pfeerick has said, that something some of us have discussed is that rather than soldering the system LED in place, it might be better to solder there instead regular male header pins, effectively giving you one more GPIO pin ! I use primarily gnu+linux, and I use the system LED as a final boot-up and system running normally indicator. If your PineA64 is running headless its best to put the indicator on the case front panel, and having a GPIO header pin to plug jumpers into is really helpful. I plan to post those codes as a sticky soon; they are still experimental for me.
With debian the power button click is nasty! it puts the PineA64 board to sleep for which there is no recovery (well, except power removal ); however, if you HOLD the power button with debian running , then you will receive the debian normal 'shutdown dialogue'. Its sweet, but, just remember to hold the power, don't just click it.
Edit: Also, and this is important, on debian ( on mate desktop ) go into the Power Management Preferences and change the General Actions for the power and reset buttons !
System --> Preferences --> Power Management Preferences
Then click the General tab, and then set the power button to "Ask Me", and set the suspend button to "Do Nothing".
(hope that helps)
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )