Skip to content

Instantly share code, notes, and snippets.

@x1unix
Created January 7, 2022 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x1unix/bdd9228f58084248ca6ac22e3e45a6a8 to your computer and use it in GitHub Desktop.
Save x1unix/bdd9228f58084248ca6ac22e3e45a6a8 to your computer and use it in GitHub Desktop.
Lenovo Legion 5 DSDT GPU

Links

PCI

Location: /sys/bus/pci/devices/0000:01:00.0

ACPI Name:

$ cat /sys/bus/pci/devices/0000:01:00.0/firmware_node/path

\_SB_.PCI0.GPP0.PEGP

ACPI

GPU is located at _SB.PCI0.GPP0 PCI Bridge as _SB_.PCI0.GPP0.PEGP. GPP has power resource PG00 referenced in ssdt6.asl:332 which supports _ON/_OFF methods:

In ssdt6.asl:332:

Scope (\_SB.PCI0.GPP0)
{
	...
	PowerResource (PG00, 0x00, 0x0000)
	{
		Name (M239, One)
		Method (_STA, 0, NotSerialized) // _STA: Status
		
		Method (_ON, 0, NotSerialized) // _ON_: Power On
		
		Method (_OFF, 0, NotSerialized) // _OFF: Power Off
	}
	...
}

Commands

  • Power off - \_SB.PCI0.GPP0.PG00._OFF
  • Get Status - \_SB.PCI0.GPP0.PG00._STA

Misc notes

_SB_.PCI0.GP17.VGA_.GPUB

\_SB.PCI0.GPP0
\_SB.PCI0.GPP1

GP17.VGA

DSM=16

\_SB.PCI0.GPP0.PG00._OFF

Location

GPU is located at #0 - Renoir PCIe GPP Bridge [1022:1633] (pci@0000:00:01.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment