Bug 2181941

Summary: Loss of backlight control on HP 8570w
Product: [Fedora] Fedora Reporter: Adam Chasen <adam>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: acaringi, adam, adscvr, airlied, alciregi, bskeggs, hdegoede, hpa, jarodwilson, jglisse, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, ptalbert, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-6.2.9-300.fc38 kernel-6.2.9-200.fc37 kernel-6.2.9-100.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-02 00:16:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
journalctl --no-hostname -k > dmesg.txt none

Description Adam Chasen 2023-03-27 02:04:04 UTC
Created attachment 1953852 [details]
journalctl --no-hostname -k > dmesg.txt

1. Please describe the problem:
Older HP 8570w laptop running 6.2 kernel from Fedora 38 beta does not adjust brightness when using hotkeys or gbus call.

I found https://hansdegoede.livejournal.com/26427.html from October 2022 via https://wiki.archlinux.org/title/backlight which indicates this may be related to a revamp of the backlight system.


I have tried the kernel cmdline options individually, but this generated no backlight errors:
```
acpi_backlight=vendor
acpi_backlight=native
```

Happy to provide the dmidecode and acpidump privately.

2. What is the Version-Release number of the kernel:
Linux fedora 6.2.8-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 22 19:29:30 UTC 2023 x86_64 GNU/Linux

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :
I didn't find a kernel before October which wasn't in deleted state.
I do not recall having this issue in previous fedora releases, but I cannot validate at the moment.

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:
yes, by pressing hotkeys and making calls to adjust brightness value via gdbus

``gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.freedesktop.DBus.Properties.Set org.gnome.SettingsDaemon.Power.Screen Brightness "<int32 50>"``


5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:
yes

6. Are you running any modules that not shipped with directly Fedora's kernel?:
no

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Comment 1 Hans de Goede 2023-03-27 08:00:00 UTC
I believe that this likely the same issue as reported here:
https://gitlab.freedesktop.org/drm/nouveau/-/issues/202

I have started a test build of the kernel with the patch fixing that issue:
https://koji.fedoraproject.org/koji/taskinfo?taskID=99180525

Note this is still building atm, it should be finished in a couple of hours.

Here are some generic instructions for installing a kernel directly from koji (Fedora's build system):
https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

Please give the test kernel a try and let us know if the test kernel resolves your issue.

Comment 2 Hans de Goede 2023-03-27 11:20:51 UTC
Note the build of a test Fedora kernel with a patch fixing this has finished, so you can download the rpms to test this kernel now:

https://koji.fedoraproject.org/koji/taskinfo?taskID=99180525

Comment 3 Adam Chasen 2023-03-27 21:32:37 UTC
the 6.2.8-300.bz2181941.fc38.x86_64 kernel resolves this issue, thanks!

Comment 4 Hans de Goede 2023-03-29 11:33:36 UTC
Thank you for testing. I have submitted a merge-request to get the fix added to the official Fedora kernel builds:
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2380

Comment 5 Fedora Update System 2023-03-31 19:46:40 UTC
FEDORA-2023-c46eb02bbf has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c46eb02bbf

Comment 6 Fedora Update System 2023-03-31 19:53:21 UTC
FEDORA-2023-d525cf5272 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d525cf5272

Comment 7 Fedora Update System 2023-03-31 19:53:22 UTC
FEDORA-2023-98251cef79 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-98251cef79

Comment 8 Fedora Update System 2023-04-01 01:34:21 UTC
FEDORA-2023-c46eb02bbf has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c46eb02bbf

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-04-01 02:11:46 UTC
FEDORA-2023-d525cf5272 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d525cf5272`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d525cf5272

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-04-01 02:17:15 UTC
FEDORA-2023-98251cef79 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-98251cef79`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-98251cef79

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2023-04-02 00:16:49 UTC
FEDORA-2023-c46eb02bbf has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-04-05 01:35:28 UTC
FEDORA-2023-98251cef79 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2023-04-08 01:29:43 UTC
FEDORA-2023-d525cf5272 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.