maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call (https://talk.maemo.org/showthread.php?t=46914)

jaeezzy 2010-03-22 11:34

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by qwerty12 (Post 576922)
Nah, you should be OK -- you don't appear to depend on any components that are new to PR 1.1.

Ok, I was just about to ask - then why couldn't I install the package from devel repo but again thought of giving it a try before I go ahead and now it worked :) despite the scary warning messages in the package page. Thanks nwz...

d-iivil 2010-03-22 11:57

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
I cannot upgrade to the latest version using app manager. Says just that package is damaged or something like that (I have finnish language in my device, so don't know the exact english translation).

Edit: from x-term I get size missmatch error.

jaeezzy 2010-03-22 12:42

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by D-Iivil (Post 576967)
I cannot upgrade to the latest version using app manager. Says just that package is damaged or something like that (I have finnish language in my device, so don't know the exact english translation).

Edit: from x-term I get size missmatch error.

I had the same problem when I tried to update via App Manager coz other times I was only using the local .deb files I have. However, as a final test I just installed V0.1-4 and again tried to update via App Manager and this time it worked and updated to V0.1-5 so you can give it a try (Click the "update" button in App Manager before just to be in the safe side as the problem I'm guessing (Can it be the reason?) is I uploaded the same 0.1-5 twice trying to include bug-tracker as well though it wasn't ready and its not showing anyway :D )

EDIT: Now its freaking me out. Tried again from App Manager and didn't work. However, from x-term "sudo apt-get install psswitcher" upgrades to newer one fine. Why not? Why? NWZ, I'll upload 0.1-6 and hopefully it will fix things.

ndi 2010-03-24 14:37

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
I'm up to 1.7 now and no more distance setting, no keyboard, grayed options... what's wrong?

MaltedVomit 2010-03-24 16:44

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
^^ same here.

jaeezzy 2010-03-24 22:21

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by ndi (Post 580392)
I'm up to 1.7 now and no more distance setting, no keyboard, grayed options... what's wrong?

Distance option didn't have to be there in the first place. I had mistaken it for proximity but actually it is for light sensor :D. However, had the result from setting the distance been the same throughout all circumstances which I mentioned earlier in this thread, I wouldn't have bothered to remove it at all, instead it would be cool but as it turned out rather irritating and pain esp using during night time, I had to get rid of it.
The reason to disable options are that using proximity and others - keyboard and cam key, at the same time will be a disaster coz when proximity is used as soon as you take phone away speakers will be on. Imagine yourself in the situation pressing camkey to turn off speakers but it turns on back again..
So you need to uncheck "Use Proximity" to enable both other options and just checking one of these(other) options will disable "Use Proximity" for the above reason.
Also, the "Open dashboard when turning on speakers" option will be disabled if no options/shortcuts to toggle speakers are selected coz it makes no sense without them.
Hope it clears out everything but if its some kinda bugs you are talking about then plz let me know what it is and how it occurs coz the bug tracking isn't working yet and I haven't heard anything from "Andrew" if he's incharge coz last time he contacted me for this matter.

bandora 2010-03-24 22:39

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Hey jaeezzy thanks for a wonderful application, but wouldn't it be easier to open a garage for this? And also upload it to Maemo Extra-devel or Extra-testing which ever it needs to be in? This would make it much easier to report a bug and also to obtain.. :D

And again, thanks for you efforts and for this application, will try to test it asap when I get the chance to! :D

efekt 2010-03-24 22:44

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Good job jaeezzy - great app! can I make a small suggestion for future versions? How about an option to override the automatic speaker turn-on?
Sometimes when I'm @ work in the office, when people call me and I answer it immediately turns the speaker on - so far, so good - sometimes that's really useful, but usually not while I'm at work which could sometimes disturbs others, even if its for a second 'till I put the phone to my ear...
I suggest a simple automatic-speaker-turn-on-override, like if I answer a call while the camera key is pressed, the speaker will not turn on by itself... I think this could be very useful, especially due to the fact that the camera key is no use while taking calls and because its very convenient to press and hold it while answering a call, because of its position and due to the fact that you usually answer a call in portrait mode...

Just a minor suggestion - and in the meanwhile, keep up the good work :)

MaltedVomit 2010-03-24 23:00

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by jaeezzy (Post 581119)
Distance option didn't have to be there in the first place. I had mistaken it for proximity but actually it is for light sensor :D. However, had the result from setting the distance been the same throughout all circumstances which I mentioned earlier in this thread, I wouldn't have bothered to remove it at all, instead it would be cool but as it turned out rather irritating and pain esp using during night time, I had to get rid of it.
The reason to disable options are that using proximity and others - keyboard and cam key, at the same time will be a disaster coz when proximity is used as soon as you take phone away speakers will be on. Imagine yourself in the situation pressing camkey to turn off speakers but it turns on back again..
So you need to uncheck "Use Proximity" to enable both other options and just checking one of these(other) options will disable "Use Proximity" for the above reason.
Also, the "Open dashboard when turning on speakers" option will be disabled if no options/shortcuts to toggle speakers are selected coz it makes no sense without them.
Hope it clears out everything but if its some kinda bugs you are talking about then plz let me know what it is and how it occurs coz the bug tracking isn't working yet and I haven't heard anything from "Andrew" if he's incharge coz last time he contacted me for this matter.

thanks, that makes sense. im trying to use the proximity only. when i first installed the default proximity setting had me having to smush the phone against my face for the speakers to turn off. i then set it to the higher setting and it made it so i could hold the phone comfortably to my ear to get the speakers to turn off. this seemed to work better for me. now without the settings it seems to be set to what the default was and im back to having to smush the phone against my face so i just disabled it all together. so that setting had some kind of effect. would it be possible to set the default to what ever the max was (40?)? it just seemed to work a lot better for me and now its just uncomfortable to use.

jaeezzy 2010-03-24 23:17

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
@bandora: Ya you can download the application from extras-devel but coz of the trouble one might get into for using extras-devel I've put it here as well coz I'm quite sure it won't do any such serious damage to N900. About the garage thing, I dont know I'ven't even thought of trying it as when I first tried uploading package it was couple extra steps for free package while not much for non-free so obviously chose the easier one :)

@efekt: ya you are right. I have thought of implementing this one: If one doesn't want the speakers on while using proximity(as its not required while using other two options) one will press the camkey while answering the call(it will kinda deactivate proximity) and if wants to activate back(I'm talking in one single conversation) one simply presses the camkey and take the phone away from ears and its back... However, I'm not sure how much interference its gonna have with shortcutd's long press action. nwz, 'll give it a try and update here.. any thoughts will be appreciated.. btw thanks for the feedback/suggestions..

jaeezzy 2010-03-24 23:38

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by MaltedVomit (Post 581167)
thanks, that makes sense. im trying to use the proximity only. when i first installed the default proximity setting had me having to smush the phone against my face for the speakers to turn off. i then set it to the higher setting and it made it so i could hold the phone comfortably to my ear to get the speakers to turn off. this seemed to work better for me. now without the settings it seems to be set to what the default was and im back to having to smush the phone against my face so i just disabled it all together. so that setting had some kind of effect. would it be possible to set the default to what ever the max was (40?)? it just seemed to work a lot better for me and now its just uncomfortable to use.

Now there's no any default settings at all its completely different way(and correct way I would say). Before I was using some numbers from a file updated as you move your device and trust me it was sooo inconsistent, even had different results while holding in different side of my head and at night time it wouldn't be on at all coz the value I was getting were '0' or lil bit
more. You can try yourself in x-term:

Previous Version used:
watch cat /sys/class/hwmon/hwmon1/device/adc0

Now I use:
watch cat /sys/bus/platform/devices/proximity/state

Pigro 2010-03-25 00:16

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by ndi (Post 580392)
I'm up to 1.7 now and no more distance setting, no keyboard, grayed options... what's wrong?

where is 1.7 located? The attachment on the first post is for 1.5, so I assume it is still the most current release?

also, I've checked many times and the app isn't available to download from extras-devel (for me anyway ... extras-devel enabled, searched for 'psswitcher', nothing found).

I had to download and install manually. Not a problem for me, but may be limiting take-up of the app if people can't find it where they expect it to be, so thought I'd let you know.

ps - glad you got the proximity/light thing sorted, I was just about to post a very puzzled query on the strange behaviour I was gettign in 1.4, it makes sense now :-)

