Comment 3 for bug 230056

Revision history for this message
Aleks Krsch (akrsch) wrote : Re: Lock screen happens on Lid open, not Lid closed

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)