Author Topic: System logs out user without user input!  (Read 705 times)

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
System logs out user without user input!
« on: October 08, 2012, 12:44:01 AM »
Have just recently had my KDE desktop (fully updated) suddenly logout. It happened last night and then again this morning. Both times the system suddenly froze and then promptly logged me out. No error messages came up before or anything else that gives me a clue to what is happening. Obviously it is a bit of a pain as each time I lose the work I am doing and then have to spend time re-opening everything.

Anyone have any ideas where I can look to find out why this is happening?

Thanks in advance
PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1924
  • Certified Windows Hater
Re: System logs out user without user input!
« Reply #1 on: October 08, 2012, 12:57:05 AM »
I think that KDE has an option in Power Settings to automatically log out after some time of inactivity. Maybe this is your case?
For the whole world, you are someone.
For someone, you are the whole world.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: System logs out user without user input!
« Reply #2 on: October 08, 2012, 01:37:13 AM »

being kicked out to the log in screen means X is crashing.

Being kicked back to the log in screen is an improvement from back in the days when X would crash and you will be sent to a black on white terminal with very ugly looking crash report with no apparent way out  :D

There are various threads on the forum that discuss this issue.

can you copy and paste the "Device" section of the "/etc/X11/xorg.conf" text file?

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
Re: System logs out user without user input!
« Reply #3 on: October 09, 2012, 12:02:14 AM »
Muungwa, it can't be due to inactivity as I get logged out while doing something. Here is the Xorg stuff:

Code: [Select]
# File generated by XFdrake (rev 262502)

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 302.17  (neal@localhost.localdomain)  Fri Jun 22 00:06:03 EDT 2012

# File generated by XFdrake (rev 262502)
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 302.17  (neal@localhost.localdomain)  Fri Jun 22 00:06:10 EDT 2012
# File generated by XFdrake (rev 262502)
# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard0" "CoreKeyboard"
    Screen 0  "Screen0" 0 0
    Option "Xinerama" "0"
EndSection

Section "Module"
    Load "v4l" # Video for Linux
    Load "glx"
EndSection

Section "ServerFlags"
    Option "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
   
    # allows the server to start up even if the mouse does not work
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
    Option "allowmouseopenfail"
EndSection

Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "Monitor"
    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    Identifier "monitor1"
    VendorName "Unknown"
    ModelName "LGD"
    HorizSync 30.0 - 75.0
    VertRefresh 60.0
    ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
    ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "LGD"
    HorizSync 30.0 - 75.0
    VertRefresh 60.0
EndSection

Section "Device"
    Identifier "device1"
    VendorName "NVIDIA Corporation"
    BoardName "NVS 4200M"
    Driver "nvidia"
    Screen 1
    BusID "PCI:1:0:0"
EndSection

Section "Device"
    Identifier "Device0"
    VendorName "NVIDIA Corporation"
    BoardName "NVS 4200M"
    Driver "nvidia"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 24
   
    Subsection "Display"
        Depth 24
    EndSubsection
    Option "nvidiaXineramaInfoOrder" "DFP-0"
    Option "AddARGBGLXVisuals"
    Option "DPMS"
    Option "Stereo" "0"
    Option "TwinViewOrientation" "Clone"
    Option "metamodes" "DFP: nvidia-auto-select +-167459736+-2883752"
    Option "TwinView"
EndSection

Section "Screen"
    # Removed Option "metamodes" "DFP: nvidia-auto-select +1920+0, CRT: nvidia-auto-select +0+0"
    # Removed Option "metamodes" "CRT: nvidia-auto-select +0+0"
    # Removed Option "nvidiaXineramaInfoOrder" "DFP-0"
    # Removed Option "metamodes" "CRT: nvidia-auto-select +0+0, DFP: nvidia-auto-select +1920+0"
    # Removed Option "nvidiaXineramaInfoOrder" "CRT-0"
    # Removed Option "metamodes" "DFP: nvidia-auto-select +1920+0, CRT: nvidia-auto-select +0+0"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "Stereo" "0"
   
    Subsection "Display"
        Depth 24
    EndSubsection
    Option "nvidiaXineramaInfoOrder" "DFP-0"
    Option "metamodes" "DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +0+-157792776"
EndSection
PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
Re: System logs out user without user input!
« Reply #4 on: October 15, 2012, 09:09:06 AM »
System just dumped me out again - this time I was browsing. Seems like there isn't anything obvious for me to try!
PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: System logs out user without user input!
« Reply #5 on: October 15, 2012, 11:59:49 AM »

