You are not logged in.
Pages: 1
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
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
What desktop environment and, if any, which display manager are you using?
Offline
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.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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
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
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 nowsince 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 ![]()
Should I post the file even if it didn't reboot?
Offline
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
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 ![]()
Offline
for my laptop (8 years old HP), it have stopped to restart since 3years ago.
Offline
Pages: 1