maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   USSD-widget after PR1.2 (https://talk.maemo.org/showthread.php?t=54047)

aeol 2010-05-27 12:27

USSD-widget after PR1.2
 
Before PR1.2 I used USSD widget to view my accont balance. It was silently updating its information once an hour and it suited me perfectly. But after the PR1.2 update every time USSD-widget makes a query, I have a pop-up on the screen. It is rather annoying. Does anyone know how to get rid of it? Perhaps there's a way to disable USSD back?

Cobra 2010-05-27 12:41

Re: USSD-widget after PR1.2
 
ussd works with regular phone now.

KiberGus 2010-05-27 13:17

Re: USSD-widget after PR1.2
 
II think, that this could be considered as a bug in their realization of ussd. I bet, that they don't have proper locking too.

aeol 2010-05-27 13:31

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by Cobra (Post 682647)
ussd works with regular phone now.

It works, but to make regular USSD query I need to open dialling pad, enter a number and wait for an answer. I prefer USSD-widget functionality: at any time I can check my balance just looking at the desktop.

KiberGus 2010-05-27 14:16

Re: USSD-widget after PR1.2
 
If you want normal USSD support, vote for this bug:
https://bugs.maemo.org/show_bug.cgi?id=10353

KiberGus 2010-05-27 16:12

Re: USSD-widget after PR1.2
 
Well, if nokia didn't implement anything to disable these boxes we can edit
usr/lib/librtcom-call-ui.so.0
and replace all com.nokia.csd.SS.USSD substrings with something like com.nokia.csd.SS.DSSU, this will break USSD support in 1.2, but we will not receive this annoying box any more. Next step would be add a small daemon, which would listen for com.nokia.csd.SS.USSD signals and emit com.nokia.csd.SS.DSSU signals only when we want it to do. This would fix nokia USSD implementation.
P.S. I hope, that there is a normal way to solve this issue.

KiberGus 2010-06-01 15:40

Re: USSD-widget after PR1.2
 
1 Attachment(s)
Here is specially broken librtcom. It segfaults, when tries to show message. rtcom-call-ui restarts automatically, so this is OK.
Replace you librtcom with this and break USSD implementation from nokia, so as not to be annoyed with their messages.

In SVN you can find qussd and ussdd.py, together tey replace nokia's ussd implementation. qussd is reimplementation of ussd-pad in QT. If QT for maemo didn't have silly limitation of 73px push button height, it would even look good.
ussdd.py handles incoming USSD sessions and, if nobody wants to handle them qussd is launched. So it allows to ented USSD queries from phone application too. It also allows to hadle network initiated USSD sessions.

https://garage.maemo.org/plugins/scm...ot=ussd-widget

Now I need to modify ussd-widget to work properly with ussdd.py and package all this stuff.

I would also appreciate, if anybody would suggest a way to calculate, how many users would use this implementation instead nokia's.

atikin 2010-06-02 14:29

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by KiberGus (Post 694062)
Here is specially broken librtcom...

I just did it. Being an old-time macuser, I could replace this lib. Quick after that I got a yellow banner saying something like "Internal error. Phone application will be closed" (in Russian).
Widget works perfectly as before PR1.2.

Quick dial *100# in the Phone dialpad brought no result at all. (expected outcome: This new modal window bringing the result of USSD query). It just shows up window "making a query" with yellow puck going left-right-left in the progress bar. And then it goes back as if I did no query at all.

Rebooting didn't help.

Is it OK? I would prefer the widget and an optional "manual" query in the dialpad to live separately and independently.

KiberGus 2010-06-02 18:50

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by atikin (Post 695895)
I just did it. Being an old-time macuser, I could replace this lib. Quick after that I got a yellow banner saying something like "Internal error. Phone application will be closed" (in Russian).
Widget works perfectly as before PR1.2.

Quick dial *100# in the Phone dialpad brought no result at all. (expected outcome: This new modal window bringing the result of USSD query). It just shows up window "making a query" with yellow puck going left-right-left in the progress bar. And then it goes back as if I did no query at all.

Rebooting didn't help.

Is it OK? I would prefer the widget and an optional "manual" query in the dialpad to live separately and independently.

It is too hard to change nokia's implementation. So there is no way to see pop-up dialogs, that were introduced in 1.2. But I've written application (currently it is named qussd and ussdd.py), which listens for incoming queries and shows up, when needed. If you install them, you would get ability to make queries through phone app again. Currently these applications are only in svn. I think you can expect them in extras-devel by the end of this week.

KiberGus 2010-06-10 16:53

Re: USSD-widget after PR1.2
 
First version of USSD4all for PR 1.2 is ready. You would get it if you update USSD-widget. This release allows you to get rid of pop-up messages. You still would be able to make queries through specialized application (qussd, remake of USSD-pad) and through phone application.
P.S. You need to remove USSD-pad. May be you need remove USSD-widget to update it too. It seems, that you need to reboot the phone after installation.

ceevee 2010-06-10 21:42

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by KiberGus (Post 709083)
May be you need remove USSD-widget to update it too. It seems, that you need to reboot the phone after installation.

I needed to uninstall the previous version, install, then reboot.

Trying to update would not work.

atikin 2010-06-11 08:46

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by KiberGus (Post 709083)
First version of USSD4all for PR 1.2 is ready...

It finally works! Dialing a query in the Phone app sends it to qussd. And the message shows up there. I had to reboot/delete/install both ussd widget and ussd4all couple of times to find it finally working. I guess I keep using the hacked librtcom-call-ui.so.0.0.0.

It's great! Thank you so much for the efforts!

If allowed a couple ideas for later developing: it would be nice to have ussd message in bigger letters and wrapped in the qussd window (now the right part of it hidden) and copy to clipboard function will be fun!

magullo 2010-06-11 09:09

Re: USSD-widget after PR1.2
 
It still doesn't show on any desktop. I removed previous version days ago, now I installed ex novo and rebooted, but still doesn't show on desktop.
Do I have to clear/remove config files or something similar?
Thanks

atikin 2010-06-11 10:08

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by magullo (Post 710076)
It still doesn't show on any desktop. I removed previous version days ago, now I installed ex novo and rebooted, but still doesn't show on desktop.
Do I have to clear/remove config files or something similar?
Thanks

I didn't change any config files. Just deinstalled both ussd widget and ussd4all and then reinstalled them back.

Well, two times, each time rebooting. After the first one it appeared (I forgot if I had to re-add it to the desktop) but released an error after each query.

KiberGus 2010-06-11 12:28

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by magullo (Post 710076)
It still doesn't show on any desktop. I removed previous version days ago, now I installed ex novo and rebooted, but still doesn't show on desktop.
Do I have to clear/remove config files or something similar?
Thanks

You can try deleting /home/user/.ussdWidget.conf
An you can try launching from console as described on http://kibergus.su/node/3 to see error messages.

magullo 2010-06-11 12:47

Re: USSD-widget after PR1.2
 
It looks like there's a problem connecting with DBUS:
process 2297: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using D-Bus library.
process 2297: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using D-Bus library.

Hope can help.

fpp 2010-06-11 12:47

Re: USSD-widget after PR1.2
 
Man, this update is HUGE for such a tiny widget ! :-)

