Thanks for sharing the link! The last message in that thread has useful advice. I was able to prevent automatic dimming in power mode in Fedora 41 by running the following in the Terminal:
gsettings set org.gnome.settings-daemon.plugins.power idle-brightness 100