Cinnamon: shutdown & reboot Probleme

Hallo
Bestimmt kennt jemand das Problem, das rebot oder shutdown aus dem Cinnamon Menü nicht funktionieren, stattdessen kommt der Anmeldedialog. Da kann man dann runterfahren.
Also habe ich mir zwei Starter gebaut und diese in die Leiste gelegt. Wir bleiben jetzt bei shutdown.

[Desktop Entry]
Name=Shutdown
Exec=shutdown
Comment=
Terminal=false
PrefersNonDefaultGPU=false
Icon=system-shutdown-symbolic
Type=Application

Egal ob ich shutdown oder shutdown now eintrage, es macht keinen Unterschied.
Dann habe ich die sudoers editiert und diese Zeile eingefügt:

USER HOST =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl reboot

USER // Host ist natürlich mein Benutzernalme / Rechnername.
Meistens funktioniert es, manchmal jedoch nicht. Als es heute wieder mal nicht funktionierte, das im Terminal getestet:

shutdown
Failed to schedule shutdown: Access denied

shutdown now
Operation inhibited by "(name)" (PID 813 "cinnamon-sessio", user (name)), reason is "user session inhibited".
Please retry operation after closing inhibitors and logging out other users.
'systemd-inhibit' can be used to list active inhibitors.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'

Den folgenden Befehl im Web gefunden, das ist das Ergebnis:

systemd-inhibit --list
WHO            UID  USER    PID  COMM            WHAT                                                       WHY                                        MODE 
NetworkManager 0    root    657  NetworkManager  sleep                                                      NetworkManager needs to turn off networks  delay
UPower         0    root    1026 upowerd         sleep                                                      Pause device polling                       delay
me             1000 me      842  csd-power       handle-lid-switch                                          Multiple displays attached                 block
me             1000 me      860  csd-media-keys  handle-power-key:handle-suspend-key:handle-hibernate-key   Cinnamon handling keypresses               block
me             1000 me      813  cinnamon-sessio shutdown:sleep                                             user session inhibited                     block
me             1000 me      842  csd-power       sleep                                                      Cinnamon needs to lock the screen          delay

6 inhibitors listed.

Und jetzt komme ich nicht mehr weiter. Was kann das sein das manchmal das System mit dem Starter nicht runterfährt oder rebootet ??
Was kann man da tun?

“Those, someone knows the problem that rebot or shutdown from the Cinnamon menu does not work, instead the registration dialog comes. Then you can drive down.
So I built two starters and put them in the bar. We stay with Shutdown now.
Regardless of whether I arrive shutdown or shutdown Now, it makes no difference.
Then I edited the Sudoers and inserted this line:
User // host is of course my usernalme / computer name.
Most of the time it works, but sometimes not. When it didn’t work today that tested in the terminal: and now I can’t get any further. What can it be that sometimes the system does not drive down or reboot with the starter?
What can you do?”
translation ^

you seemed to edit a bunch of shutdown stuff. did you need to?

initial thoughts:

  1. “access denied” is permissions and you amended your sudoers file; I guess that looks ok
  2. so maybe systemctl is not getting the sudo?

As far as intermittent shutdown that’s the best I could do.
Use the forum search, I seem to remember a recent Cinnamon problem where user could not shut down from menu window.

I can and do shut down Cinnamon in the menu so now perhaps the question is ‘what do I have setup that you don’t have setup’?

ok I did find two ‘known’ knowns with no solutions here. one below

this is about restoring a disappearing ‘suspend’ button the menu but you may find the edits in the ./conf files interesting:

a search for ‘intermittent’ turned up nothing. a search for ‘intermittent shutdown’ returned nothing. But chase the cinnamon/github link in the first source. It’s common, it happens to people, but not seeing a lot fixes either.

someone else here will have the answer in an hour I’m sure.
I am just spitballing above my pay grade-- good luck.

Vielen Dank für deine Antwort / Thank you for your answer
Anscheinend scheint das deutsche Forum nicht zu funktionieren, bei meinen Fragen helfen immer englischsprachige Forumsmitglieder. Gut in Zukunft werde ich das im Englischsprachigem Forum posten. Ich muss es dann übersetzen lassen.


Apparently the German forum doesn’t seem to work, English-speaking forum members always help with my questions. Well, in the future I will post this in the English forum. I then have to have it translated.

Ich habe lediglich die sudoers bearbeitet und zwei Starter erstellt für shutdown & reboot.
Was ist daran ungewöhnlich?

Das musste ich tun weil es im Cinnamon Menü nicht funktioniert. Das habe ich schon beschrieben. Aber die Starter funktionieren nicht ohne die sudoers zu bearbeiten. Was imho ein bug ist, shutdown now sollte ohne root rechte funktionieren.

Das liegt aber nur an einem “inhibitor” Ich habe das herausgefunden das ich den Befehl systemd-inhibit --list direkt nach dem hochfahren ausgeführt habe
Da fehlt eine Zeile, und zwar diese:


