Kossuth
|
2013-12-31
, 11:58
|
Posts: 159 |
Thanked: 217 times |
Joined on Oct 2011
|
#211
|
The Following 3 Users Say Thank You to Kossuth For This Useful Post: | ||
|
2013-12-31
, 13:04
|
Posts: 76 |
Thanked: 44 times |
Joined on Apr 2011
@ India
|
#212
|
My powerbutton file had -rw-r--r-- permissions, and I chmodded it for testin to -rwxrwxrwx and timenow started working, so here it was permission error. I have rootsh already installed.
wow! I got a bunch of supporting users
please set timenow.conf as follows:
and then reboot.Code:start on started proximityd stop on stopped hal respawn respawn limit 15 3 script sleep 10 exec su user -c "run-standalone.sh /opt/timenowd/bin/timenowd" end script post-stop script # clean up killall timenowd end script
It works for me like that. If it works for other people too, I will push the change to extras-devel. I'm asking because apparently the boot procedure is different for each phone and no solution is universal.
if it fails please change the exec line to
and post contents of timenow.log directly after bootCode:exec su user -c "run-standalone.sh /opt/timenowd/bin/timenowd 2>/home/user/.timenow/timenow.log"
|
2013-12-31
, 14:57
|
|
Posts: 130 |
Thanked: 132 times |
Joined on Jan 2013
@ India
|
#213
|
@Sohil876: that problem was there on 0.11 but hopefully it is fixed in 0.12, make sure you have 0.12
on the other hand
looks suspiciousCode:/bin/sh: /opt/timenowd/bin/powerbutton: Permission denied
please run ls -la /opt/timenowd/bin and post here, maybe there's a permission error. I also depend on rootsh so make sure you have that installed (which might not be the best way to do that, I might better add timenow to sudoers)
My powerbutton file had -rw-r--r-- permissions, and I chmodded it for testin to -rwxrwxrwx and timenow started working, so here it was permission error. I have rootsh already installed.
|
2013-12-31
, 16:53
|
Posts: 159 |
Thanked: 217 times |
Joined on Oct 2011
|
#214
|
The Following User Says Thank You to Kossuth For This Useful Post: | ||
|
2013-12-31
, 16:58
|
Posts: 8 |
Thanked: 9 times |
Joined on Sep 2012
@ Brasil
|
#215
|
|
2013-12-31
, 17:27
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#216
|
The Following 3 Users Say Thank You to qwazix For This Useful Post: | ||
|
2013-12-31
, 17:48
|
Posts: 76 |
Thanked: 44 times |
Joined on Apr 2011
@ India
|
#217
|
Happy to hear that the permission solved it. I'm not sure if the execute bit is enough for owner, as it is run as root, so I'd advise to just chmod +x /opt/timenowd/bin/powerbutton
For timenow.conf, I noticed that on my device it didn't start without a longer sleep period, probably because proximityd hadn't yet completely started (I also had to add respawn 15 3 to proximityd as reported earlier by pierrem.
Thus if it works for you, leave it as is. I will introduce the longer delay as well as fix the permission thing in lucky version 0.13 in a few days.
I might ponder using sudoers instead of rootsh too, but as they say if it ain't broke...
Happy new year and thanks.
The Following User Says Thank You to kraker_abhy For This Useful Post: | ||
|
2013-12-31
, 18:20
|
Posts: 159 |
Thanked: 217 times |
Joined on Oct 2011
|
#218
|
|
2013-12-31
, 18:27
|
Posts: 76 |
Thanked: 44 times |
Joined on Apr 2011
@ India
|
#219
|
|
2013-12-31
, 19:16
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#220
|
The Following 2 Users Say Thank You to qwazix For This Useful Post: | ||