|
ArchLinux long ago replaced the use systemd init script.
Do not have a graphical interface, or use i3, awesome when such a simple window manager, systemd can replace the acpid handle ACPI events.
Note: systemd can not handle the AC power supply and battery ACPI event, so I have to use Laptop Mode Tools or acpid tool.
systemd can define power management actions include:
Action Press the power button after: HandlePowerKey
HandleSleepKey: Press the action key to hang after
After pressing the sleep button operation: HandleHibernateKey
HandleLidSwitch: Close the rear cover notebook stand
These values for an action can
ignore (do nothing)
poweroff (off)
reboot (restart)
halt (shutdown, poweroff, and what's the difference, you need to manually disconnect the power?)
suspend (standby hang)
hibernate (sleep)
By default, when I close the laptop screen, the system will be on standby.
If I do not want the system when I closed my notebook stand, how to do it?
Use your favorite text editor to open /etc/systemd/logind.conf,
HandleLidSwitch remove comment symbol # in front of, and modify its value from suspend to ignore.
Then systemctl restart systemd-logind, changes to take effect. Then close the laptop lid, it will not stand up.
If you think enters the standby state, the executable systemctl suspend. |
|
|
|