You are not logged in.

#1 2015-01-13 22:27:54

mawiegand
Member
From: Germany
Registered: 2015-01-13
Posts: 5
Website

System reboots instead of shutting down

Hey,

if I try to shutdown my laptop it reboots instead of shutting down.
This behavior occurs when using shutdown menu from KDE, but also when using

shutdown -hP now

in terminal. Currently I've got no idea how to fix this problem.
It's very annoying, so I will appreciate any hint!

dmesg output: Here
lspci output: Here
lscpu output: Here

Thanks for your contribution! smile


with best regards,
Marcel

About me: Homepage +++ GitHub +++ Google+

Offline

#2 2015-01-13 23:17:40

Kinokoio
Member
Registered: 2014-10-29
Posts: 33
Website

Re: System reboots instead of shutting down

Try systemctl shutdown.


----- Think out of the Box. ------
Archer since 2010.
My projects: http://github.com/kinokoio

Offline

#3 2015-01-13 23:28:01

mawiegand
Member
From: Germany
Registered: 2015-01-13
Posts: 5
Website

Re: System reboots instead of shutting down

Thanks for your quick reply.

systemctl shutdown

Does not exist, but with

systemctl poweroff

I was able to shutdown my laptop.
Any hints how to fix this in KDE menu?


with best regards,
Marcel

About me: Homepage +++ GitHub +++ Google+

Offline

#4 2015-01-13 23:45:06

Kinokoio
Member
Registered: 2014-10-29
Posts: 33
Website

Re: System reboots instead of shutting down

KDE menu uses upower, as far as I know. So, the problem has to be with upower, not with the kernel. Perhaps a misclick or a misconfiguration, rather than a bug. If using upower you have that problem, the mystery is solved.


----- Think out of the Box. ------
Archer since 2010.
My projects: http://github.com/kinokoio

Offline

#5 2015-01-14 00:38:38

mawiegand
Member
From: Germany
Registered: 2015-01-13
Posts: 5
Website

Re: System reboots instead of shutting down

After making some changes in /usr/shar/config/kdm/kdmrc:

Before:

[Shutdown]
BootManager=Grub2
HaltCmd=/sbin/shutdown -h -P now
RebootCmd=/sbin/shutdown -r now

After:

[Shutdown]
BootManager=Grub2
HaltCmd=/sbin/poweroff
RebootCmd=/sbin/reboot

Now everything seems to work.


with best regards,
Marcel

About me: Homepage +++ GitHub +++ Google+

Offline

#6 2015-01-14 03:05:55

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: System reboots instead of shutting down

Hey, but how old is your system ?

My /usr/share/config/kdm/kdmrc:

cat /usr/share/config/kdm/kdmrc | grep shutdown
# Default is "/sbin/shutdown -h -P now"
HaltCmd=/usr/bin/shutdown -h -P now
# Default is "/sbin/shutdown -r now"
RebootCmd=/usr/bin/shutdown -r now

However /usr/bin/shutdown is a symlink to systemctl.
Don't you have some /usr/share/config/kdm/kdmrc.pacnew laying around ?


do it good first, it will be faster than do it twice the saint wink

Offline

#7 2015-01-14 16:09:22

mawiegand
Member
From: Germany
Registered: 2015-01-13
Posts: 5
Website

Re: System reboots instead of shutting down

TheSaint wrote:

Hey, but how old is your system ?

Not old. Installation was on October or November 2014.

TheSaint wrote:

My /usr/share/config/kdm/kdmrc:

cat /usr/share/config/kdm/kdmrc | grep shutdown
# Default is "/sbin/shutdown -h -P now"
HaltCmd=/usr/bin/shutdown -h -P now
# Default is "/sbin/shutdown -r now"
RebootCmd=/usr/bin/shutdown -r now

My kdrmc: Here

TheSaint wrote:

However /usr/bin/shutdown is a symlink to systemctl.

Yeah, I know. But this seems to be the reasons why it's working.
Shutting down with

shutdown -h -P now

does not work. My laptop is down for about two seconds and then reboots.
But it works with

systemctl poweroff
TheSaint wrote:

Don't you have some /usr/share/config/kdm/kdmrc.pacnew laying around?

Yeah, I've got one: Here.
I also replaced my current kdmrc config with the kdmrc.pacnew,
but after making some changes in systemsettings of KDE it looks like the linked config above.


with best regards,
Marcel

About me: Homepage +++ GitHub +++ Google+

Offline

#8 2015-01-14 21:51:51

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: System reboots instead of shutting down

mawiegand wrote:

Shutting down with

shutdown -h -P now

does not work. My laptop is down for about two seconds and then reboots.
But it works with

systemctl poweroff

So, a bit of hacking, my friend wink
You may need to replace the command line in the kdmrc.

mawiegand wrote:

I also replaced my current kdmrc config with the kdmrc.pacnew,

For lesser risks I'm used to compare the files before do a change and see if it's worth the substitution.


do it good first, it will be faster than do it twice the saint wink

Offline

#9 2015-01-15 00:15:21

mawiegand
Member
From: Germany
Registered: 2015-01-13
Posts: 5
Website

Re: System reboots instead of shutting down

OK. The problem is not fixed.

I am able to shutdown with

systemctl poweroff

and also with

shutdown -h -P now

but only in battery mode. When my laptop is connected to my docking station both commands don't work…
Any hints how to solve this? Thanks!


with best regards,
Marcel

About me: Homepage +++ GitHub +++ Google+

Offline

Board footer

Powered by FluxBB