KiberGus 2010-06-11 17:11

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by magullo (Post 710392)
It looks like there's a problem connecting with DBUS:
process 2297: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using D-Bus library.
process 2297: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using D-Bus library.

Hope can help.

Did ussdd start?
Code:

ps | grep ussd
Looks, that it is not started on some phones.

magullo 2010-06-11 18:34

Re: USSD-widget after PR1.2
 
nope,no daemon ussd.am i missing something?

KiberGus 2010-06-12 19:43

Re: USSD-widget after PR1.2
 
Looks like I've written wrong event.d file. Uncomment 3rd and 4th lines in /etc/event.d/ussd
Code:

start on XSESSIONS_STARTING
stop on stopped hal
respawn
respawn limit 15 3

script
        export DISPLAY=:0.0
        exec su user -c "run-standalone.sh /usr/bin/ussdd"&
        sleep 5
end script


ceevee 2010-06-14 02:02

Re: USSD-widget after PR1.2
 
I installed this on PR 1.2, and it works. Widget launches, and the #646# for T-Mobile USA minutes displays fine.

However, after rebooting the phone, it only errors. The widget launches, but it only displays error when requesting #646#.

Dialing #646# using the phone app worked fine before and after rebooting.

magullo 2010-06-14 11:17

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by KiberGus (Post 712398)
Looks like I've written wrong event.d file. Uncomment 3rd and 4th lines in /etc/event.d/ussd

I could not find ussd. Am I (again) missing something?
dpkg -l | grep ussd gives:
  • ussd-common 0.0.10-0
  • ussd-widget 0.1.7-0

Thanks.

JoHnY 2010-06-15 16:45

Re: USSD-widget after PR1.2
 
Hi,

I also had the same problem, ussdd was not running after phone restart, but when I edited /etc/event.d/ussdd, uncommented lines 3 and 4 and rebooted the phone, qussd application was spawning forever (I had like 30 of them) so I quickly had to comment these lines again and rebooted the phone.
When I manually start ussdd from terminal after reboot, the widget works though.
Any suggestions how to fix this?