jaeezzy 2010-03-25 00:32

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by Pigro (Post 581235)
where is 1.7 located? The attachment on the first post is for 1.5, so I assume it is still the most current release?

also, I've checked many times and the app isn't available to download from extras-devel (for me anyway ... extras-devel enabled, searched for 'psswitcher', nothing found).

I had to download and install manually. Not a problem for me, but may be limiting take-up of the app if people can't find it where they expect it to be, so thought I'd let you know.

ps - glad you got the proximity/light thing sorted, I was just about to post a very puzzled query on the strange behaviour I was gettign in 1.4, it makes sense now :-)

thats weird maybe if you are already using it you might check it in "Update" :D anyways, I'll update the #1 post with the current one.

EDIT: Done...

-miniME- 2010-03-25 18:43

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
suggestion - have a delay when turning on speaker. so that accidentally taking phone away from ear will not turn it on immediately - maybe some 50ms later.

ciao

hawaii 2010-03-25 23:43

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Suggestions - check bluetooth status. I use a set of A2DP BT headphones, sometimes a call comes in and I answer it with my headphones, sliding out the keyboard will swap it from the headset to the loudspeaker. Maybe a key that can be held while sliding it out to disable autoswitching?

deter3 2010-03-26 00:14

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
It's a really nice features !! Very handy !!! I am thinking about if I can end the call with long press camer key , why not andwer the phone by some hardware key instead of press "answer " on the touch screen . Some time , it's not so responsive .

