This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Periods of Inactivity Yield Loss Of Input

Tags: None
(comma "," separated)
squatched
Registered Member
Posts
8
Karma
0
OS
If I leave my laptop inactive for more than a few minutes (maybe 3-5 minutes), I can still move the mouse cursor but all clicking and most keyboard input is seemingly ignored. I can kick the Xorg server (Ctrl+Alt+Backspace) to get all control back, but obviously that's an untenable situation as I lose everything I was working on. I can also switch to the terminal (Ctrl+Alt+F[1-6]) and still have input there.

I'm at a loss for where to go with this so figured I'd come here since KDE is the closest piece of software to me in the stack. I've dug through some logs (not sure what to look for or in so I stumbled around for a while in things like dmesg, /var/log/kdm.log & Xorg.0.log, and ~/.xsession-errors), tried downgrading qt4-phonon, dbus, ffmpeg, and mesa packages (I upgraded them this weekend along with other packages but they seemed to be the only systemic packages) but no change in behavior. Unfortunately my experience with Linux is limited enough to where I'm not sure where to look for clues so I'm turning to the community as my google-fu is also failing me.

What logs would be helpful (not posting all the logs mentioned above as I'm not confident in their relevance)? What about my environment would be helpful to know?

KDE 4.14.3
X.Org X Server 1.16.2
Linux 3.17.4-1-ARCH

Thanks in advance!
luebking
Karma
0
most keyboard input is seemingly ignored

Define "most" - is there one particular application that still takes keyboard input? Which one?
The input might be grabbed.
Install "xdotool" and when this happens, move to VT1 (ctrl+alt+f1) and run
Code: Select all
export DISPLAY=:0
xdotool key "XF86LogGrabInfo"


"cat /var/log/Xorg.0.log" will then hopefully hint which client holds a grab, eg. sth. like this:

Code: Select all
[777044.961] (II) Printing all currently active device grabs:
[777044.961] Active grab 0x2e00000 (core) on device 'Virtual core pointer' (2):
[777044.961]       client pid 22618 /usr/bin/qupzilla
[777044.961]       at 777042924 (from active grab) (device thawed, state 1)
[777044.961]         core event mask 0x207c
[777044.961]       owner-events true, kb 1 ptr 1, confine 0, cursor 0x0
[777044.961] Active grab 0x2e00000 (core) on device 'Virtual core keyboard' (3):
[777044.961]       client pid 22618 /usr/bin/qupzilla
[777044.961]       at 777042924 (from active grab) (device thawed, state 1)
[777044.961]         core event mask 0x3
[777044.961]       owner-events false, kb 1 ptr 1, confine 0, cursor 0x0
[777044.961] (II) End list of active device grabs
squatched
Registered Member
Posts
8
Karma
0
OS
"Most" means that everything is ignored except (that I've found so far) for Ctrl+Alt+Backspace and Ctrl+Alt+F[1-6]. Apologies, I didn't make that connection clearly in my post.

As soon as my laptop loses the input again, I'll reply with the results from xdotool.

Edit: Spelling

Last edited by squatched on Wed Dec 10, 2014 9:37 pm, edited 1 time in total.
squatched
Registered Member
Posts
8
Karma
0
OS
Xorg.0.log holds no output from the xdotool key "XF86LogGrabInfo". I've tried running the command from VT1 as well as SSH'd into my laptop with the desktop up. Neither situation produces any output.

Tried the command on a different box to make sure I was doing it right and I saw output appended to Xorg.0.log every time so I think I can confirm that I at least ran it correctly.

Here's the entirety of my Xorg.0.log:
Code: Select all
[    31.723]
X.Org X Server 1.16.2
Release Date: 2014-11-10
[    31.723] X Protocol Version 11, Revision 0
[    31.723] Build Operating System: Linux 3.17.2-1-ARCH x86_64
[    31.723] Current Operating System: Linux squatchtop 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64
[    31.723] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=fc827d8f-86f4-4a4f-b6d0-c6d338458b1a rw cryptdevice=/dev/md126p3:system ipv6.disable=1 quiet splash
[    31.723] Build Date: 10 November 2014  07:52:13PM
[    31.723] 
[    31.723] Current version of pixman: 0.32.6
[    31.723]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    31.723] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.723] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 10 09:20:59 2014
[    31.889] (==) Using config file: "/etc/X11/xorg.conf"
[    31.889] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    31.889] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    31.996] (==) ServerLayout "Layout0"                                                                                                                                                                                                                                       
[    31.996] (**) |-->Screen "Screen0" (0)                                                                                                                                                                                                                                     
[    31.996] (**) |   |-->Monitor "Monitor0"                                                                                                                                                                                                                                   
[    31.996] (**) |   |-->Device "Device0"                                                                                                                                                                                                                                     
[    31.996] (**) |-->Input Device "Keyboard0"                                                                                                                                                                                                                                 
[    31.996] (**) |-->Input Device "Mouse0"                                                                                                                                                                                                                                   
[    31.996] (==) Automatically adding devices                                                                                                                                                                                                                                 
[    31.996] (==) Automatically enabling devices                                                                                                                                                                                                                               
[    31.996] (==) Automatically adding GPU devices                                                                                                                                                                                                                             
[    32.163] (WW) The directory "/usr/share/fonts/OTF/" does not exist.                                                                                                                                                                                                       
[    32.163]    Entry deleted from font path.                                                                                                                                                                                                                                 
[    32.211] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".                                                                                                                                                                                         
[    32.212]    Entry deleted from font path.                                                                                                                                                                                                                                 
[    32.212]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").                                                                                                                                                                                                               
[    32.212] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".                                                                                                                                                                                           
[    32.212]    Entry deleted from font path.                                                                                                                                                                                                                                 
[    32.212]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").                                                                                                                                                                                                               
[    32.212] (==) FontPath set to:                                                                                                                                                                                                                                             
        /usr/share/fonts/misc/,                                                                                                                                                                                                                                               
        /usr/share/fonts/TTF/,                                                                                                                                                                                                                                                 
        /usr/share/fonts/Type1/                                                                                                                                                                                                                                               
