maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WIP] Prey - antitheft system (https://talk.maemo.org/showthread.php?t=92829)

iltsu 2014-06-04 15:21

Re: [WIP] Prey - antitheft system
 
Prey runs perfectly, but can't install fcron.

Warehouse and pkcon install / install-local gives error Installation aborted by user, even I didn't abort it manually. Any suggestions?

nieldk 2014-06-04 15:35

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by iltsu (Post 1428200)
Prey runs perfectly, but can't install fcron.

Warehouse and pkcon install / install-local gives error Installation aborted by user, even I didn't abort it manually. Any suggestions?

$ wget https://openrepos.net/sites/default/...-3.armv7hl.rpm -no-check-certificate
$ devel-su
# zypper in fcron-3.0.6-3.armv7hl.rpm

juiceme 2014-06-04 21:18

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1428202)
$ wget https://openrepos.net/sites/default/...-3.armv7hl.rpm -no-check-certificate
$ devel-su
# zypper in fcron-3.0.6-3.armv7hl.rpm

OK, now this is a bit offtopic since it concerns not prey but fcron.
I am going to ask anyway since it is important in an indirect way though... :D

So, how can I make cron (fcron in this case) keep real time on Jolla?
I have installed fcron-3.0.6-3 but I noted that it behaves in not so nice way; if my Jolla is sleeping (like, display off) and a crontab event should trigger it just doesn't wake up. The event is missed completely, not even deferred to when the device wakes up I believe.

nieldk 2014-06-05 05:50

Re: [WIP] Prey - antitheft system
 
@juice Yes, that observation is true. fcron is an attempt to see if it would work better than systemd timers (which also have this issue).
Also, (f)cron would enable prey to change the run schedule.
But.... the device (OS) seems to not adhere to running tasks needs.
Even WLAN seems to still suffer from this sleep issue.
Sadly, I have still to figure out how to fix this.

juiceme 2014-06-05 06:59

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1428293)
@juice Yes, that observation is true. fcron is an attempt to see if it would work better than systemd timers (which also have this issue).
Also, (f)cron would enable prey to change the run schedule.
But.... the device (OS) seems to not adhere to running tasks needs.
Even WLAN seems to still suffer from this sleep issue.
Sadly, I have still to figure out how to fix this.

There has to be a neat way to do this, or else the alarm clock would not work either.

I remember there was some talk of this before, was it so that there are some special libs you need to link your code against to make it not to go to sleep when the device goes to low power mode?

rainisto 2014-06-05 07:08

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by juiceme (Post 1428300)
There has to be a neat way to do this, or else the alarm clock would not work either.

I remember there was some talk of this before, was it so that there are some special libs you need to link your code against to make it not to go to sleep when the device goes to low power mode?

https://github.com/nemomobile/libiphb allows you periodically wake up from suspended state.
Unfortunately its not that well documented, so you need to look into tests dir and read the sources. And its written in C.

Easier C++ API has luckily been introduced that also allows periodic waking from suspend, so you can for example wake up every 15 or 30 mins:

https://github.com/nemomobile/nemo-k...y_periodic.cpp

ade 2014-06-05 08:17

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1428293)
@juice Yes, that observation is true. fcron is an attempt to see if it would work better than systemd timers (which also have this issue).
Also, (f)cron would enable prey to change the run schedule.
But.... the device (OS) seems to not adhere to running tasks needs.
Even WLAN seems to still suffer from this sleep issue.
Sadly, I have still to figure out how to fix this.

There already is a modified meego cron for sailfish which has libiphb included: https://gitorious.org/cron-for-harma...on-3.0pl1.orig

Which makes me wonder why people put packages in repos that are not tested/working as expected in the first place.

nieldk 2014-06-05 12:37

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by ade (Post 1428316)
There already is a modified meego cron for sailfish which has libiphb included: https://gitorious.org/cron-for-harma...on-3.0pl1.orig

Which makes me wonder why people put packages in repos that are not tested/working as expected in the first place.

that one has apparently issues aswell.

As for "not test/working as expected"
Well, disable my repo, and do your sh.. yourself.

ade 2014-06-05 13:23

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1428346)
that one has apparently issues aswell.

Than you might have compiled the wrong code, as it works fine for me.
Quote:


Well, disable my repo, and do your sh.. yourself.
Well, I do compile a lot myself. I even upload to repos. And it is great that persons like you upload packages so people don't have to compile themselves. But I do run stuff myself for a while to see if it works as expected before uploading.

I would not have mind to look into the issue for you, but given your agressive attitude, I think it is better not to. Nevertheless I hope you can fix the issue for people that did install your fcron.

nieldk 2014-06-05 14:26

Re: [WIP] Prey - antitheft system
 
I know you contribute a great deal, as for my attitude, Apology - but I am a bit tired of certain (not you) ppl and their attitudes also.
As for testing. I do test, and when I feel it could have a certain amount of interrest, I publish, here, or in openrepos.
fcron is an example, it works, but have problems with device goong to sleep.
As so do most of apps and services already present in a released device OS!
Therefore my opinion is, that this issue could be considered minor, considering the benefits of prey and enabling a usefull feature to track a stolen device, or ?


All times are GMT. The time now is 17:24.

vBulletin® Version 3.8.8