Some months ago I had a problem: after resuming from sleep the compositor stopped working.
Searching through internet, i found nothing useful but this
So, i created the service ant it fixed the problem: every time I resumed from sleep, a notification from “Kwin Window Manager” popped-up saying “Desktop effects were restarted due to a graphics reset”
Now, after months, I wanted to see if any update fixed the problem once and for all.
So I tried to disable the service using systemd disable but next time after resuming the notification was still there (I rebooted meanwhile). I tried with systemd mask, with no results whatsoever. Finally, I decided to delete the service. And guess what? The notification still appears after resuming…
I checked inside /usr/lib/systemd/system/ and /etc/systemd/system/, the service I created is nowhere.
This is form the journal: [luigi@Luigi-pc ~]$ journalctl -b | grep "restart" dic 07 09:43:53 Luigi-pc latte-dock[1331]: "An instance is already running!, use --replace to restart Latte" dic 16 18:10:03 Luigi-pc polkit-kde-authentication-agent-1[1264]: Message of action: "Authentication is required to start 'kwin-restart@luigi.service'." dic 16 18:10:05 Luigi-pc polkitd[572]: Operator of unix-session:2 successfully authenticated as unix-user:luigi to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.54906 [systemctl start kwin-restart@luigi.service] (owned by unix-user:luigi) dic 16 22:09:23 Luigi-pc dbus-daemon[567]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.56418' (uid=0 pid=817116 comm="sudo systemctl stop kwin-restart@lu igi.service " label="unconfined") dic 16 22:09:23 Luigi-pc sudo[817116]: luigi : TTY=pts/1 ; PWD=/home/luigi ; USER=root ; COMMAND=/usr/bin/systemctl stop kwin-restart@luigi.service dic 16 22:09:37 Luigi-pc dbus-daemon[567]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.56422' (uid=0 pid=817158 comm="sudo systemctl disable kwin-restart @luigi.service " label="unconfined") dic 16 22:09:37 Luigi-pc sudo[817158]: luigi : TTY=pts/1 ; PWD=/home/luigi ; USER=root ; COMMAND=/usr/bin/systemctl disable kwin-restart@luigi.service dic 16 22:09:52 Luigi-pc dbus-daemon[567]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.56426' (uid=0 pid=817206 comm="sudo systemctl stop kwin-restart@lu igi.service " label="unconfined") dic 16 22:09:52 Luigi-pc sudo[817206]: luigi : TTY=pts/1 ; PWD=/home/luigi ; USER=root ; COMMAND=/usr/bin/systemctl stop kwin-restart@luigi.service
With systemctl status this is what I get [luigi@Luigi-pc ~]$ systemctl status kwin-restart@luigi.service Unit kwin-restart@luigi.service could not be found.
I have no idea why this is happening. Any thoughts?
Thank you and sorry for my English.
[luigi@Luigi-pc ~]$ sudo systemctl is-enabled kw
kwalletd5 kwallet-query kwin_x11 kwriteconfig5
kwalletmanager5 kwin_wayland kwrapper5
[luigi@Luigi-pc ~]$ sudo systemctl is-enabled kw
kwalletd5 kwallet-query kwin_x11 kwriteconfig5
kwalletmanager5 kwin_wayland kwrapper5
[luigi@Luigi-pc ~]$ sudo systemctl is-enabled kwin-restart@luigi.service
[sudo] password for luigi:
Failed to get unit file state for kwin-restart@luigi.service: No such file or directory
[luigi@Luigi-pc ~]$ sudo systemctl is-enabled kwin-restart@$USER.service
Failed to get unit file state for kwin-restart@luigi.service: No such file or directory
[luigi@Luigi-pc ~]$ sudo systemctl is-enabled kwin-restart@.service
Failed to get unit file state for kwin-restart@.service: No such file or directory
[luigi@Luigi-pc ~]$ sudo systemctl stop kwin-restart@luigi.service
Failed to stop kwin-restart@luigi.service: Unit kwin-restart@luigi.service not loaded.
[luigi@Luigi-pc ~]$ sudo systemctl stop kwin-restart@.service
Failed to stop kwin-restart@.service: Unit name kwin-restart@.service is missing the instance name.
See system logs and 'systemctl status kwin-restart@.service' for details.
[luigi@Luigi-pc ~]$
[luigi@Luigi-pc ~]$ systemctl status kwin-restart@.service
Failed to get properties: Unit name kwin-restart@.service is neither a valid invocation ID nor unit name.
[luigi@Luigi-pc ~]$ sudo systemctl disable kwin-restart@luigi.service
Failed to disable unit: Unit file kwin-restart@luigi.service does not exist.
[luigi@Luigi-pc ~]$ sudo systemctl disable kwin-restart@.service
Failed to disable unit: Unit file kwin-restart@.service does not exist.
[luigi@Luigi-pc ~]$ sudo rm /etc/systemd/system/kwin-restart@luigi.service
rm: cannot remove '/etc/systemd/system/kwin-restart@luigi.service': No such file or directory
[luigi@Luigi-pc ~]$ sudo rm /etc/systemd/system/kwin-restart@.service
rm: cannot remove '/etc/systemd/system/kwin-restart@.service': No such file or directory
[luigi@Luigi-pc ~]$ sudo rm /urs/lib/systemd/system/kwin-restart@luigi.service
rm: cannot remove '/urs/lib/systemd/system/kwin-restart@luigi.service': No such file or directory
[luigi@Luigi-pc ~]$ sudo rm /urs/lib/systemd/system/kwin-restart@.service
rm: cannot remove '/urs/lib/systemd/system/kwin-restart@.service': No such file or directory
[luigi@Luigi-pc ~]$ systemctl daemon-reload
[luigi@Luigi-pc ~]$ systemctl reset-failed
[luigi@Luigi-pc ~]$ systemctl is-enabled kwin-restart@luigi.service
Failed to get unit file state for kwin-restart@luigi.service: No such file or directory
[luigi@Luigi-pc ~]$ systemctl is-enabled kwin-restart@.service
Failed to get unit file state for kwin-restart@.service: No such file or directory
How can I do this? The wiki doesn’t say anything about removing symlinks
If the popup is still showing, even after you have stopped/disabled/masked/removed the service file, then it only means that the functionality was implemented in some other place after the updates.
Because as you know a computer can not execute something that is not there anymore
Some update must have incorporated a similar fix in some part of it.
Wasn’t that what you wanted to find out in first place?
plus explanation, point to /etc/systemd/system/kwin-restart@.service that you created.
Which looking at the commands it executes, is only to suspend/resume the compositor.
That is a totally different service which if im not mistaken is part of KDE it self, which is separate from the service file mentioned at top of this reply…
Hence don’t mix apples and oranges…
Is there a way to find out who’s the trigger?
Also, look at this
[luigi@Luigi-pc ~]$ sudo systemctl stop kwin-restart@luigi.service Failed to stop kwin-restart@luigi.service: Unit kwin-restart@luigi.service not loaded. [luigi@Luigi-pc ~]$ sudo systemctl stop kwin-restart@.service Failed to stop kwin-restart@.service: Unit name kwin-restart@.service is missing the instance name. See system logs and 'systemctl status kwin-restart@.service' for details. [luigi@Luigi-pc ~]$ systemctl status kwin-restart@.service Failed to get properties: Unit name kwin-restart@.service is neither a valid invocation ID nor unit name.
Why different outputs is neither kwin-restart@.service and kwin-restart@luigi.service exist?
That service can not be active anywhere because it is an “Instance template”, which will only be used when you have a service enabled like kwin-restart@luigi.service, take note of the name after the @ sign…
PS: When you post multi-line terminal output please use tripple back-ticks on own line followed by your output followed by another tripple back-ticks on own line, instead of single lines between a single back-tick…
Actually kwin-restart@luigi.service is just a symbolic link to kwin-restart@.service when you enable a service named kwin-restart@luigi.service
Because you can not start/stop or ask the status of service templates you get those error messages when you use the bare template name without an instance name.