Are you running on a two monitro setup?

do you have "prelink" package installed?

Does this card have 3D hardware acceleration capability? if yes, are you using them?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline ternor

  • Hero Member
  • *****
  • Posts: 1801
Re: System logs out user without user input!
« Reply #6 on: October 15, 2012, 03:57:58 PM »
At the risk of jinxing my system, the problem I was having seems to have stopped.  I installed my the mini 2012-08 iso.  I noticed on two occasions (that I am sure of) that the log out occurred when I moved the mouse pointer up the screen.  So, I changed a setting in Configure Desktop > Hardware > Input Devices > Mouse : Advanced tab.  For all I know that has nothing to do with the issue.  I reduced Pointer Acceleration from 2.0 to 1.6.

I had previously run XFdrake and disabled translucency but I wasn't using compositing anyway so that probably has nothing to do with it.  There is at least one setting in XFdrake which relates to the mouse.

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: System logs out user without user input!
« Reply #7 on: October 16, 2012, 01:28:16 AM »
Will the logs show any clue?
- /var/log/xorg.0.log
- /var/log/xorg.0.log.old
- /var/log/dmesg
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ternor

  • Hero Member
  • *****
  • Posts: 1801
Re: System logs out user without user input!
« Reply #8 on: October 16, 2012, 05:49:02 PM »

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
Re: System logs out user without user input!
« Reply #9 on: October 17, 2012, 12:20:05 AM »
Thanks for all the suggestions.

muungwana - I am using an external monitor for the laptop when at my workstation, but turn off the laptop screen when using the external. Prelink is not installed. The card is running with 3D hardware acceleration

ternor - will check out changing pointer acceleration. Went through the thread and will try the nouvea option. Am using the latest pae kernel.

sling-shot - I checked the various logs and couldn't find any errors (searched with grep using the word 'error' so let me know if there are any other keywords I should look out for.

The problem with this issue is that it is intermittent so even if it gets solved, it will be difficult to work out what solved it!
PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
Re: System logs out user without user input!
« Reply #10 on: October 17, 2012, 02:29:19 AM »
Well that was an exercise in frustration. Tried out the Nouvea driver, but Xorg wouldn't load. Quick google shows that the Nvidia 4200 isn't supported. Unfortunately my backup xorg.conf file wasn't the latest so had to get an xorg.conf from a live-USB. Then I couldn't remember which drivers I was supposed to use. Ended up using 'Nvidia GeForce 400 series and later', which is fine, bar one thing. Upon booting to the login screen there is no visible login box, just the login background. I think the screen is set at the wrong resolution (or it has issues displaying the login box), either way I can login by typing username / password. Once logged in, everything is perfect, but would like to sort out the login screen. Any ideas or should I start another thread as this is getting a bit off topic....
PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: System logs out user without user input!
« Reply #11 on: October 17, 2012, 03:15:40 AM »

you posted the contents of your working "xorg.conf" in this thread, why not use that one instead of the one from a live usb?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
Re: System logs out user without user input!
« Reply #12 on: October 17, 2012, 06:59:41 AM »
 ;) - well spotted muungwana - that actually made me laugh at myself! Will restore to the original asap.....  ;D
PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: System logs out user without user input!
« Reply #13 on: October 17, 2012, 07:24:28 AM »


after you have everything hopefully back to the way they were, post contents of "/var/log/xorg.0.log.old" immediately after you have been logged off.

The content of the file holds contents of the previous X session and should have logs in it on why the previous X instance crashed.

It will also be useful if you also notice what program you were using when you where logged out.You could, for example, notice that you got logged off when you started a particular program,or when you did something with a particular program.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline dj_bridges

  • Hero Member
  • *****
  • Posts: 638
Re: System logs out user without user input!
« Reply #14 on: October 18, 2012, 01:42:29 AM »
Everything is back up and working perfectly now - thanks muungwana. Although if I exit from the boot splash I get a weird comment - "cannot open file delete" - any ideas?

I tried to post the contents of the log, but there was 195,000 lines so couldn't add it. Have instead posted the last 100 odd lines. Let me know if I can search the log for anything:

