maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [Anounce] [N9] Volume/Power Button Monitor (https://talk.maemo.org/showthread.php?t=82538)

Dousan 2012-05-01 19:09

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1200303)
sorry, first comand should be:

devel-su
/sbin/stop apps/n9-button-monitor

and then run the second command like you did, configure it to skip songs while locked, start a multi-song playlist/album/thing in the mediaplayer, and then try to skip a song while locked a few times. im hoping it doesnt print aegis errors.

This time the first command gives me this

Code:

# /sbin/stop apps/N9_button_monitor.py
stop: Unknown job: apps/N9_button_monitor.py
~ #

And the second command
Code:

$ /opt/n9-button-monitor/n9-button-monitor.py
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

refreshing config
torch on
libomap3camd 1.133
Staring camera without viewfinder available
libomap3camd 1.133
auto shut-off
torch off
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStart
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStop
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStart
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStop
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStart
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStop
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

Regards Dousan...

wolke 2012-05-01 19:22

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Dousan (Post 1200341)
This time the first command gives me this

Code:

# /sbin/stop apps/N9_button_monitor.py
stop: Unknown job: apps/N9_button_monitor.py
~ #

And the second command
Code:

$ /opt/n9-button-monitor/n9-button-monitor.py
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

refreshing config
torch on
libomap3camd 1.133
Staring camera without viewfinder available
libomap3camd 1.133
auto shut-off
torch off
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStart
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStop
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStart
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStop
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStart
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

3: longClickStop
/home/user/.config/n9-button-monitor.ini 121 881a4 29999 29999 b303 3973 1 0 0 1335852756 1335852756 1335852756 4096

Regards Dousan...

thanks, but its "/sbin/stop apps/n9-button-monitor"
not "/sbin/stop apps/N9_button_monitor.py" {all lowercase, no .py at the end, and dashes not underscores}

however, dont bother rerunning; the long click thing shows that you have nothing set to long click.

im assuming that you dont mean to long-click, tho.
can i see your n9-button-monitor.ini? judging from what you said about the textboxen being empty before, my guess is that your delays are probably 0.
if they ARE zeros, try opening up the gui, loading default, and saving again.

Dousan 2012-05-01 19:41

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Lol yeah sorry about the mistyping gotten to used to write 'N9' and '_' from instalking .deb files and memory ain't my strong side today and don't like to use copy/paste function on the N9 it's a killer to use.

Anyway, reloading and saving the config file once again solved the problem.

Thanks for your time once again :)

Regards Dousan...

wolke 2012-05-01 19:42

Re: [Anounce] [N9] Volume/Power Button Monitor
 
cool, we aims to please

late88 2012-05-02 16:29

Re: [Anounce] [N9] Volume/Power Button Monitor
 
First of all I would like to say thanks to wolke for such a good app! I found it very useful and practical.

There is one thing that bothers me. If you activate the led/torch in lowpower screen and after releasing, there's a little "snap" sound from the device. It doesn't sound good. Think it could be harmful in the long run for the LED?

Edit: I just found out that you can hear the same sound after closing camera app (after photo taken) and also from closing a flashlight app. Wonder why...

HtheB 2012-05-02 16:41

Re: [Anounce] [N9] Volume/Power Button Monitor
 
any update regarding to "HtheB style volume button"?

wolke 2012-05-02 16:45

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by late88 (Post 1200828)
First of all I would like to say thanks to wolke for such a good app! I found it very useful and practical.

There is one thing that bothers me. If you activate the led/torch in lowpower screen and after releasing, there's a little "snap" sound from the device. It doesn't sound good. Think it could be harmful in the long run for the LED?

Edit: I just found out that you can hear the same sound after closing camera app (after photo taken) and also from closing a flashlight app. Wonder why...

youre welcome!

yea, i dont know why either. i has assumed it was the shutter, but i dont hear it when taking a picture.

it happens every time you unload the camera object. {this happens whenever you close the camera app, navigate away from the camera app, lock the phone while in the camera app, or call unload() directly like in my torch}

as for harmful to the LED, i seriously doubt it. anything that would happen as often as the camera going to sleep cant be too bad.

you got me real curious; anybody know? i hear two soft, mechanical clicks, in rapid succession.


P.S. if you use the torch enough, it will obviously decrease the life of the led, as will taking lots of pictures with flash.

Dousan 2012-05-02 16:51

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by late88 (Post 1200828)
First of all I would like to say thanks to wolke for such a good app! I found it very useful and practical.

There is one thing that bothers me. If you activate the led/torch in lowpower screen and after releasing, there's a little "snap" sound from the device. It doesn't sound good. Think it could be harmful in the long run for the LED?

Edit: I just found out that you can hear the same sound after closing camera app (after photo taken) and also from closing a flashlight app. Wonder why...

It's the camera starting up/shutter opening/closing. The led flash must be connected to the camera and when used only as torch the camera still gets activated.

Regards Dousan...

AB3S 2012-05-02 16:52

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by late88 (Post 1200828)
There is one thing that bothers me. If you activate the led/torch in lowpower screen and after releasing, there's a little "snap" sound from the device. It doesn't sound good. Think it could be harmful in the long run for the LED?

I don't hear anything like that from mine...


I'm wondering why the led turn off immediately when I release the button, any ideas?

wolke 2012-05-02 16:59

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by AB3S (Post 1200842)
I don't hear anything like that from mine...


I'm wondering why the led turn off immediately when I release the button, any ideas?

yes, its by design. there are two actions responsible for it, longPressStart, and longPressStop.

if you want it merely to toggle the flashlight:
1) delete the stop action {longPressStop => torchOff}
2) find the action longPressStart => torchOn, and change it "torchOn" to "torchToggle"


All times are GMT. The time now is 15:07.

vBulletin® Version 3.8.8