![]() |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
The silent mode is a small price for the ease of access... |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
the fact that the buttons also changes the profile {or the volume, or the camera zoom, or whatever weird fit takes their fancy} is a large detriment to n9bm's usability elsewhere. you can do the screenshot bit yourself, btw, with n9-button-monitor as it stands. make a script that will take a screenshot, and add an action with "cmd(that-script.sh)" and no condition, et voila |
Re: [Anounce] [N9] Volume/Power Button Monitor
My phone is always on silent anyway, so I'm not bothered by that..
But maybe to get past that, can we have two button presses at the same time? Like I said before - press volume up and down together to take screenshot. Or Press up and then down in rapid succession, so if your phone was in silent, it'll go to beep, then back to silent again and there will be no change. Is it possible to detect that by the button monitor? |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
make this and ull get your 3th donation ;) |
Re: [Anounce] [N9] Volume/Power Button Monitor
htheb
heh. actually thats the easy part, and i could get that working fairly easily. the HARD part is in stopping the default actions like profile change and camera zoom. without THAT, a volume-change-key-daemon would obviously be useless. flopjoke actually, it USED to work like that, so that you could define arbitrary button press patterns, like "UpPress, DownPress, DownRelease, UpRelease". everyone told me that the patterns were ridiculous, confusing to describe, hard to press, and fairly useless. they were quite right. what you can do instead is simply bind the screenshot button to double-press up, and then double-press down on your own to compensate. or vice-versa, depending on whether you like silent mode on more often or not. {what im describing here is still perfectly do-able without any change to n9bm} |
Re: [Anounce] [N9] Volume/Power Button Monitor
so i dont have an n9 anymore thanks to hurricane sandy.
turns out an empty condition is a parse error, so i did need to add a condition to support the feature flopjoke wanted. i added the screenshot action while i was there for convenience, with flopjoke compiling and testing it for me. new version 0.4.5 1) condition=always 2) action=screenShot note that the screen shot is always in portrait mode, like screenshotmee. screenshotmee lets you rotate the pic afterwards in a gui. n9bm just makes the file and lets you do what you want with it. |
Re: [Anounce] [N9] Volume/Power Button Monitor
wolke,
So you have now lost 2 n9s? :p |
Re: [Anounce] [N9] Volume/Power Button Monitor
oh, i see youve heard the phrase 'rubbing it in' and are a fan of it!
|
Re: [Anounce] [N9] Volume/Power Button Monitor
im adding a dbus listener to get bluetooth speaker buttons.
i just finished testing a standalone python script. if anyone has a bluetooth thingie with media buttons, i would appreciate your testing this out. i have a hipe shower speaker, and mine does this silly thing where it occasionally sends button clicks 8 times from a single click. im especially curious to know whether this is my fault, hipe's, or nokia's. |
Re: [Anounce] [N9] Volume/Power Button Monitor
heres the python script. you have to install some stuff.
apt-get install python-dbus python-pyside.qtcore name it dbusbtn.py. copy it to MyDocs and run it like this: Code:
user:~$ python /home/user/MyDocs/dbusbtn.pyCode:
#!/usr/bin/python |
Re: [Anounce] [N9] Volume/Power Button Monitor
sorry, i typoed in the previous post. if you grabbed it before my edit, please re-grab.
|
Re: [Anounce] [N9] Volume/Power Button Monitor
new release with bluetooth speaker buttons. you set the button to "dbus" and the button-param to the name of the button as reported by hal. use "dbus-monitor --system" to get the name of the button; if that doesnt show anything, it wont work.
i currently use the buttons to control my music and audio books in the shower. i dont use the builtin media player, where the buttons presumably already work. on the hipe shower speaker, the play/pause button is alternately "play-cd" and "pause-cd", holding it down is "stop-cd". back is always "previous-song" and forward is always "next-song". the volume buttons are internal volume, power is internal, and the phone button does something weird through another interface http://www.amazon.com/Hipe-Waterproo.../dp/B005Z3GINK |
Re: [Anounce] [N9] Volume/Power Button Monitor
version 0.5.1, quickSnap
add an action like: action=quickSnap(auto),volumeUp,doubleClick,screen Locked you double click vol+ on the lockscreen, and it focuses, takes the picture, processes it for like 3 seconds, and THEN makes a camera click noise using the file camera-ui uses. total time from press to pic saved is 6s. the auto is the flash mode. valid flash modes are 'auto', 'on', and 'off'. note that 'torch' and 'manual' are also allowed and may or may not work. i could have the shutter sound happen when it actually takes the pic, but then theres no guarantee that it made a file. if you hear a click now, it took a picture. it puts it in DCIM with a filename like 1358370984758.jpg. {millis since epoch}. it may or may not show up in gallery, i dont use the tracker so i wouldnt know. |
Re: [Anounce] [N9] Volume/Power Button Monitor
wolke, still no ''control media volume only'' option... right? :(
|
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
1) stop the buttons from doing what they usually do or 2) programmatically set volume when mfaw isnt running I WISH SOMEONE WOULD |
Re: [Anounce] [N9] Volume/Power Button Monitor
Hello Wolke.
You can modify the action of a SingleClick, making faster response? Thanks in advance for your answer. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
1) the amount of time it takes between pushing the button and capturing an image 2) the time it takes between pushing the button and saving the processed image if youre worried that you will miss the cat being cute, be aware that the picture is taken a LONG time before the sound happens {picture is taken about 3 seconds after press. booting the camera takes some time, but also the autofocus takes time}. maybe i should make it make two sounds, one when the pic is actually being taken, and one when it is done. P.S.: if youre taking about something other than quickSnap, lemme know |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
|
Re: [Anounce] [N9] Volume/Power Button Monitor
Brilliant idea with dual-sound quick snap functionality.
Might I ask why all the hate for almost every inbuilt function the N9 has? Is there any chance you could add GPS position as another condition group? Would be very cool to change my layout based on whether I'm at home, or out! testing ATM, GUI really is dog's balls. Any way we could help with it? |
Re: [Anounce] [N9] Volume/Power Button Monitor
Brilliant idea with dual-sound quick snap functionality.
Might I ask why all the hate for almost every inbuilt function the N9 has? Is there any chance you could add GPS position as another condition group? Would be very cool to change my layout based on whether I'm at home, or out! testing ATM, GUI really is dog's balls. Any way we could help with it? |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
Quote:
Quote:
however, i should probably make a shell-command-condition that lets folks do whatever they want. {for example, all you would do is write a script called gps-is-home that exits with 0 if you are home and 1 otherwise.} Quote:
i maintain the gui only because a LOT of folks are really averse to opening up a text editor. i certainly will never use it, and wouldnt ask anyone else to. the only extra feature i would like a gui to have is to check the syntax and make sure there are no typos. perhaps ill take redak or something and repackage it with this feature some day. all that being said, i would love for someone to write a nice qml gui for this so everyone would stop worrying about it already. {i do not think i will ever do this.} |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
if your flashlight is taking more than 2-4 seconds, you have some sort of performance problem with your phone. {perhaps you use dropcache, or you run many things at once} sorry i cant help. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Hi, wolke!
When I launch n9-button-monitor.py it gives me the following error: Quote:
I'm using it on N9. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
yea, i saw that right after release. it happens only if you dont have a bt input device connected at startup. i saw also that everything works. in fact, bluetooth buttons still work when you then DO connect a bt device later, without restarting. so its a harmless, if misleading, error message. i decided not to fix it, because actively hiding error messages that n9bm didnt actually generate seems wrong. p.s.: as you probably know, you shouldnt have to start this on the CLI. it should startup all by itself about 90 seconds after boot, and it should reload your changes to the conf file automatically. |
Re: [Anounce] [N9] Volume/Power Button Monitor
added some features from lcferrum:
-n950 cambutton -power button -config option to turn off quicksnap and flashlight/torch -on/off home icons {a .desktop that changes icons when you push it; these depend on sudo and openmode for now, and wont be in a deb. i will probably make a plugin for sysuid-mt-toggles someday, if anyone cares about turning it on/off nicely} the next deb i build will have the buttons and the cam option; does anyone have a special interest in any of these features? |
Re: [Anounce] [N9] Volume/Power Button Monitor
Have been reading the thread but I'm not clear on this: can you set a short press of the power button (from low power screen) to run an arbitrary command?
Thanks |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
second, the biggest missing component in n9bm is the ability to cancel the button's default action. no one has any idea how to do this. this makes n9bm useless except in standby, and in apps that override the volume keys. SO, technically, yes, but it probably wont work because the screen will unlock first and thus you will no longer be on lowpower screen. however, double-clicking power should work, from any screen, and may even be useful. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Hmm... Then it seems that what I had in mind is more difficult than I thought...
My idea was to enable the security lock when trying to unlock the screen (from low power screen) by pressing the power button, whereas double tapping the screen would unlock it as normal. I always unlock the phone in the second manner, while someone who doesn't know how the N9 works (most people) would try to unlock it by hitting the power button if they, say, stole the phone. An attempt to make the phone useless to your average pickpocket ;) |
Re: [Anounce] [N9] Volume/Power Button Monitor
clever. and yes, that may work, but not consistently.
however, i think double-tapping is the more obvious unlock method, because the buttons are so unlabeled. usually friends and such who unlock my phone try to double-tap first {which doesnt work because i turned off double-tap-unlock}. heres the best implementation i can think of. set the click delay to 2000 millis, and set the single-click-cmd to when the screen is NOT locked. that way, 2 seconds after you click it, the screen will either be locked like you wanted and nothing will run, or it will be unlocked and then suddenly security-locked. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Yes, that's a good idea. Can you implement that?
Edit: and you have smarter friends than the people I've come across, who all start looking for buttons as soon as the screen goes blank :D |
Re: [Anounce] [N9] Volume/Power Button Monitor
1 Attachment(s)
here ya go. this is NOT a release, as i havent tested it. literally havent even run it, sorry.
this deb has new conditions: screenUnlocked, appNotFocused and new buttons: cameraButton {n950}, powerButton all you do to configure n9bm how i said, is change /home/user/.config/n9-button-monitor.ini Code:
doubleClickDelayMs=2000 |
Re: [Anounce] [N9] Volume/Power Button Monitor
ok, i tested it, and it works fine.
turns out double-click-power IS useful. it will work in lock, unlock, and different apps, where the volume buttons already have actions reserved. it could, for instance, toggle power saving mode when locked, open my most recent pictures in meeseepics if im on the home screen, and toggle silent/ring everywhere else. |
Re: [Anounce] [N9] Volume/Power Button Monitor
Thankyou!
I just installed the deb, although no /home/user/.config/n9-button-monitor.conf (or /home/user/.config/n9-button-monitor.ini) is created. Is this normal? Do i grab the one in OP and throw it in there (changing it according to your instrucions)? Edit: ...you load the default config file from the ui, got it! |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
i wouldnt recommend using the gui for anything at all ever. |
Re: [Anounce] [N9] Volume/Power Button Monitor
It works perfectly, thankyou! :D
Btw, the torch feature is really nice too. No more unlock-screen-locate-flashlight-app-in-the-app-menu-activate-flashlight... |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
|
There is a great new open source camera app for the N9 located here: http://talk.maemo.org/showthread.php?t=89278
I think that this could be my new default camera app, but I don't want to lose the Button Monitor camera functions. Could you set up Button Monitor so that this camera app can be a new condition name in the GUI? Is there an easy way I can make this happen? |
Re: [Anounce] [N9] Volume/Power Button Monitor
AWESOME! im so excited, i despise the n9 camera app. thanks for this news, ill be checking it out very soon.
now, its very easy to do the condition. you just do appFocused(window-class-name). default camera app is "camera-ui", and his is probably "camera-plus". cameraFocused == appFocused(camera-ui) both do exactly the same thing. now as for the ACTIONS, theyre a little trickier. what they really do is simulate dragging your finger to certain spots on the screen. if he moved the camera button a little, it will break. so if he DID move the button, you will need to play with the "tap" action. again, clickCameraSnap and clickCameraFocus are just shorthand for the tap action with an argument. these do exactly the same thing: clickCameraSnap == tap(820x240,820x240) clickCameraFocus == tap(820x240-820x100*200+5) |
Re: [Anounce] [N9] Volume/Power Button Monitor
i lied, its not class name, its WM_COMMAND.
so you dont even have to use xprop to find out, you can just use the executable name. |
Re: [Anounce] [N9] Volume/Power Button Monitor
btw, released 0.5.2
buttons: camera {n950}, power conditions: screenUnlocked, appNotFocused actions: tap {generic click} |
| All times are GMT. The time now is 11:07. |
vBulletin® Version 3.8.8