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
  Pinebook Pro not powering on when eMMC hardware switch is off vgrimaldi 2 1,426 06-29-2021, 05:19 AM
Last Post: KC9UDX
  Replacement Power Cord recommendation? nathanielwheeler 3 1,753 01-23-2021, 06:43 PM
Last Post: KC9UDX
  power light blinking during charge when pbpro is off Idaho 0 1,110 01-04-2021, 10:53 AM
Last Post: Idaho
  Power consumption and suspend to ram robt 33 27,360 11-30-2020, 04:32 PM
Last Post: wdt
Exclamation Seemingly lost power permanently now /cry jimsurvak 2 1,930 11-16-2020, 06:22 PM
Last Post: jimsurvak
  Taming the Caps Lock key ab1jx 2 2,047 10-10-2020, 09:30 AM
Last Post: ab1jx
Photo Faulty power circuit hackerfantastic 1 1,275 08-24-2020, 01:48 PM
Last Post: Arwen
  We need more power, Scotty! mtnygard 4 3,397 07-23-2020, 11:21 AM
Last Post: mamboman777
  My PBP does not power on at all prokofiev 9 5,738 07-12-2020, 03:27 AM
Last Post: prokofiev
Exclamation [SOLVED] PBP will no longer power on s3rvant 10 6,116 07-04-2020, 01:57 PM
Last Post: prokofiev

Forum Jump:


Users browsing this thread: 1 Guest(s)