Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ systemd Power Management     - Enterprise Hadoop cluster architecture - Hadoop installation (Server)

- Read the official GNU Make manual one (chapter 1-2) (Programming)

- Nginx DHCP TFTP Kickstart set up automatic installation system (Server)

- Subsequent binary search tree traversal sequence (Programming)

- Zabbix installation under Linux (Server)

- Ubuntu / openSUSE users to install Veusz 1.21.1 (Linux)

- Singleton (Linux)

- Nginx multi-domain certificate HTTPS (Server)

- Sorting Algorithm (1) Quick Sort C ++ implementation (Programming)

- How to Set Free SSH password on CentOS / RHEL (Linux)

- Android memory optimization of the memory cache (Linux)

- The most simple drive to write and test procedures under linux (Programming)

- Java implementation file encryption and decryption (Programming)

- Linux system monitoring tool set cpu (Linux)

- Linux / UNIX: Use the dd command to create a 1GB size binary (Linux)

- Java Set and List in the relationship and difference (Programming)

- Detailed Linux platform chip programming process (Programming)

- MySQL optimization of the relevant Group By (Database)

- Linux / BSD firewall M0n0wall Profile (Linux)

- Comparison of Nginx and Nginx + (Server)

  systemd Power Management
  Add Date : 2018-11-21      
  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.
- Use Python to perform system commands common usage (Programming)
- Under CentOS yum install Nginx smooth switch mounted to Tengine (Server)
- Linux LVM Logical Volume Management to resize partitions (Linux)
- Learn to read the source code of vmstat (Linux)
- Https (SSL / TLS) Detailed principles (Server)
- Simple Linux file system - df, du, ln (Linux)
- Android Studio Getting Started Hello World (Programming)
- Python in yield (Programming)
- Installation Elementary OS Freya 20 things to do (Linux)
- Smooth upgrade to OpenSSH 6.7 Procedure (Linux)
- Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)
- Ten to improve the efficiency of the Linux bash tricks (Linux)
- MySQL separation Amoeba achieve literacy (Database)
- How to Install Focuswriter 1.4.5 (Linux)
- Python interview must look at 15 questions (Programming)
- Install and configure GO 1.2.1 under CentOS 6.5 (Linux)
- SSH service configuration to use a certificate login Linux server (Server)
- VMware Workstation virtual machine startup error: Could not open / dev / vmmon in CentOS 6 (Linux)
- MySQL5.7 implement virtual column expression index (Database)
- Oracle Duplicate build DataGuard (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.