Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 53266  / 1 Year ago, sat, december 3, 2022, 10:16:12

Laptop-mode is said to be one of the energy efficiency boosters for Linux. Now, sources I found say that to activate it you need to:




  1. Install laptop-mode-tools.

  2. Append LAPTOP_MODE_ENABLED=true (if it doesn't exist; otherwise make sure that it's set to true) inside /etc/default/acpi-support.



However, even after doing this, laptop mode is not running (I have it set up in /etc/laptop-mode/laptop-mode.conf to be always on):



~$ cat /proc/sys/vm/laptop_mode 
0


Does anyone know how can I enable laptop-mode?



It is mentioned here that the Ubuntu package is "crippled". Is it really the case that Ubuntu doesn't allow you to enter this mode on AC? If so, why?



Edit: It seems that laptop-mode is not necessary any more since Ubuntu 12.04, according to Is "laptop-mode-tools" still relevant for 12.04 and the 3.x kernels?


More From » laptop

 Answers
3

The steps listed in the question are correct, the only thing remaining is to reboot your machine (possibly a couple of times). After that laptop mode will be enabled:



~$ cat /proc/sys/vm/laptop_mode 
2


Once laptop-mode is working, you can follow these steps to configure laptop-mode...



Edit /etc/laptop-mode/laptop-mode.conf and change



ENABLE_LAPTOP_MODE_ON_AC=0


to



ENABLE_LAPTOP_MODE_ON_AC=1


Also check for the battery mode on battery state and turn it on if it is off by changing the value to 1



e.g.: ENABLE_LAPTOP_MODE_ON_BATTERY = 1



You can set many other option in this config file (the file has many self-explanatory comments). You should try setting them to your liking.



When you're done, restart laptop-mode with:



sudo /etc/init.d/laptop-mode restart


P.S. If laptop-mode is still not on after rebooting the machine, you can try playing with this command as well to manually enable it:



Check that it's active on AC with for example:



$ sudo laptop_mode start


which should output:



Laptop mode 
enabled,
active [unchanged]


Hope this helps..


[#35923] Sunday, December 4, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alkeake

Total Points: 467
Total Questions: 94
Total Answers: 126

Location: Tajikistan
Member since Tue, Jun 15, 2021
3 Years ago
alkeake questions
Mon, Jul 5, 21, 09:24, 3 Years ago
Sun, Apr 23, 23, 03:29, 1 Year ago
Thu, Dec 22, 22, 20:30, 1 Year ago
;