LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Shutdown in X seconds! Hey where did that come from?? (https://www.linuxquestions.org/questions/slackware-14/shutdown-in-x-seconds-hey-where-did-that-come-from-4175424663/)

donito 08-30-2012 05:06 PM

Quote:

Originally Posted by gezley (Post 4768071)
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.

Can you post the output from gezley's suggestion? It might give you a hint as to what's going on.

BashTin 08-30-2012 05:19 PM

Yes it is a good suggestion. But as I said I am trying it in safe mode for the mo as a way of eliminating/confirming possible KDE problem or setting. Next time it happens and I am around will give it a go.

BashTin.

BashTin 08-30-2012 06:35 PM

Ok, so latest update. Just tried to shutdown again. This is the output from ps auf when the shutdown dialogue appears.

Code:

mrt      2440  0.0  0.0  4556  1596 pts/4    Ss+  Aug30  0:00 bash
mrt      2439  0.0  0.0  4552  1768 pts/3    Ss+  Aug30  0:00 bash
mrt      2437  0.0  0.0  4556  1804 pts/2    Ss  Aug30  0:00 bash
root    19188  0.0  0.0  2944  1580 pts/2    S+  05:07  0:00  \_ bash
mrt      2435  0.0  0.0  4552  1612 pts/1    Ss  Aug30  0:00 bash
root      2717  0.0  0.0  2944  1516 pts/1    S    Aug30  0:00  \_ bash
root      2005  1.0  1.5  62180 53356 tty7    Ss+  Aug30  5:09 /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-jOUtac
root      2002  0.0  0.0  1852  508 tty6    Ss+  Aug30  0:00 /sbin/agetty 38400 tty6 linux
root      2001  0.0  0.0  1852  508 tty5    Ss+  Aug30  0:00 /sbin/agetty 38400 tty5 linux
root      2000  0.0  0.0  1852  508 tty4    Ss+  Aug30  0:00 /sbin/agetty 38400 tty4 linux
root      1999  0.0  0.0  1852  508 tty3    Ss+  Aug30  0:00 /sbin/agetty 38400 tty3 linux
root      1998  0.0  0.0  3428  1860 tty2    Ss  Aug30  0:00 -bash
root    27753  0.0  0.0  2728  928 tty2    R+  07:24  0:00  \_ ps auf
root      1997  0.0  0.0  1852  512 tty1    Ss+  Aug30  0:00 /sbin/agetty 38400 tty1 linux

Also this was in safe mode so that makes no difference.

Suggestions??

Gerard Lally 08-30-2012 06:50 PM

Quote:

Originally Posted by BashTin (Post 4768666)
Ok, so latest update. Just tried to shutdown again. This is the output from ps auf when the shutdown dialogue appears.

And the output from the command I suggested was ... ?

Quote:

Suggestions??
I consider it impolite to demand other suggestions while riding roughshod over the suggestions already offered. Please pay me the courtesy of reading my earlier suggestion a little more carefully, and then come back for more suggestions if the output from that command does not throw light on your problem.

BashTin 08-30-2012 07:44 PM

Quite right too. Apologies. Will try and get it right next time. Will report back on the next occurrence. Thanks for your patience. BashTin.

gauchao 08-30-2012 08:03 PM

Overheating? Try to run any live CD distro and see what happens. My older notebook sometimes overheats and powers off after the same message you get.

vtel57 08-30-2012 08:43 PM

I'm beginning to agree with gauchao here. I think this is hardware related.

Gerard Lally 08-31-2012 04:31 AM

Quote:

Originally Posted by BashTin (Post 4768706)
Quite right too. Apologies. Will try and get it right next time. Will report back on the next occurrence. Thanks for your patience. BashTin.

No problem at all - I was tired last night after a long day's work.

BashTin 09-04-2012 08:38 PM

Back again. Have not forgotten, just waiting for the inevitable to happen again. Thanks for the suggestions. emgee_1, gauchao & vtel57... yes that had occurred to me too, was just trying to elminate software issues first. However I have got my lm-sensors up and running and will check temps alongside any software issues.

So I had the shutdown dialogue pop up again. However, someone else was at my computer at the time and before I had chance to switch to vt I think he cancelled it (not sure, it was a bit quick and I did not have time to confirm or otherwise as I needed to switch to vt quickly). So this output may or may NOT contain evidence of the problem. Maybe you guys can just give it a look over and see if you can see anything obvious? If not will have to try again on the next occurrence.

From 'ps afx'
Code:

cat fault2.txt                                                                                                                                                                             
  PID TTY      STAT  TIME COMMAND
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:14  \_ [ksoftirqd/0]
    6 ?        S      0:00  \_ [migration/0]
    7 ?        S      0:00  \_ [migration/1]
    9 ?        S      0:18  \_ [ksoftirqd/1]
  11 ?        S<    0:00  \_ [cpuset]
  12 ?        S<    0:00  \_ [khelper]
  16 ?        S<    0:00  \_ [netns]
  141 ?        S      0:55  \_ [sync_supers]
  143 ?        S      0:00  \_ [bdi-default]
  145 ?        S<    0:00  \_ [kblockd]
  147 ?        S<    0:00  \_ [kacpid]
  148 ?        S<    0:00  \_ [kacpi_notify]
  149 ?        S<    0:00  \_ [kacpi_hotplug]
  349 ?        S<    0:00  \_ [ata_sff]
  357 ?        S      0:00  \_ [khubd]
  360 ?        S      0:00  \_ [kseriod]
  363 ?        S<    0:00  \_ [md]
  466 ?        S<    0:00  \_ [rpciod]
  498 ?        S      0:00  \_ [khungtaskd]
  499 ?        S      0:33  \_ [kswapd0]
  566 ?        S      0:00  \_ [fsnotify_mark]
  568 ?        S<    0:00  \_ [aio]
  571 ?        S<    0:00  \_ [nfsiod]
  576 ?        S<    0:00  \_ [crypto]
  618 ?        S<    0:00  \_ [kthrotld]
  761 ?        S<    0:00  \_ [scsi_tgtd]
  771 ?        S<    0:00  \_ [iscsi_eh]
  799 ?        S      0:00  \_ [scsi_eh_0]
  802 ?        S      0:00  \_ [scsi_eh_1]
  805 ?        S      0:00  \_ [scsi_eh_2]
  808 ?        S      0:00  \_ [scsi_eh_3]
  811 ?        S      0:00  \_ [scsi_eh_4]
  814 ?        S      0:00  \_ [scsi_eh_5]
  851 ?        S      0:00  \_ [scsi_eh_6]
  854 ?        S      0:00  \_ [scsi_eh_7]
  916 ?        S<    0:00  \_ [kstriped]
 1019 ?        S<    0:00  \_ [kdmflush]
 1020 ?        S<    0:00  \_ [kcryptd_io]
 1021 ?        S<    0:00  \_ [kcryptd]
 1026 ?        S<    0:00  \_ [kdmflush]
 1030 ?        S<    0:00  \_ [kdmflush]
 1034 ?        S<    0:00  \_ [kdmflush]
 1038 ?        S<    0:00  \_ [kdmflush]
 1042 ?        S<    0:00  \_ [kdmflush]
 1050 ?        S<    0:00  \_ [reiserfs]
 1368 ?        S<    0:00  \_ [kmmcd]
 1378 ?        S<    0:00  \_ [nouveau]
 1379 ?        S<    0:00  \_ [hd-audio0]
 1393 ?        S<    0:00  \_ [cfg80211]
 1398 ?        S<    0:00  \_ [ttm_swap]
 1434 ?        S<    0:00  \_ [usbhid_resumer]
 1618 ?        S      0:15  \_ [flush-253:4]
28215 ?        S      0:00  \_ [flush-253:1]
 9892 ?        S      0:01  \_ [kworker/0:2]
18358 ?        S      0:09  \_ [kworker/u:2]
18881 ?        S      0:07  \_ [kworker/u:0]
19293 ?        S      0:10  \_ [kworker/1:0]
20447 ?        S      0:01  \_ [kworker/u:1]
20762 ?        S      0:00  \_ [flush-253:2]
20869 ?        S      0:00  \_ [kworker/0:1]
21028 ?        S      0:01  \_ [kworker/1:2]
    1 ?        Ss    0:03 init [4] 
 1082 ?        S<s    0:00 /sbin/udevd --daemon
  672 ?        S<    0:00  \_ /sbin/udevd --daemon
 1685 ?        S<    0:00  \_ /sbin/udevd --daemon
 1554 ?        Ss    0:00 /usr/sbin/syslogd
 1558 ?        Ss    0:00 /usr/sbin/klogd -c 3 -x
 1717 ?        Ss    0:00 /usr/sbin/acpid
 1728 ?        Ss    1:18 /usr/bin/dbus-daemon --system
 1731 ?        Ssl    0:00 /usr/sbin/console-kit-daemon
 1800 ?        Ssl    0:04 /usr/sbin/hald --daemon=yes
 1873 ?        S      0:00  \_ hald-runner
 1902 ?        S      0:03      \_ hald-addon-input: Listening on /dev/input/event0 /dev/input/event1 /dev/input/event3 /dev/input/event2
 1921 ?        S      0:43      \_ hald-addon-storage: polling /dev/sr0 (every 2 sec)
 1924 ?        S      0:00      \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
 1870 ?        Sl    0:00 /usr/libexec/polkitd
 1943 ?        S      3:09 /usr/bin/python -O /usr/share/wicd/daemon/wicd-daemon.py
 1959 ?        S      1:28  \_ /usr/bin/python -O /usr/share/wicd/daemon/monitor.py
  336 ?        Z      0:00  \_ [dhcpcd] <defunct>
 1962 ?        Ss    0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
 1968 ?        Ss    0:00 /usr/sbin/crond -l notice
 1970 ?        Ss    0:00 /usr/sbin/atd -b 15 -l 1
 1993 ?        Ss    0:08 /usr/sbin/gpm -m /dev/mouse -t imps2
 1997 tty1    Ss+    0:00 /sbin/agetty 38400 tty1 linux
 1998 tty2    Ss    0:00 -bash
21291 tty2    R+    0:00  \_ ps afx
 1999 tty3    Ss+    0:00 /sbin/agetty 38400 tty3 linux
 2000 tty4    Ss+    0:00 /sbin/agetty 38400 tty4 linux
 2001 tty5    Ss+    0:00 /sbin/agetty 38400 tty5 linux
 2002 tty6    Ss+    0:00 /sbin/agetty 38400 tty6 linux
 2003 ?        Ss    0:00 /usr/bin/kdm -nodaemon
 2005 tty7    Ss+  80:41  \_ /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-jOUtac
15184 ?        S      0:00  \_ -:0                 
15212 ?        Ss    0:00      \_ /bin/sh /usr/bin/startkde --failsafe
15315 ?        S      0:00          \_ kwrapper4 ksmserver
 2145 ?        S      0:00 /usr/libexec/gam_server
15228 ?        Ss    0:00 /usr/lib/scim-1.0/scim-launcher -d -c simple -e all -f socket --no-stay
15232 ?        Ss    0:00 /usr/lib/scim-1.0/scim-helper-manager
15233 ?        Ssl    1:14 /usr/lib/scim-1.0/scim-panel-gtk --display :0 -c socket -d --no-stay
15235 ?        Ss    0:00 /usr/lib/scim-1.0/scim-launcher -d -c socket -e socket -f x11
15273 ?        S      0:00 dbus-launch --sh-syntax --exit-with-session
15274 ?        Ss    4:23 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
15281 ?        S      0:00 /usr/lib/kde4/libexec/start_kdeinit +kcminit_startup
15282 ?        Ss    0:05 kdeinit4: kdeinit4 Running...                 
15283 ?        S      0:03  \_ kdeinit4: klauncher [kdeinit] --fd=9         
15329 ?        Sl    0:02  \_ kdeinit4: ksmserver [kdeinit]                 
15344 ?        S      1:40  |  \_ kwin -session 10e3ed7862000131942209100000020520000_1346411182_815864
15450 ?        S      0:09  \_ kdeinit4: konqueror [kdeinit] -session 10e3ed7862000134521464800000020660047_1346411182_793251
15469 ?        Sl  138:28  \_ /usr/bin/skype -session 10e3ed7862000134520797800000020660027_1346411182_793635
15536 ?        S      0:47  \_ /usr/bin/pidgin --session 10e3ed7862000134611462900000020400031 --display :0
15588 ?        S      0:00  \_ /usr/bin/python /usr/bin/blueman-applet
15593 ?        S      0:01  \_ /usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py
 7863 ?        S      0:00  \_ kdeinit4: kio_http_cache_cleaner [kdeinit]   
21524 ?        Sl    0:03  \_ /usr/bin/ksystraycmd /usr/local/firefox-13-0-1/firefox
21526 ?        Sl    15:51      \_ /usr/local/firefox-13-0-1/firefox
21577 ?        SLl  26:02          \_ /usr/local/firefox-13-0-1/plugin-container /usr/lib/mozilla/plugins/libflashplayer.so -greomni /usr/local/firefox-13-0-1/omni.ja 21526 true plugin
15285 ?        Sl    0:35 kdeinit4: kded4 [kdeinit]                     
15289 ?        S      0:00 kdeinit4: kglobalaccel [kdeinit]             
15348 ?        S      0:06 scim-bridge
15350 ?        Sl    0:17 /usr/bin/knotify4
15352 ?        Sl    14:58 kdeinit4: plasma-desktop [kdeinit]           
15356 ?        S      0:01 /usr/bin/kuiserver
15360 ?        Sl    0:06 /usr/bin/akonadi_control
15362 ?        Sl    0:08  \_ akonadiserver
15364 ?        Sl    1:33  |  \_ /usr/libexec/mysqld --defaults-file=/home/mrt/.local/share/akonadi//mysql.conf --datadir /home/mrt/.local/share/akonadi/db_data/ --socket=/home/mrt/.local/share/akonadi/db_misc/mysql.socket
15392 ?        S      0:00  \_ /usr/bin/akonadi_contacts_resource --identifier akonadi_contacts_resource_0
15393 ?        S      0:00  \_ /usr/bin/akonadi_kabc_resource --identifier akonadi_kabc_resource_0
15394 ?        S      0:00  \_ /usr/bin/akonadi_kabc_resource --identifier akonadi_kabc_resource_1
15395 ?        S      0:00  \_ /usr/bin/akonadi_kabc_resource --identifier akonadi_kabc_resource_2
15396 ?        S      0:00  \_ /usr/bin/akonadi_maildir_resource --identifier akonadi_maildir_resource_1
15397 ?        S      0:00  \_ /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
15398 ?        Sl    0:06  \_ /usr/bin/akonadi_nepomuk_contact_feeder --identifier akonadi_nepomuk_contact_feeder
15412 ?        Sl    0:00 /usr/bin/nepomukserver
15421 ?        SNl    0:42  \_ /usr/bin/nepomukservicestub nepomukstorage
15427 ?        SNl    4:43  |  \_ /usr/bin/virtuoso-t +foreground +configfile /tmp/virtuoso_n15421.ini +wait
15471 ?        SN    0:01  \_ /usr/bin/nepomukservicestub nepomukremovablestorageservice
15472 ?        SNl    0:39  \_ /usr/bin/nepomukservicestub nepomukstrigiservice
15474 ?        SN    0:00  \_ /usr/bin/nepomukservicestub nepomukactivitiesservice
15477 ?        SN    0:01  \_ /usr/bin/nepomukservicestub nepomukontologyloader
15478 ?        SN    0:00  \_ /usr/bin/nepomukservicestub nepomukqueryservice
15479 ?        SNl    0:09  \_ /usr/bin/nepomukservicestub nepomukfilewatch
15432 ?        S      0:05 kdeinit4: kaccess [kdeinit]                   
15440 ?        Sl    0:34 kdeinit4: krunner [kdeinit]                   
15449 ?        S      0:48 /usr/bin/kget -session 10e3ed7862000132175939500000020630044_1346411182_793553
15452 ?        Sl    4:14 kdeinit4: dolphin [kdeinit] -session 10e3ed7862000134532798700000020540024_1346411182_793347
15454 ?        S      0:03 kdeinit4: kmix [kdeinit] -session 10e3ed7862000134572613900000021360042_1346411182_793726
15456 ?        Sl  646:34 /usr/bin/ktorrent -session 10e3ed7862000134598875000000020740032_1346411182_793450
15546 ?        S      0:19 kdeinit4: kwalletd [kdeinit]                 
15595 ?        Sl    0:00 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1
15603 ?        S      0:01 /usr/bin/korgac -icon korgac
15669 ?        S      0:01 /usr/bin/obex-data-server --no-daemon
28410 ?        S    51:58 /usr/bin/kmail -caption KMail
28437 ?        S      0:00 /usr/bin/kwalletmanager --kwalletd
 3309 ?        Ss    0:00 /sbin/dhcpcd -t 10 eth0
18228 ?        Sl    0:06 konsole -e /bin/bash -l
18230 pts/1    Ss    0:00  \_ /bin/bash -l
18248 pts/1    S      0:00  |  \_ bash
18291 pts/1    S+    0:00  |      \_ bash
18300 pts/1    S+    1:04  |          \_ openvpn --verb 9 --config /etc/openvpn/ (censored :-)  )
20395 pts/2    Ss    0:00  \_ /bin/bash -l
20777 pts/2    Sl+    0:05      \_ qq

