You are not logged in.

#1 2014-03-26 10:43:55

blubbb
Member
Registered: 2013-09-26
Posts: 59

Random restart

Hello Everybody

some time ago my system begun to reboot when i turned it off(with the poweroff command). It's really strange because sometimes it DOES a poweroff, sometimes it boots directly again.
Is there anyone which could help me out with this problem?

Greetings
Blubbb

Offline

#2 2014-03-26 15:39:01

CubeGod
Member
Registered: 2013-07-09
Posts: 120

Re: Random restart

mmm... I'm not sure why it would do this but perhaps the logs might provide some insight, most likely kern.log but potentially Xorg.x.log as well (they're most likely located in  /var/log/ unless you have some rather unusual setup)

Anyhow, without any more information than currently given I can merely speculate (and only just barely), please do provide more information on the problem (and do zip up the logs and add them as an attachment too, they are probably relevant)

Offline

#3 2014-03-26 15:54:58

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Random restart

What desktop environment and, if any, which display manager are you using?

Offline

#4 2014-03-26 17:24:32

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Random restart

CubeGod wrote:

mmm... I'm not sure why it would do this but perhaps the logs might provide some insight, most likely kern.log but potentially Xorg.x.log as well (they're most likely located in  /var/log/ unless you have some rather unusual setup)

Anyhow, without any more information than currently given I can merely speculate (and only just barely), please do provide more information on the problem (and do zip up the logs and add them as an attachment too, they are probably relevant)

When you cannot explain any behavior, always look at the logs first. CubeGod, there is no way to attach files in our bbs. Use pastebin or similar to post logs if they are huge. Minor snippets can be displayed in the [ code ] tags.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2014-03-26 18:10:35

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: Random restart

Actually I did not find any kern.log, so here's just my Xorg.0.log:
http://pastebin.com/FSip5stL

I'm using Xmonad as a window manager, however I usually shut the xserver down before powering off the system.

Offline

#6 2014-03-27 00:47:25

CubeGod
Member
Registered: 2013-07-09
Posts: 120

Re: Random restart

if there isn't a kern.log (or kern.0.log or similar) then there are no kernel error messages or your system suppresses them (at least afaik)

blubbb, I presume you are shutting down using

$shutdown now

since I can't find any error in your xorg log (and since you said you usually shut down the x server before shutting down)
I'd presume there'd be some error logs though (I wonder... could one pipe the output of shutdown using $shutdown now > shutdown.log  maybe?)

Last edited by CubeGod (2014-03-27 00:50:18)

Offline

#7 2014-03-27 05:03:47

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: Random restart

CubeGod wrote:

if there isn't a kern.log (or kern.0.log or similar) then there are no kernel error messages or your system suppresses them (at least afaik)

blubbb, I presume you are shutting down using

$shutdown now

since I can't find any error in your xorg log (and since you said you usually shut down the x server before shutting down)
I'd presume there'd be some error logs though (I wonder... could one pipe the output of shutdown using $shutdown now > shutdown.log  maybe?)

Usually I do shutdown with "poweroff" since I don't know any better how those poweroff commands are different, but I'll try it smile
Should I post the file even if it didn't reboot?

Offline

#8 2014-03-28 04:58:11

CubeGod
Member
Registered: 2013-07-09
Posts: 120

Re: Random restart

If the file contains any errors.

Oh and I don't know if poweroff or shutdown is superior, I just use shutdown.

According to poweroff(8)
  When called with --force or when in runlevel 0 or 6, this tool  invokes
       the  reboot(2)  system call itself (with REBOOTCOMMAND argument passed)
       and directly reboots the system.  Otherwise  this  simply  invokes  the
       shutdown(8)   tool  with  the  appropriate  arguments  without  passing
       REBOOTCOMMAND argument.

So from what I can tell it's just a wrapper script for shutdown and reboot.
I would *guess* that you called it in such a way that it either set you to runlevel 0 or 6.
(psst, shutdown can be put at a timer by specifying a time instead of now)

Oh and a tip, shutdown -r will reboot where's shutdown -P will power off the machine, this is however the default behavior and shouldn't need to be explicitly called.

Last edited by CubeGod (2014-03-28 04:58:30)

Offline

#9 2014-04-11 16:11:38

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: Random restart

CubeGod wrote:

If the file contains any errors.

Oh and I don't know if poweroff or shutdown is superior, I just use shutdown.

According to poweroff(8)
  When called with --force or when in runlevel 0 or 6, this tool  invokes
       the  reboot(2)  system call itself (with REBOOTCOMMAND argument passed)
       and directly reboots the system.  Otherwise  this  simply  invokes  the
       shutdown(8)   tool  with  the  appropriate  arguments  without  passing
       REBOOTCOMMAND argument.

So from what I can tell it's just a wrapper script for shutdown and reboot.
I would *guess* that you called it in such a way that it either set you to runlevel 0 or 6.
(psst, shutdown can be put at a timer by specifying a time instead of now)

Oh and a tip, shutdown -r will reboot where's shutdown -P will power off the machine, this is however the default behavior and shouldn't need to be explicitly called.


so I tried everything except shutdown -P. Using shotdown now > shutdown.log was nothing even when rit did happen to restart. (Yes even with shutdown now it restarts)

The reason I did not try shutdown -P  is that I need to use sudo for that command in comparaison to shutdown now and poweroff. And that is no valiable way for me to do the normal shutting down since I'm too lazy sad

Offline

#10 2014-04-11 16:39:28

yjcong
Member
Registered: 2009-07-06
Posts: 59

Re: Random restart

for my laptop (8 years old HP), it have stopped to restart since 3years ago.

Offline

Board footer

Powered by FluxBB