[DONE]Strange problem with shutdown

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[DONE]Strange problem with shutdown

Postby mackowiakp » Jun 13th, '16, 14:48

Problem with my Wife computer (URGENT!!). :lol:

When she want to shutdown computer from KDE GUI, it does shutdown computer but logout user from system and login screen appears. What I have to correct situation?
Last edited by mackowiakp on Jun 17th, '16, 13:10, edited 1 time in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Strange problem with shutdown

Postby isadora » Jun 13th, '16, 15:49

Maybe have a look at:
KDE System Settings-> Startup and shutdown-> Session Management-> Offer shutdown options
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Strange problem with shutdown

Postby mackowiakp » Jun 14th, '16, 06:32

I have several M5 based PC and all of them has KDE configured the way You show in Your post. Including that one with "strange" shutdown problem.
I have to mention once more. The problem is that I click on "Zakończ" (that is "End session") in M5 main panel and than "Shutdown". But the PC logout user (to user login screen) instead shutdown system.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Strange problem with shutdown

Postby claire » Jun 14th, '16, 21:51

Sometimes see this symptom when pre-release testing new releases. It's normally an issue with polkit.

$ ps -e | grep polkit
1072 ? 00:00:00 polkitd
3395 ? 00:00:00 polkit-kde-auth
Help to make Mageia! Get involved.. Please come and join us
claire
 
Posts: 161
Joined: May 28th, '11, 19:17
Location: UK

Re: Strange problem with shutdown

Postby mackowiakp » Jun 15th, '16, 05:19

OK. But I have several M5 based PC. Apart from the fact that different hardware, installation everywhere M5 is identical. And this is strange. Because all four PC behave properly. With the exception of one.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Strange problem with shutdown

Postby doktor5000 » Jun 15th, '16, 17:49

So what? Others maintain several dozen similar installations, and only one machine misbehaves in unexpected ways.

At the very least provide the output of the following commands, run as your regular user in a terminal:
Code: Select all
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY

and as root from:
Code: Select all
systemctl status polkit.service -a
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Strange problem with shutdown

Postby mackowiakp » Jun 15th, '16, 18:03

doktor5000 wrote:So what? Others maintain several dozen similar installations, and only one machine misbehaves in unexpected ways.


Yes, exactly.

Below outputs:

Code: Select all
[gosia@gosia ~]$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=gosia
Timestamp=śro 2016-06-15 16:07:01 CEST
TimestampMonotonic=35908189
VTNr=1
Display=:0
Remote=no
Service=kdm-np
Scope=session-c1.scope
Leader=1499
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
[gosia@gosia ~]$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   1334     1  0 16:06 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
gosia     2505     1  0 16:07 ?        00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
[gosia@gosia ~]$ pkexec whoami
root
[gosia@gosia ~]$ echo $DISPLAY
:0
[gosia@gosia ~]$


and

Code: Select all
[gosia@gosia ~]$ systemctl status polkit.service -a
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since śro 2016-06-15 16:07:00 CEST; 1h 53min ago
     Docs: man:polkit(8)
 Main PID: 1334 (polkitd)
   CGroup: /system.slice/polkit.service
           └─1334 /usr/lib/polkit-1/polkitd --no-debug
[gosia@gosia ~]$
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Strange problem with shutdown

Postby doktor5000 » Jun 15th, '16, 18:18

Seems alright regarding polkit, system daemon is running. your logind session is considered active and a polkit agent is running for your user.

What happens if you run the following command as your regular user?
Code: Select all
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Strange problem with shutdown

Postby mackowiakp » Jun 15th, '16, 18:37

It logouts user and login screen appears.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Strange problem with shutdown

Postby doktor5000 » Jun 15th, '16, 23:59

Well, that is the command that is run for the log off command, so it's working in general, you could create a desktop shortcut for that command as mitigation, that way you'd also have to click less ;)

Does your wife maybe use the quick user switch, or is there only one user using that box? Does the problem persist under a newly created user?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Strange problem with shutdown

Postby mackowiakp » Jun 16th, '16, 00:51

Well. M5 is not housewife proof ;-)
So, I created of course shortcut for quick computer shutdown. My wife is the only user of that laptop, but I will create another user to test it.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [DONE]Strange problem with shutdown

Postby mackowiakp » Jun 17th, '16, 13:13

Yep. Workaround that is "STOP" icon on screen and shutdown script associated with the icon, resolved problem. In my wife meaning of course. Nothink more to be happy ;-)
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron