maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce - #MCCXII] Timenow: Proximity enabled lock screen (https://talk.maemo.org/showthread.php?t=83682)

Kossuth 2013-12-31 11:58

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
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.

kraker_abhy 2013-12-31 13:04

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
Quote:

Originally Posted by Kossuth (Post 1402447)
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.

This worked like charm for me. Thanks for the solution, it was only the permission issue.


Quote:

Originally Posted by qwazix (Post 1402414)
wow! I got a bunch of supporting users :):)

please set timenow.conf as follows:

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

and then reboot.

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
Code:

exec su user -c "run-standalone.sh /opt/timenowd/bin/timenowd 2>/home/user/.timenow/timenow.log"
and post contents of timenow.log directly after boot

Hi qwazix, thanks for your hardwork and quick support. Changing permission is working fine for me but do i still need to change timenow.conf as u said for some smoothness or something maybe?

Sohil876 2013-12-31 14:57

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
Quote:

Originally Posted by qwazix (Post 1402439)
@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
Code:

/bin/sh: /opt/timenowd/bin/powerbutton: Permission denied
looks suspicious

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)

I am using v0.12, the problem was permission, thnx its now working nicely.

Quote:

Originally Posted by Kossuth (Post 1402447)
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.

Yup this worked for me too, though instead of -rwxrwxrwx i did -rwxr-xr-x.

Kossuth 2013-12-31 16:53

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
I meant the permission change only for testing if it is actually a permission problem and mainly for only to report it to qwazix. I am not enough skilled in linux systems to know if this "enable every and all permissions" has any ill side effects in the long run. Maybe qwazix can advice on more limited permission to run timenow.

hcavjr 2013-12-31 16:58

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
Great. I only changed permission and its now working.

chmod 755 /opt/timenowd/bin/powerbutton

Neither had to restart.

Any changes recommended for /etc/event.d/timenow.conf?

qwazix 2013-12-31 17:27

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
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.

kraker_abhy 2013-12-31 17:48

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
Quote:

Originally Posted by qwazix (Post 1402581)
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.

Thanks for your response, I noticed that screen displayed with timenow goes off faster then displayed with power button, which makes it little difficult for me to operate media controls, can you guide me where i can change display time?

Thanks buddy and Happy new year, Have fun!!!

Kossuth 2013-12-31 18:20

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
/opt/timenowd/conf/settings.ini

kraker_abhy 2013-12-31 18:27

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
Quote:

Originally Posted by Kossuth (Post 1402608)
/opt/timenowd/conf/settings.ini

Thanks a lot, I will give it a try..

qwazix 2013-12-31 19:16

Re: [Announce - #MCCXII] Timenow: Proximity enabled lock screen
 
please don't change settings.ini in /opt but rather in /home/user/.timenow
it has precedence.


All times are GMT. The time now is 11:23.

vBulletin® Version 3.8.8