察看laptop-mode运行的日志,可以
$ sudo tail -f /var/log/pm-powersave.log
$ sudo tail -f /var/log/everything.log
Installation
laptop-mode-tools can be installed from the [extra] repository:# pacman -S laptop-mode-tools acpid
Configuration
Add laptop-mode to the DAEMONS array in /etc/rc.conf:
DAEMONS=(...acpid laptop-mode...)
Configuration is handled through the primary configuration file /etc/laptop-mode/laptop-mode.conf and through the configuration of dozens of feature-specific files in /etc/laptop-mode/conf.d/*. Recent versions of LMT are able to automatically enable commonly used conf.d/* settings by way of the ENABLE_AUTO_MODULES variable in /etc/laptop-mode/laptop-mode.conf.
Laptop-mode-tools is not picking up events
You need to install and enable acpid. Add acpid to your DAEMONS list in /etc/rc.conf: DAEMONS=(... acpid ...)
If that does not help, go through the laptop-mode configuration files and make sure that the service you want to enable is set to 1. Many services (including cpufreq control) are by default set to "auto", which may not enable them.
I have experienced issues with bluetooth not working if i boot up with battery, and i fixed it with disabling runtime-pm.
sudo vim /etc/laptop-mode/laptop-mode.conf# # Enable laptop mode when on battery power.
# ENABLE_LAPTOP_MODE_ON_BATTERY=1 # # Enable laptop mode when on AC power. # ENABLE_LAPTOP_MODE_ON_AC=1 # # Enable laptop mode when the laptop's lid is closed, even when we're on AC # power? (ACPI-ONLY) # ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1 # # Should laptop mode tools control the hard drive idle timeout settings? # CONTROL_HD_IDLE_TIMEOUT=1
# # Idle timeout values. (hdparm -S) # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds # for battery and for AC with laptop mode on. # LM_AC_HD_IDLE_TIMEOUT_SECONDS=7200 LM_BATT_HD_IDLE_TIMEOUT_SECONDS=7200 NOLM_HD_IDLE_TIMEOUT_SECONDS=7200 # # Should laptop mode tools control the hard drive power management settings? # CONTROL_HD_POWERMGMT=1 # # Power management for HD (hdparm -B values) # BATT_HD_POWERMGMT=254 LM_AC_HD_POWERMGMT=254 NOLM_AC_HD_POWERMGMT=254
Articles and Guides
https://wiki.archlinux.org/index.php/Laptop_Mode_Tools
No comments:
Post a Comment