Public bug reported:

[Impact]
On some systems when the system is put to sleep pressing the ACPI power
button will cause the EC SCI to try to wake the system by a Notify(DEV, 0x2)
with an intention to wake the system up from suspend.

This behavior matches the ACPI specification in ACPI 6.4 section
4.8.3.1.1.2 which describes that the AML handler would generate a Notify()
with a code of 0x2 to indicate it was responsible for waking the system.

This currently doesn't work because acpi_button_add() only configured
`ACPI_DEVICE_NOTIFY` which means that device handler notifications
0x80 through 0xFF are handled.

[Fix]
To fix the wakeups on such systems, adjust the ACPI button handler to
use `ACPI_ALL_NOTIFY` which will handle all events 0x00 through 0x7F.
https://patchwork.kernel.org/project/linux-acpi/patch/20250303212719.4153485-1-supe...@kernel.org/

Included in linux-next
39bc24ceb09d ACPI: button: Install notifier for system events as well

[Test]
The issue could be found on Dell Pro 14 notebook.
Verify the system could be waken up by the power button.

[Where problems could occur]
ACPI button driver submit more events to wake up the system, it could lead to 
unexpected wake up if the BIOS sends unexpected events during suspend.

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.11 (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: linux (Ubuntu Noble)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.11 (Ubuntu Noble)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux (Ubuntu Oracular)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.11 (Ubuntu Oracular)
     Importance: Undecided
         Status: Invalid

** Affects: linux (Ubuntu Plucky)
     Importance: Undecided
     Assignee: AceLan Kao (acelankao)
         Status: In Progress

** Affects: linux-oem-6.11 (Ubuntu Plucky)
     Importance: Undecided
         Status: Invalid


** Tags: dwtn jira-dwtn-5 oem-priority

** Also affects: linux-oem-6.11 (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-6.11 (Ubuntu Oracular)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-6.11 (Ubuntu Plucky)
   Importance: Undecided
       Status: New

** Description changed:

  [Impact]
  On some systems when the system is put to sleep pressing the ACPI power
  button will cause the EC SCI to try to wake the system by a Notify(DEV, 0x2)
  with an intention to wake the system up from suspend.
  
  This behavior matches the ACPI specification in ACPI 6.4 section
  4.8.3.1.1.2 which describes that the AML handler would generate a Notify()
  with a code of 0x2 to indicate it was responsible for waking the system.
  
  This currently doesn't work because acpi_button_add() only configured
  `ACPI_DEVICE_NOTIFY` which means that device handler notifications
  0x80 through 0xFF are handled.
  
  [Fix]
  To fix the wakeups on such systems, adjust the ACPI button handler to
  use `ACPI_ALL_NOTIFY` which will handle all events 0x00 through 0x7F.
  
https://patchwork.kernel.org/project/linux-acpi/patch/20250303212719.4153485-1-supe...@kernel.org/
  
+ Included in linux-next
+ 39bc24ceb09d ACPI: button: Install notifier for system events as well
+ 
  [Test]
  The issue could be found on Dell Pro 14 notebook.
  Verify the system could be waken up by the power button.
  
  [Where problems could occur]
  ACPI button driver submit more events to wake up the system, it could lead to 
unexpected wake up if the BIOS sends unexpected events during suspend.

** Tags added: dwtn jira-dwtn-5 oem-priority

** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: linux-oem-6.11 (Ubuntu Oracular)
       Status: New => Invalid

** Changed in: linux-oem-6.11 (Ubuntu Plucky)
       Status: New => Invalid

** Changed in: linux-oem-6.11 (Ubuntu Noble)
       Status: New => In Progress

** Changed in: linux (Ubuntu Noble)
       Status: New => In Progress

** Changed in: linux (Ubuntu Oracular)
       Status: New => In Progress

** Changed in: linux (Ubuntu Plucky)
       Status: New => In Progress

** Changed in: linux (Ubuntu Noble)
     Assignee: (unassigned) => AceLan Kao (acelankao)

** Changed in: linux (Ubuntu Oracular)
     Assignee: (unassigned) => AceLan Kao (acelankao)

** Changed in: linux (Ubuntu Plucky)
     Assignee: (unassigned) => AceLan Kao (acelankao)

** Changed in: linux-oem-6.11 (Ubuntu Noble)
     Assignee: (unassigned) => AceLan Kao (acelankao)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-6.11 in Ubuntu.
https://bugs.launchpad.net/bugs/2101931

Title:
  Dell machine cannot wake up from suspend via KB

Status in HWE Next:
  New
Status in linux package in Ubuntu:
  In Progress
Status in linux-oem-6.11 package in Ubuntu:
  Invalid
Status in linux source package in Noble:
  In Progress
Status in linux-oem-6.11 source package in Noble:
  In Progress
Status in linux source package in Oracular:
  In Progress
Status in linux-oem-6.11 source package in Oracular:
  Invalid
Status in linux source package in Plucky:
  In Progress
Status in linux-oem-6.11 source package in Plucky:
  Invalid

Bug description:
  [Impact]
  On some systems when the system is put to sleep pressing the ACPI power
  button will cause the EC SCI to try to wake the system by a Notify(DEV, 0x2)
  with an intention to wake the system up from suspend.

  This behavior matches the ACPI specification in ACPI 6.4 section
  4.8.3.1.1.2 which describes that the AML handler would generate a Notify()
  with a code of 0x2 to indicate it was responsible for waking the system.

  This currently doesn't work because acpi_button_add() only configured
  `ACPI_DEVICE_NOTIFY` which means that device handler notifications
  0x80 through 0xFF are handled.

  [Fix]
  To fix the wakeups on such systems, adjust the ACPI button handler to
  use `ACPI_ALL_NOTIFY` which will handle all events 0x00 through 0x7F.
  
https://patchwork.kernel.org/project/linux-acpi/patch/20250303212719.4153485-1-supe...@kernel.org/

  Included in linux-next
  39bc24ceb09d ACPI: button: Install notifier for system events as well

  [Test]
  The issue could be found on Dell Pro 14 notebook.
  Verify the system could be waken up by the power button.

  [Where problems could occur]
  ACPI button driver submit more events to wake up the system, it could lead to 
unexpected wake up if the BIOS sends unexpected events during suspend.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/2101931/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to