Here are my lshal before and after hibernation. I unplugged while hibernated and after wakeup it still says plugged-in.
And here is the diff for quick check (diff before after):
39a40,84 > udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' > info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' (string) > input.product = 'Lid Switch' (string) > info.product = 'Lid Switch' (string) > linux.device_file = '/dev/input/event6' (string) > linux.subsystem = 'input' (string) > linux.hotplug_type = 2 (0x2) (int) > input.device = '/dev/input/event6' (string) > info.capabilities = {'input'} (string list) > info.category = 'input' (string) > info.parent = '/org/freedesktop/Hal/devices/computer' (string) > linux.sysfs_path = '/sys/class/input/input11/event6' (string) > > udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' > info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' (string) > button.has_state = false (bool) > button.type = '' (string) > info.addons = {'hald-addon-keyboard'} (string list) > input.product = 'Power Button (FF)' (string) > info.product = 'Power Button (FF)' (string) > linux.device_file = '/dev/input/event5' (string) > linux.subsystem = 'input' (string) > linux.hotplug_type = 2 (0x2) (int) > input.device = '/dev/input/event5' (string) > info.capabilities = {'input', 'input.keyboard', 'button'} (string list) > info.category = 'input' (string) > info.parent = '/org/freedesktop/Hal/devices/computer' (string) > linux.sysfs_path = '/sys/class/input/input10/event5' (string) > > udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' > info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' (string) > button.has_state = false (bool) > button.type = '' (string) > info.addons = {'hald-addon-keyboard'} (string list) > input.product = 'Power Button (CM)' (string) > info.product = 'Power Button (CM)' (string) > linux.device_file = '/dev/input/event7' (string) > linux.subsystem = 'input' (string) > linux.hotplug_type = 2 (0x2) (int) > input.device = '/dev/input/event7' (string) > info.capabilities = {'input', 'input.keyboard', 'button'} (string list) > info.category = 'input' (string) > info.parent = '/org/freedesktop/Hal/devices/computer' (string) > linux.sysfs_path = '/sys/class/input/input12/event7' (string) > 236,280d280 < udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' < info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' (string) < button.has_state = false (bool) < button.type = '' (string) < info.addons = {'hald-addon-keyboard'} (string list) < input.product = 'Power Button (CM)' (string) < info.product = 'Power Button (CM)' (string) < linux.device_file = '/dev/input/event7' (string) < linux.subsystem = 'input' (string) < linux.hotplug_type = 2 (0x2) (int) < input.device = '/dev/input/event7' (string) < info.capabilities = {'input', 'input.keyboard', 'button'} (string list) < info.category = 'input' (string) < info.parent = '/org/freedesktop/Hal/devices/computer' (string) < linux.sysfs_path = '/sys/class/input/input7/event7' (string) < < udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' < info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' (string) < input.product = 'Lid Switch' (string) < info.product = 'Lid Switch' (string) < linux.device_file = '/dev/input/event6' (string) < linux.subsystem = 'input' (string) < linux.hotplug_type = 2 (0x2) (int) < input.device = '/dev/input/event6' (string) < info.capabilities = {'input'} (string list) < info.category = 'input' (string) < info.parent = '/org/freedesktop/Hal/devices/computer' (string) < linux.sysfs_path = '/sys/class/input/input6/event6' (string) < < udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' < info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' (string) < button.has_state = false (bool) < button.type = '' (string) < info.addons = {'hald-addon-keyboard'} (string list) < input.product = 'Power Button (FF)' (string) < info.product = 'Power Button (FF)' (string) < linux.device_file = '/dev/input/event5' (string) < linux.subsystem = 'input' (string) < linux.hotplug_type = 2 (0x2) (int) < input.device = '/dev/input/event5' (string) < info.capabilities = {'input', 'input.keyboard', 'button'} (string list) < info.category = 'input' (string) < info.parent = '/org/freedesktop/Hal/devices/computer' (string) < linux.sysfs_path = '/sys/class/input/input5/event5' (string) < 1372c1372 < net.linux.ifindex = 2 (0x2) (int) --- > net.linux.ifindex = 3 (0x3) (int) 1657c1657 < usb_device.linux.device_number = 2 (0x2) (int) --- > usb_device.linux.device_number = 3 (0x3) (int) 1682c1682 < linux.device_file = '/dev/bus/usb/003/002' (string) --- > linux.device_file = '/dev/bus/usb/003/003' (string) 1685c1685 < usbraw.device = '/dev/bus/usb/003/002' (string) --- > usbraw.device = '/dev/bus/usb/003/003' (string) 1690c1690 < linux.sysfs_path = '/sys/class/usb_device/usbdev3.2' (string) --- > linux.sysfs_path = '/sys/class/usb_device/usbdev3.3' (string) 1716c1716 < usb.linux.device_number = 2 (0x2) (int) --- > usb.linux.device_number = 3 (0x3) (int) 1739c1739 < linux.sysfs_path = '/sys/class/input/input8/event8' (string) --- > linux.sysfs_path = '/sys/class/input/input9/event8' (string) 1846,1857d1845 < udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_usbraw' < info.udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_usbraw' (string) < linux.device_file = '/dev/bus/usb/002/001' (string) < linux.subsystem = 'usb_device' (string) < linux.hotplug_type = 2 (0x2) (int) < usbraw.device = '/dev/bus/usb/002/001' (string) < info.product = 'USB Raw Device Access' (string) < info.capabilities = {'usbraw'} (string list) < info.category = 'usbraw' (string) < info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string) < linux.sysfs_path = '/sys/class/usb_device/usbdev2.1' (string) < 1867c1855 < usb_device.linux.device_number = 3 (0x3) (int) --- > usb_device.linux.device_number = 4 (0x4) (int) 1892c1880 < linux.device_file = '/dev/bus/usb/002/003' (string) --- > linux.device_file = '/dev/bus/usb/002/004' (string) 1895c1883 < usbraw.device = '/dev/bus/usb/002/003' (string) --- > usbraw.device = '/dev/bus/usb/002/004' (string) 1900c1888 < linux.sysfs_path = '/sys/class/usb_device/usbdev2.3' (string) --- > linux.sysfs_path = '/sys/class/usb_device/usbdev2.4' (string) 1925c1913 < usb.linux.device_number = 3 (0x3) (int) --- > usb.linux.device_number = 4 (0x4) (int) 1935a1924,1935 > udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_usbraw' > info.udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_usbraw' (string) > linux.device_file = '/dev/bus/usb/002/001' (string) > linux.subsystem = 'usb_device' (string) > linux.hotplug_type = 2 (0x2) (int) > usbraw.device = '/dev/bus/usb/002/001' (string) > info.product = 'USB Raw Device Access' (string) > info.capabilities = {'usbraw'} (string list) > info.category = 'usbraw' (string) > info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string) > linux.sysfs_path = '/sys/class/usb_device/usbdev2.1' (string) >
Here are my lshal before and after hibernation. I unplugged while hibernated
and after wakeup it still says plugged-in.
And here is the diff for quick check (diff before after):
39a40,84 op/Hal/ devices/ computer_ logicaldev_ input_3' op/Hal/ devices/ computer_ logicaldev_ input_3' op/Hal/ devices/ computer' (string) input/input11/ event6' (string) op/Hal/ devices/ computer_ logicaldev_ input_2' op/Hal/ devices/ computer_ logicaldev_ input_2' addon-keyboard' } (string list) op/Hal/ devices/ computer' (string) input/input10/ event5' (string) op/Hal/ devices/ computer_ logicaldev_ input_1' op/Hal/ devices/ computer_ logicaldev_ input_1' addon-keyboard' } (string list) op/Hal/ devices/ computer' (string) input/input12/ event7' (string) op/Hal/ devices/ computer_ logicaldev_ input_3' op/Hal/ devices/ computer_ logicaldev_ input_3' addon-keyboard' } (string list) op/Hal/ devices/ computer' (string) input/input7/ event7' (string) op/Hal/ devices/ computer_ logicaldev_ input_2' op/Hal/ devices/ computer_ logicaldev_ input_2' op/Hal/ devices/ computer' (string) input/input6/ event6' (string) op/Hal/ devices/ computer_ logicaldev_ input_1' op/Hal/ devices/ computer_ logicaldev_ input_1' addon-keyboard' } (string list) op/Hal/ devices/ computer' (string) input/input5/ event5' (string) linux.device_ number = 2 (0x2) (int) linux.device_ number = 3 (0x3) (int) usb/003/ 002' (string) usb/003/ 003' (string) usb/003/ 002' (string) usb/003/ 003' (string) usb_device/ usbdev3. 2' (string) usb_device/ usbdev3. 3' (string) device_ number = 2 (0x2) (int) device_ number = 3 (0x3) (int) input/input8/ event8' (string) input/input9/ event8' (string) op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1_ usbraw' op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1_ usbraw' (string) usb/002/ 001' (string) usb/002/ 001' (string) op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1' (string) usb_device/ usbdev2. 1' (string) linux.device_ number = 3 (0x3) (int) linux.device_ number = 4 (0x4) (int) usb/002/ 003' (string) usb/002/ 004' (string) usb/002/ 003' (string) usb/002/ 004' (string) usb_device/ usbdev2. 3' (string) usb_device/ usbdev2. 4' (string) device_ number = 3 (0x3) (int) device_ number = 4 (0x4) (int) op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1_ usbraw' op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1_ usbraw' (string) usb/002/ 001' (string) usb/002/ 001' (string) op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1' (string) usb_device/ usbdev2. 1' (string)
> udi = '/org/freedeskt
> info.udi = '/org/freedeskt
(string)
> input.product = 'Lid Switch' (string)
> info.product = 'Lid Switch' (string)
> linux.device_file = '/dev/input/event6' (string)
> linux.subsystem = 'input' (string)
> linux.hotplug_type = 2 (0x2) (int)
> input.device = '/dev/input/event6' (string)
> info.capabilities = {'input'} (string list)
> info.category = 'input' (string)
> info.parent = '/org/freedeskt
> linux.sysfs_path = '/sys/class/
>
> udi = '/org/freedeskt
> info.udi = '/org/freedeskt
(string)
> button.has_state = false (bool)
> button.type = '' (string)
> info.addons = {'hald-
> input.product = 'Power Button (FF)' (string)
> info.product = 'Power Button (FF)' (string)
> linux.device_file = '/dev/input/event5' (string)
> linux.subsystem = 'input' (string)
> linux.hotplug_type = 2 (0x2) (int)
> input.device = '/dev/input/event5' (string)
> info.capabilities = {'input', 'input.keyboard', 'button'} (string list)
> info.category = 'input' (string)
> info.parent = '/org/freedeskt
> linux.sysfs_path = '/sys/class/
>
> udi = '/org/freedeskt
> info.udi = '/org/freedeskt
(string)
> button.has_state = false (bool)
> button.type = '' (string)
> info.addons = {'hald-
> input.product = 'Power Button (CM)' (string)
> info.product = 'Power Button (CM)' (string)
> linux.device_file = '/dev/input/event7' (string)
> linux.subsystem = 'input' (string)
> linux.hotplug_type = 2 (0x2) (int)
> input.device = '/dev/input/event7' (string)
> info.capabilities = {'input', 'input.keyboard', 'button'} (string list)
> info.category = 'input' (string)
> info.parent = '/org/freedeskt
> linux.sysfs_path = '/sys/class/
>
236,280d280
< udi = '/org/freedeskt
< info.udi = '/org/freedeskt
(string)
< button.has_state = false (bool)
< button.type = '' (string)
< info.addons = {'hald-
< input.product = 'Power Button (CM)' (string)
< info.product = 'Power Button (CM)' (string)
< linux.device_file = '/dev/input/event7' (string)
< linux.subsystem = 'input' (string)
< linux.hotplug_type = 2 (0x2) (int)
< input.device = '/dev/input/event7' (string)
< info.capabilities = {'input', 'input.keyboard', 'button'} (string list)
< info.category = 'input' (string)
< info.parent = '/org/freedeskt
< linux.sysfs_path = '/sys/class/
<
< udi = '/org/freedeskt
< info.udi = '/org/freedeskt
(string)
< input.product = 'Lid Switch' (string)
< info.product = 'Lid Switch' (string)
< linux.device_file = '/dev/input/event6' (string)
< linux.subsystem = 'input' (string)
< linux.hotplug_type = 2 (0x2) (int)
< input.device = '/dev/input/event6' (string)
< info.capabilities = {'input'} (string list)
< info.category = 'input' (string)
< info.parent = '/org/freedeskt
< linux.sysfs_path = '/sys/class/
<
< udi = '/org/freedeskt
< info.udi = '/org/freedeskt
(string)
< button.has_state = false (bool)
< button.type = '' (string)
< info.addons = {'hald-
< input.product = 'Power Button (FF)' (string)
< info.product = 'Power Button (FF)' (string)
< linux.device_file = '/dev/input/event5' (string)
< linux.subsystem = 'input' (string)
< linux.hotplug_type = 2 (0x2) (int)
< input.device = '/dev/input/event5' (string)
< info.capabilities = {'input', 'input.keyboard', 'button'} (string list)
< info.category = 'input' (string)
< info.parent = '/org/freedeskt
< linux.sysfs_path = '/sys/class/
<
1372c1372
< net.linux.ifindex = 2 (0x2) (int)
---
> net.linux.ifindex = 3 (0x3) (int)
1657c1657
< usb_device.
---
> usb_device.
1682c1682
< linux.device_file = '/dev/bus/
---
> linux.device_file = '/dev/bus/
1685c1685
< usbraw.device = '/dev/bus/
---
> usbraw.device = '/dev/bus/
1690c1690
< linux.sysfs_path = '/sys/class/
---
> linux.sysfs_path = '/sys/class/
1716c1716
< usb.linux.
---
> usb.linux.
1739c1739
< linux.sysfs_path = '/sys/class/
---
> linux.sysfs_path = '/sys/class/
1846,1857d1845
< udi = '/org/freedeskt
< info.udi =
'/org/freedeskt
< linux.device_file = '/dev/bus/
< linux.subsystem = 'usb_device' (string)
< linux.hotplug_type = 2 (0x2) (int)
< usbraw.device = '/dev/bus/
< info.product = 'USB Raw Device Access' (string)
< info.capabilities = {'usbraw'} (string list)
< info.category = 'usbraw' (string)
< info.parent =
'/org/freedeskt
< linux.sysfs_path = '/sys/class/
<
1867c1855
< usb_device.
---
> usb_device.
1892c1880
< linux.device_file = '/dev/bus/
---
> linux.device_file = '/dev/bus/
1895c1883
< usbraw.device = '/dev/bus/
---
> usbraw.device = '/dev/bus/
1900c1888
< linux.sysfs_path = '/sys/class/
---
> linux.sysfs_path = '/sys/class/
1925c1913
< usb.linux.
---
> usb.linux.
1935a1924,1935
> udi = '/org/freedeskt
> info.udi =
'/org/freedeskt
> linux.device_file = '/dev/bus/
> linux.subsystem = 'usb_device' (string)
> linux.hotplug_type = 2 (0x2) (int)
> usbraw.device = '/dev/bus/
> info.product = 'USB Raw Device Access' (string)
> info.capabilities = {'usbraw'} (string list)
> info.category = 'usbraw' (string)
> info.parent =
'/org/freedeskt
> linux.sysfs_path = '/sys/class/
>