Laptop-init-script
From ArchWiki
Laptop-init-script is rc.d script used for easy enabling and disabling laptop performance/power optimalizations.
Contents |
Instalation
Laptop-init-script should be obtained from AUR via web and makepkg or via yaourt wrapper:
yaourt -S laptop-init-script
Functionality
- enable/disable
- cpufreq CPU scaling
- laptop mode
- pm-powersave mode
In future there will be support for harddrive optimalizations using hdparm and sdparm and maybe few others.
Boot-time operation
You can add laptop-init-script to DAEMONS array in /etc/rc.conf. It can be enabled:
DAEMONS=(syslog-ng @laptop-init ...
or disabled:
DAEMONS=(syslog-ng !laptop-init ...
Screenshot
And this is how it looks (when operated manually)
[root@some-box ~]# /etc/rc.d/laptop-init start :: Enabling cpufreq CPU scaling [DONE] :: Entering laptop mode [DONE] :: Launching pm-powersave true [DONE] [root@some-box ~]# /etc/rc.d/laptop-init stop :: Disabling cpufreq CPU scaling [DONE] :: Leaving laptop mode [DONE] :: Launching pm-powersave false [DONE]