from 'sensors'
Code:

it8718-isa-0290
Adapter: ISA adapter
in0:        +1.33 V  (min =  +0.00 V, max =  +4.08 V) 
in1:        +1.95 V  (min =  +0.00 V, max =  +4.08 V) 
in2:        +3.15 V  (min =  +0.00 V, max =  +4.08 V) 
in3:        +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM
in4:        +2.98 V  (min =  +0.00 V, max =  +4.08 V) 
in5:        +2.59 V  (min =  +0.00 V, max =  +4.08 V) 
in6:        +0.10 V  (min =  +0.00 V, max =  +4.08 V) 
in7:        +3.15 V  (min =  +0.00 V, max =  +4.08 V) 
Vbat:        +3.10 V
fan1:      1854 RPM  (min =  10 RPM)
fan2:          0 RPM  (min =  10 RPM)  ALARM
temp1:      +47.0�C  (low  = +127.0�C, high = +127.0�C)  sensor = thermistor
temp2:      +51.0�C  (low  = +127.0�C, high = +127.0�C)  sensor = thermistor
temp3:      +55.0�C  (low  = +127.0�C, high = +127.0�C)  sensor = thermal diode
cpu0_vid:  +1.250 V

About the two ALARMS. The one at in3. I have no idea what this is but since installing lm-sensors a few days ago it has always showed this. And fan2. 0 rmp. I have two fans in my system, one case fan and one cpu fan. They are both running so assume this is some error. (and visually checked this was still the case straight after getting the shutdown dialogue).

