/[base]
ViewVC logotype

Revision 361234


Jump to revision: Previous Next
Author: cperciva
Date: Tue May 19 01:39:37 2020 UTC (4 years, 1 month ago)
Changed paths: 2
Log Message:
MFC r361097:
  Send Lid status notification via devd from acpi_lid_status_update.

  Some laptops don't send ACPI "lid status changed" notifications upon
  opening the lid if the system was currently suspended.  In r358219
  this was partially fixed, updating the "lid_status" variable upon
  resume even if there is no "status changed" notification from ACPI.

  Unfortunately the fix in r358219 did not include notifying userland
  via devd; this causes problems on systems using upowerd (e.g. KDE),
  since upowerd remembers the most recent devd notification about the
  lid status rather than querying the sysctl to get the current status.

  This showed up as two symptoms when KDE's "When laptop lid closed: Sleep"
  option is set:
  1. 50% of the time, closing the lid would not trigger S3 sleep.
  2. 50% of the time, plugging/unplugging AC power would trigger S3 sleep.

PR:		246477


Changed paths

Path Details
Directorystable/12/ modified , props changed
Directorystable/12/sys/dev/acpica/acpi_lid.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27