
Expose various CPU and dGPU tunables that are available on many ASUS ROG laptops. The tunables shown in sysfs will vary depending on the CPU and dGPU vendor. All of these variables are write only and there is no easy way to find what the defaults are. In general they seem to default to the max value the vendor sets for the CPU and dGPU package - this is not the same as the min/max writable value. Values written to these variables that are beyond the capabilities of the CPU are ignored by the laptop. Signed-off-by: Luke D. Jones <luke@ljones.dev> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230630053552.976579-9-luke@ljones.dev Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5.1 KiB
What: /sys/devices/platform//cpufv Date: Oct 2010 KernelVersion: 2.6.37 Contact: "Corentin Chary" corentincj@iksaif.net Description: Change CPU clock configuration (write-only). There are three available clock configuration:
* 0 -> Super Performance Mode
* 1 -> High Performance Mode
* 2 -> Power Saving Mode
What: /sys/devices/platform//camera Date: Jan 2010 KernelVersion: 2.6.39 Contact: "Corentin Chary" corentincj@iksaif.net Description: Control the camera. 1 means on, 0 means off.
What: /sys/devices/platform//cardr Date: Jan 2010 KernelVersion: 2.6.39 Contact: "Corentin Chary" corentincj@iksaif.net Description: Control the card reader. 1 means on, 0 means off.
What: /sys/devices/platform//touchpad Date: Jan 2010 KernelVersion: 2.6.39 Contact: "Corentin Chary" corentincj@iksaif.net Description: Control the card touchpad. 1 means on, 0 means off.
What: /sys/devices/platform//lid_resume Date: May 2012 KernelVersion: 3.5 Contact: "AceLan Kao" acelan.kao@canonical.com Description: Resume on lid open. 1 means on, 0 means off.
What: /sys/devices/platform//fan_boost_mode Date: Sep 2019 KernelVersion: 5.3 Contact: "Yurii Pavlovskyi" yurii.pavlovskyi@gmail.com Description: Fan boost mode: * 0 - normal, * 1 - overboost, * 2 - silent
What: /sys/devices/platform//throttle_thermal_policy Date: Dec 2019 KernelVersion: 5.6 Contact: "Leonid Maksymchuk" leonmaxx@gmail.com Description: Throttle thermal policy mode: * 0 - default, * 1 - overboost, * 2 - silent
What: /sys/devices/platform//gpu_mux_mode Date: Aug 2022 KernelVersion: 6.1 Contact: "Luke Jones" luke@ljones.dev Description: Switch the GPU hardware MUX mode. Laptops with this feature can can be toggled to boot with only the dGPU (discrete mode) or in standard Optimus/Hybrid mode. On switch a reboot is required:
* 0 - Discrete GPU,
* 1 - Optimus/Hybrid,
What: /sys/devices/platform//dgpu_disable Date: Aug 2022 KernelVersion: 5.17 Contact: "Luke Jones" luke@ljones.dev Description: Disable discrete GPU: * 0 - Enable dGPU, * 1 - Disable dGPU
What: /sys/devices/platform//egpu_enable Date: Aug 2022 KernelVersion: 5.17 Contact: "Luke Jones" luke@ljones.dev Description: Enable the external GPU paired with ROG X-Flow laptops. Toggling this setting will also trigger ACPI to disable the dGPU:
* 0 - Disable,
* 1 - Enable
What: /sys/devices/platform//panel_od Date: Aug 2022 KernelVersion: 5.17 Contact: "Luke Jones" luke@ljones.dev Description: Enable an LCD response-time boost to reduce or remove ghosting: * 0 - Disable, * 1 - Enable
What: /sys/devices/platform//charge_mode Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Get the current charging mode being used: * 1 - Barrel connected charger, * 2 - USB-C charging * 3 - Both connected, barrel used for charging
What: /sys/devices/platform//egpu_connected Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Show if the egpu (XG Mobile) is correctly connected: * 0 - False, * 1 - True
What: /sys/devices/platform//mini_led_mode Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Change the mini-LED mode: * 0 - Single-zone, * 1 - Multi-zone
What: /sys/devices/platform//ppt_pl1_spl Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the Package Power Target total of CPU: PL1 on Intel, SPL on AMD. Shown on Intel+Nvidia or AMD+Nvidia based systems:
* min=5, max=250
What: /sys/devices/platform//ppt_pl2_sppt Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the Slow Package Power Tracking Limit of CPU: PL2 on Intel, SPPT, on AMD. Shown on Intel+Nvidia or AMD+Nvidia based systems:
* min=5, max=250
What: /sys/devices/platform//ppt_fppt Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the Fast Package Power Tracking Limit of CPU. AMD+Nvidia only: * min=5, max=250
What: /sys/devices/platform//ppt_apu_sppt Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the APU SPPT limit. Shown on full AMD systems only: * min=5, max=130
What: /sys/devices/platform//ppt_platform_sppt Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the platform SPPT limit. Shown on full AMD systems only: * min=5, max=130
What: /sys/devices/platform//nv_dynamic_boost Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the dynamic boost limit of the Nvidia dGPU: * min=5, max=25
What: /sys/devices/platform//nv_temp_target Date: Jun 2023 KernelVersion: 6.5 Contact: "Luke Jones" luke@ljones.dev Description: Set the target temperature limit of the Nvidia dGPU: * min=75, max=87