I just edited the sudoers and created two launchers for shutdown & reboot.
What is unusual about it?

I had to do that because it doesn’t work in the Cinnamon menu. I have already described that. But the launchers don’t work without editing the sudoers. Which is imho a bug, shutdown now should work without root rights.

Das liegt aber nur an einem “inhibitor” Ich habe das herausgefunden das ich den Befehl
systemd-inhibit --list direkt nach dem hochfahren ausgeführt habe.
Da fehlt eine Zeile, und zwar diese:


But this is only due to an “inhibitor” I found out that I can use the command
systemd-inhibit --list right after booting. There is one line missing, and that is this:

me             1000 me      813  cinnamon-sessio shutdown:sleep                                             user session inhibited                     block

Das wird die Ursache für mein Problem sein. Ich kann aber nicht sagen woher das kommt, oder wie ich dies Zeile verhindern kann.
Wenn diese Zeile nicht existiert, fährt mein System ohne Probleme mit shutdown now herunter.
Ich behaupte weiterhin das ich dann den sudoers Eintrag wieder entfernen kann.


That will be the cause of my problem. But I can’t say where this comes from, or how I can prevent this line.
If this line doesn’t exist, my system shuts down with shutdown now without any issues.
I still claim that I can then remove the sudoers entry again.

Hier habe ich eine Lösung gefunden die ich nicht verstehe:
Here I found a solution that I don’t understand:

Ich habe was hier gefunden // I found something here:

Diese Befehle sollen ausgeführt werden // These commands are to be executed.
Dazu mussten devtools installiert werden // To do this, devtools had to be installed:

cd /tmp/
pkgctl repo clone --protocol=https cinnamon-session
cd cinnamon-session
sed "/build()/ased '/maybe_restart_user_bus (manager);/d' -i \${pkgname}-\${pkgver}/cinnamon-session/csm-manager.c" -i PKGBUILD
makepkg -cirs

Ich habe diese Befehle ausgeführt, wir werden sehen ob das mein Problem gelöst hat.


I’ve run these commands, we’ll see if that solved my problem.

Nein, hat nicht gebracht, das Problem besteht weiterhin. Irgendwer noch eine Idee? Muss ich neu installieren?


No, it didn’t help, the problem still exists. Anyone else have an idea? Do I need to reinstall?

cinnamon-session-quit --power-off
cinnamon-session-quit --logout
cinnamon-session-quit --reboot
cinnamon-screensaver-command -l

BTW Rechtsklick auf den Desktop /Schreibtisch > Desklets hinzufügen > Download Mintoo
> Manage + Mintoo
Mit Standard Benutzer es ist Problemlos.

Ich kannte den Befehl noch nicht, aber da kommt wieder eine Abfrage wo ich das Passwort eingeben muss. Wenn es nicht anders möglich ist, werde ich die sudoers bearbeiten.


I didn’t know the command yet, but there is another prompt where I have to enter the password. If it is not possible otherwise, I will edit the sudoers.
Zweitens/Secondly:
Das Desklet funktioniert, jedoch kann ich es nicht bewegen, es hat sich sehr ungünstig positioniert. So kann das nicht bleiben zumal es auch sehr groß ist.


The desklet works, but I can’t move it, it has positioned itself very awkwardly. It can’t stay like this, especially since it’s also very big.

EDIT
Der Pfad zu cinnamon-session-quit funktioniert nicht in sudoers:
/usr/bin/cinnamon-session-quit --power-off
Er funktioniert im Terminal, aber es kommt immer noch eine Passwort abfrage.


The path to cinnamon-session-quit doesn’t work in sudoers:
/usr/bin/cinnamon-session-quit --power-off
It works in terminal, but there is still a password prompt.

Linksklick in der Mitte und ziehen.

Danke, hatte es überall versucht anzufassen aber anscheinend nicht in der Mitte :grinning_face:
EDIT
Auch hier kommt wieder dieser unnütze Dialog den ich nicht wegbekommen. Warum ist das so kompliziert?


Again, there is this useless dialogue that I can’t get rid of. Why is it so complicated?

Siehst du den roten Punkt in der Mitte? Das ist der, an dem man ziehen muss.


Übrigens

cat /etc/group | grep wheel
wheel:x:998:a

Ist der Benutzer in der wheel gruppe?
Wenn das Opfer nicht zu groß ist, könnte Cinnamon wieder installiert werden.

Ja, den hatte ich gefunden, alles in Ordnung. // Yes, I found it, everything is fine.

Yes.

Das verstehe ich nicht. Meinst du vielleicht Neuinstallation von EOS Cinnamon?


I don’t understand. Do you mean reinstalling EOS Cinnamon?

Na, ja.

Nein. bevor das Problem nicht geklärt ist werde ich keine Neuinstallation in Erwägung ziehen.
No. until the problem is resolved, I will not consider a new installation.


