Taming the power switch?
#2
I'm not sure it's actively used, this is in the mrfixit stretch, but see /etc/systemd/logind.conf.  There's even a logind.conf man page.
Fairly simple, looks like:
Code:
#NAutoVTs=6 #ReserveVT=6 #KillUserProcesses=no #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 #HandlePowerKey=poweroff #HandleSuspendKey=suspend #HandleHibernateKey=hibernate #HandleLidSwitch=suspend #HandleLidSwitchDocked=ignore #PowerKeyIgnoreInhibited=no #SuspendKeyIgnoreInhibited=no #HibernateKeyIgnoreInhibited=no #LidSwitchIgnoreInhibited=yes #HoldoffTimeoutSec=30s #IdleAction=ignore #IdleActionSec=30min #RuntimeDirectorySize=10% #RemoveIPC=yes #InhibitorsMax=8192 #SessionsMax=8192 #UserTasksMax=33%

I haven't really explored it yet but you can change what happens on PowerKey, SuspendKey (which is what?) and all that stuff.  Usually in this format the commented-out entries are the defaults.


Messages In This Thread
Taming the power switch? - by ab1jx - 10-10-2020, 12:03 AM
RE: Taming the power switch? - by ab1jx - 11-25-2020, 05:56 PM
RE: Taming the power switch? - by wdt - 11-25-2020, 06:34 PM
RE: Taming the power switch? - by ab1jx - 11-26-2020, 03:45 PM
RE: Taming the power switch? - by rimaille - 11-30-2020, 10:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook64 Pro doesn't power on andrea_from_italy 9 9,250 03-20-2025, 10:07 AM
Last Post: wdt
  Lockable-until-power-cycle persistent storage Melab 0 2,753 09-17-2023, 08:51 PM
Last Post: Melab
  power on Pinebook Pro mainboard without keyboard? papable 0 3,034 07-20-2023, 11:06 PM
Last Post: papable
  I'm booting from NVME but I want to switch back to eMMC acruhl 4 6,692 04-23-2023, 06:58 AM
Last Post: acruhl
  When does Pinebook Pro power LED go on? Bram 0 2,698 03-14-2023, 09:53 AM
Last Post: Bram
  Doesn’t power on after flashing emmc badguru 3 5,504 02-25-2023, 09:00 PM
Last Post: badguru
Heart Now better battery life or power management? KC9UDX 5 7,075 09-09-2022, 08:13 PM
Last Post: KC9UDX
  Pinebook Pro not powering on when eMMC hardware switch is off vgrimaldi 2 5,644 06-29-2021, 05:19 AM
Last Post: KC9UDX
  Replacement Power Cord recommendation? nathanielwheeler 3 6,839 01-23-2021, 06:43 PM
Last Post: KC9UDX
  power light blinking during charge when pbpro is off Idaho 0 4,337 01-04-2021, 10:53 AM
Last Post: Idaho

Forum Jump:


Users browsing this thread: 1 Guest(s)