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)

wolke 2012-03-27 02:03

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

Originally Posted by Arie (Post 1184474)
This is becoming pretty cool.

:D see first post for the update

Arie 2012-03-27 02:08

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

Originally Posted by wolke (Post 1184475)
:D see first post for the update

Where does it talk about the flashlight function?

wolke 2012-03-27 02:09

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

Originally Posted by Arie (Post 1184476)
Where does it talk about the flashlight function?

check again, sry

wolke 2012-03-27 02:11

Re: [Anounce] [N9] Volume/Power Button Monitor
 
the relevant line in the code is:

, Action([voldn, volup, volup], cond=screenLocked, action=torch.toggle)

i.e.: press and hold volume down, double-tap volume up, and torch is toggled

a_petrov303 2012-03-27 07:45

Re: [Anounce] [N9] Volume/Power Button Monitor
 
this is great!

thank you for sharing!

could anyone (if the author is focused on more principal things) write a tutorial or how-to use this finding?

I understand the potential of the script, but don't really know how to use it. shall I just write everything in the terminal? please help, as the default buttons are just useless!!!

many thanks for your work!

biatch0 2012-03-27 15:34

Re: [Anounce] [N9] Volume/Power Button Monitor
 
What would be cool is pressing and holding button X

1) unlock
2) launch camera
3) focus
4) snap a photo

Similar to how the hardware camera button on the Lumia 800 functions.

wolke 2012-03-27 16:52

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

Originally Posted by a_petrov303 (Post 1184538)
this is great!

thank you for sharing!

could anyone (if the author is focused on more principal things) write a tutorial or how-to use this finding?

I understand the potential of the script, but don't really know how to use it. shall I just write everything in the terminal? please help, as the default buttons are just useless!!!

many thanks for your work!

yea, sry, this is more of a do-it-yourself toolbox for making an app than an app.

ill see if i can put together something you can just run from the terminal and have it work.

some questions first {anyone else, feel free to chime in}:

1)
which of these sounds better for the flashlight/torch on lowpower lock screen?
a) vol+ toggles the torch
b) vol+ will toggle the flashlight {it will turn off after 30s}
c) press and hold vol+ to turn on the flash, release to turn it off
d) press and hold vol+, double-tap vol-, release vol+, to toggle the flash {this makes it more or less impossible to pocket-flash}

2)
i dont know if anyone else cares about the music play/pause/skip/prev, but to me thats the vital feature. how should this work/not work?

3)
also, should it simulate thomas perl's camerra hack? {vol+ to take picture when in camera mode} ive found that i like it.

4)
does anyone care about 10s delayed picture? its more or less impossible to take a good picture without holding the n9 anyway, so it seems fairly useless to me so far.

wolke 2012-03-27 17:03

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

Originally Posted by biatch0 (Post 1184703)
What would be cool is pressing and holding button X

1) unlock
2) launch camera
3) focus
4) snap a photo

Similar to how the hardware camera button on the Lumia 800 functions.

so i dont know how the lumia 800 does this. i assume that you want to do this while inside the camera app; press and hold vol+, wait 1s for it to focus, release to snap picture.

totally feasible, except for the focusing bit. the built-in camera doesnt expose any way to forcibly make it focus {that i know about}. one could easily just write another camera application for doing this with qt mobility, but it wouldnt be as full-featured or polished.

wolke 2012-03-27 17:03

Re: [Anounce] [N9] Volume/Power Button Monitor
 
one thing ive been thinking about is simply snapping pictures from the lock screen, with no viewfinder. extremely often i find that im not quick enough to unlock my phone, open up the camera app, and actually snap one off before the phenomenon im trying to capture stops.

the way i imagine this would work is to press and hold vol+ from the lock screen, and then tap vol- repeatedly to snap off pix. i would use the qtmobility framework for this, too, which i havent tested. it seems that it borrows the settings from the camera app already, which should be convenient.

does this sound useful to anybody?

alephito 2012-03-27 19:13

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Yes, I would like to have that option.


All times are GMT. The time now is 14:01.

vBulletin® Version 3.8.8