This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


The official LaptopControlPanel Home Page is located at

The latest documentation build from the git repository is available at

Written by Fabrice Salvaire.


LaptopControlPanel is a Python module that provides a Graphical Control Panel for Lenovo Thinkpad Laptop and a console tool to monitor and manage the battery. Such functions are not provided by standard control panels like those of the KDE desktop.

The source code is licensed under GPL V3.


This Python module uses ACPI calls and low level hardware functions. A miss use of these tools can crash the computer.

The control panel features:

  • switch on/off network interfaces (wifi and bluetooth)
  • switch on/off Nvidia GPU using /proc/acpi/bbswitch
  • fan control using thinkpad-acpi module and /proc/acpi/ibm/fan
  • battery control through ACPI calls

The battery management tool permits:

  • to set the start and stop capacity threshold to charge the battery,
  • to switch on battery when AC power is plugged,
  • to setup a “peak shift” procedure.

Some usages of these functions are:

  • to switch off the Nvidia GPU to save battery
  • to speed-up the fan to cool the hard drive located under the left hand

The source of the ACPI calls for the battery management is unknown and comes from the repository tpacpi-bat. For reference, this discussion Laptop shock detection and harddisk protection on LKML illustrates the legal concern for such information.

The battery is managed by ACPI calls through the Low Pin Count bus and the Embedded Controller (ASL base is \_SB.PCI0.LPC.EC.HKEY). ACPI is an abstraction layer to set and get registers on the computer busses. The (acpi_call) module, which is not included in the kernel, is required to perform these calls. This module must be used carefully.



LaptopControlPanel requires the following dependencies:

Installation from PyPi Repository

LaptopControlPanel is made available on the PyPI repository at

Run this command to install the last release:

pip install LaptopControlPanel

Installation from Source

The LaptopControlPanel source code is hosted at

To clone the Git repository, run this command in a terminal:

git clone

Then to build and install LaptopControlPanel run these commands:

python build
python install
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
LaptopControlPanel-0.1.0.tar.gz (243.0 kB) Copy SHA256 Checksum SHA256 Source Sep 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting