Power Management configuration module could not be loaded

This is the message I’m getting when I access systemsettings > Power Management > Energy Saving along with a big red X and the screen is grayed out. I can still see the setting that my display should switch off after 15 minutes, but it’s shutting off after ten. There’s also this message:

"The power management service appears not to be running. This can be solved by starting or scheduling it inside “StartUp and Shutdown”. I don’t see any way to do this.

Also under systemsettings > Startup and Shutdown > Background Services there is nothing listed under Startup Services. On another machine with 13.2 and Plasma 5, I have fifteen items listed, including kscreen2 and Power Management.

Anyone know how to get power management working in Tumbleweed? By the way this is a desktop that’s having this issue.

I’ve just discovered that launching systemsettings from Konsole gives me a different version than the one I get from the kickoff menu. There’s different names for the groups and different items within each group. And there is no Power Management item in systemsettings launched from Konsole. For instance, on the Konsole version I have ‘Common Appearance and Behavior’ and ‘Workspace Appearance and Behavior’ while on the other version I have ‘Appearance’ and ‘Workspace’. I have some items on one version that aren’t on the other and vice versa.

Which version is everyone else getting with Plasma 5.3?

And I still haven’t found the setting for the time before my display goes to sleep. Does anyone know where this setting went?

After a little digging, I answered my own question. The version launched from Konsole with the ‘systemsettings’ command was part of the kdebase4-workspace-addons package. The system settings launched from the kickoff menu is the Plasma 5 version. That is the one that is telling me there is no power management module loaded. But I have one on another machine that’s running 13.2 and Plasma 5.3 but it’s a laptop and the problem I’m having is on my desktop with Tumbleweed.

Run “systemsettings5” in Konsole to get the Plasma5 version.

That is the one that is telling me there is no power management module loaded. But I have one on another machine that’s running 13.2 and Plasma 5.3 but it’s a laptop and the problem I’m having is on my desktop with Tumbleweed.

Check that powerdevil5 is installed, and check that power management is not disabled in systemsettings5->Startup and Shutdown->Background Services.

From my first post:

zypper info powerdevil5

Repository: openSUSE-Tumbleweed-Oss Name: powerdevil5
Version: 5.3.1-1.1
Arch: x86_64
Vendor: openSUSE
Installed: Yes
Status: up-to-date

And ksysguard says upowerd is a running process.

And what does that mean exactly?
You have absolutely nothing in Startup and Shutdown->Background Services?

Is that in systemsettings5? Again, systemsettings is the KDE4 version, you need systemsettings5 for Plasma5.
Is kded5 running?

And ksysguard says upowerd is a running process.

upowerd is something completely different.
kded5 has to be running, and the powermanagement plugin has to be activated.

Here is a screenshot: SUSE Paste

systemsettings5 is what launches from the kickoff menu.

Ksysguard says kded5 is running. I don’t see a way to activate the powermanagement plugin.

Now that’s strange. Something seems to be broken on your system.

Try to run “kbuildsycoca5 --noincremental” and logout/login or reboot.
Does that make some plugins appear?

Do you have anything in /usr/share/kservices5/kded/ ?

systemsettings5 is what launches from the kickoff menu.

Yes, if you select “System settings”. You can launch KDE4’s systemsettings too though.

Ksysguard says kded5 is running. I don’t see a way to activate the powermanagement plugin.

Yeah. Normally it should be listed in systemsettings5->Startup and Shutdown->Background Services.

Nothing changed after running that command and logging out/in.

Twenty two items including powerdevil.

Here’s another screenshot: SUSE Paste

Sounds about right.

What do you get when you run this command?

qdbus org.kde.kded5 /kded loadedModules

Does it print a list of those 22 items? Does it hang?

It only shows one module.

qdbus org.kde.kded5 /kded loadedModules 
networkmanagement

Ok, so it is not hanging either.

Please open the file ~/.config/kded5rc in a text editor and add the following at the end:



[Module-powerdevil]
autoload=true


If a section “[Module-powerdevil]” already exists, replace it, i.e. make sure it contains “autoload=true”.
Is powermanagement working now after logging out/in or reboot?

There is no ~/.config/kded5rc in my home directory. I only have /etc/xdg/kded5rc.

There should be a file kded5rc in the hidden folder .config in your home directory.
If not, create it, with the above content. That should enable the powermanagement service.

