Can't get power button to work
#5
(08-27-2016, 10:58 PM)pfeerick Wrote: Your debian comments are directed more when running as a GUI/desktop box, aren't they? As with a headless/console config, the power button will do zilch/nada/nothing if you press or tap it, unless you specifically add a monitor for it. And naturally, if you hold it for ~10 seconds, it will do a forced power off. 
I had thought about adding another female header to the pine next to the one for the IR receiver for the LEDs, but since the board doesn't use 2.54mm spacing for the LEDs (instead 2mm, center to center), a female header wouldn't fit, and a male one would need a bit too much bending for my liking. Thus plus the holes were a bit small for the thickness of bog standard 2.54mm spaced headers. I do have some of the round smaller pitch headers, but that would just have been a pain, as it would have been the only connector using it. Might as well just use the header pin on the EXP header... it's already there!

Correct on all points ... yes, for headless operation you have to have some kind of monitor; I don't do that in the sense of the system monitor, however.

For my headless servers my power button triggers "my own" interrupt within a python button monitor.  In other words, instead of responding to the system interrupt I built a button monitor ( will post this next week ) that allows for a -SIGHUP as well as the button push. Again, I have a three second timer on it; which prevents accidental pressing. When I press and hold my headless machines' power button for three seconds the system enters into a normal 'shutdown -h now', so that I can power it off cleanly without having to sign in remote.

As for the holes, yes, they are slightly problematic due to size. For instance, if you were to solder an LED in the system led position, it fits better if you use a 3mm LED, rather than a 5mm standard LED. But, if you put the male header pin(s) in that position , there is a cool trick you can employ. You don't 'need' the header pin spacer!  all you really need are the pins. So, you pull the pins from their plastic spacer with a pair of needle nose pliers and then solder the pin in place 'without' the header spacer. I use individual female jumper wires, but you can use  a standard female jumper pair because the actual spacing is soooo close that even though its slightly tight it still works fine. The benefit to doing this rather than using the EXP header, is that it frees up the EXP header for other header plugs, like the cp2102 serial tty bridge from the pine store.  Anyway, its not for everybody, but it is an option which I have used.
marcushh777    Cool

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! )


Messages In This Thread
Can't get power button to work - by AidenH - 08-27-2016, 08:46 PM
RE: Can't get power button to work - by pfeerick - 08-27-2016, 09:11 PM
RE: Can't get power button to work - by pfeerick - 08-27-2016, 10:58 PM
RE: Can't get power button to work - by MarkHaysHarris777 - 08-27-2016, 11:22 PM
RE: Can't get power button to work - by pfeerick - 08-28-2016, 01:08 AM
RE: Can't get power button to work - by AidenH - 08-27-2016, 11:38 PM
RE: Can't get power button to work - by AidenH - 08-28-2016, 02:45 AM
RE: Can't get power button to work - by pfeerick - 08-28-2016, 04:07 AM
RE: Can't get power button to work - by AidenH - 08-28-2016, 04:49 AM
RE: Can't get power button to work - by AidenH - 08-28-2016, 05:10 AM
RE: Can't get power button to work - by DonFL - 08-28-2016, 05:13 AM
RE: Can't get power button to work - by DonFL - 08-28-2016, 07:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question +LTS/SOPINE USB voltage on power off using LiPo battery GregH 0 2,732 05-06-2020, 11:23 PM
Last Post: GregH
  Battery case and power question Twistedx 2 5,984 12-24-2018, 08:04 PM
Last Post: Twistedx
  Power Cord & SD Card Maximum 1 3,278 01-09-2017, 04:41 PM
Last Post: Ghost
  Board will not boot/does not work major7 2 4,624 09-03-2016, 02:53 AM
Last Post: major7
  Wires as power button Nittola 5 8,160 08-19-2016, 03:35 PM
Last Post: MarkHaysHarris777
  Push button on/off switch Wolfenstein 6 10,106 08-01-2016, 11:05 AM
Last Post: MarkHaysHarris777
  Day lost in getting it work ptiwari 4 6,835 07-24-2016, 01:17 PM
Last Post: ptiwari
  Power Jumper rahlquist 12 18,774 04-03-2016, 09:29 AM
Last Post: SkimMilk

Forum Jump:


Users browsing this thread: 2 Guest(s)