View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#16
Originally Posted by nicolai View Post
This is great, qwerty12. Any chance you can explain what are
these properties and why do you know this :-)
What are the properties? Well...

Event.id: http://0pointer.de/lennart/projects/...c10c01426a4fec

The reason why this one is special is because the Policy system will react to the event.id being set to "ringtone-preview":
Originally Posted by /usr/share/policy/etc/current/pulse/xpolicy.conf
[stream]
property = event.id@equals:"ringtone-preview"
group = player
So it sets the group to player:
[group]
name = player
flags = limit_volume, cork_stream
sink = sink.music
source = source.voice.raw
The player group is special because it lets you play sounds in the Silent profile. The Media Player also uses this group (search "mafw-dbus-wrapper" in the policy conf).

The media-stream-restore one? NFI. It's not needed to play sounds in Silent mode as is evidenced by the policy config. I also suspect it's rather useless without pa_ext_stream_restore2_write ()

How did I find out about the playbin2 stuff?

It was libcanberra that introduced me to properties. I found out that hildon_play_system_sound () (http://maemo.org/api_refs/5.0/5.0-fi...y-system-sound) would play sounds in Silent mode. Grabbed the libhildon source and the libcanberra source and looked at libcanberra's set of Maemo patches.

Heh, all that said, it finally came down to: strings, IDA Pro, http://meego.gitorious.org/maemo-mul...ode=sidebyside and /usr/lib/hildon-control-panel/libcpprofiles.so

https://bugs.maemo.org/show_bug.cgi?id=6694 is a fun read with me adding some entertainment by getting pissed off at Nokia's lack of communication

Originally Posted by nicolai View Post
btw, I just realized the status-menu icons aren't there until
you reboot your device.
I call gtk-update-iconcache in the install script, but it doesn't work.
Is there another way to make new icons visible without reboot?
gtk-update-icon-cache is a NOOP in PR 1.1. I have no possible solutions to your problem but I hear PR 1.2 won't have this problem...

Best regards,
Faheem

P.S. This [ProfilesX] really is wonderful stuff. Thanks for adding a feature Nokia wouldn't. I consider it to be a sign of laziness on Nokia's part when they add support for multiple profiles to their backend but not their frontend
 

The Following 6 Users Say Thank You to qwerty12 For This Useful Post: