amdgpu_atif_...cklight_caps(9)
π NAME π
amdgpu_atif_query_backlight_caps β okay so this is the kernel API manual page (section 9, bestie, we're in the deep kernel docs now) and this function's whole job is getting you the min and max backlight input signal. That's it. That's the gig. Slay.
β¨ SYNOPSIS β¨
noinline_for_stack int amdgpu_atif_query_backlight_caps (struct amdgpu_atif *atif );
Literally just one job, one handle, one int coming back at you. Iconic minimalism tbh.
π ARGUMENTS π
atifβ the acpi handle π that's it, that's the whole parameter list, she's lowkey low-maintenance
π¦ DESCRIPTION π¦
So here's the vibe: this function goes and executes the QUERY_BRIGHTNESS_TRANSFER_CHARACTERISTICS ATIF function to figure out the acceptable range of backlight values. Like, what's the actual valid window here, y'know? π₯
Backlight_caps.caps_valid will be set to true if the query is successful β so that's your little green checkmark, your vibe check passed notification π«Ά
The input signals are in range 0-255. No cap, that's the range. π
Heads up bestie: this function assumes the display with backlight is the first LCD. Like, it's not out here doing detective work to find which panel β it just assumes. First LCD. Periodt. π
Returns 0 on success, error on failure. Classic. π
π SEE ALSO π
The kernel file, for the curious girlies who want to read the source:
./drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
And the whole friend group, fr fr:
amdgpu_atif_call(9)amdgpu_atif_parse_notification(9)amdgpu_atif_parse_functions(9)amdgpu_atif_verify_interface(9)amdgpu_atif_get_notification_params(9)amdgpu_atif_get_sbios_requests(9)amdgpu_atif_handler(9)amdgpu_atcs_call(9)amdgpu_atcs_parse_functions(9)amdgpu_atcs_verify_interface(9)amdgpu_acpi_is_pcie_performance_request_supported(9)amdgpu_acpi_is_power_shift_control_supported(9)amdgpu_acpi_pcie_notify_device_ready(9)amdgpu_acpi_pcie_performance_request(9)amdgpu_acpi_power_shift_control(9)amdgpu_acpi_smart_shift_update(9)amdgpu_acpi_set_uma_allocation_size(9)amdgpu_acpi_get_node_id(9)amdgpu_acpi_event(9)amdgpu_acpi_init(9)amdgpu_acpi_fini(9)amdgpu_atif_pci_probe_handle(9)amdgpu_atcs_pci_probe_handle(9)amdgpu_acpi_should_gpu_reset(9)amdgpu_acpi_is_s3_active(9)amdgpu_acpi_is_s0ix_active(9)
Okay that's the whole page, bestie, go forth and query those backlight caps πβ¨
Signing off from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β literally the future, we love to see it ππ¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms