Skip to contentSkip to conversation

New: Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

Bug 218223 [email protected] 1 participant 9 messages Dec 4, 2023 – Sep 9, 2024 IIO

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=218223

Bug ID: 218223
Summary: Ambient light sensor on Framework 13 AMD laptop stops
working in Linux 6.7
Product: Drivers
Version: 2.5
Hardware: AMD
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: IIO
Assignee: [email protected]
Reporter: [email protected]
Regression: No

The ambient light sensor on the Framework 13 worked properly with Linux 6.6. With 6.7 (currently tested with -rc4), the driver fails to load with:

hid_sensor_als HID-SENSOR-200041.1.auto: failed to setup attributes
hid_sensor_als: probe of HID-SENSOR-200041.1.auto failed with error -1

If I revert 286d528bf0fae9f334fba857825b9701df1675b2, 5f05285df691b1e82108eead7165feae238c95ef, and ee3710f39f9d0ae5137a866138d005fe1ad18132, it starts working again.

This has also been reported in the Framework forums at
https://community.frame.work/t/tracking-auto-brightness-aka-ambient-light-sensor-in-linux-details/16746.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 218223] Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

https://bugzilla.kernel.org/show_bug.cgi?id=218223

Michael Marley ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

 Bisected commit-id|                            |286d528bf0fae9f334fba857825
                   |                            |b9701df1675b2
                 CC|                            |[email protected]
     Kernel Version|                            |6.7-rc4
         Regression|No                          |Yes
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 218223] Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218223

Bagas Sanjaya ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Bagas Sanjaya ([email protected]) --- (In reply to Michael Marley from comment #0)

Quoted 6 lines

The ambient light sensor on the Framework 13 worked properly with Linux 6.6. With 6.7 (currently tested with -rc4), the driver fails to load with:

hid_sensor_als HID-SENSOR-200041.1.auto: failed to setup attributes
hid_sensor_als: probe of HID-SENSOR-200041.1.auto failed with error -1

Quoted 7 lines

If I revert 286d528bf0fae9f334fba857825b9701df1675b2, 5f05285df691b1e82108eead7165feae238c95ef, and ee3710f39f9d0ae5137a866138d005fe1ad18132, it starts working again.

This has also been reported in the Framework forums at
https://community.frame.work/t/tracking-auto-brightness-aka-ambient-light-
sensor-in-linux-details/16746.

What is full dmesg log?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 218223] Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218223

--- Comment #2 from Michael Marley ([email protected]) --- Created attachment 305549
--> https://bugzilla.kernel.org/attachment.cgi?id=305549&action=edit
Full output of dmesg on an affected kernel

I attached the dmesg output.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 218223] Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218223

Srinivas Pandruvada ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
                   |                            |ntel.com

--- Comment #3 from Srinivas Pandruvada ([email protected]) --- Created attachment 305607
--> https://bugzilla.kernel.org/attachment.cgi?id=305607&action=edit
Patch to fix this issue

Please try the attached patch. I also posted upstream. This issue broke ALS on almost all Intel systems.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#6 lore raw

[Bug 218223] Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218223

Andy Shevchenko ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #305607|0                           |1
           is patch|                            |
 Attachment #305607|application/mbox            |text/plain
          mime type|                            |
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#7 lore raw

[Bug 218223] Ambient light sensor on Framework 13 AMD laptop stops working in Linux 6.7

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218223

Andy Shevchenko ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX

--- Comment #5 from Andy Shevchenko ([email protected]) --- AFAIU the commit f2a71ebdf231 ("iio: hid-sensor-als: Assign channels dynamically") has to fix this. Correct me, if I'm wrong.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.