Skip to content
dengbo111 edited this page Aug 27, 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 laptop-mode-tools/gui directory and generate the ts file of the corresponding language, for example: pylupdate5 ./lmt.py -ts ../usr/share/laptop-mode-tools/locale/zh_CN.ts

  • Enter the laptop-mode-tools/usr/share/laptop-mode-tools/locale directory and generate the qm file 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

Clone this wiki locally