Re: dbus and system events - howto
Lars Engels <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <[email protected]> |
Quoting Vladimir Grebenschikov <[email protected]>: > Hi > > I am wandering is there "right" way to pass "system" events, like > brightness buttons, volume buttons reported with devd to gnome desktop > to: > 1. do appropriate changes (change volume, brightness, etc) > 2. show nice informational popup (with volume bar and so on) > ? > > Before I had simple script, called from devd, it configures system with > xbacklight, mixer and sysctl's, and shows something with onscreend > daemon. > > After Xorg update oscreend starts to freeze by some reason. So now I am > thinking about more "sane" way to link system events to gnome desktop. > > Also xbacklight now does not works with radeonhd again. > > So far I've dig for following dbus calls to manage brihgtness: > /usr/local/bin/dbus-send --system --type=method_call > --print-reply=1 --dest=org.freedesktop.PowerManagement --session > /org/freedesktop/PowerManagement/Backlight > org.freedesktop.PowerManagement.Backlight.GetBrightness > > /usr/local/bin/dbus-send --system --type=method_call > --print-reply=1 --dest=org.freedesktop.PowerManagement --session > /org/freedesktop/PowerManagement/Backlight > org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:$1 > > But, looks like they are not shows popup. > And I've not found simple solution about volume yet. > > Hints will be appreciated. > > PS: > Side question, can dbus work without DISPLAY and XAUTHORITY initialized ? > (system bus ?, but above calls requires them) > > PPS: > 8-CURRENT, Gnome, IBM T60. Just a side note: audio/osdmixer runs nicely in the background and shows any change to mixer volume via misc/xosd.
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkpBAN0ACgkQKc512sD3afjXIgCgnfPvlKwWHi0RMMC62b5ASp5d wYoAniMIz2Kdt0ChvHtMBQgcifeUs4xE =K0T6 -----END PGP SIGNATURE-----