How to handle ACPI events on Linux

How to handle ACPI events on Linux

ACPI is the acronym for Advanced Configuration and Power Interface; as a standard, it was first implemented in the year 1996, as a successor to APM (Advanced Power Management). As a main feature, it brought the ability to handle power management at the operating system level, whereas before it was handled in BIOS. Some ACPI events on Linux are, by default, handled via systemd-logind, but more complex configurations can be achieved by installing and running the acpid service.

Read more

How to build a Tkinter application using an object oriented approach

In a previous tutorial we saw the basic concepts behind the usage of Tkinter, a library used to create graphical user interfaces with Python. In this article we see how to create a complete although simple application. In the process, we learn how to use threads to handle long running tasks without blocking the interface, how to organize a Tkinter application using an object oriented approach, and how to use Tkinter protocols.

Read more

Getting started with Tkinter for Python tutorial

Tkinter stands for “Tk interface”: the package with the same name on many Linux distributions provides the Python bindings for the Tcl/Tk GUI toolkit. Although other graphical toolkit can be used from Python, like Qt or GTK, Tkinter is the standard (the Python IDLE editor and development environment is written using this toolkit, for example) and probably the easiest to work with.

Read more