Suggestion ---- A hardware key for answering the call

Thanks for the great job on this app !!!

jaeezzy 2010-03-26 04:08

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
miniME@ I'm not sure about the delay coz it will cut out words everytime switching speakers. However, it'll quickly switch back if you move close to ears ;) and if the place is not somewhere where other ppl gets disturbed it shouldn't matter and in such place, ATM I'm working on an option as suggested by "efekt" where you can deactivate proximity all together pressing camkey while answering the key. So, there'll be no fear of accidentally turning speakers on and later if you feel you want proximity back just pressing the camkey again will bring it back.

@hawaii: Thanks for that info coz as I've never used bluetooth headset it never came to my mind. Can you/anyone plz check the output of the following while bluetooth headset is used and while it's not and let me know coz I'm not sure how to check if the bluetooth headset is connected. Just type the following in the x-terminal and connect and disconnect bluetooth headset.

watch cat /sys/devices/platform/gpio-switch/headphone/state

OR

lshal -m

@deter3: I'm not sure what you mean by not responsive and I don't think thats required as for me I would like to answer the call by first seeing the caller and this time the quickest option is to press the GUI "Answer" key than some customized hardware key. However, I can have a look at implementing it coz having an option won't hurt ;)

-miniME- 2010-03-26 10:18

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
hi

i think it is still ok and worth considering - you will not loose words of conversation as the noise of the handset speaker is still loud enough !

sometimes during conversation it is too loud (imagine your boss yelling at you) and you like to hold the speaker some cm off the ear. then it immediately turns the speakers on and it is even more louder.

one other example - hold the phone at your right hand and sometimes the sensor is not close enough to the head to keep the loud-speaker off.
no problem with left/ear hand though !

ciao

-miniME- 2010-03-26 10:19

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
give me your address and i send you one bluetooth headset !

jaeezzy 2010-03-26 11:58

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by -miniME- (Post 582987)
give me your address and i send you one bluetooth headset !

do I get to choose?? :D

hawaii 2010-03-26 12:09

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
@jaeezzy;
from monitoring lshal, here's what a connect and disconnect looks like -

08:06:04.813: computer_logicaldev_input_1 added
08:06:23.737: computer_logicaldev_input_1 removed

and there is no change in the headphone/state file - it's always disconnected, so assume that's for the wired headset only.

I ran a diff of lshal and the only bits that change when connected and disconnected is this line;

udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'

First is connected, second is disconnected - so a simple sanity check for input_1 would suffice for NOT enabling the loudspeaker when the keyboard is slid open.

-miniME- 2010-03-26 12:29

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
hi

no - one type only - bh-208

ciao

Quote:

Originally Posted by jaeezzy (Post 583085)
do I get to choose?? :D


pillar 2010-03-26 12:31

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
+1 for a configurable delay on switching. For me a second or so would probably suffice.

+1 for recognizing the usage of bluetooth headset as well.

Good job and good suggestions.

ndi 2010-03-26 16:34

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by MaltedVomit (Post 581167)
when i first installed the default proximity setting had me having to smush the phone against my face for the speakers to turn off. i then set it to the higher setting and it made it so i could hold the phone comfortably to my ear to get the speakers to turn off. this seemed to work better for me.

I didn't want to say anything, but setting did something for me too, I ended up setting at some 20 or so. Maybe I'm just wrong.

Also, I hope one means 500 ms delay in popping speaker, not 50.

And finally, I think that popping keys shouldn't exclude proximity - if keyboard is open, I want speaker to work regardless, when closed, proximity. Keyboard should override sensor, not replace it, IMO.

Pigro 2010-03-26 16:38

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Pretty hard to use the keyboard when it's stuck to your cheek, though (even if you do manage to pop it) so proximity alone would still give the desired result?

EDIT - unless you accidently cover the proximity sensor when using the keyboard I suppose :-)

ndi 2010-03-26 16:48

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
That's the one, with the finger over the sensor. Happens by mistake, happens in car, etc. Popping the kbd ensures it doesn't blink on and off as I drive.

Also, the sensor isn't idiotproof. E.g., gets crazy from direct sunlight. Or rotating the phone with steering wheel. Or hair, if one has long hair and hols phone not at ear but not on table either, which is common in high-noise environment and if you are a girlfriend of a N900 owner :)