[    32.212] (==) ModulePath set to "/usr/lib/xorg/modules"                                                                                                                                                                                                                   
[    32.212] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.                                                                                                                                                                       
[    32.212] (WW) Disabling Keyboard0                                                                                                                                                                                                                                         
[    32.212] (WW) Disabling Mouse0                                                                                                                                                                                                                                             
[    32.212] (II) Loader magic: 0x818d80                                                                                                                                                                                                                                       
[    32.212] (II) Module ABI versions:                                                                                                                                                                                                                                         
[    32.212]    X.Org ANSI C Emulation: 0.4                                                                                                                                                                                                                                   
[    32.212]    X.Org Video Driver: 18.0                                                                                                                                                                                                                                       
[    32.212]    X.Org XInput driver : 21.0                                                                                                                                                                                                                                     
[    32.212]    X.Org Server Extension : 8.0                                                                                                                                                                                                                                   
[    32.214] (EE) systemd-logind: failed to get session: PID 695 does not belong to any known session                                                                                                                                                                         
[    32.215] (II) xfree86: Adding drm device (/dev/dri/card0)                                                                                                                                                                                                                 
[    32.215] (II) xfree86: Adding drm device (/dev/dri/card1)                                                                                                                                                                                                   
[    32.217] (--) PCI:*(0:1:0:0) 10de:1212:1028:0550 rev 161, Mem @ 0xc0000000/33554432, 0xa0000000/134217728, 0xa8000000/67108864, I/O @ 0x00005000/128, BIOS @ 0x????????/524288                                                                             
[    32.217] (--) PCI: (0:7:0:0) 10de:1212:1028:0550 rev 161, Mem @ 0xbc000000/33554432, 0xb0000000/134217728, 0xb8000000/67108864, I/O @ 0x00004000/128, BIOS @ 0x????????/524288                                                                             
[    32.217] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)                                                                                                                                                                         
[    32.217] (II) LoadModule: "glx"                                                                                                                                                                                                                             
[    32.346] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so                                                                                                                                                                                           
[    33.525] (II) Module glx: vendor="NVIDIA Corporation"                                                                                                                                                                                                       
[    33.525]    compiled for 4.0.2, module version = 1.0.0
[    33.525]    Module class: X.Org Server Extension
[    33.525] (II) NVIDIA GLX Module  343.22  Thu Sep 11 15:55:13 PDT 2014
[    33.540] (II) LoadModule: "nvidia"
[    33.569] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    33.732] (II) Module nvidia: vendor="NVIDIA Corporation"
[    33.732]    compiled for 4.0.2, module version = 1.0.0
[    33.732]    Module class: X.Org Video Driver
[    33.767] (II) NVIDIA dlloader X Driver  343.22  Thu Sep 11 15:34:47 PDT 2014
[    33.767] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    33.767] (++) using VT number 7

