You are not logged in.
Hello!
How do I know what mechanism controls laptop's lid power behavior...?
systemctl status acpid.service outputs
acpid.service - ACPI event daemon
Loaded: loaded (/usr/lib/systemd/system/acpid.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:acpid(8)
Whereas "cat /proc/sys/vm/laptop_mode" yields
""0""
Thanx!
Last edited by fragos.george (2017-08-13 15:29:14)
Offline
In doubt systemd - see /etc/systemd/logind.conf
Offline
In doubt systemd - see /etc/systemd/logind.conf
Thanx for reply!
cat /etc/systemd/logind.conf says:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#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%
All entries are commented! I did not do that! Is this normal...?
Laptop's behavior is not always the same when I close its lid... Sometimes it goes to suspend but sometimes it turns off completely! I'll check what will happen if I un-comment HandleLidSwitch=suspend
Thank you again!
Offline
It's notmal and nothing is gonna happen - you probably want to set it to "ignore"?
On a sidenote, please wrap file contents and command outputs into code tags.
Offline
Hey, seth! Thanx for replying!
I don't want it set "ignore": I need it go to suspend when I close the lid... So, maybe "suspend" is the right option?
One more thing and forgive my ignorance and my........you know, asking and asking and asking...!
Nothing so far tells me anything about the mechanism of power control. I mean, is it ACPID, laptop_mode thing or what...!
(Summer time is not right for such endeavors... No air conditioning is sufficient here!)
Last edited by fragos.george (2017-08-13 15:18:42)
Offline
Suspend is the default - so your problem is that the lidswitch has no impact at all?
=> Maybe start by describing the status quo and what you want to gain.
There's no single instance handing "power management" - it happens across the entire stack from the hardware, over the kernel, into the userspace where various daemons may call random routines.
Offline
#HandleLidSwitch=suspendThat tells systemd-logind it MUST handle lidswitches and suspend the system when it detects one.
If you change it to ignore, systemd-logind will do nothing on lidswitch, thus giving other handlers (like your acpid.service ) a chance to act .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Alright, people, I uncommented #HandleLidSwitch=suspend and see how it'll go...
Thanx for your help!
Offline