Date: Tue, 23 Jun 2009 18:20:45 +0200 From: Lars Engels <lars.engels@0x20.net> To: vova@fbsd.ru Cc: gnome <gnome@freebsd.org>, mobile <mobile@freebsd.org> Subject: Re: dbus and system events - howto Message-ID: <20090623182045.7wu2p8zs0g88k8w0@0x20.net> In-Reply-To: <1245773234.11855.22.camel@localhost> References: <1245773234.11855.22.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed. --=_4smvp7t3kruo Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Vladimir Grebenschikov <vova@fbsd.ru>: > 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: > =09/usr/local/bin/dbus-send --system --type=3Dmethod_call =20 > --print-reply=3D1 =09=09--dest=3Dorg.freedesktop.PowerManagement =09=09--s= ession =20 > /org/freedesktop/PowerManagement/Backlight =20 > =09=09org.freedesktop.PowerManagement.Backlight.GetBrightness > > =09/usr/local/bin/dbus-send --system --type=3Dmethod_call =20 > --print-reply=3D1 =09=09--dest=3Dorg.freedesktop.PowerManagement =09=09--s= ession =20 > /org/freedesktop/PowerManagement/Backlight =20 > =09=09org.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 =20 shows any change to mixer volume via misc/xosd. --=_4smvp7t3kruo Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkpBAN0ACgkQKc512sD3afjXIgCgnfPvlKwWHi0RMMC62b5ASp5d wYoAniMIz2Kdt0ChvHtMBQgcifeUs4xE =K0T6 -----END PGP SIGNATURE----- --=_4smvp7t3kruo--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090623182045.7wu2p8zs0g88k8w0>