From owner-freebsd-gnome@FreeBSD.ORG Mon Jun 29 11:15:12 2009 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04F84106571E; Mon, 29 Jun 2009 11:15:11 +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 024EC8FC17; Mon, 29 Jun 2009 11:15:10 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n5TBF7p6002990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Jun 2009 15:15:08 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MLEkU-00012Q-Mw; Mon, 29 Jun 2009 15:10:10 +0400 From: Vladimir Grebenschikov To: Joe Marcus Clarke In-Reply-To: <4A45450D.1040204@freebsd.org> References: <1245773234.11855.22.camel@localhost> <4A451FE9.60002@freebsd.org> <1246052273.2303.6.camel@localhost> <4A45450D.1040204@freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Mon, 29 Jun 2009 15:10:10 +0400 Message-Id: <1246273810.1745.28.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: gnome , mobile Subject: Re: dbus and system events - howto X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 11:15:25 -0000 On Fri, 2009-06-26 at 18:00 -0400, Joe Marcus Clarke wrote: > One thing you might do is use dbus-monitor to watch the session and > system buses. Then tie the volume actions to a usable key combination, > and see what evens are generated. I don't think any dbus events will be > generated for such events, but I could be wrong. On AC power disconnect brightness changed and popup with brightness bar percent shown. Just want to get same effect with notebook buttons. Looks like popup shown by gnome-power-manager. Monitor shows not events related to brightness - :( $ dbus-monitor --system signal sender=org.freedesktop.DBus -> dest=:1.50 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.50" signal sender=:1.1 -> dest=(null destination) serial=561 path=/org/freedesktop/Hal/devices/acpi_acad_0; interface=org.freedesktop.Hal.Device; member=PropertyModified int32 1 array [ struct { string "ac_adapter.present" boolean false boolean false } ] signal sender=org.freedesktop.DBus -> dest=(null destination) serial=7 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.51" string "" string ":1.51" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=8 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.51" string ":1.51" string "" signal sender=:1.1 -> dest=(null destination) serial=564 path=/org/freedesktop/Hal/devices/battery_0; interface=org.freedesktop.Hal.Device; member=PropertyModified int32 1 array [ struct { string "battery.voltage.current" boolean false boolean false } ] signal sender=:1.1 -> dest=(null destination) serial=565 path=/org/freedesktop/Hal/devices/battery_0; interface=org.freedesktop.Hal.Device; member=PropertyModified int32 1 array [ struct { string "battery.reporting.current" boolean false boolean false } ] signal sender=:1.1 -> dest=(null destination) serial=566 path=/org/freedesktop/Hal/devices/battery_0; interface=org.freedesktop.Hal.Device; member=PropertyModified int32 1 array [ struct { string "battery.charge_level.current" boolean false boolean false } ] signal sender=:1.1 -> dest=(null destination) serial=567 path=/org/freedesktop/Hal/devices/battery_0; interface=org.freedesktop.Hal.Device; member=PropertyModified int32 1 array [ struct { string "battery.rechargeable.is_discharging" boolean false boolean false } ] signal sender=:1.1 -> dest=(null destination) serial=568 path=/org/freedesktop/Hal/devices/battery_0; interface=org.freedesktop.Hal.Device; member=PropertyModified int32 1 array [ struct { string "battery.remaining_time" boolean false boolean true } ] signal sender=org.freedesktop.DBus -> dest=(null destination) serial=9 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.52" string "" string ":1.52" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=10 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.52" string ":1.52" string "" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=11 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.53" string "" string ":1.53" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=12 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.53" string ":1.53" string "" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=13 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.54" string "" string ":1.54" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=14 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.54" string ":1.54" string "" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=15 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.55" string "" string ":1.55" signal sender=org.freedesktop.DBus -> dest=(null destination) serial=16 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.55" string ":1.55" string "" ^C^C > Joe -- Vladimir B. Grebenschikov vova@fbsd.ru