
Battery notifier when power is lost driver#
These laptops usually use an Intel chip for display by default, so an Intel graphics driver is needed first. The laptop manufacturers developed new technologies involving two graphic cards in a single computer, enabling both high performance and power saving usages. HDAPS is for IBM/Lenovo Thinkpads and hpfall for HP/Compaq laptops.
Battery notifier when power is lost software#
As manufacturers have refused to support open source development of the required software components so far, Linux support for shock protection varies considerably between different hardware implementations.Ĭurrently, two projects, named HDAPS and Hpfall, support this kind of protection. There are several laptops from different vendors featuring shock protection capabilities. See Fingerprint-gui, fprint and ThinkFinger (for ThinkPads). etc/modprobe.d/nf options psmouse elantech_smbus=0 Fingerprint reader Create the file below and reload the psmouse module or reboot: The fix is to force it to use the primary one. It is related to an issue with the psmouse module trying to use a secondary bus for the touchpad device, and elan_i2c failing to do so. If an Elantech Touchpad is not being detected and the following line appears in your journal:Įlan_i2c 5-0015: 5-0015 supply vcc not found, using dummy regulator If a touchpad device is not detected and shown as a device at all, a possible solution might be using one or more of these kernel parameters. Touchpad Synaptics is the older input driver, which is currently in maintenance mode and is no longer updated. To get your touchpad working properly, see the libinput page. To find and configure these see wakeup triggers. Wakeup sources/events/triggers wake the system from any of the hardware power-saving states. Even the default values may be too aggressive. To prevent your laptop hard drive from spinning down too often, set less aggressive power management as described in hdparm#Power management configuration. See the main article Suspend and hibernate. Manually suspending the operating system, either to memory (standby) or to disk (hibernate) sometimes provides the most efficient way to optimize battery life, depending on the usage pattern of the laptop. For more advanced udev rule testing, see Udev#Testing rules before loading. You can test whether the rule worked by unplugging your laptop and looking for this file. This creates a file at /home/example/discharging when the laptop charger is unplugged. SUBSYSTEM="power_supply", ATTR="Discharging", RUN+="/usr/bin/touch /home/example/discharging" etc/udev/rules.d/les # Suspend the system when battery level drops to 5% or lower Some laptops have an option for this disabled in BIOS by default. If no events are reported and /sys/class/power_supply/BAT0/alarm is non-zero then the battery will likely trigger an event when BAT0/energy_now drops below the alarm value, and the udev rule will work as long as the percentage math works out. Test by running udevadm monitor -property while on battery and see if any events are reported. Note: Not all batteries report discharge events. If your battery sends events to udev whenever it (dis)charges by 1%, you can use this udev rule to automatically hibernate the system when battery level is critical, and thus prevent all unsaved work from being lost. batsignal AUR is a lightweight battery monitor daemon that uses libnotify to warn of low battery levels.batify AUR is an udevrule file triggering plug and battery level notifications (multi-x sessions support).cbatticon is a battery icon that sits in the system tray.ACPI command line utilities are provided via the acpi package. On some systems, the battery sends events to udev whenever it (dis)charges by 1%, this event can be connected to some action using a udev rule.īattery state can be read using ACPI utilities from the terminal. Classical method is some daemon periodically polling battery level using ACPI interface. Reading battery state can be done in multiple ways.

The following tools and programs help to increase battery life and keep your laptop cool and quiet.


Power management is very important for anyone who wishes to make good use of their battery capacity. Additional laptop-specific features are described below. Note: You should read the articles Power management and CPU frequency scaling.
