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-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.


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

vBulletin® Version 3.8.8