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)

Stskeeps 2009-10-17 13:22

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 349548)
I'm planning to do it ;)
I just do not have a device to test AP(M) on. Scratchbox isn't a good replacement.

I have a software-rendering Mer installation you can play around on if you like on N8x0. No networking besides USB networking atm. See http://www.daimi.au.dk/~cvm/mer-fremantle-desktop.png

412b 2009-10-17 13:28

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Stskeeps (Post 349551)
I have a software-rendering Mer installation you can play around on if you like on N8x0. No networking besides USB networking atm.

Why not :) Networking is not a big problem.
I can port AP as applet with some info... So let's do this :)

gerstavros 2009-10-18 15:16

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by KristianW (Post 325769)
(N810, OS .43-7, boots from int.mmc,
Adv. power installed from extras)

Just tried updating to these from garage.
All OK until after reboot :
"Connecting to APMD" (or similar) went on for minutes.[...]

i have the same problem after reboot, but i tap on it to disapear and no problem

412b 2009-10-18 15:41

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 350358)
i have the same problem after reboot, but i tap on it to disapear and no problem

There is some problem with synchronization at startup in python and PyGTk/Hildon...
Feel free to tap on "Connecting to APMD" banner, if AP is connected.

412b 2009-10-18 20:44

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 350367)
There is some problem with synchronization at startup in python and PyGTk/Hildon...
Feel free to tap on "Connecting to APMD" banner, if AP is connected.

I decided to remove that banner completely. Update gonna be in extras-devel as soon as it'll build.

Saturn 2009-10-19 23:15

Re: Pybattery - battery statusbar applet with candies
 
Hi,

I've started by purging-removing the previous versions.
In my N800 had the following problems for advanced-power_0.4.0-2_all.deb and advanced-power-monitor_0.5.0-2_all.deb:

- installing failed because of the symlink, i.e S60apmonitord (managed to avoid by hiding it and restoring it back after the apt-get -f install).
- didn't get the "need to reboot" message
- after a manual reboot didn't get the statusbar applet running.

If I try to stop the demon it gives this message:

Code:

Nokia-N800-23-14:/etc/init.d# ./apmonitord stop
Advanced Power Monitor Daemon: apmonitord
Stopping...
cleaned up :)
Traceback (most recent call last):
  File "/usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 23, in <module>
    daemon.process_args()
  File "/home/user/MyDocs/src/apm/Daemon.py", line 114, in process_args
  File "/home/user/MyDocs/src/apm/Daemon.py", line 89, in restart
  File "/home/user/MyDocs/src/apm/Daemon.py", line 64, in start
  File "/usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 19, in run
    self.loop.run()
KeyboardInterrupt
Nokia-N800-23-14:/etc/init.d#

on the start:
Code:

Nokia-N800-23-14:/etc/init.d# ./apmonitord restart
Advanced Power Monitor Daemon: apmonitord
Restarting...
cleaned up :)
Traceback (most recent call last):
  File "/usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 23, in <module>
    daemon.process_args()
  File "/home/user/MyDocs/src/apm/Daemon.py", line 108, in process_args
  File "/home/user/MyDocs/src/apm/Daemon.py", line 64, in start
  File "/usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 19, in run
    self.loop.run()
KeyboardInterrupt
Nokia-N800-23-14:/etc/init.d# Util.File.get_lines(''): [Errno 2] No such file or directory: ''
Util.File.get_lines('/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'): [Errno 2] No such file or directory: '/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'
FAILED: SmartQx
LOADED: Nokia's BME
FAILED: BME Free
LOADED: Dummy
USING:  Nokia's BME

LOADED: HAL USB
LOADED: Dummy
USING:  HAL USB

LOADED: Dummy
LOADED: Nokia's MCE
FAILED: Powerlaunch
USING:  Nokia's MCE

LOADED: Dummy
LOADED: BlueZ
USING:  BlueZ

Util.File.get_lines(''): [Errno 2] No such file or directory: ''
Util.File.get_lines('/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'): [Errno 2] No such file or directory: '/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'

Nokia-N800-23-14:/etc/init.d#

I've gone back to previous version again which installed and runs after a reboot without a problem.

Hope it helps and thanks for your great program.

edt 2009-10-20 10:20

Re: Pybattery - battery statusbar applet with candies
 
I've got exactly the same problem on my n800....

412b 2009-10-20 12:05

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Saturn (Post 352000)
- installing failed because of the symlink, i.e S60apmonitord (managed to avoid by hiding it and restoring it back after the apt-get -f install).

Maemo's nightmare "WONTFIX"... Solution to handle that symlinks stuff was somewhere in this thread.

Quote:

Originally Posted by Saturn (Post 352000)
- didn't get the "need to reboot" message

Yep, to be fixed.

Quote:

Originally Posted by Saturn (Post 352000)
- after a manual reboot didn't get the statusbar applet running.

Was it turned on in control panel? If not it's strange...

Code:

Nokia-N800-23-14:/etc/init.d# Util.File.get_lines(''): [Errno 2] No such file or directory: ''
Util.File.get_lines('/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'): [Errno 2] No such file or directory: '/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'

Stopping and restarting traceback is normal, except those light-sensor reading attempts.
I've uploaded build 3 of APM and AP, unfortunatelly, hadn't enough time to test it. But at least 2 problems should be solved.

edt 2009-10-20 14:46

Re: Pybattery - battery statusbar applet with candies
 
> Was it turned on in control panel? If not it's strange...

In my case it _was_ turned on in the control pannel.

edt 2009-10-20 16:14

Re: Pybattery - battery statusbar applet with candies
 
Quote:

I've uploaded build 3 of APM and AP, unfortunatelly, hadn't enough time to test it. But at least 2 problems should be solved.
What url for the -3 versions?

TIA


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

vBulletin® Version 3.8.8