The Following User Says Thank You to happosai For This Useful Post: | ||
![]() |
2013-03-13
, 17:14
|
|
Posts: 10 |
Thanked: 7 times |
Joined on Mar 2013
@ UK
|
#2
|
dbus-monitor interface=com.nokia.HildonSVNotificationDaemon
method call sender=:1.32 -> dest=com.nokia.HildonSVNotificationDaemon serial=694 path=/com/nokia/HildonSVNotificationDaemon; interface=com.nokia.HildonSVNotificationDaemon; member=PlayEvent array [ dict entry( string "urgency" variant byte 1 ) dict entry( string "vibra" variant string "PatternIncomingMessage" ) dict entry( string "sound-file" variant string "messaging_and_title_3" ) dict entry( string "category" variant string "sms-message" ) dict entry( string "persistent" variant byte 1 ) dict entry( string "time" variant int64 1363190279 ) ] string ":1.25"
![]() |
2013-03-13
, 17:55
|
|
Posts: 1,455 |
Thanked: 3,309 times |
Joined on Dec 2009
@ Rochester, NY
|
#3
|
I've looked more into implementing this via D-Bus (not something I have much experience with).
The Following 2 Users Say Thank You to woody14619 For This Useful Post: | ||
![]() |
2013-03-13
, 18:47
|
Posts: 189 |
Thanked: 171 times |
Joined on Jul 2011
|
#4
|
It looks like you've found 90% of what you need to do this. While I'm not 100% up to snuff on D-bus either, I do have one pointer for you that may be interesting as an option: Queen BeeCon Widget has D-Bus trigger-able support.
This would allow you to have say an on-desktop widget (or even one per desktop) that would activate when a text starts, and if pressed could send the corresponding stop command? An app would probably be better/faster, but given this as a tool, it could at least be used to quickly test your theory and act as a fill-in until something permanent comes along.
![]() |
2013-03-13
, 21:20
|
|
Posts: 10 |
Thanked: 7 times |
Joined on Mar 2013
@ UK
|
#5
|
![]() |
2013-03-13
, 23:03
|
|
Posts: 10 |
Thanked: 7 times |
Joined on Mar 2013
@ UK
|
#6
|
method return sender=:1.21 -> dest=1.32 reply_serial=694 int32 <ID VALUE>
![]() |
2013-03-14
, 04:17
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#7
|
The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2013-03-14
, 09:56
|
|
Posts: 10 |
Thanked: 7 times |
Joined on Mar 2013
@ UK
|
#8
|
![]() |
2013-03-14
, 18:39
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#9
|
amixer -c0 cset numid=ID VALUE
![]() |
2013-03-14
, 19:58
|
|
Posts: 10 |
Thanked: 7 times |
Joined on Mar 2013
@ UK
|
#10
|
Sometimes, however, I would like to be able to manually silence the alert rather than letting it playing all the way through, e.g. when the 'phone is close by, I'm in a quiet public area, etc.
On previous Nokia smartphones I've owned, I could do this simply by pressing a button, sliding the unlock switch, tapping the screen, etc. This meant that I could quickly silence an alert without even taking the 'phone out of my pocket.
On my N900, however, the only way I've found to silence an SMS alert is to open the incoming text message, which can take several seconds to do when the handset is locked and in my pocket (and means making even more noise by taking the 'phone out).
Flipping the handset over doesn't appear to silence SMS alerts, as it does for incoming calls or alarms.
Does anyone know if there is an existing way to quickly silence SMS alerts on the N900, or if it would be possible to create a D-Bus script to do this that triggers on pressing the power button or sliding the unlock switch (I would try creating this myself, but don't know what I would have to do to stop a currently-playing alert)?
[Happosai]