![]() |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
|
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
Inception |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
' 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} |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
|
Re: [Anounce] [N9] Volume/Power Button Monitor
Hi there, I'm not succeeding with your script.
I installed xresponse, x11-utils, python-qmsystem, python-qtmobility.multimediakit, python-qtmobility.systeminfo, python-pyside.qtgui and python-pyside.qtcore (is "deps" a package?). Then I created the file /usr/bin/n9-button-monitor containing v0.4 of the script. I gave this executable rights. I also created the .conf-file, and your autostart script in /etc/init/apps (/etc/init isn't writeable). This is the output from "devel-su -c 'python /home/user/MyDocs/n9-button-monitor'": Code:
torch on Code:
2: long-start |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
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! |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
So how do I rewrite the start script to grant the correct permissions? |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
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" 1) the click delays {for single/long click actions, you have to wait a half second before they start. for double-click actions, you have to wait .75s. for treble-click, you dont have to wait at all, since there is no quadruple-click actions.} this is very solvable, if you only do long-clicks, partially solvable if you never double-click or treble-click, and unsolvable if you ever wanna do double-treble clicks. 2) the condition detection {figuring out whether youre actually in the camera app, or on the screen-lock, etc} this is not particularly solvable , unless you dont mind weird behaviours in other apps {for instance, the camera-snap would make volume-up click the screen in other apps}. 3) the actions actually take time. e.g.: the camera submodule is slow to initialize. this makes the flash bulb, for instance, take 1-2 full seconds no matter what. theres nothing you can do about this. so! if you only care about the long press actions {flashing and the camera}, you can make it considerably faster by changing the longClickDelayMs from 500 => 1. this will effectively disable all single/double/treble click actions, though. to do this, copy the default config on the OP to /home/user/.config/n9-button-monitor.conf and change the delay. {you have to restart the program}. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
Extremely useful script though! I love the way I can just pull up the phone and hold one button to get a flashlight! |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
maybe you dont have bash, that should be 'sh' instead. try 'start n9-button-monitor' and 'stop n9-button-monitor' |
All times are GMT. The time now is 00:44. |
vBulletin® Version 3.8.8