You are not logged in.

#151 2009-08-01 08:44:17

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Back from holiday. Still having problems with hibernating at critical level. I've tried the following commands from the commandline:

batterymon -e 'sudo pm-hibernate'

and

batterymon -c 10 -e 'sudo pm-hibernate'

and

batterymon -c '10' -e 'sudo pm-hibernate'

but everytime my system immediately hibernates.

Need some help with this.


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#152 2009-08-09 18:08:08

samhain
Member
Registered: 2007-07-19
Posts: 39

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Hi,

Is there any way to make the low battery notification stay there till you close it? (Instead of vanishing by itself)


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

#153 2009-09-14 20:00:46

Factory
Member
Registered: 2008-02-24
Posts: 108

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Am I the only one who can't see the icon in the system tray?

Offline

#154 2009-09-14 21:13:20

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Batterymon -- a simple battery monitor ideal for openbox etc

what de are you running etc? also if you run batterymon.py with -d you will get debug output that you could post for me smile

Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#155 2009-09-15 09:01:38

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Batterymon -- a simple battery monitor ideal for openbox etc

When I run it it says that I don't have libnotify installed and that I won't get notifications but I do have it installed.
Sorry if this is already answered but this thread is just too long...


neutral

Offline

#156 2009-09-15 11:37:47

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Batterymon -- a simple battery monitor ideal for openbox etc

^^
Do you have python-notify?


Website - Blog - arch-home
Arch User since March 2005

Offline

#157 2009-09-15 17:57:14

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Batterymon -- a simple battery monitor ideal for openbox etc

are you using the pkgbuild version or the Svn version?

Just found a bug on the svn version (opps) the systray won't until you unplug/plug the power supply


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#158 2009-09-15 20:27:39

goran'agar
Member
From: Nothern Italy
Registered: 2009-05-19
Posts: 171

Re: Batterymon -- a simple battery monitor ideal for openbox etc

@NeoXP

It's actually the first time I parse a python source but I think that line 485 should look like:

if self.power_level >= battery.charge_level and self.command:

@developers

There are two instances of "remainging" in the code. I can't find those now because I already corrected the source without saving the original :-|


Sony Vaio VPCM13M1E  - Arch Linux - LXDE

Offline

#159 2009-09-16 21:58:59

Factory
Member
Registered: 2008-02-24
Posts: 108

Re: Batterymon -- a simple battery monitor ideal for openbox etc

rpj8 ~ $ batterymon -d
2009-09-16 17:58:25,975 - batterymon - DEBUG - Using /usr/share
2009-09-16 17:58:25,975 - batterymon - DEBUG - Using /usr/share
2009-09-16 17:58:26,089 - batterymon - DEBUG - Theme default validated
2009-09-16 17:58:26,089 - batterymon - DEBUG - Theme default validated
2009-09-16 17:58:26,114 - batterymon - DEBUG - self.low_level 10
2009-09-16 17:58:26,114 - batterymon - DEBUG - self.low_level 10
2009-09-16 17:58:26,132 - batterymon - DEBUG - Found 0 battery(ies)
2009-09-16 17:58:26,132 - batterymon - DEBUG - Found 0 battery(ies)

Running openbox

Offline

#160 2010-01-21 07:42:51

ummakynes
Member
From: Florida
Registered: 2010-01-21
Posts: 13

Re: Batterymon -- a simple battery monitor ideal for openbox etc

genisis300 could you help me please? i'm an noob. how do i get batterymon to start at boot? i put @batterymon in the DAEMONS array in rc.conf, but nothing shows up.

Offline

#161 2010-01-21 09:13:40

kremso
Member
Registered: 2008-06-17
Posts: 14

Re: Batterymon -- a simple battery monitor ideal for openbox etc

That won't work, batterymon is not a daemon. Put

batterymon &

into your .xinitrc

Offline

#162 2010-01-21 15:54:41

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Batterymon -- a simple battery monitor ideal for openbox etc

hi sorry for the delay, RL is a bit hectic at the moment,

Kremso is right Batterymon isn't a daemon so you will have to lauch it either from .xinitrc or from the openbox(if your using openbox) autostart.sh

Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#163 2010-01-21 16:38:28