[    33.911] (II) Loading sub module "fb"
[    33.911] (II) LoadModule: "fb"
[    33.967] (II) Loading /usr/lib/xorg/modules/libfb.so
[    34.013] (II) Module fb: vendor="X.Org Foundation"
[    34.014]    compiled for 1.16.2, module version = 1.0.0
[    34.014]    ABI class: X.Org ANSI C Emulation, version 0.4
[    34.014] (II) Loading sub module "wfb"
[    34.014] (II) LoadModule: "wfb"
[    34.014] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    34.046] (II) Module wfb: vendor="X.Org Foundation"
[    34.046]    compiled for 1.16.2, module version = 1.0.0
[    34.046]    ABI class: X.Org ANSI C Emulation, version 0.4
[    34.046] (II) Loading sub module "ramdac"
[    34.046] (II) LoadModule: "ramdac"
[    34.046] (II) Module "ramdac" already built-in
[    34.047] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[    34.047] (==) NVIDIA(0): RGB weight 888
[    34.047] (==) NVIDIA(0): Default visual is TrueColor
[    34.047] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    34.047] (**) NVIDIA(0): Option "SLI" "on"
[    34.047] (**) NVIDIA(0): NVIDIA SLI auto-select rendering option.
[    34.047] (**) NVIDIA(0): Enabling 2D acceleration
[    35.492] (EE) NVIDIA(GPU-0): Failed to find a valid SLI configuration.
[    35.492] (EE) NVIDIA(GPU-0): Invalid SLI configuration 1 of 1:
[    35.492] (EE) NVIDIA(GPU-0): GPUs:
[    35.492] (EE) NVIDIA(GPU-0):     1) NVIDIA GPU at PCI:1:0:0
[    35.492] (EE) NVIDIA(GPU-0):     2) NVIDIA GPU at PCI:7:0:0
[    35.492] (EE) NVIDIA(GPU-0): Errors:
[    35.492] (EE) NVIDIA(GPU-0):     - Unknown error
[    35.492] (WW) NVIDIA(GPU-0): Failed to find a valid SLI configuration for the NVIDIA
[    35.492] (WW) NVIDIA(GPU-0):     graphics device PCI:1:0:0. Please see Chapter 28:
[    35.492] (WW) NVIDIA(GPU-0):     Configuring SLI and Multi-GPU FrameRendering in the README
[    35.492] (WW) NVIDIA(GPU-0):     for troubleshooting suggestions.
luebking
Karma
0
[ 32.212] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 32.212] (WW) Disabling Keyboard0
[ 32.212] (WW) Disabling Mouse0

Did you configure input devices to use kbd or mouse in /etc/X11/xorg.conf* ?
Do mouse and/or keyboard "return" operative when you simply unplug/replug them?
squatched
Registered Member
Posts
8
Karma
0
OS
Here's the device sections of my xorg.conf*
Code: Select all
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 331.38  (buildmeister@swio-display-x64-rhel04-15)  Wed Jan  8 19:53:14 PST 2014

[snip]

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

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


So looks like yes, I am using the "mouse" and "kbd" drivers. Since this is a laptop though, best I could do was add a USB mouse/keyboard but they didn't exhibit alternate behavior. In addition, my laptop is set up as a Synergy slave and a shared mouse & keyboard also don't change the behavior.
squatched
Registered Member
Posts
8
Karma
0
OS
Been trying all kinds of things as workarounds and I just discovered one that works. Destroying ~/.kde and ~/.kde4 makes the problem go away.

The only settings I recall messing around with around the time this started happening were in Power Management. I altered it such that closing my laptop while on AC power would only lock the screen instead of sleeping the system. I'm going to change that setting in the clean profile and see if that makes a difference.
squatched
Registered Member
Posts
8
Karma
0
OS
I've managed to pin down the root cause of the problem. My lock screen no longer functioned except when tested in the "Screen Locker" system settings. I was using the "Desktop Widgets" style screen locker and any time that I legitimately lock my computer (closing the lid, locking from a menu, lock keyboard shortcut, auto-lock from inactivity, etc.) using that screen lock, I cannot get out of it. I see my desktop and the cursor moves around, but I cannot interact with anything. The windows on my desktop continue to update but it's as if the screen lock is there but completely transparent.

Well, at least my computer is useable again heh. Now, to help out the community with my experiences. I found a bug that seems extremely similar (https://bugs.kde.org/show_bug.cgi?id=338999) while I was looking up exactly what the xdotool command above did so I think I'll add my experiences there tomorrow.

Thanks for the help @luebking!
squatched
Registered Member
Posts
8
Karma
0
OS
For anyone else finding this issue, here's the actual bug. The previous bug I linked to was for Plasma 5 but here's the right one for this issue: https://bugs.kde.org/show_bug.cgi?id=311970


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]