nix-community / acpi_call

A linux kernel module that enables calls to ACPI methods through /proc/acpi/call. [maintainer=@teleshoes /@Mic92]
GNU General Public License v3.0
80 stars 23 forks source link

\_SB_.PCI0.GFX0.ATPX requires arguments on my machine #23

Closed nyanpasu64 closed 2 years ago

nyanpasu64 commented 2 years ago

On my Inspiron 15R SE 7520 with a "Advanced Micro Devices, Inc. [AMD/ATI] Chelsea LP [Radeon HD 7730M]", making an ACPI call to \_SB_.PCI0.GFX0.ATPX (either https://github.com/nix-community/acpi_call/blob/master/examples/turn_off_gpu.sh or by hand) produces a log in dmesg: ACPI Warning: \_SB.PCI0.GFX0.ATPX: Insufficient arguments - Caller passed 0, method requires 2 (20211217/nsarguments-232). Is this a bug in the script? I don't know what arguments to pass. Does this function not require arguments on other machines (like e32c2030008b2afdd5ce11c467507cd7fbd008f6)?

Making a call to \_SB.PCI0.PEG0.PEGP._OFF appears to work as intended. Should the other function be removed entirely?

teleshoes commented 2 years ago

the examples are just examples. YMMV.

although, if you have a general improvement to the examples that you're fairly confident will not make them less applicable to other systems (or a new example), feel free to open a PR. be aware that ACPI interfaces vary wildly, sometimes even among systems of the same 'model'.