[SailfishDevel] Accessing Jolla GPIO without root

Kimmo Lindholm Kimmo.Lindholm at eke.fi
Sat Sep 5 09:17:35 UTC 2015


Hi,

VDD you can control as nemo. For INT pin you need to export the GPIO as root, then you can read it as nemo (IIRC)

https://github.com/kimmoli/i2ctool/blob/master/src/i2cif.cpp#L45

https://github.com/kimmoli/tohkbd2/blob/master/daemon/src/toh.cpp#L75

i also started writing daemon for the gpio management, https://github.com/kimmoli/gpio-daemon
but never completed the project.

-kimmo


________________________________
Lähettäjä: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] käyttäjän Dylan Van Assche [dylan.rscafan at gmail.com] puolesta
Lähetetty: 5. syyskuuta 2015 11:02
Vastaanottaja: devel at lists.sailfishos.org
Aihe: [SailfishDevel] Accessing Jolla GPIO without root

Hi Develsailors,

I want to build a Sailfish app which interact with the Adafruit Powerboost 500C.
That's a LiPo charger and booster in one simple package.

The idea is to build a PowerTOH which is smart enough to start charging the Jolla when his battery his below a certain percentage. In order to do that I need to make an app which can read the INT-pin on the Jolla Phone and can control the VDD output.

The VDD-output controls the charging while the INT-pin will read if the Powerhalf TOH his battery is low.

Is there a way to access these pins without root in an app?

Cheers,
Dylan Van Assche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150905/65d29186/attachment.html>


More information about the Devel mailing list