HAL fails to create battery and ac_adapter files
Sarah Sharp
sarah.a.sharp at intel.com
Thu Oct 11 13:32:31 PDT 2007
Greetings,
I'm running some HAL code on a Samsung Q1 Ultra, and it seems like HAL
isn't creating the battery and ac_adapter files. A search by
capabilities doesn't find them, and I don't get any events when I unplug
or replug in the AC adapter. I do get events when I unplug a USB mouse,
so I don't think it's my code. The code is attached, along with the
output. Any help debugging this would be appreciated.
This is actually a friend's machine, so I don't have direct access to
it. Responses from them could be slow, since they're in another time
zone.
Sarah Sharp
-------------- next part --------------
DBus initialized.
Initialized HAL callbacks.
handle event ppm.battery
handle event ppm.ac
HAL initialized.
Device removed, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0_logicaldev_input
Device removed, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0
Device removed, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial
Device removed, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_usbraw
Device added, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial
usb_device.num_interfaces = 1 = 0x1 (int)
usb_device.device_class = 0 = 0x0 (int)
usb_device.version = 2 (double)
linux.device_file = '/dev/2-2' (string)
usb_device.device_revision_bcd = 512 = 0x200 (int)
usb_device.version_bcd = 512 = 0x200 (int)
info.bus = 'usb_device' (string)
usb_device.device_subclass = 0 = 0x0 (int)
usb_device.speed_bcd = 336 = 0x150 (int)
usb_device.can_wake_up = true (bool)
usb_device.bus_number = 2 = 0x2 (int)
usb_device.configuration_value = 1 = 0x1 (int)
usb_device.product = 'USB Optical Mouse' (string)
usb_device.speed = 1.5 (double)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial' (string)
usb_device.max_power = 100 = 0x64 (int)
linux.subsystem = 'usb' (string)
usb_device.device_protocol = 0 = 0x0 (int)
info.vendor = 'Unknown (0x04b3)' (string)
info.subsystem = 'usb_device' (string)
usb_device.num_configurations = 1 = 0x1 (int)
info.product = 'USB Optical Mouse' (string)
linux.hotplug_type = 2 = 0x2 (int)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2' (string)
usb_device.vendor_id = 1203 = 0x4b3 (int)
usb_device.num_ports = 0 = 0x0 (int)
usb_device.is_self_powered = false (bool)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2' (string)
usb_device.product_id = 12556 = 0x310c (int)
info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_0' (string)
info.linux.driver = 'usb' (string)
usb_device.linux.device_number = 4 = 0x4 (int)
Device added, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0
usb.version_bcd = 512 = 0x200 (int)
usb.is_self_powered = false (bool)
usb.linux.device_number = 4 = 0x4 (int)
usb.product = 'USB HID Interface' (string)
usb.device_protocol = 0 = 0x0 (int)
linux.subsystem = 'usb' (string)
usb.device_revision_bcd = 512 = 0x200 (int)
info.product = 'USB HID Interface' (string)
usb.bus_number = 2 = 0x2 (int)
usb.interface.class = 3 = 0x3 (int)
usb.configuration_value = 1 = 0x1 (int)
info.linux.driver = 'usbhid' (string)
usb.num_interfaces = 1 = 0x1 (int)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial' (string)
usb.interface.subclass = 1 = 0x1 (int)
usb.num_configurations = 1 = 0x1 (int)
usb.device_subclass = 0 = 0x0 (int)
usb.version = 2 (double)
usb.vendor_id = 1203 = 0x4b3 (int)
info.subsystem = 'usb' (string)
usb.device_class = 0 = 0x0 (int)
usb.can_wake_up = true (bool)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0' (string)
usb.speed = 1.5 (double)
usb.num_ports = 0 = 0x0 (int)
usb.speed_bcd = 336 = 0x150 (int)
usb.max_power = 100 = 0x64 (int)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0' (string)
info.bus = 'usb' (string)
linux.hotplug_type = 2 = 0x2 (int)
usb.interface.number = 0 = 0x0 (int)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0' (string)
usb.product_id = 12556 = 0x310c (int)
usb.interface.protocol = 2 = 0x2 (int)
Device added, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_usbraw
linux.device_file = '/dev/bus/usb/002/004' (string)
usbraw.device = '/dev/bus/usb/002/004' (string)
info.capabilities = ['usbraw'] (string list)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_usbraw' (string)
linux.subsystem = 'usb_device' (string)
info.product = 'USB Raw Device Access' (string)
linux.hotplug_type = 2 = 0x2 (int)
linux.sysfs_path = '/sys/class/usb_device/usbdev2.4' (string)
info.category = 'usbraw' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial' (string)
Device added, printing characteristics:
device_id = /org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0_logicaldev_input
linux.device_file = '/dev/input/event2' (string)
input.product = 'USB Optical Mouse' (string)
info.capabilities = ['input', 'input.mouse'] (string list)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0_logicaldev_input' (string)
linux.subsystem = 'input' (string)
input.originating_device = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0' (string)
info.product = 'USB Optical Mouse' (string)
linux.hotplug_type = 2 = 0x2 (int)
linux.sysfs_path = '/sys/class/input/input11/event2' (string)
info.category = 'input' (string)
input.physical_device = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0' (string)
input.device = '/dev/input/event2' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4b3_310c_noserial_if0' (string)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal.c
Type: text/x-csrc
Size: 6859 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071011/d1bace49/attachment-0001.c
More information about the hal
mailing list