Giter VIP home page Giter VIP logo

sniffer / laptopcontrolpanel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabricesalvaire/laptopcontrolpanel

0.0 2.0 0.0 1.09 MB

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.

Home Page: http://fabricesalvaire.github.com/LaptopControlPanel

License: GNU General Public License v3.0

Python 82.05% Makefile 0.94% C 13.18% Shell 3.23% Perl 0.61%

laptopcontrolpanel's Introduction

LaptopControlPanel

The official LaptopControlPanel Home Page is located at http://fabricesalvaire.github.io/LaptopControlPanel

The latest documentation build from the git repository is available at readthedocs.org LaptopControlPanel@readthedocs-badge

Written by Fabrice Salvaire.

LaptopControlPanel build status @travis-ci.org


https://raw.github.com/FabriceSalvaire/LaptopControlPanel/master/doc/sphinx/source/images/screenshot1-scaled.png

https://raw.github.com/FabriceSalvaire/LaptopControlPanel/master/doc/sphinx/source/images/screenshot2-scaled.png

Introduction

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.

Warning

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.

Installation

Dependencies

LaptopControlPanel requires the following dependencies:

Installation from PyPi Repository

LaptopControlPanel is made available on the PyPI repository at https://pypi.python.org/pypi/LaptopControlPanel

Run this command to install the last release:

pip install LaptopControlPanel

Installation from Source

The LaptopControlPanel source code is hosted at https://github.com/FabriceSalvaire/LaptopControlPanel

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

git clone [email protected]:FabriceSalvaire/LaptopControlPanel.git

Then to build and install LaptopControlPanel run these commands:

python setup.py build
python setup.py install

laptopcontrolpanel's People

Contributors

fabricesalvaire avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.