From owner-freebsd-questions@FreeBSD.ORG Sun May 20 12:17:13 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B262106564A for ; Sun, 20 May 2012 12:17:13 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E07188FC14 for ; Sun, 20 May 2012 12:17:12 +0000 (UTC) Received: by obcni5 with SMTP id ni5so8978130obc.13 for ; Sun, 20 May 2012 05:17:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=Mo5xKeTpGE+jL+LVREgqKGVGzosqIi6IEV7m791v/0Q=; b=FLD/r2bkAhuuVRHuAb3BqZjVFCWsrqkoh5uyIlZfs1xyxfV7SxfrHAxDGXuilHKXNn FM03g2FOxFR3w4WwzFliXJvePa3ciQMqMioh4VxnJvv6kpEnveP+Dnz8nubvaivl9thS owMFZL64hd6GMBq2xXfbQcLFJ2kskbTjh86UkLy1+sjjjWL5zkkeTGgi5gxRpB5juG8G g+wPGiUrliBQQq9Pb0aZdB2QqNs0S/0cqc8ZgsNh0wz4dEwK/4qwd1AC6Laffr1Alihz TRMc1oSBtdzpcsoxff/hwnG+rAO/MzyAaBLX8pp8QMe+gdstXU2Q9RDQnry7zA5di7UT 88lw== MIME-Version: 1.0 Received: by 10.50.193.132 with SMTP id ho4mr4507839igc.17.1337516226374; Sun, 20 May 2012 05:17:06 -0700 (PDT) Received: by 10.231.167.10 with HTTP; Sun, 20 May 2012 05:17:06 -0700 (PDT) X-Originating-IP: [93.221.167.173] In-Reply-To: <4FB64022.6010206@bananmonarki.se> References: <201205181149.q4IBndvU028665@hera.homer.att.com> <4FB64022.6010206@bananmonarki.se> Date: Sun, 20 May 2012 14:17:06 +0200 Message-ID: From: "C. P. Ghost" To: Bernt Hansson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnCOdSzMlBBx26wEUX46W0H38kDErru7xl+cFCtXXGypoH8G/KV+4+V0vAuylzyfk1zn7rj Cc: freebsd-questions@freebsd.org, "J. W. Ballantine" 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: Sun, 20 May 2012 12:17:13 -0000 On Fri, May 18, 2012 at 2:27 PM, Bernt Hansson wrote: > 2012-05-18 13:49, J. W. Ballantine skrev: > >> Hi, >> >> Before the update of x11 on 4/21/2012, X was working fine, but now >> when I startx, my usb and touchpad mouse are no longer found. =A0The >> mouse works in terminal mode, and hald and dbus are started in >> /etc/rc.conf. > > I have exactly the same problem. What windowmanager are you > using? I'm using xfce4, I have a workaround for that. > > 1. start X > 2. when it comes up press alt+F2, the start program dialog comes up > 3. type in xterm or your terminal of choice > 4. in your terminal su to root then type > > /usr/local/etc/rc.d/dbus restart && /usr/local/etc/rc.d/hald restart > > wait a few seconds and the mouse should work again. I have the same problem but with a ps/2 mouse. Restarting dbus and hald from within an xterm is a workable workaround. Since I'm using fluxbox, I start an xterm in ~/.xinitrc in the background to get a terminal before exec-ing fluxbox. Luckily, this xterm has already the focus. This is the relevant part of /var/log/Xorg.0.log regarding the mouse: (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=3D"X.Org Foundation" compiled for 1.7.7, module version =3D 1.7.1 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 7.0 (WW) PS/2 Mouse: No Device specified, looking for one... (II) PS/2 Mouse: Setting Device option to "/dev/psm0" (--) PS/2 Mouse: Device: "/dev/psm0" (=3D=3D) PS/2 Mouse: Protocol: "Auto" (**) PS/2 Mouse: always reports core events (**) Option "Device" "/dev/psm0" (EE) xf86OpenSerial: Cannot open device /dev/psm0 Device busy. (EE) PS/2 Mouse: cannot open input device (II) UnloadModule: "mouse" (EE) PreInit returned NULL for "PS/2 Mouse" (EE) config/hal: NewInputDeviceRequest failed (8) After restarting hald: (II) config/hal: Adding input device PS/2 Mouse (WW) PS/2 Mouse: No Device specified, looking for one... (II) PS/2 Mouse: Setting Device option to "/dev/sysmouse" (--) PS/2 Mouse: Device: "/dev/sysmouse" (=3D=3D) PS/2 Mouse: Protocol: "Auto" (**) PS/2 Mouse: always reports core events (**) Option "Device" "/dev/sysmouse" (=3D=3D) PS/2 Mouse: Emulate3Buttons, Emulate3Timeout: 50 (**) PS/2 Mouse: ZAxisMapping: buttons 4 and 5 (**) PS/2 Mouse: Buttons: 9 (II) XINPUT: Adding extended input device "PS/2 Mouse" (type: MOUSE) Interestingly, the first time Xorg tries to access the mouse, it opens /dev/psm0, and the second time after manually restarting hald, it accesses /dev/sysmouse... which is the driver that I always use in /etc/X11/xorg.conf: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Shouldn't Xorg use /dev/sysmouse all the time then? Why does it try to open /dev/psm0? I hope this problem will get fixed soon. ;-) Thanks for the good workaround. Regards, -cpghost. --=20 Cordula's Web. http://www.cordula.ws/