dbus and system events - howto
Vladimir Grebenschikov
vova at fbsd.ru
Mon Jun 29 11:15:25 UTC 2009
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 at fbsd.ru
More information about the freebsd-mobile
mailing list