Oh, and do it as normal user. It won’t help at all if you do that as root (with su or sudo).

Created the text file in .config and logged out/in. No powermanagement module was loaded.

qdbus org.kde.kded5 /kded loadedModules 
networkmanagement

I don’t know then. Never seen something like this and I’m using Plasma5 since a year already…

Have you tried a fresh user account?

Kill kded5, run it in a Konsole and post the output. Maybe there’s some clue.

I tried as a different user but all problems still remain. I killed kded5 and started from Konsole. This is the output:

kded5
Qt: Session management error: networkIdsList argument is NULL
kf5.kservice.sycoca: Trying to open ksycoca from "/home/kevin/.cache/ksycoca5"
KServiceTypeTrader: serviceType "KDEDModule" not found
kf5.kservice.sycoca: Trying to open ksycoca from "/home/kevin/.cache/ksycoca5"
KServiceTypeTrader: serviceType "KDEDModule" not found

Then it should be no cache or user settings problem.

I killed kded5 and started from Konsole. This is the output:

Well, this seems to be the reason for the empty services list then:

KServiceTypeTrader: serviceType "KDEDModule" not found

The “KServiceTypeTrader” doesn’t know about any Services of type “KDEDModule”.

As you do have the files in /usr/share/kservice5/kded/ and it cannot really be a cache problem either (it should have worked after “kbuildsycoca5” or at least with a fresh user account then), maybe those files are corrupted somehow?
Can you please post the content of /usr/share/kservices5/kded/powerdevil.desktop as an example?

And check that the corresponding actual modules are there as well:

ls /usr/lib*/qt5/plugins/kded_*

And to be sure they are searched in the appropriate directories:

kf5-config --path services
kf5-config --path module

Oh, and that error message probably can occur when /usr/share/kservicetypes5/kdedmodule.desktop is missing, that file is what registers the service type “KDEDModule”. So check that that’s there as well and post the content.

Content of /usr/share/kservices5/kded/powerdevil.desktop

[Desktop Entry]
X-SuSE-translate=true
Type=Service
Icon=preferences-system-power-management
X-KDE-ServiceTypes=KDEDModule
X-KDE-Library=powerdevil
X-KDE-DBus-ModuleName=powerdevil
X-KDE-Kded-autoload=true
X-KDE-Kded-load-on-demand=false
X-KDE-Kded-phase=1

Name=Power Management

Comment=Battery, Display and CPU power management and notification

ls /usr/lib*/qt5/plugins/kded_* 
/usr/lib64/qt5/plugins/kded_appmenu.so/usr/lib64/qt5/plugins/kded_networkwatcher.so
/usr/lib64/qt5/plugins/kded_desktopnotifier.so/usr/lib64/qt5/plugins/kded_powerdevil.so
/usr/lib64/qt5/plugins/kded_freespacenotifier.so/usr/lib64/qt5/plugins/kded_printmanager.so
/usr/lib64/qt5/plugins/kded_keyboard.so/usr/lib64/qt5/plugins/kded_recentdocumentsnotifier.so
/usr/lib64/qt5/plugins/kded_khotkeys.so/usr/lib64/qt5/plugins/kded_remotedirnotify.so
/usr/lib64/qt5/plugins/kded_kscreen.so/usr/lib64/qt5/plugins/kded_solidautoeject.so
/usr/lib64/qt5/plugins/kded_ksysguard.so/usr/lib64/qt5/plugins/kded_soliduiserver.so
/usr/lib64/qt5/plugins/kded_ktimezoned.so/usr/lib64/qt5/plugins/kded_statusnotifierwatcher.so
/usr/lib64/qt5/plugins/kded_networkmanagement.so/usr/lib64/qt5/plugins/kded_touchpad.so
kevin@linux-o4v1:~> kf5-config --path services
/home/kevin/.local/share/kservices5/:/usr/share/kservices5/
kevin@linux-o4v1:~> kf5-config --path module
/usr/lib64/plugins/kf5/:/usr/lib64/qt5/plugins/



That ones ok, and the rest of the output too.

So it has to be /usr/share/kservicetypes5/kdedmodule.desktop, otherwise I don’t know what else to inspect/try…

Does that file exist?
Please post the content, and the output of “kf5-config --path servicetypes”.