Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2016, 10:02 AM   #1
ladidaaa
Junior Member
ladidaaa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2016
Device: kobo touch
Linux command to read Temperature Sensor(s)

Hi,
I would like to turn a kobo touch into a weather station.
I would love to display the actual room temperature.

Is there a linux command to read the actual cpu or battery temperature of the kobo touch?
thanks a lot in advance!
ladidaaa is offline   Reply With Quote
Old 11-16-2016, 06:04 PM   #2
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Not sure about the Kobo Touch.

The Kobo H2O has a MAX17135 sensor. Or at least, that's the only sensor driver enabled in the kernel.

Quote:
https://www.maximintegrated.com/en/p.../MAX17135.html
The IC includes a temperature sensor that provides the ability to read the internal IC temperature and an external panel temperature with the use of an external temperature-sensing diode. Temperature output data is supplied through I²C.
Sounds good, but I don't know if you can actually query a temperature using that.

There actually is a /sys/devices/platform/mxc_epdc_fb/graphics/fb0/temperature and it says 23 for me which happened to be the room temperature... but I just put it out in the cold and it still says 23 so... maybe something else after all.

lm-sensors doesn't find anything.

PS: it did go down to 22 while writing this post.
frostschutz is offline   Reply With Quote
Advert
Old 11-17-2016, 01:04 PM   #3
ladidaaa
Junior Member
ladidaaa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2016
Device: kobo touch
Thank you for your reply!
is it possible to search for *temp* in /sys/devices ?
I hopefully get the kobo touch at the weekend, then I see for myself
ladidaaa is offline   Reply With Quote
Old 11-17-2016, 01:31 PM   #4
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
find /proc /sys -iname "*temp*" is what I did (same for therm) and that's what I found on the H2O...

As a weather station you have to get weather info from somewhere too, so maybe you could acquire temperature from one of your other devices this way too.

Good luck.
frostschutz is offline   Reply With Quote
Old 11-22-2016, 12:48 AM   #5
ladidaaa
Junior Member
ladidaaa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2016
Device: kobo touch
Hi,
thanks again for your input!

I rooted my kobo touch and with this command i can read the temperature sensor:
cat /sys/devices/platform/tps6518x_sensor.0/temp_input

This command gives me "21".
I assume this is the correct temperature reading.
ladidaaa is offline   Reply With Quote
Advert
Old 11-22-2016, 05:10 AM   #6
CatRovacer
Member
CatRovacer began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2015
Location: Moscow
Device: Kobo Glo, Touch, Aura HD
Scusami, but i found for Glo

This path only for Touch?
I looked Glo hardware, also used TPS65185.
But i not find like /sys/devices/platform/tps6518x in Glo.

I am looking for a way to read and write value VCOM.
Also for Touch
CatRovacer is offline   Reply With Quote
Reply

Tags
kobo, python, root, telnet, weather


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple linux fastboot installing command aditya3098 Kindle Developer's Corner 20 04-23-2019 04:13 PM
Linux / Command Line / search and add metadata plittlefield Library Management 3 06-24-2016 12:45 PM
Ubuntu/Linux : Command to schedule a job with Calibre.( No GUI ) DurgaPrasad Calibre 0 10-16-2013 06:50 AM
How can I use calibre fetch google reader by Linux command Line? madawei Devices 4 06-26-2012 12:08 AM
Free Linux Command Line Guide (PDF) cromag Deals and Resources (No Self-Promotion or Affiliate Links) 1 10-12-2011 10:43 PM


All times are GMT -4. The time now is 05:54 PM.


MobileRead.com is a privately owned, operated and funded community.