mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00

Human presence detection (HPD) sensor uses a camera to determine when user is physically in front of the machine. This might not be a desirable behavior because it can (for example) cause the machine to wake on approach. Add a new sysfs file "hpd" that will control whether this sensor is enabled. Use the value of this sysfs file to turn off HPD and prevent it from re-enabling after resume from suspend. Cc: Pratap Nirujogi <pratap.nirujogi@amd.com> Tested-by: Anson Tsao <anson.tsao@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
13 lines
478 B
Text
13 lines
478 B
Text
What: /sys/bus/pci/drivers/pcie_mp2_amd/*/hpd
|
|
Date: April 2025
|
|
Contact: mario.limonciello@amd.com
|
|
Description:
|
|
Human presence detection (HPD) enable/disable.
|
|
When HPD is enabled, the device will be able to detect the
|
|
presence of a human and will send an interrupt that can be
|
|
used to wake the system from a low power state.
|
|
When HPD is disabled, the device will not be able to detect
|
|
the presence of a human.
|
|
|
|
Access: Read/Write
|
|
Valid values: enabled/disabled
|