Active Topics

 



Notices


Reply
Thread Tools
Posts: 53 | Thanked: 48 times | Joined on Dec 2008 @ Montreal, Canada
#411
Originally Posted by 412b View Post
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 $
 

The Following User Says Thank You to born2wonder For This Useful Post:
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#412
Originally Posted by born2wonder View Post
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
 

The Following 2 Users Say Thank You to 412b For This Useful Post:
Posts: 94 | Thanked: 28 times | Joined on Oct 2009
#413
As soon as I find some time to get the sources and test, I'll paste the output.
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#414
Originally Posted by corsac View Post
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.
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#415
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's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#416
not sure if it needs a reboot or not, but right now device mode is not working on n800.
 

The Following User Says Thank You to tso For This Useful Post:
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#417
Originally Posted by tso View Post
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's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#418
Originally Posted by 412b View Post
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.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 94 | Thanked: 28 times | Joined on Oct 2009
#419
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

Last edited by corsac; 2010-01-09 at 14:26. Reason: fix code markup
 
Posts: 160 | Thanked: 85 times | Joined on Jan 2009 @ Greece-Athens
#420
Originally Posted by jkq View Post
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)
 
Reply

Tags
applet, battery, python, statusbar


 
Forum Jump


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