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)

AlMehdi 2010-07-27 14:18

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

Originally Posted by jaeezzy (Post 766140)
PSSwitcher uses HAL to see any device added via UDI that gets registered and like mentioned earlier HAL is not registering any UDI for the connected device in some bt headset cases and I don't know how I can detect the connected device. Hopefully someone here can suggest something for this. I'm using S9 motorolla bt headset and UDI "/org/freedesktop/Hal/devices/computer_logicaldev_input_1" is registered when connected and this' how I'm getting it to work.

The easiest would be to write "dmesg" in terminal. You could test it with open and close the keyboard. Am not sure if bt will show upp there though. Another way would be to use "lshal |grep <device>". Am not sure what the device name would be. But if you try computer_logicaldev it will show a 0 or 1 if it is connected or not.

jaeezzy 2010-07-28 06:51

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
1 Attachment(s)
Quote:

Originally Posted by AlMehdi (Post 766518)
The easiest would be to write "dmesg" in terminal. You could test it with open and close the keyboard. Am not sure if bt will show upp there though. Another way would be to use "lshal |grep <device>". Am not sure what the device name would be. But if you try computer_logicaldev it will show a 0 or 1 if it is connected or not.

I haven't tried dmesg but hal was what I was using and for some others it wasn't suitable. However, I have switched to dbus signals listening as suggested by atunguyd and came up with this one, again it works here and hopefully it does for others too now :D Plz try and let me know. Thanks

atunguyd 2010-07-28 09:07

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
jaeezzy it works PERFECTLY!!!!

If I could I'd kiss you :D

As a matter of interest what dbus message are you listening for?

jaeezzy 2010-07-28 10:32

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

Originally Posted by atunguyd (Post 767512)
jaeezzy it works PERFECTLY!!!!

If I could I'd kiss you :D

As a matter of interest what dbus message are you listening for?

I wish you could ;)
Listening for system message was quite too much for me as the same message was emitted number of times with different arguments. So, I picked the easy one - session message, if I get 0 then bt is connected or if -1 then its disconnected :D

jaeezzy 2010-07-31 01:21

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
Just to give youse an update of the latest release. 0.2-3 is in devel and as always remember it's there to get tested and will soon push it to testing. I've uploaded the changelogs in the #1 post. Thanks

zlatokosi 2010-09-01 07:41

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
I'm having trouble uninstalling psswitcher, in x-term I get

dpkg: error processing psswitcher (--remove):
subprocess pre-removal script returned error exit status 1

Any ideas? Thanks.

jaeezzy 2010-09-01 07:59

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

Originally Posted by zlatokosi (Post 803953)
I'm having trouble uninstalling psswitcher, in x-term I get

dpkg: error processing psswitcher (--remove):
subprocess pre-removal script returned error exit status 1

Any ideas? Thanks.

May be try reinstalling and then uninstall again coz I'm not sure whats happening :(

sudo apt-get --reinstall install psswitcher

then

sudo dpkg -r psswitcher

ThePooBurner 2010-09-09 05:16

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

Originally Posted by jaeezzy (Post 803961)
May be try reinstalling and then uninstall again coz I'm not sure whats happening :(

sudo apt-get --reinstall install psswitcher

then

sudo dpkg -r psswitcher

I am having the same problem as the user to whom you just replied. Here is the feedback from the attempt to uninstall:

Code:

