Mailing List Archive

Muting the ring tone on incoming call on N900
Hi!

I'm trying to build an application that mutes the ring tone that is played
when I receive a phone call. I have been browsing through the documentation
and trying to find the dbus call for this purpose using dbus-monitor, but up
til now, have had slim success.

Thus far I have tried the following:

I've tried to call the org.maemo.Playback.Manager
/org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestMute dbus
method with the argument set to true. I have read the documentation from
http://wiki.maemo.org/Dialer, and AFAIK it this should do just what I want.
However if I call that method, nothing happens. Here is the command I've
used:

dbus-send --session --type=method_call --print-reply
--dest=org.maemo.Playback.Manager /org/maemo/Playback/Manager
org.maemo.Playback.Manager.RequestMute boolean:true

Reply:
method return sender=:1.2 -> dest=:1.105 reply_serial=2

After trying the approach above I tried to find something by monitoring
dbus. I noticed that there is one interesting call made:

method call sender=:1.74 -> dest=com.nokia.HildonSVNotificationDaemon
serial=73 path=/com/nokia/HildonSVNotificationDaemon;
interface=com.nokia.HildonSVNotificationDaemon; member=StopEvent
int32 1

I tried to call this method with dbus-send, but it had no effect either.
Here's the dbus-send command I used:

dbus-send --session --type=method_call --print-reply
--dest=com.nokia.HildonSVNotificationDaemon
/com/nokia/HildonSVNotificationDaemon
com.nokia.HildonSVNotificationDaemon.StopEvent int32:1

Reply:
method return sender=:1.21 -> dest=:1.104 reply_serial=2

I have not found any other methods calls from the dbus-monitor logs and have
not got any further ideas on what to try. Has anyone been successful at
achieving this kind of behavior?

Cheers,
Miko Kiiski

--
View this message in context: http://maemo-community-mailing-lists.2589537.n2.nabble.com/Muting-the-ring-tone-on-incoming-call-on-N900-tp6724361p6724361.html
Sent from the maemo-developers mailing list archive at Nabble.com.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Muting the ring tone on incoming call on N900 [ In reply to ]
Hi,

the phone mutes the ringing if you turn it face down while it rings.
Maybe you can capture this action with the D-Bus monitor.


Martin


2011/8/25, Miko Kiiski <miko.kiiski@vincit.fi>:
> Hi!
>
> I'm trying to build an application that mutes the ring tone that is played
> when I receive a phone call. I have been browsing through the documentation
> and trying to find the dbus call for this purpose using dbus-monitor, but up
> til now, have had slim success.
>
> Thus far I have tried the following:
>
> I've tried to call the org.maemo.Playback.Manager
> /org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestMute dbus
> method with the argument set to true. I have read the documentation from
> http://wiki.maemo.org/Dialer, and AFAIK it this should do just what I want.
> However if I call that method, nothing happens. Here is the command I've
> used:
>
> dbus-send --session --type=method_call --print-reply
> --dest=org.maemo.Playback.Manager /org/maemo/Playback/Manager
> org.maemo.Playback.Manager.RequestMute boolean:true
>
> Reply:
> method return sender=:1.2 -> dest=:1.105 reply_serial=2
>
> After trying the approach above I tried to find something by monitoring
> dbus. I noticed that there is one interesting call made:
>
> method call sender=:1.74 -> dest=com.nokia.HildonSVNotificationDaemon
> serial=73 path=/com/nokia/HildonSVNotificationDaemon;
> interface=com.nokia.HildonSVNotificationDaemon; member=StopEvent
> int32 1
>
> I tried to call this method with dbus-send, but it had no effect either.
> Here's the dbus-send command I used:
>
> dbus-send --session --type=method_call --print-reply
> --dest=com.nokia.HildonSVNotificationDaemon
> /com/nokia/HildonSVNotificationDaemon
> com.nokia.HildonSVNotificationDaemon.StopEvent int32:1
>
> Reply:
> method return sender=:1.21 -> dest=:1.104 reply_serial=2
>
> I have not found any other methods calls from the dbus-monitor logs and have
> not got any further ideas on what to try. Has anyone been successful at
> achieving this kind of behavior?
>
> Cheers,
> Miko Kiiski
>
> --
> View this message in context:
> http://maemo-community-mailing-lists.2589537.n2.nabble.com/Muting-the-ring-tone-on-incoming-call-on-N900-tp6724361p6724361.html
> Sent from the maemo-developers mailing list archive at Nabble.com.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Muting the ring tone on incoming call on N900 [ In reply to ]
Hi,

Thanks for the reply!

I guess I was not clear enough in the original post, but the solution you
proposed is the one that I have been trying already. With that I found the
second method call mentioned in the first post, but calling it has no
effect.

Cheers,
Miko Kiiski

--
View this message in context: http://maemo-community-mailing-lists.2589537.n2.nabble.com/Muting-the-ring-tone-on-incoming-call-on-N900-tp6724361p6727597.html
Sent from the maemo-developers mailing list archive at Nabble.com.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers