elfs: (Default)
[personal profile] elfs
One of the things I'm paranoid about is Lain's (my laptop's) battery. Thinkpads are notorious for chewing up their batteries and spitting them out, often mandating that the batteries be replaced every year. Since the one in Lain is now 17 months old and still as reliable as it was last year (well, mostly; I've down from 2h40m to 2h20m or so), I'm doing pretty well.

Part of the reason that I'm doing pretty well is that I maintain a sense of battery discipline. When the battery is full, I pop it out of the charger. This is a recommended practice. But sometimes I forget, or don't notice. This is especially bad if I'm using Lain as a network node and export the X session elsewhere; the "The Battery Is Now Full" warning pops up on the console, not the exported X session.

Well, I wrote a program in python, using PyGTK, to monitor the battery and forward the message as a pop-up window to a list of displays, not just the native one, when the battery is full.

Now I just have to remember to use it...
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 24th, 2025 10:12 pm
Powered by Dreamwidth Studios