| The Following User Says Thank You to toxaris For This Useful Post: | ||
|
|
2012-11-07
, 12:09
|
|
Posts: 2,145 |
Thanked: 8,424 times |
Joined on May 2010
|
#942
|
| The Following 10 Users Say Thank You to pali For This Useful Post: | ||
|
|
2012-11-07
, 14:40
|
|
Posts: 250 |
Thanked: 126 times |
Joined on Dec 2010
|
#943
|
Hmm, dont know if this is right but this is how it looks like on my phone.
I run this:
(im running CSSU-T, KP51r1, Thumb4).Code:stop bme modprobe bq27x00_battery modprobe bq2415x_charger
|
|
2012-11-07
, 14:43
|
|
Posts: 2,145 |
Thanked: 8,424 times |
Joined on May 2010
|
#944
|
| The Following 2 Users Say Thank You to pali For This Useful Post: | ||
|
|
2012-11-07
, 15:06
|
|
Posts: 1,797 |
Thanked: 4,223 times |
Joined on Feb 2011
@ Germany
|
#945
|
I created new battery status area plugin (based on old MAG version). It work with BME or with bq27x00_battery kernel driver. It is like original Nokia version, plus display percentage, remaining time and capacity.
Please test it and write if this can go to CSSU :-)
Source: https://gitorious.org/~pali/communit...applet-battery
DEB: http://atrey.karlin.mff.cuni.cz/~pal....0-1_armel.deb

| The Following 2 Users Say Thank You to reinob For This Useful Post: | ||
|
|
2012-11-07
, 15:10
|
|
Posts: 2,145 |
Thanked: 8,424 times |
Joined on May 2010
|
#946
|
| The Following 3 Users Say Thank You to pali For This Useful Post: | ||
|
|
2012-11-07
, 16:49
|
|
Posts: 803 |
Thanked: 1,594 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#947
|
Also, hald-addon-bme exposes the following signals under
com.nokia.bme.signal /com/nokia/bme/signal (unless otherwise specified,
these signals have no arguments)
charger_connected
charger_disconnected
charger_charging_failed
charger_charging_off
charger_charging_on
battery_full
battery_empty
battery_low
battery_state_changed (arguments for this are 2 uints, dbus type 'u',
unknown exactly what they are for)
battery_timeleft (arguments for this are 2 uints, dbus type 'u', first one
is for idle time, second is for active time)
The purpose of these signals should be self-explanatory for the most part.
Plus it exposes 2 dbus methods on com.nokia.bme.request. Both take no
parameters. The status_info_req method causes a method to be run that will
send the appropriate signals from the list above. The timeleft_info_req
method also causes the signals to be sent but it also sends a message to
BME to retrieve the relavent data for the timeout fields.
dbus-monitor --system
dbus-send --system /com/nokia/bme/request com.nokia.bme.request.timeleft_info_req
signal sender=:1.8 -> dest=(null destination) serial=6836 path=/org/freedesktop/Hal/devices/bme; interface=org.freedesktop.Hal.Device; member=PropertyModified
int32 1
array [
struct {
string "battery.remaining_time"
boolean false
boolean false
}
]
signal sender=:1.27 -> dest=(null destination) serial=48 path=/com/nokia/bme/signal; interface=com.nokia.bme.signal; member=battery_timeleft
uint32 4260
uint32 180
| The Following 6 Users Say Thank You to misiak For This Useful Post: | ||
|
|
2012-11-07
, 17:26
|
|
Posts: 1,797 |
Thanked: 4,223 times |
Joined on Feb 2011
@ Germany
|
#948
|
[ and I'm happy with my DCE widget ]
| The Following User Says Thank You to reinob For This Useful Post: | ||
|
|
2012-11-07
, 17:48
|
|
Posts: 2,145 |
Thanked: 8,424 times |
Joined on May 2010
|
#949
|
|
|
2012-11-07
, 18:56
|
|
Posts: 803 |
Thanked: 1,594 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#950
|
What is already implemented in new hald-addon-bme? I just wrote a way to fetch two values (idle + active) via dbus, which I found on the Internet. hald-device reports only one value, which is totally different than both these two (and for me seems a bit random as for battery remaining time value, but it should be treated only as my oppinion). If the method I pointed out in my previous post is already implemented in hald-addon-bme, why not use it instead of using the value you're using? (no offence intended, I just think I don't understand what you mean)
![]() |
| Tags |
| cssu testing |
| Thread Tools | |
|
I run this: