From owner-freebsd-current@FreeBSD.ORG Sun Jan 13 20:05:14 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 88FE02F6; Sun, 13 Jan 2013 20:05:14 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-oa0-f48.google.com (mail-oa0-f48.google.com [209.85.219.48]) by mx1.freebsd.org (Postfix) with ESMTP id 4E08F8F3; Sun, 13 Jan 2013 20:05:14 +0000 (UTC) Received: by mail-oa0-f48.google.com with SMTP id h2so3369089oag.21 for ; Sun, 13 Jan 2013 12:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=rQHAFtlJ9rJfcbcsZhBEHK1KYqnYmL8cNmpZri0c+tc=; b=ZdM3PzmuJlY8ypkARyFz3NveMZxo3Vg5sggAoM7W0kNicMsSB9LdqEH6AFrRupLYVY g+Fi+ZT49dbuXh/S5Vt0vWajmF4ZBJytA5gHE8r6WBpdOn2Bbygb/FvQd3PhPUps1vTl w9kvG3S6s2CTVVz+x7jyfUFqpOy1alwPwTDLh/ShEHVML5vkp9gBVn/CCGAq/2mDWmMj DaJ67fPBV7iScOvJIkjgzPSgB7j5K7baGjA2qFC95SYDQO4ILUw1n81VVfwewwlUHMXe FvFdD83aau6UGSqzymJXjkgj2cXoB/ubH3ZXf2Tx4LLCPsQUBUnVhYo6yMeWnMjJOxLj MfnA== MIME-Version: 1.0 Received: by 10.182.146.107 with SMTP id tb11mr59356040obb.30.1358107508750; Sun, 13 Jan 2013 12:05:08 -0800 (PST) Received: by 10.76.107.241 with HTTP; Sun, 13 Jan 2013 12:05:08 -0800 (PST) Date: Sun, 13 Jan 2013 12:05:08 -0800 Message-ID: Subject: Strange input device (ukbd/ums) and signal handling problems with X11 on CURRENT From: Garrett Cooper To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2013 20:05:14 -0000 (Sorry for the cross-post, but this applies to -current and -x11) I recently installed CURRENT on my workstation at home again and I'm running into issues where in X11 it will stop registering certain mouse events (left-mouse clicking in particular) on my MS Intellimouse (in fact, it was working before I started typing the email, and now it stopped again... might be because of the middle mouse button on my wheel because that's the only thing I really did). Some of the issues appear to be tied to the keyboard too (using the Alt-Tab key combination doesn't always switch windows), so maybe it's a deadlock of some kind in Xorg? I say this because issuing some commands to xinit on a console (^T -> SIGINFO) screws up Xorg when I switch back to VTY-9 (it fails to render the screen). I run into this frequently with Firefox (maybe with its focus stealing?) compared to other apps, and sometimes I can do some minor keyboard gymnastics in order to get things back to a sane state. I don't run into these issues on the 9-STABLE machine I use at work, but granted, there's a software/hardware delta. I need some help figuring out how to diagnose the issue (apart from xev -- which isn't providing me with a lot of info), as truss is useless and turning on ktrace is like getting a fire hose worth of unhelpful info. I have a pretty bleeding edge ports tree with minor modifications (but not in any areas that should be causing this). In order to diagnose the problem, I've tried the following steps: 1. Restart moused (no change). 2. Unplugging and replugging devices (no change). 3. Built ports with clang and gcc (no change) [going back to building ports with clang BTW]. 4. Tried multiple DEs/WMs (Fluxbox, LXDE, XFCE4). Run into the same issue at various points in time on all 3 (it's particularly painful with Fluxbox for some odd reason because I generally can right-mouse click in fluxbox, but can't do much else apart from that). Other things I could try and building ukbd/ums as a module instead of building it into the kernel to see if the device is getting into a wonky state and reloading the device gets it back to a sane one. I've attached other hopefully helpful details at the bottom of the page. Thanks! -Garrett Version: FreeBSD fallout.local 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r+96bb463: Tue Jan 8 00:39:55 PST 2013 root@fallout.local:/usr/obj/usr/src/sys/FALLOUT amd64 xorg.conf snippet: Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Some relevant packages: $ pkg info | egrep 'nvidia|xorg' linux-f10-xorg-libs-7.4_1 Xorg libraries (Linux Fedora 10) nvidia-driver-304.64 NVidia graphics card binary drivers for hardware OpenGL rendering nvidia-settings-310.14 Display Control Panel for X NVidia driver xorg-7.5.2 X.Org complete distribution metaport xorg-apps-7.5.2 X.org apps meta-port xorg-cf-files-1.0.4 X.org cf files for use with imake builds xorg-docs-1.6,1 X.org documentation files xorg-drivers-7.5.2 X.org drivers meta-port xorg-fonts-7.5.1 X.org fonts meta-port xorg-fonts-100dpi-7.5.1 X.Org 100dpi bitmap fonts xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts xorg-fonts-cyrillic-7.5.1 X.Org Cyrillic bitmap fonts xorg-fonts-miscbitmaps-7.5.1 X.Org miscellaneous bitmap fonts xorg-fonts-truetype-7.5.1 X.Org TrueType fonts xorg-fonts-type1-7.5.1 X.Org Type1 fonts xorg-libraries-7.5.1 X.org libraries meta-port xorg-macros-1.16.1 X.Org development aclocal macros xorg-server-1.7.7_6,1 X.Org X server and related programs Xorg.0.log snippet: (**) Option "Protocol" "auto" (**) Option "Device" "/dev/sysmouse" (**) Mouse0: Protocol: "auto" (**) Option "CorePointer" (**) Mouse0: always reports core events (**) Option "Device" "/dev/sysmouse" (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50 (**) Option "ZAxisMapping" "4 5 6 7" (**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7 (**) Mouse0: Buttons: 11 (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE) (**) Mouse0: (accel) keeping acceleration scheme 1 (**) Mouse0: (accel) acceleration profile 0 (II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0 (II) Mouse0: SetupAuto: protocol is SysMouse usbconfig: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen5.2: at usbus5, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen4.2: at usbus4, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON My KERNCONF can be found here: https://gitorious.org/gcooper-scratch/gcooper-scratch/blobs/master/fallout/root/FALLOUT