Q. I’m using Redhat enterprise Linux desktop / workstation operating system with HP laptop. Several Linux distributions have a / script to enable to disable Laptop mode but Redhat misses the script. How do I enable or disable laptop mode on fly?
A. Modern Linux kernel includes very good support for Laptop mode. It is use to control the IO subsystem. When laptop mode is enabled, the Linux will try to be smart about when to do disk I/O. It gives as much time as possible to be in a low power state. If mode is disabled if value is set to zero (0). To enable mode use non zero value such as 5.
Display or print current Laptop mode
Type the following command:
$ cat /proc/sys/vm/laptop_mode
Turn on or enable Laptop mode
Type the following command as the root user:
# echo 5 > /proc/sys/vm/laptop_mode