Re: dbus and system events - howto
Vladimir Grebenschikov <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Organization | SWsoft |
| Message-ID | <1246273810.1745.28.camel__7112.05579941652$1246274150$gmane$org@localhost> |
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
[email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"