maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Jolla1 & TOH (https://talk.maemo.org/forumdisplay.php?f=56)
-   -   Reading temperature? (https://talk.maemo.org/showthread.php?t=92917)

mced 2014-03-23 09:54

Reading temperature?
 
I'm looking for ways to read temperature sensors in my Jolla, but it's harder than I initially guessed. An old update log says this:

Quote:

DSME wakes from suspend to read HW temperatur and battery status
So it's something related to "dsme". If I mess around that, I can find this:

Code:

$ dsmetemperature -h
Displaying elapsed time and estimated surface temperature every 5 seconds
Error org.freedesktop.DBus.Error.UnknownMethod: Method "estimate_surface_temperature" with signature "" on interface "com.nokia.thermalmanager" doesn't exist

Oops. That looked good, but doesn't work. Let's find some other dsme-anything things:

Code:

$ dsmetool -h
...
-d --start-dbus                Start DSME's D-Bus services

Code:

$ ps aux | grep -i dsme

root      628  0.0  0.2  2076  1868 ?        S<Ls 08:48  0:00 /usr/sbin/dsme -p /usr/lib/dsme/libstartup.so --systemd
root      643  0.0  0.2  15492  1856 ?        S<l  08:48  0:00 /usr/sbin/dsme-server -p /usr/lib/dsme/libstartup.so --systemd

Humm... "dbus" and "systemd"... then I try this one (after installing qdbus):

Code:

/usr/lib/qt5/bin/qdbus org.freedesktop.systemd1
... and it shows a loooooot of stuff. Should I search into that gibberish or is there a simpler way?

kimmoli 2014-03-23 21:58

Re: Reading temperature?
 
i have checked them directly from sysfs (enough for my purposes)

Code:

cat /sys/devices/virtual/thermal/thermal_zone10/temp

cat /sys/devices/platform/msm_ssbi.0/pm8038-core/pm8921-charger/power_supply/battery/temp


mced 2014-03-24 04:46

Re: Reading temperature?
 
The /sys directory! Sure I was forgetting that when I was searching! Thank you very much!

Now I'm wondering which "thermal zone" is the right one. But that's a minor issue.


All times are GMT. The time now is 06:31.

vBulletin® Version 3.8.8