ummakynes
Member
From: Florida
Registered: 2010-01-21
Posts: 13

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Thank you very much. I'm running openbox, I added that line to .xinitrc and it works well. Does it not work when the computer is connected to an outlet and the battery is removed?

Offline

#164 2010-03-08 14:45:16

m4co
Member
Registered: 2009-12-29
Posts: 117
Website

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Sorry if this was answered before, but this topic has 7 pages

- Does batterymon notifies when battery is running low?
- If yes, how much is "low" ? Do I need python-notify or can I use xfce4-notifyd for that ?
- Is there any configuration file?


Don't panic !

Offline

#165 2010-03-08 14:55:35

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Batterymon -- a simple battery monitor ideal for openbox etc

ummakynes wrote:

Does it not work when the computer is connected to an outlet and the battery is removed?

In my experience: no


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#166 2010-03-08 15:10:17

m4co
Member
Registered: 2009-12-29
Posts: 117
Website

Re: Batterymon -- a simple battery monitor ideal for openbox etc

By the way,

I'm getting these errors on the terminal:

2010-03-08 16:08:59,038 - batterymon - ERROR - org.freedesktop.Hal.NoSuchProperty: No property battery.remaining_time on device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0

Don't panic !

Offline

#167 2010-03-10 23:28:57

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Hi all,

sorry for the lack of updates etc been a busy period for me, just though i would let you know that i'm in the process of sorting out all my archives etc and will be picking this project backup again very very soon.

Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#168 2010-04-12 11:10:52

arthapex
Member
Registered: 2010-04-12
Posts: 2

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Hi,

I created something similar to batterymon, but it uses upower instead of hal. It's called: batti. See http://arthapex.wordpress.com/batti/
It's main features are:
    * one tray icon per inserted battery
    * tray icons (dis-)appear with the battery (un-)plugging
    * notification on low, critical and charged battery status
    * suspend/hibernate menu on left-click without sudo, if allowed by PolicyKit

I would love to see that packaged for Arch, but I use Gentoo and don't have the time to get involved in Arch. I also would love to get feedback on it.

@genisis300: how about merging the efforts in one project?

Offline

#169 2010-04-16 01:04:19

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: Batterymon -- a simple battery monitor ideal for openbox etc

@arthapex:
I made a PKGBUILD for batti: http://aur.archlinux.org/packages.php?ID=36503
It seems perfect for my needs. Thanks.

Offline

#170 2010-04-16 08:26:20

arthapex
Member
Registered: 2010-04-12
Posts: 2

Re: Batterymon -- a simple battery monitor ideal for openbox etc

@Fetid Frog:
It is me, who is thanking you! smile

Offline

#171 2010-09-15 11:00:27

dave00
Member
Registered: 2010-01-03
Posts: 24

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Fetid Frog wrote:

@arthapex:
I made a PKGBUILD for batti: http://aur.archlinux.org/packages.php?ID=36503
It seems perfect for my needs. Thanks.

Nice work both of you! I like it.

Offline

#172 2010-11-28 21:07:08

dioltas
Member
Registered: 2009-06-03
Posts: 44

Re: Batterymon -- a simple battery monitor ideal for openbox etc

Hi,

I seem to be having the same probelm as NeoXP above.

I really like batterymon, great little program except for that problem.

It seems to execute the "-e" command straight away regardless of the battery level.
It does also execute it when the critical battery is reached, but that's not much use if you want it to shutdown! big_smile

Here's a log of the notify level set to 36% and the critical set to 35%. The battery goes from 37 to 34 I think.

