maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [request) hardware phone call buttons (https://talk.maemo.org/showthread.php?t=64254)

Laughing Man 2010-10-23 21:59

Re: [request) hardware phone call buttons
 
For simple solutions you could use shortcutd combined with a dbus call to answer the phone call. But I could never get it to work correctly with the camera button.

I also believe Phone Speaker Switch has the functionality of answering and ending phone calls with a long press of the camera button.

bullrin 2010-10-23 22:12

Re: [request) hardware phone call buttons
 
i have already tried phone speaker switcher but long press camera doesnt work. maybe its because i use camkeyd?
shortcutd is an idea. i will try it.
for the caller name problem, use espeak caller. but it has never worked on my n900. also dont know why

etuoyo 2010-10-23 22:17

Re: [request) hardware phone call buttons
 
Another benefit is that there are some times the phone rings with just a blank screen. This mod would allow you to pick up when that glitch occurs.

lardman 2010-10-23 23:39

Re: [request) hardware phone call buttons
 
Quote:

Originally Posted by kinggo (Post 848988)
well, they can be only on two places, depends on orientation. My phone is only on portrait so I really don't have any problems.

Yeah that is an issue - especially if your phone is in landscape mode when the phone rings and you pick it up and it takes ages (well a while at least) to work out where its buttons should then end up. Shame the phone app can't be forced to remain in portrait mode imo.

hawaii 2010-10-23 23:47

Re: [request) hardware phone call buttons
 
Using the volume up and volume down keys would be the best way to do this.

Volume up to answer a call when it's incoming, volume down to hang-up or decline the call.

zerocool2k 2010-10-23 23:55

Re: [request) hardware phone call buttons
 
Quote:

Originally Posted by lardman (Post 849076)
Yeah that is an issue - especially if your phone is in landscape mode when the phone rings and you pick it up and it takes ages (well a while at least) to work out where its buttons should then end up. Shame the phone app can't be forced to remain in portrait mode imo.

You can make the Phone app always in portrait mode. Tap on the top to get the menu, choose "Turning control", then choose Portrait instead of Automatic for "Orientation".

Mentalist Traceur 2010-10-24 04:07

Re: [request) hardware phone call buttons
 
The problem with having an app that uses volume keys to hang up is that it makes it that much harder to lower volume during a call. Unlikely as needing that is, given the phone volume of the little speaker slit that gets used when you're not on speaker, it's still inconvenient. BUT, I DO agree with using volume up/down for pick-up/reject.

Though honestly, if it were me, I would make it as customizable as possible from the beginning, so that the users could change which keys get mapped. I might not care about this, and most users might not care about this, but I assure you there'll be someone who would love this feature, but would prefer to be able to use the volume keys to modulate ring-tone volume as the call is coming in or something.

sony123 2010-10-24 08:19

Re: [request) hardware phone call buttons
 
I could be wrong but my understanding is that using cam key would be easier. Volume key action is taken by the OS so I would think you need to run a daemon to intercept the volume key action somewhere, somehow.

dov 2010-10-24 08:59

Re: [request) hardware phone call buttons
 
Quote:

Originally Posted by sony123 (Post 849232)
I could be wrong but my understanding is that using cam key would be easier. Volume key action is taken by the OS so I would think you need to run a daemon to intercept the volume key action somewhere, somehow.

Sorry, that is wrong. See the following post for how to grab the volume keys in Python:

http://talk.maemo.org/showthread.php?p=550058

bullrin 2010-10-24 09:19

Re: [request) hardware phone call buttons
 
Quote:

Originally Posted by Mentalist Traceur (Post 849155)
The problem with having an app that uses volume keys to hang up is that it makes it that much harder to lower volume during a call. Unlikely as needing that is, given the phone volume of the little speaker slit that gets used when you're not on speaker, it's still inconvenient. BUT, I DO agree with using volume up/down for pick-up/reject.

Uh you're right. Didn't think about this situation.
The Volume keys should work as normal during a call ( volume up and down). Maybe cam key is the better choice to end a call.
But push it 2secons or more, so that nobody accidently end a call by simply touching the cam key.


Quote:

Originally Posted by Mentalist Traceur (Post 849155)
Though honestly, if it were me, I would make it as customizable as possible from the beginning, so that the users could change which keys get mapped. .

Yeah that would be perfect.
Maybe double press a key could be a possibility.


All times are GMT. The time now is 11:39.

vBulletin® Version 3.8.8