Nokia-N900:~# apt-get remove psswitcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  psswitcher
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 156kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 35211 files and directories currently installed.)
Removing psswitcher ...
dpkg: error processing psswitcher (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 psswitcher
E: Sub-process /usr/bin/dpkg returned an error code (1)

And here is the output when i try to reinstall:
Code:

Nokia-N900:~# apt-get --reinstall install psswitcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up psswitcher (0.2-3) ...
cp: cannot stat '/tmp/psswitcherd': No such file or directory
dpkg: error processing psswitcher (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 psswitcher
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any thoughts on how to fix it? I also have the problem that is is only half installed at the moment, so when i use it from the Settings menu and hit "save" i get the messages "failed to save the settings". Hence the reason for wanting to reinstall.

hawaii 2010-09-09 13:14

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
sudo dpkg --purge psswitcher

and post output.

ThePooBurner 2010-09-09 15:14

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

Originally Posted by hawaii (Post 811666)
sudo dpkg --purge psswitcher

and post output.

Code:

/home/user # dpkg --purge psswitcher
(Reading database ... 35218 files and directories currently installed.)
Removing psswitcher ...
dpkg: error processing psswitcher (--purge):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 psswitcher


jaeezzy 2010-09-10 04:51

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

Originally Posted by ThePooBurner (Post 811348)
I am having the same problem as the user to whom you just replied. Here is the feedback from the attempt to uninstall:

Code:

Nokia-N900:~# apt-get remove psswitcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  psswitcher
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 156kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 35211 files and directories currently installed.)
Removing psswitcher ...
dpkg: error processing psswitcher (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 psswitcher
E: Sub-process /usr/bin/dpkg returned an error code (1)

And here is the output when i try to reinstall:
Code:

Nokia-N900:~# apt-get --reinstall install psswitcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up psswitcher (0.2-3) ...
cp: cannot stat '/tmp/psswitcherd': No such file or directory
dpkg: error processing psswitcher (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 psswitcher
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any thoughts on how to fix it? I also have the problem that is is only half installed at the moment, so when i use it from the Settings menu and hit "save" i get the messages "failed to save the settings". Hence the reason for wanting to reinstall.

can you plz do:

sudo apt-get clean

before reinstalling.

ThePooBurner 2010-09-10 20:06

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

Originally Posted by jaeezzy (Post 812270)
can you plz do:

sudo apt-get clean

before reinstalling.

Result is the same despite the clean.

Code:

/home/user/ # apt-get --reinstall install psswitcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up psswitcher (0.2-3) ...
cp: cannot stat '/tmp/psswitcherd': No such file or directory
dpkg: error processing psswitcher (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 psswitcher
E: Sub-process /usr/bin/dpkg returned an error code (1)


jaeezzy 2010-09-13 02:19

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

Originally Posted by ThePooBurner (Post 812967)
Result is the same despite the clean.

Code:

/home/user/ # apt-get --reinstall install psswitcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up psswitcher (0.2-3) ...
cp: cannot stat '/tmp/psswitcherd': No such file or directory
dpkg: error processing psswitcher (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 psswitcher
E: Sub-process /usr/bin/dpkg returned an error code (1)


Hope this resolves the issue..

psswitcherd is supposed to be in /etc/event.d dir after the installation of the app. As it says the problem's in cp: /tmp/psswitcherd, can you plz do the following:

cp /etc/event.d/psswitcherd /tmp/

and then try reinstalling. If it still fails then you can go here and download the .deb file manually to your device then install this file.

sudo dpkg -i /path/to/file/psswitcher*

ThePooBurner 2010-09-14 00:23

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

Originally Posted by jaeezzy (Post 814551)
Hope this resolves the issue..

psswitcherd is supposed to be in /etc/event.d dir after the installation of the app. As it says the problem's in cp: /tmp/psswitcherd, can you plz do the following:

cp /etc/event.d/psswitcherd /tmp/

and then try reinstalling. If it still fails then you can go here and download the .deb file manually to your device then install this file.

sudo dpkg -i /path/to/file/psswitcher*

No such file or directory exists. Here is a find to show what i've got.

Code:

Nokia-N900:~# find / -iname '*psswitcher*'
/opt/usr/share/icons/hicolor/48x48/apps/PSSwitcher.png
/var/lib/dpkg/info/psswitcher.md5sums
/var/lib/dpkg/info/psswitcher.prerm
/var/lib/dpkg/info/psswitcher.postinst
/var/lib/dpkg/info/psswitcher.postrm
/var/lib/dpkg/info/psswitcher.list
/var/lib/dpkg/info/psswitcher.preinst
/usr/lib/hildon-control-panel/PSSwitcherplugin.so
/usr/sbin/PSSwitcher
/usr/share/applications/hildon-control-panel/PSSwitcherplugin.desktop
/home/opt/usr/share/icons/hicolor/48x48/apps/PSSwitcher.png
Nokia-N900:~#

So i've got the thingy in the settings/control panel, but when i use it it says that the settings weren't saved. I think the install never happened correctly initially (as it has never worked), but i didn't noticed because it was when i got a bunch of errors thanks to the pygame dependency debacle.

So with the above information, what course should i take? Should i just delete all the above files and try to install again from apt-get?

jaeezzy 2010-09-14 01:07

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

Originally Posted by ThePooBurner (Post 815358)
No such file or directory exists. Here is a find to show what i've got.

Code:

Nokia-N900:~# find / -iname '*psswitcher*'
/opt/usr/share/icons/hicolor/48x48/apps/PSSwitcher.png
/var/lib/dpkg/info/psswitcher.md5sums
/var/lib/dpkg/info/psswitcher.prerm
/var/lib/dpkg/info/psswitcher.postinst
/var/lib/dpkg/info/psswitcher.postrm
/var/lib/dpkg/info/psswitcher.list
/var/lib/dpkg/info/psswitcher.preinst
/usr/lib/hildon-control-panel/PSSwitcherplugin.so
/usr/sbin/PSSwitcher
/usr/share/applications/hildon-control-panel/PSSwitcherplugin.desktop
/home/opt/usr/share/icons/hicolor/48x48/apps/PSSwitcher.png
Nokia-N900:~#

So i've got the thingy in the settings/control panel, but when i use it it says that the settings weren't saved. I think the install never happened correctly initially (as it has never worked), but i didn't noticed because it was when i got a bunch of errors thanks to the pygame dependency debacle.

So with the above information, what course should i take? Should i just delete all the above files and try to install again from apt-get?

Downloading the .deb from the link I posted before this and installing manually from x-term like I mentioned in the same post should override everything and hence solve the problem. Did you try like that?

SavageD 2010-09-14 01:26

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
Hi there just wanted to say that this is a very useful application. I really do enjoy and appreciate it :D. However I have just two feature requests if possible.

Could the power buttons also be an option to answer calls?

Also could there be an option like proximity sensor to answer calls?

For example Phone rings, you place the phone to your ear and call is answered. Sounds a little hard I know because the phone maybe in the pocket at one time and the call maybe answered by accident, but just asking.

jaeezzy 2010-09-14 02:22

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

Originally Posted by SavageD (Post 815369)
Hi there just wanted to say that this is a very useful application. I really do enjoy and appreciate it :D. However I have just two feature requests if possible.

Could the power buttons also be an option to answer calls?

Also could there be an option like proximity sensor to answer calls?

For example Phone rings, you place the phone to your ear and call is answered. Sounds a little hard I know because the phone maybe in the pocket at one time and the call maybe answered by accident, but just asking.

For feature 1 the problem is it has its own dropdown menu and it'll actually be a hastle unless someone can tell how I can disable it as this is what I'd thought before.
For feature 2 you presented the problem yourself ;)

SavageD 2010-09-14 03:00

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

Originally Posted by jaeezzy (Post 815379)
For feature 1 the problem is it has its own dropdown menu and it'll actually be a hastle unless someone can tell how I can disable it as this is what I'd thought before.
For feature 2 you presented the problem yourself ;)

lol, thank you for the reply :).

ThePooBurner 2010-09-20 14:59

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

Originally Posted by jaeezzy (Post 815364)
Downloading the .deb from the link I posted before this and installing manually from x-term like I mentioned in the same post should override everything and hence solve the problem. Did you try like that?

I took the route that i asked about. I just deleted every file that showed up with the find and then did an apt-get --reinstall (since it thought it was installed) and it redownloaded the package and installed sucessfully.

shazosbourne 2010-09-28 07:21

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
I have this odd bug where, when I answer a call the phone app minimises and rotates to landscape. Is there a fix for this?

Cool app, just annoying to have to bring the phone app back to full screen. I would rather it stay full screen.

kamil365 2010-09-28 08:04

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
disable in options "open dashboard when..." :)

tmarinos 2010-09-28 10:12

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
Very nice app. Thanks.

pedro-25 2011-01-10 14:46

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
is there any way i could edit this app so as when i answer a call without the kyboard being open it goes straight on to loud speaker? my speaker is broke & i can only talk to people on loud speaker & i get on ok using this app with the keyboard open & it goes straight on to loud speaker but sometimes it would be easier if i could just answer the phone normal with keyboard closed & my phone be straight on loud speaker!

menno 2011-01-10 17:20

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

Originally Posted by shazosbourne (Post 828127)
I have this odd bug where, when I answer a call the phone app minimises and rotates to landscape. Is there a fix for this?

Cool app, just annoying to have to bring the phone app back to full screen. I would rather it stay full screen.

I also have this happening. Anyone have a fix for this?

Oops, just noticed the answer was:

"disable in options "open dashboard when..."

ndi 2011-01-11 12:18

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

Originally Posted by pedro-25 (Post 916884)
is there any way i could edit this app so as when i answer a call without the kyboard being open it goes straight on to loud speaker? my speaker is broke & i can only talk to people on loud speaker & i get on ok using this app with the keyboard open & it goes straight on to loud speaker but sometimes it would be easier if i could just answer the phone normal with keyboard closed & my phone be straight on loud speaker!

Your proximity sensor determines the speaker. When I answer, it goes speaker immediately. Perhaps there's a problem there?

After answering, if you cover and uncover sensor, does it go to speaker after blinking the screen?

Pigro 2011-01-11 12:47

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

Originally Posted by ndi (Post 917732)
Your proximity sensor determines the speaker. When I answer, it goes speaker immediately.

yep, same here. Either the proximity sensor is malfunctioning or (more likely) he has unchecked "use proximity sensor" from the tools/settings?

matimilko 2011-11-09 11:43

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
Good application!

Can be ported to N9 PLEASE!!!

Thanks,
Milko

matimilko 2011-11-09 11:44

Phone Speakers Switcher - on N9
 
Good application!

Can be ported to N9 PLEASE!!!

Thanks,
Milko

F2thaK 2011-11-09 11:48

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
what he said ^^^ (twice)

please :)

bingomion 2012-06-23 22:27

Re: [ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
 
Does anyone know where the src is ?
I too want to set speakers on as default.


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

vBulletin® Version 3.8.8