On a very new install, I installed power-profiles-daemon, but running powerprofilesctl gave an error about not finding gi.repository. Checking a different PC, that is provided in /usr/lib/python3.12/site-packages/gi bu python-gobject. Installing that package resolved the error.