![]() |
2012-04-05
, 06:36
|
|
Moderator |
Posts: 3,718 |
Thanked: 7,420 times |
Joined on Dec 2009
@ Bize Her Yer Trabzon
|
#42
|
key features are missing, like music-control and HtheB-style-volume-control, and its a ***** to install and run because it needs super-privileges.
![]() |
2012-04-05
, 15:06
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#43
|
Never heard of inception before? You have super priviliges if you incept the package. You can make a special version for inception users, so we can activate this.
Inception
![]() |
2012-04-05
, 15:15
|
Posts: 1,539 |
Thanked: 1,604 times |
Joined on Oct 2011
@ With my N9
|
#44
|
thanks, but i know about inception;
'
this will be the first one that will work out of the box {maybe just for inception-users and open-moders, but ill do my best to make it work for anybody that can use a terminal and follow instructions in it once}.
'
the thing is that you currently need to use a terminal, and set up an upstart file that manages your path depending on how you have it set up. power users will have it set up differently, and non-power users will have know idea how to do it at all.
im hoping to make this app-store-able, which inception makes impossible. also, even using inception, i make a lot of privileged shell calls so im going to need to use aegis-ctl as well.
n9-button-monitor works very nicely out of the box, but just for open-moders right now, and anyone who knows how to use aegis-ctl when permission errors occur. {i dont know what permission errors youd get, because i havent run it on a non-hacked kernel yet}
![]() |
2012-04-06
, 07:21
|
Posts: 7 |
Thanked: 4 times |
Joined on Apr 2012
@ Sweden
|
#45
|
torch on Permission denied: opening file /home/user/.omap3cam Starting camera without viewfinder available Permission denied: opening file /home/user/.omap3cam auto shut-off torch off Permission denied: opening file /home/user/.omap3cam
2: long-start torch on running cmd "xprop -root _NET_ACTIVE_WINDOW" running cmd "xprop -id 0xe0006e WM_COMMAND" 2: long-stop torch off Permission denied: opening file /home/user/.omap3cam running cmd "xprop -root _NET_ACTIVE_WINDOW" running cmd "xprop -id 0xe0006e WM_COMMAND"
The Following User Says Thank You to GuSec For This Useful Post: | ||
![]() |
2012-04-06
, 16:19
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#46
|
Hi there, I'm not succeeding with your script.
....
Permission denied: opening file /home/user/.omap3cam
Nothing happens... What am I doing wrong?
![]() |
2012-04-06
, 17:08
|
Posts: 7 |
Thanked: 4 times |
Joined on Apr 2012
@ Sweden
|
#47
|
first, thanks! youre the first person to try it out in the wild and tell me about it.
so, thats a root permission that i didnt realize that aegis didnt give you by default.
ive been testing it mostly on open mode, and i forgot to test the camera flash on closed mode since i changed it.
for a solution, it is probably sufficient to just run develsh first.
i.e.:
# devel-su
PASSWORD: {rootme}
# develsh
# python /usr/bin/n9-button-monitor
please lemme know if that does it, and ill update the instructions. thanks again!
The Following User Says Thank You to GuSec For This Useful Post: | ||
![]() |
2012-04-06
, 17:38
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#48
|
Now it worked just fine and did exactly what it was supposed to do! It's a bit slow though, which matter most with the camera, but it may be affected by a simultaneous execution of the non working start script.
So how do I rewrite the start script to grant the correct permissions?
description "Startup script for n9-button-monitor" author "elliot.wolk@gmail.com" console none respawn exec bash -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
The Following User Says Thank You to wolke For This Useful Post: | ||
![]() |
2012-04-06
, 21:25
|
Posts: 7 |
Thanked: 4 times |
Joined on Apr 2012
@ Sweden
|
#49
|
just do devel-su -c "develsh -c 'CMD'".
try this to get it to auto-start at boot {i havent tested it on closed mode}.
/etc/init/apps/n9-button-monitor.conf
Code:description "Startup script for n9-button-monitor" author "elliot.wolk@gmail.com" console none respawn exec bash -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
![]() |
2012-04-06
, 21:44
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#50
|
This did not work out (chmod 755 /etc/init/apps/n9-button-monitor.conf)! The strange thing is that "source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor" works out just fine in the terminal, it does exactly what it's supposed to. So what's up with autostart?
Extremely useful script though! I love the way I can just pull up the phone and hold one button to get a flashlight!
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950
@everythingn9
Temporary Inception Fix
Times Banned from TMO: 4