From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 23 16:07:19 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 DEB4F106566C; Tue, 23 Jun 2009 16:07:19 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 55FEE8FC15; Tue, 23 Jun 2009 16:07:18 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.24.11.59]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n5NG7FAH008825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jun 2009 20:07:16 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MJ8Wh-0004Eg-6b; Tue, 23 Jun 2009 20:07:15 +0400 From: Vladimir Grebenschikov To: gnome Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Tue, 23 Jun 2009 20:07:14 +0400 Message-Id: <1245773234.11855.22.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: mobile Subject: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru 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:07:20 -0000 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. -- Vladimir B. Grebenschikov vova@fbsd.ru