Giter VIP home page Giter VIP logo

batti-gtk's People

Contributors

dzeban avatar

Watchers

 avatar  avatar

batti-gtk's Issues

DBus method to re-display current status as a notification

I think it would be nice to be able to re-show the notification dialog 
on-demand. Show the same notification that appears when the power cord is 
plugged in or unplugged.

For me, it's useful to check the current time remaining (either to finish 
charging or before 0% power) without having to move my mouse to the corner of 
the screen. Instead, a key binding would be nice.

Original issue reported on code.google.com by [email protected] on 7 Mar 2013 at 11:36

Battery.py % error line 88. ValueError: unsupported format character '\' (0x5c) at index 18

1. build the package (0.3.5) (via aur in arch)
2. after I start batti, I get an python error
...
File "/usr/lib/python2.6/site-packages/batti/Battery.py", line 88, in set_value
    tooltip = _("Battery Level: %s%\% \nApproximately %s remaining") %
(info._percentage, self._str_time(info._time))
    ValueError: unsupported format character '\' (0x5c) at index 18

I'm not a programmer so I could be wrong, but me thinks it's a typo on line
88 in Battery.py
should be '%s%%' instead of '%s%\%'


thanx for this great little app

Original issue reported on code.google.com by [email protected] on 14 May 2010 at 7:40

DBUS exceptions and runaway upowerd

Please see the Arch Linux bug report:
https://bugs.archlinux.org/task/28820

Here's a copy of the text from that bug report:

Description:
batti keeps spitting out these errors:-
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 214, in 
maybe_handle_message
self._handler(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/batti/Battery.py", line 273, in 
__on_property_modified
state = self.__properties.Get(self.dbus_iface, 'State')
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 143, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in 
call_blocking
message, timeout)
DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with 
signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

It spawns many copies of the notification for battery power and the tray icon, 
while upowerd goes crazy writing to my HD root partition (couldn't find 
anything abnormal in error logs though, so not sure where its writing to).

Additional info:
* package version(s)
upower-0.9.15-1
batti-0.3.8-3
* config and/or log files etc.

