Skip to content

firmware: Handle devices without ALS#418

Merged
jannau merged 1 commit intoAsahiLinux:mainfrom
jannau:fw-als-desktop-devices
Mar 17, 2026
Merged

firmware: Handle devices without ALS#418
jannau merged 1 commit intoAsahiLinux:mainfrom
jannau:fw-als-desktop-devices

Conversation

@jannau
Copy link
Copy Markdown
Member

@jannau jannau commented Mar 17, 2026

Devices without internal display like Mac mini, Studio and Pro do not have an ambient light sensor. The ioreg subprocess will not produce any output but return with exit status 0.
Handle this gracefully. This might hide unexpected cases on devices with ALS but a simple solution without listing devices.

Fixes: 766ecc0 ("Extract and store ALS calibration")

Devices without internal display like Mac mini, Studio and Pro do not
have an ambient light sensor. The ioreg subprocess will not produce any
output but return with exit status 0.
Handle this gracefully. This might hide unexpected cases on devices with
ALS but a simple solution without listing devices.

Fixes: 766ecc0 ("Extract and store ALS calibration")
Signed-off-by: Janne Grunau <j@jannau.net>
Copy link
Copy Markdown
Contributor

@WhatAmISupposedToPutHere WhatAmISupposedToPutHere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, i thought the returncode check will catch it.

@jannau jannau merged commit 58cf18d into AsahiLinux:main Mar 17, 2026
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants