![]() |
Re: Pybattery - battery statusbar applet with candies
Quote:
[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) |
Re: Pybattery - battery statusbar applet with candies
status-menu.plugins is messed up.
Can you also attach status-menu.plugins.ap? |
Re: Pybattery - battery statusbar applet with candies
Quote:
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/bmeCode:
hal-device bme |
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 :(
|
Re: Pybattery - battery statusbar applet with candies
Quote:
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
|
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 ?
|
Re: Pybattery - battery statusbar applet with candies
Quote:
[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 |
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]Code:
[advanced-power.desktop]Code:
[status-area-applet-battery.desktop]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. |
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? |
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 gainrootJust 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. |
Re: Pybattery - battery statusbar applet with candies
thanks I am going to try this now...
|
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? |
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.
|
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? |
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.) |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
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] |
Re: Pybattery - battery statusbar applet with candies
Quote:
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. |
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. |
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? |
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. |
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:
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. |
Re: Pybattery - battery statusbar applet with candies
when are you going to fix the difference issue? there is always 5% less than reality
|
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. |
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~!
|
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. |
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 |
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? |
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 :)
|
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. |
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...
|
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. |
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? |
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. |
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 |
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. |
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 1Oh, i am using 2.6.28.10power45 kernel and PR1.3. any other info needed, i will be happy to oblige. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
|
| All times are GMT. The time now is 20:48. |
vBulletin® Version 3.8.8