Code: [Select]
[ 21354.673] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21354.673] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21354.673] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21354.674] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21354.674] (II) NVIDIA(GPU-0):     stereo.
[ 21354.674] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21354.674] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21354.674] (**) NVIDIA(0):     enabled on all display devices.)
[ 21355.714] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21355.714] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21355.714] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21355.714] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21355.714] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21355.715] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21355.715] (II) NVIDIA(GPU-0):     stereo.
[ 21355.715] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21355.715] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21355.715] (**) NVIDIA(0):     enabled on all display devices.)
[ 21356.749] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21356.749] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21356.749] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21356.749] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21356.749] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21356.750] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21356.750] (II) NVIDIA(GPU-0):     stereo.
[ 21356.750] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21356.750] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21356.750] (**) NVIDIA(0):     enabled on all display devices.)
[ 21357.788] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21357.788] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21357.789] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21357.789] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21357.789] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21357.790] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21357.790] (II) NVIDIA(GPU-0):     stereo.
[ 21357.790] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21357.790] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21357.790] (**) NVIDIA(0):     enabled on all display devices.)
[ 21358.825] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21358.825] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21358.825] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21358.825] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21358.825] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21358.826] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21358.826] (II) NVIDIA(GPU-0):     stereo.
[ 21358.826] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21358.826] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21358.826] (**) NVIDIA(0):     enabled on all display devices.)
[ 21359.860] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21359.860] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21359.860] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21359.860] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21359.860] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21359.861] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21359.861] (II) NVIDIA(GPU-0):     stereo.
[ 21359.862] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21359.862] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21359.862] (**) NVIDIA(0):     enabled on all display devices.)
[ 21360.900] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21360.900] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21360.900] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21360.900] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21360.900] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21360.901] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21360.901] (II) NVIDIA(GPU-0):     stereo.
[ 21360.901] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21360.901] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21360.901] (**) NVIDIA(0):     enabled on all display devices.)
[ 21361.940] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21361.940] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21361.940] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21361.940] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21361.940] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21361.941] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21361.941] (II) NVIDIA(GPU-0):     stereo.
[ 21361.941] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21361.941] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21361.941] (**) NVIDIA(0):     enabled on all display devices.)
[ 21362.978] (II) NVIDIA(GPU-0): Display (DELL E2311H (CRT-0)) does not support NVIDIA 3D
[ 21362.978] (II) NVIDIA(GPU-0):     Vision stereo.
[ 21362.978] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21362.978] (**) NVIDIA(0):     device DELL E2311H (CRT-0) (Using EDID frequencies has
[ 21362.978] (**) NVIDIA(0):     been enabled on all display devices.)
[ 21362.980] (II) NVIDIA(GPU-0): Display (LGD (DFP-0)) does not support NVIDIA 3D Vision
[ 21362.980] (II) NVIDIA(GPU-0):     stereo.
[ 21362.980] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 21362.980] (**) NVIDIA(0):     device LGD (DFP-0) (Using EDID frequencies has been
[ 21362.980] (**) NVIDIA(0):     enabled on all display devices.)
[ 21363.970] (II) Power Button: Close
[ 21363.970] (II) UnloadModule: "evdev"
[ 21363.970] (II) Unloading evdev
[ 21364.010] (II) Video Bus: Close
[ 21364.010] (II) UnloadModule: "evdev"
[ 21364.010] (II) Unloading evdev
[ 21364.070] (II) Sleep Button: Close
[ 21364.070] (II) UnloadModule: "evdev"
[ 21364.070] (II) Unloading evdev
[ 21364.220] (II) Logitech USB Optical Mouse: Close
[ 21364.220] (II) UnloadModule: "evdev"
[ 21364.220] (II) Unloading evdev
[ 21364.290] (II) DELL Dell USB Entry Keyboard: Close
[ 21364.290] (II) UnloadModule: "evdev"
[ 21364.290] (II) Unloading evdev
[ 21364.360] (II) Integrated Camera: Close
[ 21364.360] (II) UnloadModule: "evdev"
[ 21364.360] (II) Unloading evdev
[ 21364.490] (II) AT Translated Set 2 keyboard: Close
[ 21364.490] (II) UnloadModule: "evdev"
[ 21364.490] (II) Unloading evdev
[ 21365.040] (II) UnloadModule: "synaptics"
[ 21365.040] (II) Unloading synaptics
[ 21365.350] (II) TPPS/2 IBM TrackPoint: Close
[ 21365.350] (II) UnloadModule: "evdev"
[ 21365.350] (II) Unloading evdev
[ 21365.520] (II) ThinkPad Extra Buttons: Close
[ 21365.520] (II) UnloadModule: "evdev"
[ 21365.520] (II) Unloading evdev

PCLinuxOS 2012 running KDE4 on Lenovo ThinkPad T420, Quad core Intel i5 @ 2.6GHz, 6Gb Ram, 400 Gb HDD