Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ systemd Power Management     - How to configure a server in a MySQL Cluster (Database)

- Python developer of time-saving method (Programming)

- Python Dir find a folder several files (Programming)

- Android Action Compendium (Programming)

- Let Markdown code syntax highlighting and support Django1.6 (Linux)

- ARM assembler instruction debugging method (Programming)

- DRBD rapid installation and deployment (Server)

- Java data structures - the linear form of the single-chain applications (Programming)

- Oracle 11g users to create, authorize and import dmp file (Database)

- findmnt- Looking mounted file system (Linux)

- Smooth upgrade to OpenSSH 6.7 Procedure (Linux)

- Ubuntu 12.04 LTS installation configuration JDK1.6.0_45 (Linux)

- DRBD installation configuration, working principle and Recovery (Server)

- Use SecureCRT to transfer files between local and remote hosts (Linux)

- CentOS ClamAV antivirus package updates (Linux)

- To install Internet security firewall Raiders (Linux)

- How to adjust the system time CentOS (Linux)

- Linux commands with browsing and downloading files (Linux)

- MySQL5.6 based GTID master-slave replication (Database)

- Android LayoutInflater source parsing (Programming)

 
         
  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.
     
         
         
         
  More:      
 
- iOS developers - a simple factory pattern and OC reflection (Programming)
- Git and GitHub use of Eclipse and Android Studio (Programming)
- 10 useful Linux command line tips (Linux)
- Command-line based tools for better alternatives (Linux)
- Mistakenly deleted redo log file group being given the lead to start the database ORA-03113 (Database)
- ntop monitoring software configuration and installation (Linux)
- Getting Started with Linux: Learn how to install and access CentOS 7 Remote Desktop on a VPS (Server)
- Qt shared memory interprocess communication (Programming)
- To install Ganglia (Linux)
- Hadoop 2.6.0 standalone configuration and pseudo-distributed configuration under Ubuntu 14.04 (Server)
- Postgres-X2 deployment steps (Database)
- Variables Python variables (Programming)
- How Bluetooth turned off by default in Ubuntu 14.04 (Linux)
- Intrusion analysis and prevention tools Knark under Linux platform (Linux)
- MySQL password on those things you should know (Database)
- Python 2.7 installed on CentOS 6.5 (Linux)
- Ceph cluster disk is no workaround for the remaining space (Server)
- Getting Started with Linux system to learn: how to configure a static IP address for CentOS7 (Linux)
- Delay for the specified IP port analog network to send and receive packets on Linux (Linux)
- MySQL 5.7 can not log in problem (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.