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)

extendedping 2010-11-03 07:07

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Mentalist Traceur (Post 861778)
Alright. Sorry I was snappy. I'm having my own issue elsewhere on my N900 right now (trying to figure out where the hell to get the 'fiasco-flasher' package to flash the kernel from within the N900...).

Well, my only guess is there might be something broken regarding python, or something went wrong during install. Does your battery icon only not appear in the status menu icon tray, or is it also gone from the pop-up menu as well? Also, can you post what is located inside this file:

/ect/hildon-desktop/status-menu.plugins ?

yes gone from both...


[rtcom-presence-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-presence-ui.desktop
X-Status-Area-Position=7
X-Status-Menu-Position=7

[connui-bluetooth.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth.desktop
X-Status-Area-Position=8
X-Status-Menu-Position=6

[location.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/location.desktop
X-Status-Area-Position=9
X-Status-Menu-Position=8

[hildon-status-menu-usb.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/hildon-status-menu-usb.desktop
X-Status-Area-Position=10
X-Status-Menu-Position=9

[sync-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sync-plugin.desktop
X-Status-Area-Position=11
X-Status-Menu-Position=12

[as-status-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/as-status-applet.desktop
X-Status-Area-Position=12
X-Status-Menu-Position=14

[fmtx.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/fmtx.desktop
X-Status-Area-Position=13
X-Status-Menu-Position=15

[bluetooth-headset.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/bluetooth-headset.desktop
X-Status-Area-Position=14
X-Status-Menu-Position=16

[connui-bluetooth-transfer.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth-transfer.desktop
X-Status-Area-Position=15
X-Status-Menu-Position=17

(END)

412b 2010-11-03 09:21

Re: Pybattery - battery statusbar applet with candies
 
status-menu.plugins is messed up.
Can you also attach status-menu.plugins.ap?

juise- 2010-11-03 09:44

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Mentalist Traceur (Post 845004)
So that's some initial, non-technical documentation on the conflict between BME and bq27x00_battery. Wish I had the know-how to report the techical details of how this occurs.

I have an educated guess for the reason and type of conflict here.

The easiest (and only?) way to read values from BME is through HAL. One could run a `lshal | grep battery.charge_level.percentage´ command on shell for example, and see what BME thinks is the current value.

However, when the bq module is inserted, it also starts to provide a similarly named value to HAL. Indeed, you can repeat the above lshal command when bq driver is active, and it outputs two (different) values for percentage. Apps that read the percentage this way have a good chance to get confused.

Properly selecting what values to read can be done with -u switch to lshal:
Code:

lshal -u /org/freedesktop/Hal/devices/bme
lshal -u /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0

or by using the hal-device command:
Code:

hal-device bme
hal-device computer_power_supply_battery_bq27200_0

As far as I understand, this is the only kind of conflict there exists between BME and the bq driver.

extendedping 2010-11-03 14:54

Re: Pybattery - battery statusbar applet with candies
 
Can anybody help me here? It was really nice prior to having to reflash knowing apx how much I had left, I hate the default battery candle but that is what I am stuck with now :(

412b 2010-11-03 15:19

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by extendedping (Post 862237)
Can anybody help me here? It was really nice prior to having to reflash knowing apx how much I had left, I hate the default battery candle but that is what I am stuck with now :(

Quote:

Originally Posted by 412b (Post 861896)
status-menu.plugins is messed up.
Can you also attach status-menu.plugins.ap?

No additional info, no crystal ball nearby.

extendedping 2010-11-03 15:28

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 862260)
No additional info, no crystal ball nearby.

sorry I have a few postings on the prior page, basically, installing this app removes my battery icon and seems to do nothing else...I had to reflash everything when I went to pr 1.3, but this app worked for me in pr 1.2 :(

tomchiverton 2010-11-03 15:37

Re: Pybattery - battery statusbar applet with candies
 
Could this be made to work without requiring a deamon running in the back ground ? At least as an option if someone wanted just the better battery display ?

extendedping 2010-11-03 16:18

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 861896)
status-menu.plugins is messed up.
Can you also attach status-menu.plugins.ap?

thanks here is is...

[clock-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/clock-plugin.desktop
X-Status-Area-Permanent-Item=Clock
X-Status-Menu-Position=3

[connui-cellular.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-cellular.desktop
X-Status-Area-Permanent-Item=Special-Item-0

[status-area-applet-battery.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-battery.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

[connui-internet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-internet.desktop
X-Status-Area-Position=1
X-Status-Menu-Position=5

[rtcom-notification-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-notification-ui.desktop
X-Status-Area-Position=2

[sharing-manager-status.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sharing-manager-status.desktop
X-Status-Area-Position=3
X-Status-Menu-Position=13

[ham-notifier.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-notifier.desktop
X-Status-Area-Position=4
X-Status-Menu-Position=10

[ham-updates.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-updates.desktop
X-Status-Area-Position=5
X-Status-Menu-Position=11

[volume.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/volume.desktop
X-Status-Menu-Position=2

[status-area-applet-profiles.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-profiles.desktop
X-Status-Area-Position=6
X-Status-Menu-Position=4

[rtcom-presence-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-presence-ui.desktop
X-Status-Area-Position=7
X-Status-Menu-Position=7

[connui-bluetooth.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth.desktop
X-Status-Area-Position=8
X-Status-Menu-Position=6

[location.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/location.desktop
X-Status-Area-Position=9
X-Status-Menu-Position=8

[hildon-status-menu-usb.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/hildon-status-menu-usb.desktop
X-Status-Area-Position=10
X-Status-Menu-Position=9

[sync-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sync-plugin.desktop
X-Status-Area-Position=11
X-Status-Menu-Position=12

[as-status-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/as-status-applet.desktop
X-Status-Area-Position=12
X-Status-Menu-Position=14

[fmtx.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/fmtx.desktop
X-Status-Area-Position=13
X-Status-Menu-Position=15

[bluetooth-headset.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/bluetooth-headset.desktop
X-Status-Area-Position=14
X-Status-Menu-Position=16

[connui-bluetooth-transfer.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth-transfer.desktop
X-Status-Area-Position=15
X-Status-Menu-Position=17

Mentalist Traceur 2010-11-03 17:05

Re: Pybattery - battery statusbar applet with candies
 
Okay, basically, it looks like you had an Advanced Monitor install glitch. This is what my status-menu.pluging looks like:
Code:

[clock-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/clock-plugin.desktop
X-Status-Area-Permanent-Item=Clock
X-Status-Menu-Position=3

[connui-cellular.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-cellular.desktop
X-Status-Area-Permanent-Item=Special-Item-0

[advanced-power.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-power.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

[status_area_cpumem_applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status_area_cpumem_applet.desktop
X-Status-Area-Position=1

[wifi-signal-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/wifi-signal-applet.desktop
X-Status-Area-Position=2

[connui-internet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-internet.desktop
X-Status-Area-Position=4
X-Status-Menu-Position=5

[rtcom-notification-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-notification-ui.desktop
X-Status-Area-Position=5

[sharing-manager-status.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sharing-manager-status.desktop
X-Status-Area-Position=6
X-Status-Menu-Position=13

[ham-notifier.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-notifier.desktop
X-Status-Area-Position=7
X-Status-Menu-Position=10

[ham-updates.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-updates.desktop
X-Status-Area-Position=8
X-Status-Menu-Position=11

[volume.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/volume.desktop
X-Status-Menu-Position=2

[status-area-applet-profiles.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-profiles.desktop
X-Status-Area-Position=9
X-Status-Menu-Position=4

[rtcom-presence-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-presence-ui.desktop
X-Status-Area-Position=10
X-Status-Menu-Position=7

[advanced-interface-switcher.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-interface-switcher.desktop
X-Status-Area-Position=3
X-Status-Menu-Position=6

[location.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/location.desktop
X-Status-Area-Position=11
X-Status-Menu-Position=8

[hildon-status-menu-usb.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/hildon-status-menu-usb.desktop
X-Status-Area-Position=12
X-Status-Menu-Position=9

[sync-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sync-plugin.desktop
X-Status-Area-Position=13
X-Status-Menu-Position=12

[as-status-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/as-status-applet.desktop
X-Status-Area-Position=14
X-Status-Menu-Position=14

[fmtx.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/fmtx.desktop
X-Status-Area-Position=15
X-Status-Menu-Position=15

[bluetooth-headset.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/bluetooth-headset.desktop
X-Status-Area-Position=16
X-Status-Menu-Position=16

[connui-bluetooth-transfer.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth-transfer.desktop
X-Status-Area-Position=17
X-Status-Menu-Position=17

Keep in mind when you look through the above that I added two things, and moved the order of stuff around (by changing the position numbers). However, in general, it's useful. Namely this part:
Code:

[advanced-power.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-power.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

What you can do is, as root, copy your status-menu.plugins.ap as status-menu.plugins, and then replace the part that says:
Code:

[status-area-applet-battery.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-battery.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

with the above chunk (the one you're replacing tells hildon to use the original battery, one you're replacing it with tells hildon to use the Adv. Power one).

Or you can try uninstalling and reinstalling advanced power. The status menu getting messed up is probably a one-time glitch.

tomchiverton: I don't think it's possible. The advanced power battery display is 'better' than the stock mainly because of what the daemon does. I wouldn't worry about it influencing performance or battery. The N900 firmware has a bunch of daemons in it already.

extendedping 2010-11-03 18:03

Re: Pybattery - battery statusbar applet with candies
 
thanks I wll check this out when I have ssh access. sure hope I don't end up having to do a total reflash (already has one this week).

a restart does not help.

so the process would be install the app and after it does not show up then edit the config correct?

Mentalist Traceur 2010-11-03 18:57

Re: Pybattery - battery statusbar applet with candies
 
Yeah, now that we know the /etc/hildon-desktop/status-menu.plugins is messed up, reboot/restart won't help, because it's a relatively permanent (at least, persists through reboot and is only changed by certain apps {un}installing themselves).

As for uninstall-reinstall and edit status menu, if everything works correctly, either one should do the trick. So you could just copy status-menu.plugins.ap to status-menu.plugins, but if you don't prefer to edit files by hand, then try the uninstall-install way first. If uninstalling and reinstalling seems to fix everything, you're set. Also: If you have rootsh installed, you don't need to wait for SSH, actually.

Just
Code:

sudo gainroot
cd /etc/hildon-desktop
cp status-menu.plugins.ap status-menu.plugins
vi status-menu.plugins

If you have another editor it's up to you to use vi or not. I like it, but it's not that great due to lack of intuitive controls or conveniently usable interface. vi is powerful, but definitely not the most convenient. If you do use it, press i to actually edit text, then Esc to go back to command mode when done, then type :wq and press enter to save and quit (or :q! to quit without saving, if you mess up badly - like accidentally delete a few lines - I've done that a few times).

Just be sure to edit the file (and run whatever program you're editing with) as root. Else it won't let you save your changes.

extendedping 2010-11-03 19:07

Re: Pybattery - battery statusbar applet with candies
 
thanks I am going to try this now...

extendedping 2010-11-03 19:25

Re: Pybattery - battery statusbar applet with candies
 
hmm, ok I tried and nothing. here are the steps I followed.

1) with advanced power installed copied status-menu-plugins.ap to status-menu-plugins

2) in status menu plugins using vi did this...commented out one block of code (or should I just have erased it?) and put in the block mentioned.

[advanced-power.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-power.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

# [status-area-applet-battery.desktop]
# X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-b
# X-Status-Area-Permanent-Item=Special-Item-1
# X-Status-Menu-Position=1

3) after nothing happened, rebooted device.

4) uninstalled and reinstalled advanced-power

did I do something very wrong?

extendedping 2010-11-03 20:03

Re: Pybattery - battery statusbar applet with candies
 
this blows, I also tried removing advanced-power and advance-power-monitor via apt-get --purge remove and then reinstalling but it made no difference.

extendedping 2010-11-04 00:54

Re: Pybattery - battery statusbar applet with candies
 
I'm a bit depressed about this, the default candle is so off at times it is almost a hinderance not a help :(

any other suggestions?

Mentalist Traceur 2010-11-04 01:11

Re: Pybattery - battery statusbar applet with candies
 
Hmmm... I'm not sure, at this point.

Can you show us again what your status-menu.plugins looks like at this point?

I can try to give you a 'normal' status menu plug-in - don't guarantee it will be perfect, but it should be as close to stock as I can make it, with just the advanced power battery instead of the stock battery. And then you can copy that over yours, and see if that helps.

(Edit: To be honest, I would have tried uninstall-reinstall first, then the copy edit. But when I think about it, the order shouldn't matter. So long as you used the cp command, and not the mv command. And so long as you copied status-menu.plugins.ap over status-menu.plugins, and not accidentally the other way around.)

extendedping 2010-11-04 02:15

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Mentalist Traceur (Post 862789)
Hmmm... I'm not sure, at this point.

Can you show us again what your status-menu.plugins looks like at this point?

I can try to give you a 'normal' status menu plug-in - don't guarantee it will be perfect, but it should be as close to stock as I can make it, with just the advanced power battery instead of the stock battery. And then you can copy that over yours, and see if that helps.

(Edit: To be honest, I would have tried uninstall-reinstall first, then the copy edit. But when I think about it, the order shouldn't matter. So long as you used the cp command, and not the mv command. And so long as you copied status-menu.plugins.ap over status-menu.plugins, and not accidentally the other way around.)

thanks for trying to help, I will look at this tomorrow. I for sure did it the correct way, I copied ap to the other one and did not use the mv command. in fact before I did it I did cp status-menu.plugins status-menu.plugins.orig so I still have it.

Mentalist Traceur 2010-11-04 13:09

Re: Pybattery - battery statusbar applet with candies
 
Possible status-menu.plugins to try. If this doesn't work, something else might be wrong on top of status-menu.plugins. (Unless you use Advanced Interface Switcher. Or want cpumem applet or wifi signal applet to be in the first two slots for icons. Cuz then you can use my original example.)

Code:

[clock-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/clock-plugin.desktop
X-Status-Area-Permanent-Item=Clock
X-Status-Menu-Position=3

[connui-cellular.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-cellular.desktop
X-Status-Area-Permanent-Item=Special-Item-0

[advanced-power.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-power.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

[connui-internet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-internet.desktop
X-Status-Area-Position=1
X-Status-Menu-Position=5

[rtcom-notification-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-notification-ui.desktop
X-Status-Area-Position=2

[sharing-manager-status.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sharing-manager-status.desktop
X-Status-Area-Position=3
X-Status-Menu-Position=13

[ham-notifier.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-notifier.desktop
X-Status-Area-Position=4
X-Status-Menu-Position=10

[ham-updates.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-updates.desktop
X-Status-Area-Position=5
X-Status-Menu-Position=11

[volume.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/volume.desktop
X-Status-Menu-Position=2

[status-area-applet-profiles.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-profiles.desktop
X-Status-Area-Position=6
X-Status-Menu-Position=4

[rtcom-presence-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-presence-ui.desktop
X-Status-Area-Position=7
X-Status-Menu-Position=7

[connui-bluetooth.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth.desktop
X-Status-Area-Position=8
X-Status-Menu-Position=6

[location.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/location.desktop
X-Status-Area-Position=9
X-Status-Menu-Position=8

[hildon-status-menu-usb.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/hildon-status-menu-usb.desktop
X-Status-Area-Position=10
X-Status-Menu-Position=9

[sync-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sync-plugin.desktop
X-Status-Area-Position=11
X-Status-Menu-Position=12

[as-status-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/as-status-applet.desktop
X-Status-Area-Position=12
X-Status-Menu-Position=14

[fmtx.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/fmtx.desktop
X-Status-Area-Position=13
X-Status-Menu-Position=15

[bluetooth-headset.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/bluetooth-headset.desktop
X-Status-Area-Position=14
X-Status-Menu-Position=16

[connui-bluetooth-transfer.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth-transfer.desktop
X-Status-Area-Position=15
X-Status-Menu-Position=17


extendedping 2010-11-04 13:14

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Mentalist Traceur (Post 863213)
Possible status-menu.plugins to try. If this doesn't work, something else might be wrong on top of status-menu.plugins. (Unless you use Advanced Interface Switcher. Or want cpumem applet or wifi signal applet to be in the first two slots for icons. Cuz then you can use my original example.)

Code:

[clock-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/clock-plugin.desktop
X-Status-Area-Permanent-Item=Clock
X-Status-Menu-Position=3

[connui-cellular.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-cellular.desktop
X-Status-Area-Permanent-Item=Special-Item-0

[advanced-power.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-power.desktop
X-Status-Area-Permanent-Item=Special-Item-1
X-Status-Menu-Position=1

[connui-internet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-internet.desktop
X-Status-Area-Position=1
X-Status-Menu-Position=5

[rtcom-notification-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-notification-ui.desktop
X-Status-Area-Position=2

[sharing-manager-status.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sharing-manager-status.desktop
X-Status-Area-Position=3
X-Status-Menu-Position=13

[ham-notifier.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-notifier.desktop
X-Status-Area-Position=4
X-Status-Menu-Position=10

[ham-updates.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/ham-updates.desktop
X-Status-Area-Position=5
X-Status-Menu-Position=11

[volume.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/volume.desktop
X-Status-Menu-Position=2

[status-area-applet-profiles.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/status-area-applet-profiles.desktop
X-Status-Area-Position=6
X-Status-Menu-Position=4

[rtcom-presence-ui.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/rtcom-presence-ui.desktop
X-Status-Area-Position=7
X-Status-Menu-Position=7

[connui-bluetooth.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth.desktop
X-Status-Area-Position=8
X-Status-Menu-Position=6

[location.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/location.desktop
X-Status-Area-Position=9
X-Status-Menu-Position=8

[hildon-status-menu-usb.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/hildon-status-menu-usb.desktop
X-Status-Area-Position=10
X-Status-Menu-Position=9

[sync-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/sync-plugin.desktop
X-Status-Area-Position=11
X-Status-Menu-Position=12

[as-status-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/as-status-applet.desktop
X-Status-Area-Position=12
X-Status-Menu-Position=14

[fmtx.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/fmtx.desktop
X-Status-Area-Position=13
X-Status-Menu-Position=15

[bluetooth-headset.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/bluetooth-headset.desktop
X-Status-Area-Position=14
X-Status-Menu-Position=16

[connui-bluetooth-transfer.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/connui-bluetooth-transfer.desktop
X-Status-Area-Position=15
X-Status-Menu-Position=17


thanks so much...well I removed advanced-power but kept advance-power-monitor and rebooted in a last ditch effort.

now my n900 will not boot, gets to the flashing dots and goes no further.

This will be my second complete reflash in a week, grrrrr.

Mentalist Traceur 2010-11-04 14:12

Re: Pybattery - battery statusbar applet with candies
 
Ouch. Might I recommend flashing to the experimental Power Kernel + PR1.3 patches + UBoot that Matan made? (If you're interested in multibooting - uboot seems to be the way to go - and power kernel, which Titan may not get around to upgrading himself for a while still.) That's what I'm using right now, and it works fine so far near as I can tell.

Anyway, if you're going to try installing Advanced Power and Advanced Power Monitor again, I would recommend making that one of the first things you install, and seeing what happens. Since this is the first time anyone reported this bug (and I did actually go through the entire thread some time ago, never saw anything like this if I remember correctly), so more than likely, this is a one-time glitch.

Just out of curiosity, what repository do you regularly stay at? I'm always at Devel, and I realize there's a decent amount of people who do that too, but it's always possible you're using Extras or Testing as your default.

extendedping 2010-11-04 14:36

Re: Pybattery - battery statusbar applet with candies
 
Hi thanks so much for working with me here...

I did a complete reflash (both the kernel and the emmc or whatever it is called). Then the first thing I did was go to app manager and install advanced-power. Its a no go again, I have no candle in on the top left or when I tap on that area.

Again this is after a complete reflash and with the absolute first (and at this point only) thing I have done being installing advanced-power (which installs advanced-power-monitor I have figured out). Hmmm I am beginning to thing this has nothing to do with my phone.

At this point I have nothing but these repo's as it is a fresh install...
Nokia Applications
Nokia System Sorfware Updates
Ovi
Maemo.org

as for which repo I stay at, or have as my default, I don't understand...I had all the repos you mentioned installed previously, does that mean that the most risky (ie, devel correct) becomes the default repo?

I had very few apps installed, (that I installed myself that is) probably less then 20.

I wonder if anyone else has done a complete reflash and then tried to activate advanced-power. btw these are the files I used and I am in the us....

RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin
RX-51_2009SE_20.2010.36-2.002_PR_COMBINED_002_ARM.bin

At this point I would just live without the great app, but if this really is just me, then obviously there is something wrong with the device that effects more then one app right?

extendedping 2010-11-05 14:09

Re: Pybattery - battery statusbar applet with candies
 
So can I assume this is a result of
a) pr 1.3 and
b) doing a complete reflash

perhaps I don't understand it correctly, but a complete reflash of both kernel and emmc wipes the device to factory defaults...so it is does not work after that and there are no other problem apps, then it is a function of either pr 1.3 and this app correct?

boy I hate the default battery status.

Mentalist Traceur 2010-11-05 19:46

Re: Pybattery - battery statusbar applet with candies
 
Sorry I didn't reply yesterday.

I didn't notice you had posted another post.

Anyway, if it installs badly on a clean install, the only thing I can imagine is perhaps the Advanced Power (/Monitor) doesn't actually install some dependency, or the right version of some dependency, that it needs for properly changing the status menu, and/or doing some other things...

At this stage, it is beyond my area of expertise.

Quote:

At this point I have nothing but these repo's as it is a fresh install...
Nokia Applications
Nokia System Sorfware Updates
Ovi
Maemo.org

as for which repo I stay at, or have as my default, I don't understand...I had all the repos you mentioned installed previously, does that mean that the most risky (ie, devel correct) becomes the default repo?
Anyway, yeah, that's what I meant. Apt-get will always try to get the latest version of something - which means if you have testing enabled, the newer versions in testing are taken instead of versions in extras, and if you have devel enabled, the newest versions are taken from there. I asked because I was wondering if perhaps you were installing it from extras or testing. I'm not sure where all the dependencies reside for this app, so I thought maybe the bug happened because it needed something in Devel... (but then that doesn't explain why it got promoted to extras if it's dependencies couldn't come with it.)

I've done two Fiasco reflashes, one because I bootlooped and one to upgrade to PR1.3. Never reflashed EMMC though. I never had Advanced Power be the first thing installed - though after upgrading to PR1.3 it was among the first 20 things or so I installed.

fadimck 2010-11-05 19:59

Re: Pybattery - battery statusbar applet with candies
 
when are you going to fix the difference issue? there is always 5% less than reality

Mentalist Traceur 2010-11-05 20:31

Re: Pybattery - battery statusbar applet with candies
 
The developer of this app doesn't have an N900 anymore, and I don't have the python skills to start making improvements.

Also, before saying there is always 5% less than reality, answer: Do you have power kernel, and if so, do you always have bq27x00_battery loaded upon boot?

Near as I can tell, there are two issues involved. One, bq27x00_battery reports a similarly named value to HAL as BME does. See this post two pages ago in this thread. http://talk.maemo.org/showpost.php?p...&postcount=603

Two, bq27x00_battery seems to fetch a slightly more accurate value than BME does. Always. I don't know why. Maybe Nokia made BME under-report in order to create an extra 'safety' layer - N900 will be recharged and/or shutdown earlier if the N900 reports a lower battery value than it actually is at. In the case of the shutdown part, this means longer before the backup reservoir of energy is wiped out. Honestly, frak if I know. What I do know is that the BME value and the bq27x00_battery percent-battery-left value is always different, with the bq27x00_battery one being higher (different use cases and circumstances can make that difference anywhere between a couple percent, to 20% under rare circumstances. I once spent an hour and a half using my N900 with the battery reporting 0%).

So, moving on: As far as I know, this means that your normal battery applet also always underreports.

What can be done about it? The way I understand, the best thing is for the applet to check if you're using bq27x00_battery. If that module is loaded, then you use the value it reports. If it's not loaded, you use the BME one like normal. I haven't checked the SVNs lately - I don't know if the developer is doing anything else with this thing right now. If I have the time, I will eventually figure out how to do it and submit the patch to him.

shady 2010-11-05 21:02

Re: Pybattery - battery statusbar applet with candies
 
how do you run this application, i downloaded it but alas it doesnt seem to start, even though start apmonitord says its all started ... confused~!

Mentalist Traceur 2010-11-06 02:31

Re: Pybattery - battery statusbar applet with candies
 
Well, if it installed fine, there's no "running". If you install Advanced Power, it just replaces your battery status menu applet, adding some extra info next to the icon that pops up.

If you just installed Advanced Power Monitor, without Advanced Power, then nothing will happen. Advanced Power Monitor runs in the background and gets battery data, etc. Advanced Power Monitor, in turn, takes that data and displays it in place of the replaced battery applet.

So, the question becomes, did you install Advanced Power (which will install Advanced Power Monitor as a dependency) or did you only install Advanced Power Monitor (which will not install Advanced Power with it, and thus will just run in the background doing nothing - though you can query it from the command line, I think)?

If you just installed Advanced Power Monitor, then install Advanced Power as well - and you should be able to see what it does.

slaapliedje 2010-11-06 17:02

Re: Pybattery - battery statusbar applet with candies
 
I am also having the same issue with PR1.3, Advanced Power just removes the battery indicator. Of course that could be because the battery charging on my replacement phone is broken in the extreme.

In essence, if I plug it in with a usb cable, it complains that the device is drawing more power than the cable provides, and battery graph shows it as really low on the charging. The phone does charge after leaving it plugged in for a long time, but as soon as I unplug the phone it says the battery is 0% Then I reboot it and it says it's at 97%.

Talk about odd. So I don't know if the major problem of it not charging properly (which by the way, it seems to only have the pulsating yellow light while the screen is off, unlike my old one that would have it as long as it was plugged into anything...) has anything to do do with why the Advanced Power isn't showing up, or not.

I've sent an email in the wee hours of the morning to Nokia Care. May have to call them up and get a repair... again... I already sent this phone back once, and have now only had it back for two days.

slaapliedje

Mentalist Traceur 2010-11-06 23:58

Re: Pybattery - battery statusbar applet with candies
 
Well, first off, Advanced Power tends to take a little long to initiate in my experience.

Also, in my experience, the yellow (it's actually technically orange - yellow looks a bit different, and in my experience is always a sign of an error - but you'll know it when you see it. If your device is still working, and shutting down/not-booting, you're probably getting the orange light - but it's similar enough to yellow when you have nothing to compare it to), anyway, that light never blinks when charging when the screen is on. I am pretty sure it only flashes when screen is off (I think the logic is, when it's on, you can see the battery icon).

So overall, I'm not sure how much of your problem is your N900 being broken right now. It doesn't seem too bad.

*Sigh* I really don't know what's going on with Advanced Power wiping out everyone's Battery icons from the status menu.

Did you install from Devel, Testing, or Extras?

extendedping 2010-11-07 00:25

Re: Pybattery - battery statusbar applet with candies
 
strange update. I tried again today to install this time with my phone charging (which has been rebooting while recharging but I guess that is another issue). well it did not appear again...and by mistake I hit the top right (that brings up the little circle that unlocks the desktop) and as soon as I did that the advanced-power candle appeared. hmm but as soon as it appeared I clicked on the status menu (whatever it is called)...and all my custom items such as simple brightness, wifi switcher, 2g/3g switcher and ssh server on/off...all were now gone. but a reboot brought them back....so now by virtue of mistakingly hitting my screen everything is cool. well for now anyways :)

Mentalist Traceur 2010-11-07 01:22

Re: Pybattery - battery statusbar applet with candies
 
Okay, the problem is not I have no idea what the hell is going on with everyone's advanced power installs. Mine worked fine. Then I upgraded to the SVN version, so technically I'm not even on the devel one, but I had the devel version working on a clean PR1.3 install already...

If people could give a list of what they had installed on their N900's when they installed it (in detail. Everything app manager lists when you press uninstall, please), and whether or not you had the battery bar/"candle"(as some of you call it) vanish after installing, that would would be wonderful. That's the only way someone with my limited technical knowledge can think of to truly narrow down what the cause of the problem might be.

extendedping 2010-11-07 01:25

Re: Pybattery - battery statusbar applet with candies
 
mine is easy...I did a reflash of everything so (to my understanding) everything was stock. amd the first app I tried was advanced-power...

Mentalist Traceur 2010-11-07 02:00

Re: Pybattery - battery statusbar applet with candies
 
Yeah, I know. that's why I like yours. But that's why it's also rather confusing.

What I THINK is going on is something that Advanced Power requires/depends-on doesn't actually come with the phone, and isn't included in the dependencies, due to whatever bug somewhere upstream. Or it's not being installed for some people (I thought some dependencies might not be the right versions in Extras, but then you said you had devel enabled the first time, and it broke for you then... this also seems to discount the idea of some other app bringing in a later version of a dependency and breaking everything, because you had reflashed both rootfs and eMMC).

So at this stage, unless the developer himself has time to read this thread, I have to assume some dependency is not installed with Advanced Power (Monitor), and instead, some common app happens to provide it. So the question becomes, what app do all people who had this working, have, that all people for whom this app didn't work, don't have? Hence me asking. If I can narrow it down at least a little, I can start looking around in the repositories.

rantom 2010-11-08 19:59

Re: Pybattery - battery statusbar applet with candies
 
Is it just me or is this app not compatible with PR 1.3? I flashed my N900 to PR 1.2, did the OTA update to PR 1.3 and installed pybattery. However since then I've not been able to trust pybattery, since it tell's me that my battery is fully charged, when in reality it's ~60 %. Thus I have to re-insert my charger and after that I'll get it to 95-100 % later on.

Anyone else experiencing this bug?

Mentalist Traceur 2010-11-08 20:15

Re: Pybattery - battery statusbar applet with candies
 
Given my lack of technical know how, and the developer's current lack of time: What else did you have installed before installing Advanced Power, what did you install after?

See, the thing is for me, everything Advanced Power related worked perfectly. I have no experience with python, except for a tiny base of growing understanding from looking at the code in 412b's apps. I have not had time to sit down and look around.

It seems that a lot of people ARE having PR1.3 bugs with this app. (Well, not a lot, more like five different people reported problems, but they sound similar enough that I'm assuming something went wrong.

It is either some obscure dependency / python library issue, OR it's something even more convoluted. To solve either of these problems, someone with my limited debugging skills needs details. What repository did you have enabled that you got it from (Extras, Testing, or Devel). And the above what-do-you-have-installed question.

I am also interested in any out-of-the-norm (Nokia and maemo.org ones being the 'norm') repositories you have enabled.

412b 2010-11-10 13:31

Re: Pybattery - battery statusbar applet with candies
 
A big lack of time, unfortunately.
Try debugging by running in XTerm
Code:

python /usr/lib/hildon-desktop/advanced_power.py 1

Mentalist Traceur 2010-11-11 03:46

Re: Pybattery - battery statusbar applet with candies
 
Another thread with people running into the same problem: http://talk.maemo.org/showthread.php?t=65068

I posted your suggestion in there, so hopefully it'll get some more replies.

vebulous 2010-11-19 08:37

Re: Pybattery - battery statusbar applet with candies
 
Yup. Im newly involved in trying to get this to work again. I have posted my output to 412b's python command in other places, but i guess it wont hurt to have the output here as well (sorry if im screwing up somehow)
Code:

python /usr/lib/hildon-desktop/advanced_power.py 1
process 2173: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-bus library.
process 2173: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-bus library.
Aborted

I posted this on other threads too. Again, thanks 412b for the great program. I really wanna get it to work again.

Oh, i am using 2.6.28.10power45 kernel and PR1.3. any other info needed, i will be happy to oblige.

teamer 2010-11-28 14:14

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 792180)
Ok. I've reread posts. Somehow upstart doesn't start Advanced Power Monitor, which is quite strange.
For now just run as root
Code:

start apmonitord
And attach output.
Anyway it should help me to figure out, why apmonitord isn't starting at startup (crossed fingers :D)

Not working , i've delete apmonitord and don't know how to get it back again :(

teamer 2010-11-28 15:33

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 790460)
That's odd... It should write it, if loaded properly.


I got a mistype in upstart script.
As root edit /etc/event.d/apmonitord:
Change line starting with
Code:

stop on ...
to
Code:

stop on starting shutdown
And post the results. It should help.

can i have the /etc/event.d/apmonitord file ? cuz i deleted it :(


All times are GMT. The time now is 20:48.

vBulletin® Version 3.8.8