Skip to content
dengbo111 edited this page Sep 13, 2021 · 14 revisions

Welcome to the Laptop Mode Tools wiki

Laptop Mode Tools is a laptop power saving package for Linux systems. It allows you to extend the battery life of your laptop, in several ways. It is the primary way to enable the Laptop Mode feature of the Linux kernel, which lets your hard drive spin down. In addition, it allows you to tweak a number of other power-related settings using a simple configuration file.

Installation Install a package from the packages page. If you are going to use this on a non-laptop machine, be sure to read the FAQ first.

Internationalization
The language internationalization of laptop mode tools refers to the implementation of Qt language internationalization. If developers want to add a local language, they can refer to the following steps.

  1. Environment configuration
    You need to install the two packages qttools5-dev-tools and pyqt5-dev-tools.

  2. Generate the corresponding language file

  • Enter the project root directory and execute the ./pylupdate.sh script to generate the .ts file for the corresponding language

  • Enter the laptop-mode-tools/usr/share/laptop-mode-tools/locale directory and generate the qm file(named in the language of the system, such as zh_CN.qm) of the corresponding language, for example:
    lrelease ./zh_CN.ts

Support
If you experience any problems, be sure to check the FAQ first. Otherwise, Open a ticket, or ask a question on the mailing list. If neither work, you can send an e-mail to Ritesh Raj Sarraf