<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hello,<br>
<br>
I'm running into a kernel problem on openSUSE. After investigation
and various tests, the openSUSE kernel maintainer determined it's an
upstream kernel issue, which I should report upstream. I believe
this mailing list should be the correct starting point for my bug
report. Please correct me if this is not the case.<br>
<br>
The original bug report can be found here:
<a class="moz-txt-link-freetext" href="https://bugzilla.opensuse.org/show_bug.cgi?id=1186896">https://bugzilla.opensuse.org/show_bug.cgi?id=1186896</a><br>
<br>
=== Summary===<br>
I don't have brightness control or an external screen, without
disabling acpi. <br>
If I disable acpi (kernel boot option "acpi=off") than I do have
brightness control, and the external screen works too. But obviously
I then don't have any acpi functionality (single core, Fn keys, etc)<br>
<br>
===Details===<br>
Laptop: Clevo NL51RU<br>
BIOS: insyde 1.07.05<br>
<br>
Distribution:<br>
openSUSE Leap 15.2/15.3 + Tumbleweed<br>
<br>
Recent kernels tried (from the openSUSE repos):<br>
kernel-default-5.12.12<br>
kernel-default-5.13.rc7<br>
<br>
CPU: Rhyzen 7 4700U<br>
Graphics:<br>
# lspci -nnk | grep -A3 VGA<br>
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices,
Inc. [AMD/ATI] Renoir [1002:1636] (rev c2)<br>
Subsystem: CLEVO/KAPOK Computer Device [1558:a500]<br>
<br>
<br>
Detailed symptoms:<br>
<br>
<table width="1022" height="148" cellspacing="2" cellpadding="2"
border="1">
<tbody>
<tr>
<td valign="top"><b>Boot option</b><b><br>
</b> </td>
<td valign="top"><b>Boots?</b><b><br>
</b> </td>
<td valign="top"><b>Brightness?</b><b><br>
</b> </td>
<td valign="top"><b>Notes</b><b><br>
</b> </td>
</tr>
<tr>
<td valign="top">-<br>
</td>
<td valign="top">No<br>
</td>
<td valign="top"><br>
</td>
<td valign="top">Hangs at "switching to amdgpudrmfb from EFI
VGA" [*]<br>
</td>
</tr>
<tr>
<td valign="top">nomodeset<br>
</td>
<td valign="top">Yes<br>
</td>
<td valign="top">No<br>
</td>
<td valign="top">Any attempt to set the brightness results in
the external monitor widget to popup<br>
</td>
</tr>
<tr>
<td valign="top">amdgpu.backlight=0<br>
</td>
<td valign="top">No<br>
</td>
<td valign="top"><br>
</td>
<td valign="top">Hangs at "switching to amdgpudrmfb from EFI
VGA" [*]<br>
</td>
</tr>
<tr>
<td valign="top">amdgpu.backlight=0 nomodeset<br>
</td>
<td valign="top">Yes<br>
</td>
<td valign="top">No<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">acpi=off<br>
</td>
<td valign="top">Yes<br>
</td>
<td valign="top">Yes<br>
</td>
<td valign="top">No acpi functionality<br>
</td>
</tr>
</tbody>
</table>
<br>
For those two scenarios above where the laptop boots fine, but
without brightness control, there is this funny additional symptom:<br>
Turning the scroll wheel over de battery icon in the system tray
doesn't do anything. No change in brightness. But I do get the
immediate and unexplainable popup of the external monitor widget
(see attachment).<br>
<br>
Peculiarly, the settings are correctly registered.<br>
<br>
rietgors:# cd
/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/backlight/acpi_video0<br>
<br>
Before:<br>
rietgors:# cat actual_brightness max_brightness<br>
21<br>
49<br>
<br>
After:<br>
rietgors:# cat actual_brightness max_brightness<br>
36<br>
49<br>
<br>
Oddly, the max_brightness value is now 49. But in the scenario where
I *do* have brightness control (acpi=off), the max_brightness value
is 255.<br>
<br>
Exactly the same happens when I directly echo values in the
"brightness" device from the command line. No change in brightness
but an immediate popup of the external monitor widget.<br>
<br>
[*]<br>
For ease of reference: these are the last 4 lines from the boot log
if the laptop hangs:<br>
[drm] amdgpu kernel modesetting enabled.<br>
Virtual CRAT table created for CPU<br>
amdgpu: Topology: Add CPU node<br>
fb0: switching to amdgpudrmfb from EFI VGA<br>
<br>
Please be aware: I think I'm computer savvy, but working with or on
the kernel is way out of my comfort zone. I'd be happy to
investigate and try further. But I probably will need detailed
instructions.<br>
<br>
Thanks,<br>
Koos<br>
<br>
</body>
</html>