Also, my said gf also has small ears, and refuses to smoosh the phone against the face until red (which I do because I am willing to suffer for hi-tech stuff), so it goes speaker-phone-speaker as the hair moves by or she moves.

I vote for kbd override.

jdr93 2010-03-29 22:35

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
i like this project just the way it is pretty much, except when i use it in my car. my garmin gps and the n900 automatically connect when i get in the car, and the gps will answer a phone call automatically, but it seems as soon as the phone answers it switches the blue tooth feed to the n900 speakers and microphone. i can also dial a call from the garmin but as soon as the phone starts ringing it drops the garmin connection.

if the program would recognize the blue tooth connection as a top priority and not start the phone speakers i would be pretty happy. (of course holding the phone up to my head turns on the garmin again. so much for hands free.)

jaeezzy 2010-03-29 22:55

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by jdr93 (Post 587407)
i like this project just the way it is pretty much, except when i use it in my car. my garmin gps and the n900 automatically connect when i get in the car, and the gps will answer a phone call automatically, but it seems as soon as the phone answers it switches the blue tooth feed to the n900 speakers and microphone. i can also dial a call from the garmin but as soon as the phone starts ringing it drops the garmin connection.

if the program would recognize the blue tooth connection as a top priority and not start the phone speakers i would be pretty happy. (of course holding the phone up to my head turns on the garmin again. so much for hands free.)

I've just bought bluetooth headset from ebay to implement and test just that coz no hardware stores near the place I live have like one I'm looking for :D and plus added some more extra functions from the suggestions in previous posts so until the next release I'd suggest bluetooth users to disable by unchecking everything in settings or uninstall it completely.

Laughing Man 2010-03-31 02:17

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Does this conflict with shortcutd for anyone? Seems it doesn't work reliable when I use proximity sensor in this app.

Edit: hmm shortcutd works randomly.

jaeezzy 2010-03-31 23:34

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by Laughing Man (Post 589102)
Does this conflict with shortcutd for anyone? Seems it doesn't work reliable when I use proximity sensor in this app.

Edit: hmm shortcutd works randomly.

What made you think proximity isn't working reliably? Plz mention the problem.

Laughing Man 2010-04-01 00:15

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
When I'm not in a phone call, normally when I have my finger over the proximity sensor it triggers the dashboard (I have shortcutd set to trigger the dashboard). Sometimes I can get it to work, sometimes I can't.

Though I don't know if this is related to phone speaker switch, hence my post asking if anyone else using shortcutd for its proximity features has unreliable detection. Not sure if it's just my device or an actual conflict between the apps.

jaeezzy 2010-04-01 00:23

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Quote:

Originally Posted by Laughing Man (Post 590635)
When I'm not in a phone call, normally when I have my finger over the proximity sensor it triggers the dashboard (I have shortcutd set to trigger the dashboard). Sometimes I can get it to work, sometimes I can't.

Though I don't know if this is related to phone speaker switch, hence my post asking if anyone else using shortcutd for its proximity features has unreliable detection. Not sure if it's just my device or an actual conflict between the apps.

It shouldn't be due to this app coz it watches for proximity only when the phone state is active i.e. you are either making a call or talking on the phone and other times it only watches for the phone state and for the earphone state.

atz6975 2010-04-06 18:38

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Took me some time.
Indeed it is just fine as it is now, but for the bluetooth/headset priority.
I would also like to see bluetooth/headset keep priority over Switcher.
I can't believe how fast it reacts now as opposed to first or second version.

Little things that make life easier.
Thank you.

Laughing Man 2010-04-13 01:49

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
I second atz6975's request! I find myself having trouble with that issue earlier today. I had to turn the N900 upside down. :D

efekt 2010-04-18 11:41

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
I'm not quite sure anyone else is having this problem - I searched this thread and found nothing... When I answer a call, sometimes the call screen gets minimized and switch orientation to landscape mode. When my call is ended, I have to maximize the call window again and then wait another second or two in order it will switch back to portrait mode so I could press the "END" button...
Is there anything you can do about it jaeezzy? Maybe something is "stealing" the focus from the call screen, and forcing it to minimize?

hawaii 2010-04-18 12:20

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
You can enable the option to HOLD FOCUS to end call until this is looked at.

efekt 2010-04-18 12:23

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
how can I do that?

hawaii 2010-04-18 12:26

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Ensure you're using the newest release, find the PSS settings from the Settings menu at the bottom and enable it.

efekt 2010-04-18 12:44

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
Well I have the newest release (1.7) and I don't have this option in the PSS options at all...

hawaii 2010-04-18 14:11

Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
 
"Long press camera button to end call"

I made a mistake in the above post, it's not the focus, you have to fully depress the cam key.


All times are GMT. The time now is 05:49.

vBulletin® Version 3.8.8