From owner-freebsd-questions@FreeBSD.ORG Tue Apr 14 16:21:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00969106566C for ; Tue, 14 Apr 2009 16:21:38 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by mx1.freebsd.org (Postfix) with ESMTP id 53A6D8FC1A for ; Tue, 14 Apr 2009 16:21:37 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by fxm11 with SMTP id 11so2546432fxm.43 for ; Tue, 14 Apr 2009 09:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=BaDkKgkcxVYAS4ONNxE93GI63Dp8cxBp/Dxp5TKQEcs=; b=BM4i5Umw3Q5gdCh5zHgur6CdA96IcZc4L8F7leoyAZ8FqkVUWBScZ8KUIKI2Vah1S7 qf8GhpS0DNAvhNC4dT7E5jr5f8X7i/VyMLnJrbpDQWKoXOqpaoMFuchzJx6KJb+orGq/ pvLoNyr39q1EZwM2vuGyTIcFDFRJNOggOTXwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=gaUgBPDSwuD26qyqvmqbMdH10S/oMfa9fvI8mWqLRiha0Zv/U+ySrxjUBeYQQ6lRBg BwZqGz7LvcVysu/DRjewSjo3iJT8mvZKIX8YrhijN8RsDPhqqn9/6jTTU8akb14cvBWH s/Egdubp1L+clQuXMS4A0kmLK7tukbiN12KCw= Received: by 10.103.193.13 with SMTP id v13mr4065424mup.1.1239726097114; Tue, 14 Apr 2009 09:21:37 -0700 (PDT) Received: from atlantis.dyndns.org (athedsl-4472733.home.otenet.gr [94.71.127.141]) by mx.google.com with ESMTPS id 23sm551052mun.0.2009.04.14.09.21.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Apr 2009 09:21:36 -0700 (PDT) Message-ID: <49E4B80E.4050003@gmail.com> Date: Tue, 14 Apr 2009 19:21:34 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 To: "Schmehl, Paul L" References: <5DC00D3430370A428A709B1E8BF3566641DA99@UTDEVS20.campus.ad.utdallas.edu> In-Reply-To: <5DC00D3430370A428A709B1E8BF3566641DA99@UTDEVS20.campus.ad.utdallas.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "mail.list freebsd-questions" Subject: Re: Mouse stopped working in X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 16:21:39 -0000 Schmehl, Paul L wrote: > I ran the perl upgrade and portupgrade, and now my mouse doesn't work in > Xorg running KDE. Works fine in the console, and I haven't changed anything > in the xorg.conf file. I generated a new one, and the mouse section is > identical to what I already have. > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "ZAxisMapping" "4 5 6 7" > EndSection > > For some reason I now have a PS2 mouse being detected (there's no PS2 port > on this box and there's no PS2 mouse plugged in to it), and I think that's > the cause of the mouse failure in X. > > # ls -l /dev/psm0 > crw-rw-rw- 1 root wheel 0, 64 Apr 14 09:33 /dev/psm0 > > But how do I track down what's causing this device to be loaded? > > I also have the usb mouse: > > # ls -l /dev/ums0 > crw-r--r-- 1 root operator 0, 42 Apr 14 09:29 /dev/ums0 > > (**) |-->Input Device "Mouse0" > (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or > 'vmmouse' will be disabled. > (WW) Disabling Mouse0 > (==) RADEONHD(0): Silken mouse enabled > (II) config/hal: Adding input device PS/2 Mouse > (II) LoadModule: "mouse" > (II) Loading /usr/local/lib/xorg/modules/input//mouse_drv.so > (II) Module mouse: vendor="X.Org Foundation" > (**) PS/2 Mouse: Device: "/dev/psm0" > (==) PS/2 Mouse: Protocol: "Auto" > (**) PS/2 Mouse: always reports core events > (==) PS/2 Mouse: Emulate3Buttons, Emulate3Timeout: 50 > (**) PS/2 Mouse: ZAxisMapping: buttons 4 and 5 > (**) PS/2 Mouse: Buttons: 9 > (**) PS/2 Mouse: Sensitivity: 1 > (II) XINPUT: Adding extended input device "PS/2 Mouse" (type: MOUSE) > (**) PS/2 Mouse: (accel) keeping acceleration scheme 1 > (**) PS/2 Mouse: (accel) filter chain progression: 2.00 > (**) PS/2 Mouse: (accel) filter stage 0: 20.00 ms > (**) PS/2 Mouse: (accel) set acceleration profile 0 > (II) PS/2 Mouse: SetupAuto: hw.iftype is 3, hw.model is 0 > (II) PS/2 Mouse: SetupAuto: protocol is PS/2 > (II) PS/2 Mouse: ps2EnableDataReporting: succeeded > > Dmesg shows the device being loaded: > > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: [ITHREAD] > psm0: model Generic PS/2 mouse, device ID 0 > > But also shows the usb mouse being loaded: > > ukbd0: 2.00/2.07, addr 3> on uhub3 > kbd2 at ukbd0 > ums0: on > uhub3 > ums0: 3 buttons and Z dir. > > I have no idea where this PS2 mouse suddenly appeared from, but I think it's > clearly the cause of the problem. > > Also, Ctrl-Alt-Bksp no longer restarts X, which is kind of weird. I can > still switch to other ttys though. > > Paul Schmehl (pauls@utdallas.edu) > Senior Information Security Analyst > University of Texas at Dallas > http://www.utdallas.edu/ir/security/ > > The fact that CTRL+ALT+BACKSPACE does not work indicates that you probably upgraded to Xorg 7.4 Try inserting the following in your xorg.conf to fix keyboard/mouse problems: Section "ServerFlags" Option "AutoAddDevices" "false" Option "AllowEmptyInput" "false" Option "DontZap" "false" EndSection (DontZap will restore the previous CTRL+ALT+BKSP behaviour)