Intel-lpmd service does not exist

Hello
Recently, I installed openSUSE Tumbleweed and wanted to install the intel-lpmd package.

However, I encountered an issue. When I tried to enable the service, I got an error message saying that the service does not exist.
I tried adding it manually using intel-lpmd/data/intel_lpmd.service.in at main · intel/intel-lpmd · GitHub but it didn’t work.

Any suggestions? Because I tried it on another distro, and it worked fine
is this a problem when packaging the package?

What have you done and how have you it done?

Make a service file and copy it to /etc/systemd/system?

Also please use Code-Tags for terminal output:
Code-Tags

right, I did that. after I did that the service is available but when it runs it dies/not running.

thanks for the response

Doesn’t this part in the servicefile needs an adaption to the actual file path in openSUSE?

ExecStart=@sbindir@/intel_lpmd --systemd --dbus-enable

I’ve already changed it

[Unit]
Description= Intel Linux Energy Optimizer (lpmd) Service
ConditionVirtualization=no
StartLimitInterval=200
StartLimitBurst=5

[Service]
Type=dbus
SuccessExitStatus=2
BusName=org.freedesktop.intel_lpmd
ExecStart=/usr/sbin/intel_lpmd --systemd --dbus-enable
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target
Alias=org.freedesktop.intel_lpmd.service

ilham@localhost /e/s/system> systemctl status intel_lpmd
○ intel_lpmd.service - Intel Linux Energy Optimizer (lpmd) Service
     Loaded: loaded (/etc/systemd/system/intel_lpmd.service; enabled; preset: disabled)
     Active: inactive (dead) since Mon 2025-03-10 03:50:36 WIB; 2min 9s ago
 Invocation: 163974a338c4491db10e73ed8266f38a
    Process: 4191 ExecStart=/usr/sbin/intel_lpmd --systemd --dbus-enable (code=exited, status=2)
   Main PID: 4191 (code=exited, status=2)
        CPU: 27ms
ilham@localhost /e/s/system [3]> 

What about as root:
journalctl -f
and in a second terminal as root:
systemctl start intel_lpmd.service

this is the respons, i think something wrong

lpmd is read config in diferent directory . read from etc/intel_lpmd/intel_lpmd_config.xml

but intel_lpmd from opensuse put config in difrernt directory

/usr/bin/intel_lpmd_control
/usr/sbin/intel_lpmd
/usr/share/doc/packages/intel-lpmd
/usr/share/doc/packages/intel-lpmd/README.md
/usr/share/doc/packages/intel-lpmd/intel_lpmd_config.xml
/usr/share/doc/packages/intel-lpmd/intel_lpmd_config_F6_M170.xml
/usr/share/licenses/intel-lpmd
/usr/share/licenses/intel-lpmd/COPYING
/usr/share/man/man5/intel_lpmd_config.xml.5.gz
/usr/share/man/man8/intel_lpmd.8.gz
localhost:/home/ilham #  journalctl -f
Mar 10 05:21:32 localhost.localdomain systemd[1699]: Started Konsole - Terminal.
Mar 10 05:21:32 localhost.localdomain systemd[1699]: Started app-org.kde.konsole-2756.scope.
Mar 10 05:21:33 localhost.localdomain su[2798]: pam_kwallet5(su:auth): pam_kwallet5: pam_sm_authenticate
Mar 10 05:21:33 localhost.localdomain su[2798]: pam_kwallet5(su:auth): pam_kwallet5: Refusing to do anything for the root user
Mar 10 05:21:34 localhost.localdomain su[2798]: (to root) ilham on pts/0
Mar 10 05:21:34 localhost.localdomain su[2798]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Mar 10 05:21:34 localhost.localdomain su[2798]: pam_unix(su:session): session opened for user root(uid=0) by ilham(uid=1000)
Mar 10 05:21:34 localhost.localdomain su[2798]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_open_session
Mar 10 05:21:34 localhost.localdomain su[2798]: pam_kwallet5(su:session): pam_kwallet5: Refusing to do anything for the root user
Mar 10 05:21:43 localhost.localdomain rtkit-daemon[1843]: Successfully made thread 2871 of process 2273 owned by '1000' RT at priority 10.
Mar 10 05:21:49 localhost.localdomain systemd[1]: systemd-timedated.service: Deactivated successfully.
Mar 10 05:21:49 localhost.localdomain systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Mar 10 05:21:57 localhost.localdomain kded6[1863]: org.kde.colorcorrectlocationupdater: Geolocator stopped
Mar 10 05:22:09 localhost.localdomain su[2921]: pam_kwallet5(su:auth): pam_kwallet5: pam_sm_authenticate
Mar 10 05:22:09 localhost.localdomain su[2921]: pam_kwallet5(su:auth): pam_kwallet5: Refusing to do anything for the root user
Mar 10 05:22:10 localhost.localdomain su[2921]: (to root) ilham on pts/1
Mar 10 05:22:10 localhost.localdomain su[2921]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Mar 10 05:22:10 localhost.localdomain su[2921]: pam_unix(su:session): session opened for user root(uid=0) by ilham(uid=1000)
Mar 10 05:22:10 localhost.localdomain su[2921]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_open_session
Mar 10 05:22:10 localhost.localdomain su[2921]: pam_kwallet5(su:session): pam_kwallet5: Refusing to do anything for the root user
Mar 10 05:22:11 localhost.localdomain systemd[1]: Starting Intel Linux Energy Optimizer (lpmd) Service...
Mar 10 05:22:11 localhost.localdomain intel_lpmd[2953]: Looking for config file /etc/intel_lpmd/intel_lpmd_config_F6_M154_T15.xml
Mar 10 05:22:11 localhost.localdomain intel_lpmd[2953]: Looking for config file /etc/intel_lpmd/intel_lpmd_config_F6_M154.xml
Mar 10 05:22:11 localhost.localdomain intel_lpmd[2953]: Reading configuration file /etc/intel_lpmd/intel_lpmd_config.xml
Mar 10 05:22:11 localhost.localdomain intel_lpmd[2953]: error: could not find file /etc/intel_lpmd/intel_lpmd_config.xml
Mar 10 05:22:11 localhost.localdomain systemd[1]: intel_lpmd.service: Deactivated successfully.
Mar 10 05:22:11 localhost.localdomain systemd[1]: Started Intel Linux Energy Optimizer (lpmd) Service.
Mar 10 05:22:55 localhost.localdomain systemd[1]: virtqemud.service: Deactivated successfully.

So why output diferent in opensuse TW? If i user root user and Regular users

Because of the /usr move ~1½ y ago?