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)

born2wonder 2010-01-04 21:35

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 453123)
For interested in Advanced Power on N900...
As I finally have some free time, could anybody test advanced-power-monitor-src from Diablo extras-devel (deb, but source of that package is preferable) on N900. All you need is to run
Code:

sudo ./AdvancedPowerMonitorDaemon.py start
in APM sources folder.
And post here the output.

Code:

/usr/src/advanced-power-monitor $ sudo ./AdvancedPowerMonitorDaemon.py start
Starting...
Loading modules...
LOADED:    CPUFrequency
LOADED:    TotalRAM
/usr/src/advanced-power-monitor $ LOADED:    CPUGovernor
LOADED:    CPUGovernors
FAILED:    OSVersion
LOADED:    FreeMemory
FAILED:    Temperature
LOADED:    TotalSwap
LOADED:    FreeRAM
LOADED:    Diskspace
FAILED:    LightSensor
LOADED:    TotalMemory
LOADED:    FreeSwap
LOADED:    DeviceName
LOADED:    Uptime
done

Loading wrappers...
Loading packages list...
FAILED:    SmartQx
LOADED:    Nokia's BME
FAILED:    Dummy
FAILED:    BME Free
USING:    Nokia's BME

LOADED:    HAL USB
FAILED:    Dummy
ERROR:dbus.proxies:Introspect error on :1.11:/org/freedesktop/Hal/devices/usb_device_0_0_musb_hdrc: dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/usb_device_0_0_musb_hdrc
USING:    HAL USB

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

FAILED:    Dummy
FAILED:    BlueZ
USING:    None

done


/usr/src/advanced-power-monitor $


412b 2010-01-04 21:42

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by born2wonder (Post 453134)
Code:

/usr/src/advanced-power-monitor $ sudo ./AdvancedPowerMonitorDaemon.py start

Nice :)
So APM couldn't get only OSVersion (easy to fix), Temperature (easy to fix), LightSensor (easy to fix), USB Control (well, as far as I can see no support for N900) and Bluetooth Control (needs more investigation.

Battery info is available as I supposed :)

corsac 2010-01-06 14:33

Re: Pybattery - battery statusbar applet with candies
 
As soon as I find some time to get the sources and test, I'll paste the output.

412b 2010-01-07 12:39

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by corsac (Post 455577)
As soon as I find some time to get the sources and test, I'll paste the output.

Please, wait a bit, I have some things to be found on a real device :), so there will be another testing sources in couple of days.

412b 2010-01-08 23:19

Re: Pybattery - battery statusbar applet with candies
 
APM 0.5.1-3 will be in Diablo's extras-devel in 30-45 minutes.
Testing on N900 is highly appreciated.
A bit later I'm going to move it to Fremantle's extras-devel.

tso 2010-01-09 05:59

Re: Pybattery - battery statusbar applet with candies
 
not sure if it needs a reboot or not, but right now device mode is not working on n800.

412b 2010-01-09 10:30

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by tso (Post 460705)
not sure if it needs a reboot or not, but right now device mode is not working on n800.

What is not working?
Anyway, try restarting the APM daemon, if no changes seem to be, post the output of restarting.

tso 2010-01-09 10:34

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 460846)
What is not working?
Anyway, try restarting the APM daemon, if no changes seem to be, post the output of restarting.

the "device mode" submenu stuff, tho a device reboot fixed the issue.

corsac 2010-01-09 14:03

Re: Pybattery - battery statusbar applet with candies
 
Running on an N900 (from ssh as root):

Code:

Nokia-N900-42-11:/usr/src/advanced-power-monitor# ./AdvancedPowerMonitorDaemon.py start
Starting...
Nokia-N900-42-11:/usr/src/advanced-power-monitor# Loaded modules: CPUFrequency TotalRAM CPUGovernor CPUGovernors OSVersion_Maemo FreeMemory Temperature_N900 TotalSwap FreeRAM Diskspace LightSensor_N900 TotalMemory FreeSwap DeviceName Uptime

Loading wrappers...
Loading packages list...
FAILED:        SmartQx
FAILED:        Nokia's BME
FAILED:        Dummy
FAILED:        BME Free
USING:        None

FAILED:        HAL USB OS2008
Traceback (most recent call last):
  File "/usr/src/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 23, in <module>
    daemon.process_args()
  File "/usr/src/advanced-power-monitor/Daemon.py", line 108, in process_args
    self.start()
  File "/usr/src/advanced-power-monitor/Daemon.py", line 64, in start
    self.run()
  File "/usr/src/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 18, in run
    self.apm = AdvancedPowerMonitor.apm()
  File "/usr/src/advanced-power-monitor/AdvancedPowerMonitor.py", line 90, in __init__
    self.init_wrappers()
  File "/usr/src/advanced-power-monitor/AdvancedPowerMonitor.py", line 161, in init_wrappers
    self.check_wrapper(key)
  File "/usr/src/advanced-power-monitor/AdvancedPowerMonitor.py", line 181, in check_wrapper
    wrapper = wr(self.bus, True)
  File "/usr/src/advanced-power-monitor/wrappers/usb_mode/AbstractUSBMode.py", line 13, in __init__
    AbstractWrapper.__init__(self, bus, check)
  File "/usr/src/advanced-power-monitor/wrappers/AbstractWrappers.py", line 23, in __init__
    self.check_available()
  File "/usr/src/advanced-power-monitor/wrappers/AbstractWrappers.py", line 61, in check_available
    if not System.is_package_version_valid(dp, self.dep_packages[dp]):
TypeError: list indices must be integers


gerstavros 2010-01-09 21:28

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by jkq (Post 362568)
Same here. It keeps saying "Swap is disabled", even though I have swap enabled (but not the 'standard' swap, I'm using ramzez).[...]

At me, using ramzez, shows wrong values. Exactly apm doesn´t understand the space used by ramzswap. It seems that it takes the values from "free". 412b, when you complete your current work, it would be nice to try to make apm to take the memory state from /proc/meminfo (where values are right)


All times are GMT. The time now is 23:04.

vBulletin® Version 3.8.8