And 'last x'
Code:

wtmp begins Wed Sep  5 07:44:43 2012
And finally 'last'
Code:

mrt      pts/3        :0              Wed Sep  5 09:05  still logged in 
mrt      pts/2        :0              Wed Sep  5 08:36  still logged in 
mrt      pts/1        :0              Wed Sep  5 07:48  still logged in

Ok that is it. Like I said though the evidence might not even be in here.

BashTin.

vtel57 09-04-2012 08:56 PM

The sensors alarms can probably be ignored. The voltage is most likely not calibrated and the fan alarm is probably from an unused mobo fan connector.

By the way, if you prefer Fahrenheit rather than Celcius for the temps you can add the -f switch when you run sensors:

Code:

$ sensors -f

BashTin 09-04-2012 10:07 PM

Well I'm going to mark this as solved. I am very embarrassed to have to confess this (but I guess everything is easy if you already know) but after the last time I realised that Ktorrent had just finished downloading. A quick dig soon found an option to shut down the computer after all downloads have completed, oops.

I have confirmed this is the culprit by doing some other quick downloads and the dialogue appears upon completion.

Interestingly enough 'last x' does not show anything even after letting the the shutdown complete. I tried several times but it does not show the culprit.

Code:

$last
mrt      pts/3        :0              Wed Sep  5 11:00  still logged in 
mrt      pts/2        :0              Wed Sep  5 10:51  still logged in 
mrt      pts/1        :0              Wed Sep  5 10:49  still logged in 
mrt      pts/0        :0              Wed Sep  5 10:49  still logged in 
mrt      :0                            Wed Sep  5 10:48  still logged in 
reboot  system boot  2.6.37.6-smp    Wed Sep  5 10:48          (00:12)   
root    tty2                          Wed Sep  5 10:34 - 10:35  (00:00)   
mrt      pts/1        :0              Wed Sep  5 10:20 - 10:46  (00:26)   
mrt      pts/0        :0              Wed Sep  5 10:20 - 10:46  (00:26)   
mrt      :0                            Wed Sep  5 10:19 - 10:46  (00:27)   
reboot  system boot  2.6.37.6-smp    Wed Sep  5 10:19          (00:27)

(note 'last x' lists nothing, hence the 'last' only command.

Any ideas why ktorrent is not shown as calling shutdown??

Well thanks for all the help and suggestions. Got there in the end.

Thanks again to all, BashTin.

vtel57 09-05-2012 11:02 AM

I'm laughing, but not at you, BashTin; with you is more accurate. I've been here, done this before; as I'm sure most of us have from time to time. It's nothing to be embarrassed about. Operating systems are complicated things. There aren't many around who know everything about them.

I knew it was a "KDE thing". *wink-wink*

Take care!

~Eric


All times are GMT -5. The time now is 02:50 PM.