$ batterymon -n 36 -c 35 -e "echo test > /tmp/log" -d
2010-11-28 20:45:09,358 - batterymon - DEBUG - Using /usr/share
2010-11-28 20:45:09,358 - batterymon - DEBUG - Using /usr/share
2010-11-28 20:45:09,359 - batterymon - DEBUG - Theme default validated
2010-11-28 20:45:09,359 - batterymon - DEBUG - Theme default validated
2010-11-28 20:45:09,378 - batterymon - DEBUG - self.low_level 36
2010-11-28 20:45:09,378 - batterymon - DEBUG - self.low_level 36
2010-11-28 20:45:09,387 - batterymon - DEBUG - Found 1 battery(ies)
2010-11-28 20:45:09,387 - batterymon - DEBUG - Found 1 battery(ies)
2010-11-28 20:45:09,392 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:45:09,392 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:45:09,392 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:45:09,392 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:45:09,393 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:45:09,393 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:45:09,394 - batterymon - DEBUG - battery.percentage: 37
2010-11-28 20:45:09,394 - batterymon - DEBUG - battery.percentage: 37
2010-11-28 20:45:09,394 - batterymon - DEBUG - battery.remaining_time: 3146
2010-11-28 20:45:09,394 - batterymon - DEBUG - battery.remaining_time: 3146
2010-11-28 20:45:09,394 - batterymon - DEBUG - Minutes: 52
2010-11-28 20:45:09,394 - batterymon - DEBUG - Minutes: 52
2010-11-28 20:45:09,395 - batterymon - DEBUG - Hours: 0
2010-11-28 20:45:09,395 - batterymon - DEBUG - Hours: 0
2010-11-28 20:45:09,396 - batterymon - DEBUG - Battery Percentage 37 
Time remainging:  52 Minutes
2010-11-28 20:45:09,396 - batterymon - DEBUG - Battery Percentage 37 
Time remainging:  52 Minutes
2010-11-28 20:45:09,431 - batterymon - DEBUG - Icon updated
2010-11-28 20:45:09,431 - batterymon - DEBUG - Icon updated
2010-11-28 20:45:09,432 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:45:09,432 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:45:09,432 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:45:09,432 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:45:13,018 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:45:13,018 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:45:13,020 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:45:13,020 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:45:13,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:45:13,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:45:13,023 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:45:13,023 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:45:13,025 - batterymon - DEBUG - battery.percentage: 37
2010-11-28 20:45:13,025 - batterymon - DEBUG - battery.percentage: 37
2010-11-28 20:45:13,026 - batterymon - DEBUG - battery.remaining_time: 3116
2010-11-28 20:45:13,026 - batterymon - DEBUG - battery.remaining_time: 3116
2010-11-28 20:45:13,026 - batterymon - DEBUG - Minutes: 51
2010-11-28 20:45:13,026 - batterymon - DEBUG - Minutes: 51
2010-11-28 20:45:13,027 - batterymon - DEBUG - Hours: 0
2010-11-28 20:45:13,027 - batterymon - DEBUG - Hours: 0
2010-11-28 20:45:13,029 - batterymon - DEBUG - Battery Percentage 37 
Time remainging:  51 Minutes
2010-11-28 20:45:13,029 - batterymon - DEBUG - Battery Percentage 37 
Time remainging:  51 Minutes
2010-11-28 20:45:13,062 - batterymon - DEBUG - Icon updated
2010-11-28 20:45:13,062 - batterymon - DEBUG - Icon updated
2010-11-28 20:45:13,062 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:45:13,062 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:45:13,063 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:45:13,063 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:45:43,046 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:45:43,046 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:45:43,048 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:45:43,048 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:45:43,050 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:45:43,050 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:45:43,051 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:45:43,051 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:45:43,055 - batterymon - DEBUG - battery.percentage: 36
2010-11-28 20:45:43,055 - batterymon - DEBUG - battery.percentage: 36
2010-11-28 20:45:43,057 - batterymon - DEBUG - battery.remaining_time: 3017
2010-11-28 20:45:43,057 - batterymon - DEBUG - battery.remaining_time: 3017
2010-11-28 20:45:43,057 - batterymon - DEBUG - Minutes: 50
2010-11-28 20:45:43,057 - batterymon - DEBUG - Minutes: 50
2010-11-28 20:45:43,057 - batterymon - DEBUG - Hours: 0
2010-11-28 20:45:43,057 - batterymon - DEBUG - Hours: 0
2010-11-28 20:45:43,058 - batterymon - DEBUG - DEBUG Notification icon /usr/share/batterymon/icons/default/battery_empty.png
2010-11-28 20:45:43,058 - batterymon - DEBUG - DEBUG Notification icon /usr/share/batterymon/icons/default/battery_empty.png
2010-11-28 20:45:43,260 - batterymon - DEBUG - Notification shown
2010-11-28 20:45:43,260 - batterymon - DEBUG - Notification shown
2010-11-28 20:45:43,261 - batterymon - DEBUG - Battery Percentage 36 
Time remainging:  50 Minutes
2010-11-28 20:45:43,261 - batterymon - DEBUG - Battery Percentage 36 
Time remainging:  50 Minutes
2010-11-28 20:45:43,303 - batterymon - DEBUG - Icon updated
2010-11-28 20:45:43,303 - batterymon - DEBUG - Icon updated
2010-11-28 20:45:43,303 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:45:43,303 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:45:43,303 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:45:43,303 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:46:13,045 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:46:13,045 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:46:13,047 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:46:13,047 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:46:13,048 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:46:13,048 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:46:13,050 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:46:13,050 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:46:13,052 - batterymon - DEBUG - battery.percentage: 36
2010-11-28 20:46:13,052 - batterymon - DEBUG - battery.percentage: 36
2010-11-28 20:46:13,056 - batterymon - DEBUG - battery.remaining_time: 2965
2010-11-28 20:46:13,056 - batterymon - DEBUG - battery.remaining_time: 2965
2010-11-28 20:46:13,057 - batterymon - DEBUG - Minutes: 49
2010-11-28 20:46:13,057 - batterymon - DEBUG - Minutes: 49
2010-11-28 20:46:13,057 - batterymon - DEBUG - Hours: 0
2010-11-28 20:46:13,057 - batterymon - DEBUG - Hours: 0
2010-11-28 20:46:13,057 - batterymon - DEBUG - Battery Percentage 36 
Time remainging:  49 Minutes
2010-11-28 20:46:13,057 - batterymon - DEBUG - Battery Percentage 36 
Time remainging:  49 Minutes
2010-11-28 20:46:13,094 - batterymon - DEBUG - Icon updated
2010-11-28 20:46:13,094 - batterymon - DEBUG - Icon updated
2010-11-28 20:46:13,095 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:46:13,095 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:46:13,095 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:46:13,095 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:46:43,017 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:46:43,017 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:46:43,019 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:46:43,019 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:46:43,020 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:46:43,020 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:46:43,022 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:46:43,022 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:46:43,024 - batterymon - DEBUG - battery.percentage: 36
2010-11-28 20:46:43,024 - batterymon - DEBUG - battery.percentage: 36
2010-11-28 20:46:43,025 - batterymon - DEBUG - battery.remaining_time: 3011
2010-11-28 20:46:43,025 - batterymon - DEBUG - battery.remaining_time: 3011
2010-11-28 20:46:43,027 - batterymon - DEBUG - Minutes: 50
2010-11-28 20:46:43,027 - batterymon - DEBUG - Minutes: 50
2010-11-28 20:46:43,027 - batterymon - DEBUG - Hours: 0
2010-11-28 20:46:43,027 - batterymon - DEBUG - Hours: 0
2010-11-28 20:46:43,027 - batterymon - DEBUG - Battery Percentage 36 
Time remainging:  50 Minutes
2010-11-28 20:46:43,027 - batterymon - DEBUG - Battery Percentage 36 
Time remainging:  50 Minutes
2010-11-28 20:46:43,063 - batterymon - DEBUG - Icon updated
2010-11-28 20:46:43,063 - batterymon - DEBUG - Icon updated
2010-11-28 20:46:43,063 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:46:43,063 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:46:43,063 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:46:43,063 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:47:13,017 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:47:13,017 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:47:13,019 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:47:13,019 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:47:13,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:47:13,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:47:13,023 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:47:13,023 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:47:13,024 - batterymon - DEBUG - battery.percentage: 35
2010-11-28 20:47:13,024 - batterymon - DEBUG - battery.percentage: 35
2010-11-28 20:47:13,025 - batterymon - DEBUG - battery.remaining_time: 2992
2010-11-28 20:47:13,025 - batterymon - DEBUG - battery.remaining_time: 2992
2010-11-28 20:47:13,027 - batterymon - DEBUG - Minutes: 49
2010-11-28 20:47:13,027 - batterymon - DEBUG - Minutes: 49
2010-11-28 20:47:13,027 - batterymon - DEBUG - Hours: 0
2010-11-28 20:47:13,027 - batterymon - DEBUG - Hours: 0
2010-11-28 20:47:13,027 - batterymon - DEBUG - DEBUG Notification icon /usr/share/batterymon/icons/default/battery_empty.png
2010-11-28 20:47:13,027 - batterymon - DEBUG - DEBUG Notification icon /usr/share/batterymon/icons/default/battery_empty.png
2010-11-28 20:47:13,065 - batterymon - DEBUG - Notification shown
2010-11-28 20:47:13,065 - batterymon - DEBUG - Notification shown
2010-11-28 20:47:13,065 - batterymon - DEBUG - Battery Percentage 35 
Time remainging:  49 Minutes
2010-11-28 20:47:13,065 - batterymon - DEBUG - Battery Percentage 35 
Time remainging:  49 Minutes
2010-11-28 20:47:13,104 - batterymon - DEBUG - Icon updated
2010-11-28 20:47:13,104 - batterymon - DEBUG - Icon updated
2010-11-28 20:47:13,104 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:47:13,104 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:47:13,105 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:47:13,105 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:47:43,018 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:47:43,018 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:47:43,020 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:47:43,020 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:47:43,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:47:43,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:47:43,024 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:47:43,024 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:47:43,025 - batterymon - DEBUG - battery.percentage: 35
2010-11-28 20:47:43,025 - batterymon - DEBUG - battery.percentage: 35
2010-11-28 20:47:43,029 - batterymon - DEBUG - battery.remaining_time: 2426
2010-11-28 20:47:43,029 - batterymon - DEBUG - battery.remaining_time: 2426
2010-11-28 20:47:43,030 - batterymon - DEBUG - Minutes: 40
2010-11-28 20:47:43,030 - batterymon - DEBUG - Minutes: 40
2010-11-28 20:47:43,030 - batterymon - DEBUG - Hours: 0
2010-11-28 20:47:43,030 - batterymon - DEBUG - Hours: 0
2010-11-28 20:47:43,030 - batterymon - DEBUG - Battery Percentage 35 
Time remainging:  40 Minutes
2010-11-28 20:47:43,030 - batterymon - DEBUG - Battery Percentage 35 
Time remainging:  40 Minutes
2010-11-28 20:47:43,071 - batterymon - DEBUG - Icon updated
2010-11-28 20:47:43,071 - batterymon - DEBUG - Icon updated
2010-11-28 20:47:43,071 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:47:43,071 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:47:43,071 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:47:43,071 - batterymon - DEBUG - Running command 'echo test > /tmp/log'
2010-11-28 20:48:13,021 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:48:13,021 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:48:13,023 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:48:13,023 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:48:13,024 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:48:13,024 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:48:13,027 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:48:13,027 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:48:13,030 - batterymon - DEBUG - battery.percentage: 34
2010-11-28 20:48:13,030 - batterymon - DEBUG - battery.percentage: 34
2010-11-28 20:48:13,032 - batterymon - DEBUG - battery.remaining_time: 2659
2010-11-28 20:48:13,032 - batterymon - DEBUG - battery.remaining_time: 2659
2010-11-28 20:48:13,033 - batterymon - DEBUG - Minutes: 44
2010-11-28 20:48:13,033 - batterymon - DEBUG - Minutes: 44
2010-11-28 20:48:13,033 - batterymon - DEBUG - Hours: 0
2010-11-28 20:48:13,033 - batterymon - DEBUG - Hours: 0
2010-11-28 20:48:13,034 - batterymon - DEBUG - Battery Percentage 34 
Time remainging:  44 Minutes
2010-11-28 20:48:13,034 - batterymon - DEBUG - Battery Percentage 34 
Time remainging:  44 Minutes
2010-11-28 20:48:13,067 - batterymon - DEBUG - Icon updated
2010-11-28 20:48:13,067 - batterymon - DEBUG - Icon updated
2010-11-28 20:48:13,068 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:48:13,068 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:48:43,031 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:48:43,031 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:48:43,033 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:48:43,033 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:48:43,034 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:48:43,034 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:48:43,036 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:48:43,036 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:48:43,039 - batterymon - DEBUG - battery.percentage: 34
2010-11-28 20:48:43,039 - batterymon - DEBUG - battery.percentage: 34
2010-11-28 20:48:43,040 - batterymon - DEBUG - battery.remaining_time: 2640
2010-11-28 20:48:43,040 - batterymon - DEBUG - battery.remaining_time: 2640
2010-11-28 20:48:43,041 - batterymon - DEBUG - Minutes: 44
2010-11-28 20:48:43,041 - batterymon - DEBUG - Minutes: 44
2010-11-28 20:48:43,041 - batterymon - DEBUG - Hours: 0
2010-11-28 20:48:43,041 - batterymon - DEBUG - Hours: 0
2010-11-28 20:48:43,041 - batterymon - DEBUG - Battery Percentage 34 
Time remainging:  44 Minutes
2010-11-28 20:48:43,041 - batterymon - DEBUG - Battery Percentage 34 
Time remainging:  44 Minutes
2010-11-28 20:48:43,079 - batterymon - DEBUG - Icon updated
2010-11-28 20:48:43,079 - batterymon - DEBUG - Icon updated
2010-11-28 20:48:43,079 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:48:43,079 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:49:13,015 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:49:13,015 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:49:13,017 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:49:13,017 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:49:13,018 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:49:13,018 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:49:13,021 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:49:13,021 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:49:13,023 - batterymon - DEBUG - battery.percentage: 34
2010-11-28 20:49:13,023 - batterymon - DEBUG - battery.percentage: 34
2010-11-28 20:49:13,025 - batterymon - DEBUG - battery.remaining_time: 2589
2010-11-28 20:49:13,025 - batterymon - DEBUG - battery.remaining_time: 2589
2010-11-28 20:49:13,026 - batterymon - DEBUG - Minutes: 43
2010-11-28 20:49:13,026 - batterymon - DEBUG - Minutes: 43
2010-11-28 20:49:13,026 - batterymon - DEBUG - Hours: 0
2010-11-28 20:49:13,026 - batterymon - DEBUG - Hours: 0
2010-11-28 20:49:13,026 - batterymon - DEBUG - Battery Percentage 34 
Time remainging:  43 Minutes
2010-11-28 20:49:13,026 - batterymon - DEBUG - Battery Percentage 34 
Time remainging:  43 Minutes
2010-11-28 20:49:13,059 - batterymon - DEBUG - Icon updated
2010-11-28 20:49:13,059 - batterymon - DEBUG - Icon updated
2010-11-28 20:49:13,059 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:49:13,059 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:49:43,029 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:49:43,029 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:49:43,030 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:49:43,030 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:49:43,032 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:49:43,032 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:49:43,034 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:49:43,034 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:49:43,036 - batterymon - DEBUG - battery.percentage: 33
2010-11-28 20:49:43,036 - batterymon - DEBUG - battery.percentage: 33
2010-11-28 20:49:43,037 - batterymon - DEBUG - battery.remaining_time: 2643
2010-11-28 20:49:43,037 - batterymon - DEBUG - battery.remaining_time: 2643
2010-11-28 20:49:43,037 - batterymon - DEBUG - Minutes: 44
2010-11-28 20:49:43,037 - batterymon - DEBUG - Minutes: 44
2010-11-28 20:49:43,038 - batterymon - DEBUG - Hours: 0
2010-11-28 20:49:43,038 - batterymon - DEBUG - Hours: 0
2010-11-28 20:49:43,038 - batterymon - DEBUG - Battery Percentage 33 
Time remainging:  44 Minutes
2010-11-28 20:49:43,038 - batterymon - DEBUG - Battery Percentage 33 
Time remainging:  44 Minutes
2010-11-28 20:49:43,078 - batterymon - DEBUG - Icon updated
2010-11-28 20:49:43,078 - batterymon - DEBUG - Icon updated
2010-11-28 20:49:43,078 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:49:43,078 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:50:13,041 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:50:13,041 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:50:13,042 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:50:13,042 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:50:13,043 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:50:13,043 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:50:13,043 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:50:13,043 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:50:13,044 - batterymon - DEBUG - battery.percentage: 33
2010-11-28 20:50:13,044 - batterymon - DEBUG - battery.percentage: 33
2010-11-28 20:50:13,045 - batterymon - DEBUG - battery.remaining_time: 2622
2010-11-28 20:50:13,045 - batterymon - DEBUG - battery.remaining_time: 2622
2010-11-28 20:50:13,045 - batterymon - DEBUG - Minutes: 43
2010-11-28 20:50:13,045 - batterymon - DEBUG - Minutes: 43
2010-11-28 20:50:13,045 - batterymon - DEBUG - Hours: 0
2010-11-28 20:50:13,045 - batterymon - DEBUG - Hours: 0
2010-11-28 20:50:13,046 - batterymon - DEBUG - Battery Percentage 33 
Time remainging:  43 Minutes
2010-11-28 20:50:13,046 - batterymon - DEBUG - Battery Percentage 33 
Time remainging:  43 Minutes
2010-11-28 20:50:13,127 - batterymon - DEBUG - Icon updated
2010-11-28 20:50:13,127 - batterymon - DEBUG - Icon updated
2010-11-28 20:50:13,127 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:50:13,127 - batterymon - DEBUG - Icon Name: 2
2010-11-28 20:50:43,017 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:50:43,017 - batterymon - DEBUG - Battery property battery.remaining_time modified
2010-11-28 20:50:43,020 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:50:43,020 - batterymon - DEBUG - battery.present: 1
2010-11-28 20:50:43,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:50:43,021 - batterymon - DEBUG - battery.is_charging: 0
2010-11-28 20:50:43,023 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:50:43,023 - batterymon - DEBUG - battery.is_discharging: 1
2010-11-28 20:50:43,025 - batterymon - DEBUG - battery.percentage: 32
2010-11-28 20:50:43,025 - batterymon - DEBUG - battery.percentage: 32
2010-11-28 20:50:43,028 - batterymon - DEBUG - battery.remaining_time: 2528
2010-11-28 20:50:43,028 - batterymon - DEBUG - battery.remaining_time: 2528
2010-11-28 20:50:43,029 - batterymon - DEBUG - Minutes: 42
2010-11-28 20:50:43,029 - batterymon - DEBUG - Minutes: 42
2010-11-28 20:50:43,029 - batterymon - DEBUG - Hours: 0
2010-11-28 20:50:43,029 - batterymon - DEBUG - Hours: 0
2010-11-28 20:50:43,030 - batterymon - DEBUG - Battery Percentage 32 
Time remainging:  42 Minutes
2010-11-28 20:50:43,030 - batterymon - DEBUG - Battery Percentage 32 
Time remainging:  42 Minutes
2010-11-28 20:50:43,127 - batterymon - DEBUG - Icon updated
2010-11-28 20:50:43,127 - batterymon - DEBUG - Icon updated
2010-11-28 20:50:43,127 - batterymon - DEBUG - Icon Name: 1
2010-11-28 20:50:43,127 - batterymon - DEBUG - Icon Name: 1
^CTraceback (most recent call last):
  File "/usr/bin/batterymon", line 525, in <module>
    gtk.main()
KeyboardInterrupt

Could it be because I'm using the new python?

$ python -V
Python 3.1.2

I had to run the following to get it working in the first place so maybe that has messed something up?

sudo sed -i "$pkgdir/usr/share/batterymon/batterymon.py" -e '1d' -e '2i#!/usr/bin/env python2.7'

Thanks.

Edit: goran'agar's suggestion above fixed the issue, thanks! I submitted a bug report.

Last edited by dioltas (2010-11-28 21:58:37)

Offline

Board footer

Powered by FluxBB