II have recognized the problem, but no one here seems to understand. I’ll try again, I’ll leave this completely in English:
The problem is a so-called inhibitor that is set when I start the Epic Game Shop via Lutris. I can’t shut down my system when Epic is still running in the background, or sitting in the bar. If I finish it completely, I can shut down the system with my self-created starters:

[Desktop Entry]
Name=Shutdown
Exec=shutdown now
Comment=
Terminal=false
PrefersNonDefaultGPU=false
Icon=system-shutdown-symbolic
Type=Application

This launcher only works when the Epic Game Store is NOT running.
When it’s running, I get this error message when I use shutdown in the terminal:

shutdown
Failed to schedule shutdown: Access denied

shutdown now
Operation inhibited by "(name)" (PID 813 "cinnamon-sessio", user (name)), reason is "user session inhibited".
Please retry operation after closing inhibitors and logging out other users.
'systemd-inhibit' can be used to list active inhibitors.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'

As described here, in the last line, you can skip the inhibitor if you:
systemctl poweroff -i used.
Yes, it works, but then you get a password prompt.
To see all inhibitors, the following command is used. The Epic Game Store is active:

systemd-inhibit --list
WHO            UID  USER PID  COMM             WHAT                                                      WHY                                       MODE 
NetworkManager 0    root 660  NetworkManager   sleep                                                     NetworkManager needs to turn off networks delay
UPower         0    root 1038 upowerd          sleep                                                     Pause device polling                      delay
me             1000 me   850  csd-power        handle-lid-switch                                         Multiple displays attached                block
me             1000 me   855  csd-media-keys   handle-power-key:handle-suspend-key:handle-hibernate-key  Cinnamon handling keypresses              block
me             1000 me   824  cinnamon-sessio  shutdown:sleep                                            user session inhibited                    block
me             1000 me   850  csd-power        sleep                                                     Cinnamon needs to lock the screen         delay

6 inhibitors listed.

The culprit is the inhibitor with PID 824, penultimate line:

me   1000 me  824  cinnamon-sessio  shutdown:sleep  user session inhibited  block

If the Epic Game Store is not active, the inhibitor with the PID 824 view can also be seen.
Then my two starters will also work.

Yes, I know what is proposed now, just turn off the Epic Game Store and everything works.
But my question is actually how to completely deactivate these inhibitors. I have also installed the Mate Desktop here, when I activate Mate I don’t have this problem!
It’s definitely a cinnamon problem! And none from the system. And I’m not alone in this.

Was that understandable?
So how can I disable the inhibitor? Complete? Would that be possible?

I do not really know. This problem might be related to the fact that you did not exit correctly from
one of the games or Epic Game Store.
Try / Versuchen Sie

sudo killall cinnamon-sessio

Ich weiß es nicht genau. Dieses Problem könnte damit zusammenhängen, dass Sie eines der Spiele oder den Epic Game Store nicht korrekt verlassen haben.

1 Like

Funktioniert nicht. es fehlt auch eine Buchstabe es heist cinnamon-session aber auch das funktioniert nicht.
Fazit
Leider scheint keiner zu wissen von was ich rede, beziehungsweise wie ich einen inhibitor ausschalten kann. Ich habe auch im Web nichts dazu gefunden. Das Interesse mir in diesem Beitrag zu helfen ist nicht sehr groß.
Ich habe keine Idee mehr, ich lass das jetzt mit Cinnamon.
Cinnamon scheint auch sehr wenig gepflegt zu werden, das Problem mit dem Herunterfahren übers Menü besteht schon seit 2019.
Da habe ich die erste Beschwerde darüber im web gefunden. Seltsamerweise scheint es das Problem nur bei EndeavourOS & Linux Mint zu geben, bei Manjaro nicht.
Manjaro hat andere Cinnamon Probleme, die hier beschriebenen jedoch nicht.

Ich werde jetzt das System neu aufsetzen, ich kehre zurück zu meinem alten Desktop XFCE.
Damit komme ich besser zurecht. Ob ich bei EndeavourOS bleibe weis ich noch nicht.

Danke an jene die helfen wollten. Danke an eso.


Doesn’t work. it’s also missing a letter, it’s called ‘cinnamon-session’, but that doesn’t work either.
Result
Unfortunately, no one seems to know what I’m talking about, or how I can turn off an inhibitor. I haven’t found anything about it on the web either. The interest in helping me in this article is not very great.
I have no more idea, I’ll leave it with Cinnamon now.
Cinnamon also seems to be very little maintained, the problem with shutting down via the menu has existed since 2019.
That’s when I found the first complaint about it on the web. Strangely enough, the problem seems to exist only with EndeavourOS & Linux Mint, not with Manjaro.
Manjaro has other cinnamon problems, but not the ones described here.

I’m going to reinstall the system now, I’m going back to my old desktop XFCE.
I can cope better with that. I don’t know yet whether I’ll stay with EndeavourOS.

Thanks to those who wanted to help. Thanks to eso.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.