Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2009 15:10:10 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Joe Marcus Clarke <marcus@freebsd.org>
Cc:        gnome <gnome@freebsd.org>, mobile <mobile@freebsd.org>
Subject:   Re: dbus and system events - howto
Message-ID:  <1246273810.1745.28.camel@localhost>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1246273810.1745.28.camel>