Reply
Thread Tools
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#251
ok, crap. LED requires root, and n9bm of course runs as user. thinking about it. ideas?
__________________
~ teleshoes ~
 
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#252
ok, made a daemon that listens over dbus for led(0), led(255), etc
__________________
~ teleshoes ~
 
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#253
syntax will be:
###led => set led brightness to ### [0..255]
###ms => delay ### milliseconds
on => 255led synonym
off => 0led synonym


double blink:
on, 10ms, off, 250ms, on, 10ms, off

slow increase over ~5s:
16led, 250ms, 32led, 250ms, 48led, 250ms, 64led, 250ms, 80led, 250ms, 96led, 250ms, 112led, 250ms, 128led, 250ms, 144led, 250ms, 160led, 250ms, 176led, 250ms, 192led, 250ms, 208led, 250ms, 224led, 250ms, 240led, 250ms, 255led, 250ms, 0led
__________________
~ teleshoes ~
 
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#254
damnit! im done with it, except that i cant get the led-dbus to start as root. got no idea what to do about this.

EDIT: presumably because dbus qt mainloop needs an xsession. switched to gobject
__________________
~ teleshoes ~

Last edited by wolke; 2013-08-30 at 04:56.
 
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#255
v0.5.5
+ added configurable led patterns for quickSnap
+ added shutter sound to quickSnap, in addition to picture-saved sound
+ added soundfile configs for quickSnap
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#256
if you get a chance, please test this. i have no idea if it will work in non-openmode.

EDIT: what i mean specifically is it would be great if someone who doesnt use openmode tested quick-snap and saw that the LED blinks for them. it should blink once approximately at the same time the image is taken {and play the default camera sound at the same time}, and then blink twice quickly when the image is saved {without playing any sound by default}.

to add quickSnap to the lockscreen {vol+ trebleClick}, do this in ~/.config/n9-button-monitor.ini
action=quickSnap(auto),volumeUp,trebleClick,screen Locked
__________________
~ teleshoes ~

Last edited by wolke; 2013-08-30 at 05:15.
 

The Following 2 Users Say Thank You to wolke For This Useful Post:
Mikkosssss's Avatar
Posts: 645 | Thanked: 519 times | Joined on Apr 2012 @ Finland
#257
Wont work
__________________
────────────────────
Try:My N9 bootvideo
 

The Following User Says Thank You to Mikkosssss For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#258
oh well, thanks for the test!

can you also test the sound configs?
copy two WAVs to MyDocs called a.wav and b.wav, edit prefs, and add these lines:
quickSnapShutterSound=/home/user/MyDocs/a.wav
quickSnapSaveSound=/home/user/MyDocs/b.wav

then take a quickSnap, you should hear a, then hear b about 5 seconds later
__________________
~ teleshoes ~
 
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#259
note that LED works fine if you use openmode.
also note that you can start the led daemon manually by running as root:
/opt/n9-button-monitor/led-dbus.py

and that this will almost certainly work on non-openmode.
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post:
Mikkosssss's Avatar
Posts: 645 | Thanked: 519 times | Joined on Apr 2012 @ Finland
#260
Add lines
quickSnapShutterSound=/home/user/MyDocs/a.wav
quickSnapSaveSound=/home/user/MyDocs/b.wav

To camera.py or button monitor ini?
__________________
────────────────────
Try:My N9 bootvideo
 
Reply

Tags
harmattan, nokia n9


 
Forum Jump


All times are GMT. The time now is 10:19.