maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Pybattery - battery statusbar applet with candies (https://talk.maemo.org/showthread.php?t=24905)

qwerty12 2008-11-13 18:44

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 241742)
The main target right now is to solve battery drain issue. Right after that I'll take a look at the switching to Offline Mode.

When you do integrate it, here's the commands to save time :) :

Normal Mode:
Code:

run-standalone.sh /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"normal"
Flight mode:
Code:

run-standalone.sh /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"flight"

412b 2008-11-13 18:45

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by qole (Post 241733)
Is it possible to make this app load into the system tray of another window manager? There's no good Internet Tablet battery applets for any of the other available window managers. I would specifically be interested in tweaking this to run in the system tray of LXDE.

Well, there is no big problem in that. If you look into source, there are 2 classes. DBusMonitor is the class that gets and sets all the values and informs about events, so the main limitation is using of PyGTK and Hildon-specific objects. In other words: all you need to make it work in other manager is to replace the UI related stuff. And of course you need python support.

412b 2008-11-13 18:48

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by qwerty12 (Post 241747)
When you do integrate it, here's the commands to save time :) :

Normal Mode:
Code:

run-standalone.sh /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"normal"
Flight mode:
Code:

run-standalone.sh /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"flight"

Thanks. In fact all I needed is "/com/nokia/mce/signal" and "com.nokia.mce.signal.sig_device_mode_ind string" ;)

lcuk 2008-11-13 18:52

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 241742)
The main target right now is to solve battery drain issue. Right after that I'll take a look at the switching to Offline Mode.

412b, take your time :)
you may be bombarded with requests but thats because everybody sees great value in what you have started.

qole 2008-11-13 19:09

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 241748)
Well, there is no big problem in that. If you look into source, there are 2 classes. DBusMonitor is the class that gets and sets all the values and informs about events, so the main limitation is using of PyGTK and Hildon-specific objects. In other words: all you need to make it work in other manager is to replace the UI related stuff. And of course you need python support.

Well, you can use hildon UI stuff in alternate desktops, but you need to be able to start up the applet independently of Hildon-Desktop and the icon needs to show up in the systray... I'll see if I can start this applet up without Hildon Desktop running...

GeneralAntilles 2008-11-13 21:02

Re: Pybattery - battery statusbar applet with candies
 
OK, now that I have a little more time to go over this in detail. . . .

The UI needs some TLC. The presentation as it stands is a little stark and cluttered. Certain information should disappear (Version), other information needs to be adjusted ("pretty print" for the cpufreq settings—Apple calls this "Processor Performance" perhaps just "Mode" will do) , and some additional information might be added (voltage, mAh, anything else useful you can get out of retu).

I have some ideas floating around in my head if you'd like to see some mockups. ;)

Quote:

Originally Posted by lcuk (Post 241753)
you may be bombarded with requests but thats because everybody sees great value in what you have started.

Yes, definitely. Be worried when you don't get any response, not when you get a lot of them. ;)

pton 2008-11-14 02:19

Re: Pybattery - battery statusbar applet with candies
 
Hi, version 0.22 seems to have fixed my battery drain problem. I am not seeing any difference compared to before installation :) Thank you, 412b ;)

albright 2008-11-14 03:37

Re: Pybattery - battery statusbar applet with candies
 
I can second that - v.22 is working perfectly wrt battery
drain.

tso 2008-11-14 04:20

Re: Pybattery - battery statusbar applet with candies
 
either i was not paying attention, or pybattery dont know how to warn about anything but imminent shotdown from lack of battery.

im used to having small warning sounds from the tablet when the battery slips into something like 25% or lower.

but today all i got was the sound for when the battery is close to 0% (the menu showed 0,3%), and the icon was red.

btw, i found a interesting message when i hooked the tablet up to a usb charging cable the other day, "device not usb cable compatible" or something like that.

412b 2008-11-14 12:28

Re: Pybattery - battery statusbar applet with candies
 
2 ALL
If you experiencing problems with enabled sound (CPU frequency is constantly max, 400MHz for me), just disable screen tapping sound. I'm still digging it, so reenabling can be possible, if the solution will be found...



Quote:

Originally Posted by tso (Post 241897)
either i was not paying attention, or pybattery dont know how to warn about anything but imminent shotdown from lack of battery.

im used to having small warning sounds from the tablet when the battery slips into something like 25% or lower.

but today all i got was the sound for when the battery is close to 0% (the menu showed 0,3%), and the icon was red.

It warns you... It's just you the one not paying attention to it ;)
When battery level is less, then 12,5% the icon is partly red and notification sound is played.
When battery level is less, then 5% the icon is totaly red, notification sound is played and information banner is shown.
I can not add there an orchestra, or Big Ben, or a canon :)

Quote:

Originally Posted by tso (Post 241897)
btw, i found a interesting message when i hooked the tablet up to a usb charging cable the other day, "device not usb cable compatible" or something like that.

Not mine :)
Ask the Nokia's guys :)


All times are GMT. The time now is 19:08.

vBulletin® Version 3.8.8