This happens to me more than I'd like to admit, but sometimes I don't notice the power getting low since it only shows up in my status bar, then the computer just quits. I'd like a big alert that warns me before this happens. Is there any way for it to alert me? Ubuntu has a nice popup that tells you it's getting low.
|
|
write a script!
then cron it to run every few minutes or so. But yeah, if you can do it through the GUI, that's probably a much better way of doing it. |
|||||||||
|
|
re: hdgarrood 's answer, setting
Make sure to |
||||
|
|
|
I do now run the following:
As you can see this is just orangenarwhals code with some changes:
don't forget to (This works on Ubuntu using Xmonad.) |
|||||
|
|
Minor twist - on Knoppix (granted, not Mint as used by OP) notify-send wasn't available (libnotify-bin package is not installed), so instead I found this useful for the alert:
I just threw that into the Alarm Command of the Battery Monitor panel of LXDE, no need for a script. That assumes you have LibreOffice installed, but that .wav makes a nice low power sound. There are practically no .ogg's on Knoppix. |
|||||
|
|
I had that same problem and I figured out a workaround. I installed from Linux Mint repositories an app called GKrellM. It monitors lots of stuff on your machine and there is battery. Setup with alarms, it works for me like a charm. more info at: |
|||||
|
|
The issue is related at KDE environment. I have the same problem with MintMAYA KDE_version. When I worked with Mint9_Gnome a very useful pop-up appeared when a certain level of low-power was reached (auto-configured out_of_the_box on fresh installs). Very very annoying being shutted down without advice and no help founded even googling a lot :( |
||||
|
|
|
Since you're apparently running Cinnamon, just install Battery Applet with Monitoring and Shutdown (BAMS). Right-click on a panel → + Add Applets to the Panel → Available applets (online), type 'BAMS' in the search widget, and install and configure it. It's not the flashiest, but so far it's already alerted me when I had my laptop unwittingly unplugged. |
|||
|
|
|
I have the same issue and it's really frustrating. I solved by using the BatteryAlert.sh script:
I'm using KDE but you can use it with every desktop environment. You don't have to run this as root user or go crazy with crontab syntax. You need only to change the notification sound if you want a sound alert. If you wan't to start the script automatically when the desktop environment starts put the script in $USER/bin folder with the BatteryAlertLauncher.sh script:
Make sure that they are executable:
Then just run the following command:
You can also run the alert script manually from bash by entering this command:
|
||||
|
|
|
As I don't have Gnome Shell or Cinnamon installed, I cannot be of direct help as accessing the source could would be much practical since it's rather easy adding such a rudimentary extension with JavaScript. You should open :
and search for percentageText - subsequently, you ought to be able to add a pop-up message or alert. |
|||||||||||||
|
|
This is how I did it on my Arch linux with Gnome as DE:
The word
Don't forget to make the script executable with |
|||
|
|
|
This simple one works nicely for me, with just simple In your user crontab (
What it does is check battery level ( Instead of zenity you could instead use If you also need to suspend/hibernate machine on certain critical level, see this answer |
||||
|
|
|
Download an applet called BAMS . It will alert you automatically when the battery reaches a certain level decided by you . It is the simplest solution. |
|||
|
|