[SOLVED] Shutdown in X seconds! Hey where did that come from??
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Shutdown in X seconds! Hey where did that come from??
Hi, at least once a day I get a little pop up dialogue kindly informing me the system is going to be shutdown in X amount of seconds. Nice, but I did not initiate any shutdown. Fortunately I have the option to cancel, assuming I am at my desk, otherwise I have a dead computer to return to.
Is this random or does it happen after a set amount of inactive time? If the latter, I'd check your power management settings in whatever desktop environment you're using.
In Power Management I have these settings checked.
Code:
General Settings:
Lock screen on resume.
Let PowerDevil manage screen power saving.
AC Adaptor plugged in - performance
Profiles: (Just list 'performance' as this is the profile I am using)
Action:
System idel for 99 minutes - do nothing
lid closed - lock screen
power button pressed - prompt log out dialog
sleep button pressed - Suspend to RAM
Screen:
Enable display management - standby after 20, suspend after 30
Thats it. Don't see anything about shut down and this is a desktop so some of that is irrelevant anyway. Any other ideas?
- when did it first start doing this?
- what changes had you made prior to that?
- does anyone have physical access to the machine?
- does anyone have ssh access?
et cetera...
You see what I mean. More info you can provide here the better. What Desktop Environment? What power manager app. On my Slack I have two... Xfce's manager and the one in Xscreensaver.
- when did it first start doing this?
Tricky one. Not sure really. Been doing it perhaps for a couple of months on and off. Seems quite random. I know I said 'at least once a day' but that is not entirely accurate. I leave the system on over night and occasionally in the morning it has powered off. I know it was not a power outage as it powers back up cleanly without having to do a reiserfs check. And as mentioned other times I get the dialogue pop up during the day and other times I come back to find the computer shutdown. This has been going on a couple of months but just put up with it - until today.
- what changes had you made prior to that?
Tricky one too. Lots, installed packages but nothing that should effect shutdown I would have thought.
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124
Rep:
Quote:
Originally Posted by vtel57
...
- does anyone have physical access to the machine?
- does anyone have ssh access?
...
If possible, disconnect from your network, physically unplug your network cable for a day or as long as possible and see if the problem still happens, overnight anyway. Long shot but worth a try...
Last edited by Fred-1.2.13; 08-29-2012 at 08:09 PM.
Is your power button in a place where you might accidentally touch it when you are using your computer?
My main laptop has its power button exactly where my thumb would go to stabilize the computer when I might move it. It's given me a surprise shutdown a few times now... *grumble*
Do you leave your machine up with X running? If so, change to RL 1 (single user, no X) before leaving your machine for the night. See if it still shuts down. If not, your issue is probably with some setting in your GUI (KDE?).
Do you leave your machine up with X running? If so, change to RL 1 (single user, no X) before leaving your machine for the night. See if it still shuts down. If not, your issue is probably with some setting in your GUI (KDE?).
So I have a dialogue pop up informing me it is going to shut down, just need to track down what is responsible.
What does ps afx tell you when this dialog box appears? (If the dialog box prevents you opening a terminal in KDE then switch to a virtual console instead, with Ctrl+Alt+F2 or F3.) Don't cancel the dialog box - ps afx should show you which process is invoking it.
Thanks for all the replies. Ok so it just happened again. Might be relevant, I don't know. But this was in KDE normal mode, not safe mode. Not sure if my other shutdowns were in normal or safe modes, will pay attention from now on. HOWEVER, checking the syslog on reboot I find......
Code:
Aug 30 22:06:06 tuxbox kernel: [50757.516768] polkit-kde-auth[2378]: segfault at 8 ip b5c95a17 sp bf988820 error 4 in libglib-2.0.so.0.2800.6[b5c72000+ff000]
Aug 30 22:06:22 tuxbox scim-bridge: Cleanup, done. Exitting...
Aug 30 22:06:22 tuxbox kernel: [50772.806668] [drm] nouveau 0000:02:00.0: nouveau_channel_free: freeing fifo 3
Aug 30 22:06:22 tuxbox kernel: [50772.809532] [drm] nouveau 0000:02:00.0: nouveau_channel_free: freeing fifo 2
Aug 30 22:06:22 tuxbox shutdown[22042]: shutting down for system halt
Aug 30 22:06:23 tuxbox init: Switching to runlevel: 0
Aug 30 22:06:23 tuxbox /usr/sbin/gpm[1945]: *** info [mice.c(1766)]:
Aug 30 22:06:23 tuxbox /usr/sbin/gpm[1945]: imps2: Auto-detected intellimouse PS/2
Aug 30 22:06:24 tuxbox logger: /etc/rc.d/rc.inet1: /sbin/route del default
Aug 30 22:06:24 tuxbox logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d eth0
Aug 30 22:06:24 tuxbox dhcpcd[22079]: sending signal 1 to pid 25465
Aug 30 22:06:24 tuxbox dhcpcd[22079]: waiting for pid 25465 to exit
Aug 30 22:06:24 tuxbox dhcpcd[25465]: received SIGHUP, releasing
Aug 30 22:06:24 tuxbox dhcpcd[25465]: eth0: releasing lease of 192.168.0.100
Aug 30 22:06:24 tuxbox dhcpcd[25465]: eth0: removing interface
Aug 30 22:06:25 tuxbox logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo down
Aug 30 22:06:25 tuxbox acpid: exiting
Aug 30 22:06:25 tuxbox exiting on signal 15
Well there you have it in black and white. So come on all you hackers out there what is all this about and how do I stop my system shutting down randomly??
Everything in that log entry is normal for a shutdown except the very first line:
Quote:
Aug 30 22:06:06 tuxbox kernel: [50757.516768] polkit-kde-auth[2378]: segfault at 8 ip b5c95a17 sp bf988820 error 4 in libglib-2.0.so.0.2800.6[b5c72000+ff000]
Polkit is crashing on you at shutdown. This may NOT be the cause of your shutdown, though, just a shutdown related polkit crash. There is MUCH reporting of this on the Web.
For now will keep running KDE in safe mode and see if the random shut downs disappear. If they do, will probably live with it until the big 14 and give that a try. If not will have to keep digging.
Thanks to all the help/suggestions so far. Keep them coming if you have any more!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.