I've done some more digging and found what I think could be the reason
I'm seeing this behavior.

I did an lshal -m then closed the lid waited a minute and opened it
again. This is what came back:

14:56:06.058: computer property power_management.is_powersave_set = true
14:56:11.080: computer_logicaldev_input_2 property button.state.value = true
14:56:11.081: computer_logicaldev_input_2 condition ButtonPressed = lid
*** I OPENED THE LID ***
14:57:23.281: computer_power_supply_battery_BAT0 property 
battery.remaining_time = 19027 (0x4a53) (new)
14:57:23.284: computer_power_supply_battery_BAT0 property 
battery.charge_level.rate = 6149 (0x1805)
14:57:23.285: computer_power_supply_battery_BAT0 property 
battery.reporting.rate = 6149 (0x1805)
14:57:23.285: computer_power_supply_battery_BAT0 property 
battery.voltage.current = 12444 (0x309c)
14:57:23.286: computer_logicaldev_input_1 condition ButtonPressed = power
14:57:23.286: computer_logicaldev_input_2 property button.state.value = false
14:57:23.286: computer_logicaldev_input_2 condition ButtonPressed = lid
14:57:23.423: usb_device_4f2_b036_SN0001_if0_video4linux removed
14:57:23.424: usb_device_4f2_b036_SN0001_if0_logicaldev_input removed
14:57:23.466: usb_device_4f2_b036_SN0001_if0_video4linux added
14:57:23.737: usb_device_4f2_b036_SN0001_if0_logicaldev_input added

Here is another output from lshal this time I selected Suspend from the
UserSwitcher menu. To resume I just pressed the spacebar. Here is what
came back:

****** I PRESSED THE SPACEBAR ********
15:27:22.200: computer_power_supply_battery_BAT0 property 
battery.voltage.current = 12522 (0x30ea)
15:27:22.227: computer_logicaldev_input_1 condition ButtonPressed = power
15:27:22.227: usb_device_4f2_b036_SN0001_if0_video4linux removed
15:27:22.227: usb_device_4f2_b036_SN0001_if0_logicaldev_input removed
15:27:22.271: usb_device_4f2_b036_SN0001_if0_video4linux added
15:27:22.002: usb_device_4f2_b036_SN0001_if0_logicaldev_input added

So I guess the question is: should there be a power button event when
resuming? Is there a way I can ignore this event?

-- 
Resuming from Suspend cause power button action to be called
https://bugs.launchpad.net/bugs/272587
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to