Thanks.
JoHnY

arkanoid 2010-06-16 20:14

Re: USSD-widget after PR1.2
 
Everything worked until last reboot, now i get

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name su.kibergus.ussdd was not provided by any .service files

arkanoid 2010-06-16 20:17

Re: USSD-widget after PR1.2
 
(and seems that ussdd did not start. everything works since i started it manually)

arkanoid 2010-06-16 20:18

Re: USSD-widget after PR1.2
 
wait, no! i get pop-up window as it worked without the fix.

JoHnY 2010-06-16 20:18

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by arkanoid (Post 718122)
Everything worked until last reboot, now i get

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name su.kibergus.ussdd was not provided by any .service files

This is the same problem as I have... Temporary fix is to run ussdd manually from terminal:

PHP Code:

nohup /usr/bin/ussdd 

and it should work until next reboot.
However I would be interested in some regular fix, because editing /etc/event.d/ussdd as explained before does not work, it even causes other problem as I described.

magullo 2010-06-17 11:07

Re: USSD-widget after PR1.2
 
Which repository do you have enabled? It looks like mine is a repo problem, since I have only extras enabled.
Thanks.

JoHnY 2010-06-17 11:22

Re: USSD-widget after PR1.2
 
If it's a question for me, I have everything enabled, standard, testing and devel

magullo 2010-06-17 11:36

Re: USSD-widget after PR1.2
 
Probably it's ussd4all I am missing, but it's not in dependency informations for both ussd-common and ussd-widget.
Thanks

stantheboss 2010-06-17 12:47

Re: USSD-widget after PR1.2
 
Same here, after reboot: nohup /usr/bin/ussdd &
works as a workaround.

JoHnY 2010-06-18 08:12

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by magullo (Post 719066)
Probably it's ussd4all I am missing, but it's not in dependency informations for both ussd-common and ussd-widget.
Thanks

Hmm... Are you sure you have the latest ussd-widget? I remember that last time when ussd-widget was updated, it requested ussd4all to be installed. Although ussd4all was conflicting with something, so I had to force it to be installed, but other than that I had no problems with installation. Only that it does not work as expected :-)

JoHnY 2010-06-18 08:17

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by stantheboss (Post 719142)
Same here, after reboot: nohup /usr/bin/ussdd &
works as a workaround.

Did you also try editing the /etc/event.d/ussdd file as explained previously with the same result I had (qussd spawning forever)?
If you didn't and want to try it, it's better to have sshd running and log in via ssh to be able to kill it effectively and to edit /etc/event.d/ussdd to prevent further spawning of qussd :-) Otherwise you might need to remove the battery because the phone gets unresponsive

magullo 2010-06-18 08:41

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by JoHnY (Post 720206)
Hmm... Are you sure you have the latest ussd-widget?

ussd-common 0.0.10-0
ussd-widget 0.1.7-0

No ussd4all.
:confused:

arkanoid 2010-06-19 20:15

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by stantheboss (Post 719142)
Same here, after reboot: nohup /usr/bin/ussdd &
works as a workaround.

Not really works for me, it just reverts to pre-ussdd behavior (pop-up window). If i do not start ussdd i just get an error.

cross3131 2010-06-19 20:29

Re: USSD-widget after PR1.2
 
is there any solution to get rid of that pop-up screen of ussd-widget?

magullo 2010-06-21 15:44

Re: USSD-widget after PR1.2
 
Suddenly the widget popped up. I was changing desktop theme, and the widget appeared on desktop 1.
Strange enough, still no ussd file, and popup messages are still there.

atikin 2010-06-22 08:43

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by JoHnY (Post 718129)
...
PHP Code:

nohup /usr/bin/ussdd 

and it should work until next reboot.
However I would be interested in some regular fix, because editing /etc/event.d/ussdd as explained before does not work, it even causes other problem as I described.

Is there a way to make a script out of it so it is autoloaded after each reboot?

KiberGus 2010-06-23 14:00

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by atikin (Post 724630)
Is there a way to make a script out of it so it is autoloaded after each reboot?

Startup script was broken. Today new version with fixed script was released. It also includes new patcher from Dani Church, which can handle different versions of librtcom-call-ui. If you have version, which is not known to be patchable well you would get warning due installation and you would need to patch it yourself (using command shown on screen).

magullo 2010-06-23 14:34

Re: USSD-widget after PR1.2
 
Quote:

Originally Posted by KiberGus (Post 726350)
Startup script was broken. Today new version with fixed script was released. I.

Is it in the extras repo yet?
Thanks.


All times are GMT. The time now is 02:13.

vBulletin® Version 3.8.8