Steps to reproduce:
Just run batti. Noticed the problem after a system update (I'm using [testing]) 
of the following:-
bluez
chromium
feh
git
libxmu

None of which seem related. It may have been an earlier update though, but I 
only noticed the symptoms after the update of the above.

---

Additional comment based on testing since then, this only occurs when the 
laptop is currently charging. It does not occur when:-

1. Laptop is on battery power
2. Laptop is fully charged but plugged in to AC

Hope that's useful.

---

Thanks.

Original issue reported on code.google.com by [email protected] on 12 Mar 2012 at 10:29

batti doesn't start

If I start batti, I get the following output:

Exception AttributeError: "'UPowerBattery' object has no attribute
'_UPowerBattery__signal_id'" in <bound method UPowerBattery.__del__ of
<batti.battery.UPowerBattery object at 0xa017b8c>> ignored
Traceback (most recent call last):
  File "/usr/bin/batti", line 46, in <module>
    monitor = BatteryMonitor.BatteryMonitor()
  File "/usr/lib/python2.6/site-packages/batti/BatteryMonitor.py", line 34,
in __init__
    self.close(None)
  File "/usr/lib/python2.6/site-packages/batti/BatteryMonitor.py", line 97,
in close
    gtk.main_quit()
RuntimeError: called outside of a mainloop

I use batti 0.3.1 on Archlinux.

Original issue reported on code.google.com by [email protected] on 12 Apr 2010 at 11:31

batti shows no icons

I installed batti (0.3.7-1) on Arch x64 from the AUR,
but when i start it, the icons are not shown in the tray.
instead for all icons it shows the 'image-missing' icon from my gtk-theme.

Original issue reported on code.google.com by [email protected] on 26 May 2010 at 2:02

Icon keeps blinking even if the battery is full

When the battery runs down, the icon starts blinking
After that my laptop goes in hibernation.
After I fully charge it and turn it back on, the icon shows a full battery 
(right),
but it's still blinking like it's almost empty (wrong)

Original issue reported on code.google.com by [email protected] on 13 Jan 2011 at 9:05

Icon not removed on disconnect

What steps will reproduce the problem?
1. Run batti
2. Disconnect battery
3. Reconnect battery

What is the expected output? What do you see instead?
Expected icon to disappear and reappear
Observed icon multiplying.

What version of the product are you using? On what operating system?
batti 0.3.8-3 arch-linux

Please provide any additional information below.
n/a

Original issue reported on code.google.com by [email protected] on 4 Sep 2012 at 3:41

display of battery time/percentage remaining

This in a request for an ehancement so that the display of batti will provide 
the time remaining (or percentage of battery remaining) along with the icon. 
This will help in more quicker appraisal of the information to the user.

What steps will reproduce the problem?
1. batti & 

What is the expected output? What do you see instead?
I get the icon only. It would be helpful if the percentage of battery (or time) 
remaining were also displayed.

What version of the product are you using? On what operating system?
0.3.8

Please provide any additional information below.
Happy to test any updates.

Original issue reported on code.google.com by [email protected] on 3 Feb 2013 at 9:59

Improve internationalization of batti

Use getextplurals for i18n
https://gitorious.org/batti/batti/blobs/master/src/Battery.py
Lines 184 - 195

More info on gettext plurals
http://www.gnu.org/s/hello/manual/gettext/Plural-forms.html


Missing gettext on strings below, so they are not in POT:

https://gitorious.org/batti/batti/blobs/master/src/BatteryMonitor.py
Lines 45 - 57

https://gitorious.org/batti/batti/blobs/master/src/Constants.py
Line 22

http://gitorious.org/batti/batti/blobs/master/src/Notificator.py
Line 87

http://gitorious.org/batti/batti/blobs/master/batti
Lines 27, 36, 43

Original issue reported on code.google.com by [email protected] on 22 Jun 2011 at 3:02

[request] critical battery action

Hello all, 

First of all thanks for this very well working application you provide with 
batti. However I'm missing the crucial feature to be able to define a custom 
action on critical battery level. 

Can you provide the possibility to let the user define a critical level first, 
and then which command line action should be executed, e.g. pm-suspend?

Regards

Original issue reported on code.google.com by orschiro on 14 Sep 2011 at 1:16

Icons and batti 0.3.8

At first thank you a lot for your useful small programm.
I installed batti 0.3.8 and it shows me «image-missing» icon after running. 
Also I saw in changelog phrase «removed status icons from package». Batti 
0.3.7 worked fine for me and showed me nice icons in the tray. So, my question 
is — can you restore icons in the package? I know that my icon theme must 
draw me battery icons, but I think that I don't have them and I don't want to 
change current icon theme or batti for something else.

Original issue reported on code.google.com by [email protected] on 16 Jan 2011 at 12:41

No icons

When I run batti I don't got any icons just the black page icon indicating 
there is a missing icon. How can I fix this?


Original issue reported on code.google.com by [email protected] on 15 Sep 2010 at 2:09

Hibernate option appears even though system can't hibernate

On the OLPC XO platform, Hibernate is not available, and upower knows this 
(confirmed with "upower -d").

However, the Hibernate option still appears on batti's menu.

This is because batti isn't looking at the right part of the upower dbus 
interface in order to determine if hibernate functionality is available.

Patch attached.

Original issue reported on code.google.com by [email protected] on 1 Dec 2010 at 6:00

Attachments:

Wrong calculation of remained time

Gentoo amd64, batti 0.3.8-r1 :

Tooltip: "Battery level 38%, providing power for 1:57 minutes"

$ acpi -V | grep -i battery
Battery 0: Discharging, 74%, 01:58:14 remaining
Battery 0: design capacity 5600 mAh, last full capacity 2894 mAh = 51%

I'm not using bleeding-edge kernel:
$ uname -sr
Linux 3.7.1-gentoo

so this shouldn't be acpi-only functionality.

$ acpi == http://sourceforge.net/projects/acpiclient/


Thanks!




Original issue reported on code.google.com by [email protected] on 12 Apr 2014 at 11:52

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.