From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 23 16:36:55 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F61C1065670; Tue, 23 Jun 2009 16:36:55 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC298FC1E; Tue, 23 Jun 2009 16:36:55 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id B445F3878C; Tue, 23 Jun 2009 18:20:45 +0200 (CEST) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Tue, 23 Jun 2009 18:20:45 +0200 Message-ID: <20090623182045.7wu2p8zs0g88k8w0@0x20.net> X-Priority: 3 (Normal) Date: Tue, 23 Jun 2009 18:20:45 +0200 From: Lars Engels To: vova@fbsd.ru References: <1245773234.11855.22.camel@localhost> In-Reply-To: <1245773234.11855.22.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_4smvp7t3kruo"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) Cc: gnome , mobile Subject: Re: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 16:36:56 -0000 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 : > 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--