ACPI issues on Gentoo (Framework 16 AMD 7840HS)

Hey all. I’m setting up Gentoo on my Framework 16. When I initiate a shutdown or reboot, the computer never powers off, though the OS does shut down properly. Does anyone know what might be the issue? Are there any other Gentoo users on this hardware?

There’s an article on their wiki which includes information on how to customize/build the kernel specifically to the Framework 16’s hardware, but I don’t see anything which might be related to ACPI power commands.
https://wiki.gentoo.org/wiki/Framework_Laptop_16
Having said that, its either outdated, or not entirely accurate to the configmenu in some areas, as far as I can tell. Would anyone know for sure whether any changes need to be made to the dist-kernel to get things fully working? Or is the kernel info there just for folks who are manually configuring it?

A friend of mine experienced the exact same issue with fedora. It recently went away, I suspect a kernel update patched it.

You might want to unmask the latest kernel 9999 and give it a try!

It’s outdated, the gentoo doc is good but spare compared to other projects as we have too few contributors. These settings change constantly with each minor release.

Dist-kernel might get you fully or more realistically mostly working. I expect camera, mic, keyboard, trackpad, screen and speakers to be fine but you might have issues with the fingerprint scanner. The doc say you should do what they recommend, if you don’t find the settings double-check (yes, triple check even, I too often miss settings in large menus) and if they really aren’t there don’t worry about it. Try the dist-kernel, enjoy if you like the experience, or build manually if things don’t work out.

A bit of warning from the doc though:
Note: compiling certain drivers into the kernel (vs as a module) may cause problems. Some drivers such as the Wi-Fi card driver (MediaTek MT7921E) will not boot up correctly if firmware is not available. This can be resolved by configuring the driver to be a module, or by including the firmware in the initramfs.

I did see elsewhere that this problem was resolved in other people’s computers with kernel updates, but since I was on a “stable” build with the dist-kernel, I figured that was unlikely… but yea, maybe that’s a bad assumption. I’ll try upgrading my kernel version to one of the later “testing” versions and see where that gets me.

I actually did have a working fingerprint scanner, nearly OOB (just needed to install fprintd). As far as I can tell, absolutely everything works hardware wise with Gentoo on my Framework 16, using the dist-kernel and default settings, ASIDE from this ACPI thing. If getting that bit working is as simple as updating the kernel, and that doesn’t cause any regressions, I’ll be very pleased, because having to dig into custom kernel building was not something I wanted to have to worry about quite yet.

Given that the doc is outdated as you say, are there any other tips or things one might want to install, which aren’t already mentioned on the doc? I followed the instructions for Bluetooth and the fingerprint scanner, sound was working OOB without any need for me to do what was mentioned in the docs, and I am not concerned enough with maximizing/optimizing my fan usage to want to deal with installing out-of-band GitHub projects (should I be?). There’s also the mention of RyzenAdj, which I believe by default is actually not functional with the kernel’s dist settings, from what I saw when poking. But again, not sure I’m really that concerned with needing to micromanage my CPU’s power settings, unless there’s a pressing need.

I might be more inclined to try “custom” kernel configs if someone had an up to date config file available that was tuned for Framework 16, and which was relatively baseline (not trying to eke out performance/minimalism to the point of breaking features or potentially cuasing instability)

Hi, I am happily running Gentoo Linux on my FW16, Ryzen 9. When I ask the system to shutdown, it really does so :slight_smile:
My kernel config is this one: https://paste.gentoo.zip/ed7EiTcA but I do not know if that helps you when you are using the binary distro kernel

I’m not using the binary kernel, just the distribution gentoo-kernel. Thanks for the config.

So I noticed that the kernel mentioned in the config was 6.9.7, rather than the stable 6.6.32 that I’m on. I got my system upgraded to 6.9.7 and… that fixed the issue, without any need to mess with the config. So I guess that’s a bug in that version of the kernel, in spite of the “stable” tag.

Thanks all!

Oh, great that you were able to solve it. True, I run an ~amd64 (= unstable) system so that kernel was the latest available. It could well be that 6.6.x has certain bugs with “new” hardware that was fixed in the meantime. Running “stable” is not always compatible with the latest hardware.
And it also has a good thing for me: I learned about gentoo “Distribution” kernel. Don’t plan to switch but looks like a nice initiative.

2 Likes