when lid is open: $ hal-device `hal-find-by-property --key button.type --string lid` udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' input.product = 'Lid Switch' (string) info.addons.singleton = { 'hald-addon-input' } (string list) linux.sysfs_path = '/sys/devices/virtual/input/input5/event5' (string) info.parent = '/org/freedesktop/Hal/devices/computer' (string) info.product = 'Lid Switch' (string) info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' (string) button.has_state = true (bool) button.type = 'lid' (string) linux.hotplug_type = 2 (0x2) (int) button.state.value = true (bool) linux.subsystem = 'input' (string) linux.device_file = '/dev/input/event5' (string) info.capabilities = { 'input', 'input.switch', 'button' } (string list) info.category = 'input' (string) input.device = '/dev/input/event5' (string)
when lid is closed: $ sleep 10; hal-device `hal-find-by-property --key button.type --string lid` udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' input.product = 'Lid Switch' (string) info.addons.singleton = { 'hald-addon-input' } (string list) linux.sysfs_path = '/sys/devices/virtual/input/input5/event5' (string) info.parent = '/org/freedesktop/Hal/devices/computer' (string) info.product = 'Lid Switch' (string) info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' (string) button.has_state = true (bool) button.type = 'lid' (string) linux.hotplug_type = 2 (0x2) (int) button.state.value = false (bool) linux.subsystem = 'input' (string) linux.device_file = '/dev/input/event5' (string) info.capabilities = { 'input', 'input.switch', 'button' } (string list) info.category = 'input' (string) input.device = '/dev/input/event5' (string)
when lid is open: by-property --key button.type --string lid` op/Hal/ devices/ computer_ logicaldev_ input_3' addons. singleton = { 'hald-addon-input' } (string list) virtual/ input/input5/ event5' (string) op/Hal/ devices/ computer' (string) op/Hal/ devices/ computer_ logicaldev_ input_3' (string) hotplug_ type = 2 (0x2) (int) state.value = true (bool)
$ hal-device `hal-find-
udi = '/org/freedeskt
input.product = 'Lid Switch' (string)
info.
linux.sysfs_path = '/sys/devices/
info.parent = '/org/freedeskt
info.product = 'Lid Switch' (string)
info.udi = '/org/freedeskt
button.has_state = true (bool)
button.type = 'lid' (string)
linux.
button.
linux.subsystem = 'input' (string)
linux.device_file = '/dev/input/event5' (string)
info.capabilities = { 'input', 'input.switch', 'button' } (string list)
info.category = 'input' (string)
input.device = '/dev/input/event5' (string)
when lid is closed: by-property --key button.type --string lid` op/Hal/ devices/ computer_ logicaldev_ input_3' addons. singleton = { 'hald-addon-input' } (string list) virtual/ input/input5/ event5' (string) op/Hal/ devices/ computer' (string) op/Hal/ devices/ computer_ logicaldev_ input_3' (string) hotplug_ type = 2 (0x2) (int) state.value = false (bool)
$ sleep 10; hal-device `hal-find-
udi = '/org/freedeskt
input.product = 'Lid Switch' (string)
info.
linux.sysfs_path = '/sys/devices/
info.parent = '/org/freedeskt
info.product = 'Lid Switch' (string)
info.udi = '/org/freedeskt
button.has_state = true (bool)
button.type = 'lid' (string)
linux.
button.
linux.subsystem = 'input' (string)
linux.device_file = '/dev/input/event5' (string)
info.capabilities = { 'input', 'input.switch', 'button' } (string list)
info.category = 'input' (string)
input.device = '/dev/input/event5' (string)