summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpibtn.c
AgeCommit message (Expand)Author
2022-04-06constify struct cfattachChristian Weisgerber
2022-02-08The suspend/resume code is a sticky mess of MI, MD, and ACPI sequencing.Theo de Raadt
2019-01-20make this look more like other pwr_action code (small_kernel)Ted Unangst
2019-01-19Add a pwraction sysctl that controls what the power button does on acpi.Ted Unangst
2018-07-01acpi: clean up some inconsistent style in the hid matching arraysMike Larkin
2017-03-02Add a new sysctl machdep.lidaction. The sysctl works as follows:Martin Natano
2017-02-28Untangle abstract sleep modes from ACPI sleep states. This paves the wayMartin Natano
2016-01-07Use a resune hook to re-evaluate the "_LID" status upon resume.Martin Pieuchot
2015-01-27Ignore buttons for which _STA indicates they're not present, enabled orMark Kettenis
2014-11-24Count how many lids are open, rather than accumulating the values ACPITheo de Raadt
2014-11-23If a machine has no _LIDs, then none can be open. This diff fixes a problemMike Larkin
2014-11-08If resuming from sleep (zzz/ZZZ) and the lid is still closed, go back toMike Larkin
2014-10-16LID control method devices aren't required to offer _PSW, so don't skipMike Larkin
2014-09-14remove uneeded proc.h includesJonathan Gray
2013-08-21Add an indicator sensor to acpibtnX reflecting lid status when available,Landry Breuil
2011-01-02Re-add code for ACPI taskqueue, eliminates need for state vars in acpi softcJordan Hargrave
2010-08-07The wakeup of the acpi thread is not needed. This code is being calledTheo de Raadt
2010-08-06Always call _PSW on _LID devices that support it to enable lid open toMarco Peereboom
2010-08-05new i386/amd64 machdep.lidsuspend sysctl which decides whether a lidTheo de Raadt
2010-08-05lid suspend logic was backwardsTheo de Raadt
2010-08-05Wakeup machine when lid is opened on laptops that have acpibtn _LID.Marco Peereboom
2010-08-05PM1 power button events were generating 'fake events' to acpibtn PWRB,Theo de Raadt
2010-07-06Don't use a workq to do the suspend, because it races aginst the acpiTheo de Raadt
2010-03-31Bring /dev/apm support in line with apm(4). Make the suspend button sendMark Kettenis
2009-12-05Until we have better hooks and a proper framework, do not do the lidTheo de Raadt
2009-11-25Suspend when the lid closes (but not when it opens again).Mark Kettenis
2009-11-25Handle the notification types for LID and Sleep button a bit moreTheo de Raadt
2009-11-23Remove ACPI_SLEEP_ENABLED checks.Paul Irofti
2009-02-19suspend/resume bits so that we can develop this in tree. This is disabled.Marco Peereboom
2008-11-06Collapse all sanity checks of hids into one function.Marco Peereboom
2008-06-01Re-enable new parser. Lots of testing by various folks. Fits all mediaMarco Peereboom
2008-05-16back out jordans new parser.David Gwynne
2008-05-14Adding new ACPI Parser codeJordan Hargrave
2008-04-12Get rid of acpi_s5 global variables; simply send SIGUSR2 instead of SUGUSR1Mark Kettenis
2006-12-26Add polling to devices that require it such as acpibat and acpitz.Marco Peereboom
2006-12-21more minor knfTheo de Raadt
2006-12-18Remove misleading NOTREACHED comments. Sending a signal does notCan Erkin Acar
2006-11-29Do not consider unrecognized buttons as lid sensors. ok marco@Miod Vallat
2006-10-12Massive ACPI changesJordan Hargrave
2006-05-31Match the specs and only shut down if notify_type is 0x80Can Erkin Acar
2006-02-25Ugh, missed some { }Marco Peereboom
2006-02-22Added new aml_register to notify by device idJordan Hargrave
2006-02-21KNFMarco Peereboom
2006-02-21Added button type fieldJordan Hargrave
2006-02-21Adjust debug levels since _STA often doesn't exist and its annoyingly loud.Marco Peereboom
2006-02-21Rig the power button so that the machine shuts down correctly.Marco Peereboom
2006-02-21Print the parent name which is way more useful than the node name.Marco Peereboom
2006-02-20Display device name for button attachJordan Hargrave
2006-02-20Add acpibtn device. Remains disabled for now.Marco Peereboom