Skip to content

Commit

Permalink
UBUNTU: SAUCE: ACPI: avoid auto-wakeup with an _OSI string
Browse files Browse the repository at this point in the history
Some TGL systems wake up automatically from s2idle when connecting to
a docking station with a monitor. The wake-up events are generated when
BIOS sets ALL_MONITOR_OFF for power-saving on TGL systems.

A BIOS workaround is used to skip ALL_MONITOR_OFF with an _OSI string
"Linux-Dell-USB4-Wakeup".

BugLink: http://bugs.launchpad.net/bugs/1902577

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
  • Loading branch information
Alex Hung authored and Timo Aaltonen committed Feb 3, 2021
1 parent c834125 commit 9598af4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/acpi/osi.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ osi_setup_entries[OSI_STRING_ENTRIES_MAX] __initdata = {
* hybrid graphics supports.
*/
{"Linux-HPI-Hybrid-Graphics", true},
/*
* Linux-Dell-USB4-Wakeup is used by BIOS to workaround auto wakeup
* on Tigerlake. This is done by skipping ALL_MONITOR_OFF when systems
* are going to s2idle.
*/
{"Linux-Dell-USB4-Wakeup", true},
};

static u32 acpi_osi_handler(acpi_string interface, u32 supported)
Expand Down

0 comments on commit 9598af4

Please sign in to comment.