From patchwork Sun Nov 18 08:56:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 1760491 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5994FDF230 for ; Sun, 18 Nov 2012 08:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440Ab2KRI4n (ORCPT ); Sun, 18 Nov 2012 03:56:43 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34009 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321Ab2KRI4n (ORCPT ); Sun, 18 Nov 2012 03:56:43 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so2744762pad.19 for ; Sun, 18 Nov 2012 00:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=C71cdDG3j2rskl33W0Dov30rB+I01p3OEIBjTR/L2nY=; b=hQsbpRvdUvh7ktqmdoJjnEWbMMFmaJvSlpeb8rLy0rA5N17919QUg30+atNI299ab6 McV7imcFtidm3dlGNR+o9uCsuRwXLTeO/R3RteOw2fStJSwhyBEZg5FY14S6fARt8ky3 Zi4ugztt6FnXHtmktnKBUPcelRDzmana2f8RcLu8CKkn3W0CuCAFB4G4AlPNmSiPdKeQ CxqL6HbITqS49G4+0OKhAMKWBk0jcIOzqqsyCadSd8iOedLTQfChLXVMKa9zo+0VOKbo d1D5TKv/Ez6U+a+OmyG/1eIRN3qQI65elhgw+nDOzpFi+vvUucim05VhMOxfJusD79su UExQ== Received: by 10.68.132.202 with SMTP id ow10mr29556664pbb.139.1353229002610; Sun, 18 Nov 2012 00:56:42 -0800 (PST) Received: from mailhub.coreip.homeip.net (c-67-188-112-76.hsd1.ca.comcast.net. [67.188.112.76]) by mx.google.com with ESMTPS id bc8sm4147204pab.5.2012.11.18.00.56.40 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Nov 2012 00:56:41 -0800 (PST) Date: Sun, 18 Nov 2012 00:56:38 -0800 From: Dmitry Torokhov To: Jiri Kosina Cc: Pavel Machek , kernel list , "Rafael J. Wysocki" , linux-input@vger.kernel.org Subject: Re: 3.7-rc3: mouses stopped working Message-ID: <20121118085638.GA2331@core.coreip.homeip.net> References: <20121115132849.GA4062@elf.ucw.cz> <20121115140736.GA2651@elf.ucw.cz> <20121116013405.GA2002@elf.ucw.cz> <20121116122400.GA10994@elf.ucw.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Fri, Nov 16, 2012 at 01:37:31PM +0100, Jiri Kosina wrote: > On Fri, 16 Nov 2012, Pavel Machek wrote: > > > > > root@amd:/tmp# uname -a > > > > Linux amd 3.7.0-rc5+ #236 SMP Thu Nov 15 20:07:26 CET 2012 i686 GNU/Linux > > > > root@amd:/tmp# cat /dev/input/mice > > > > cat: /dev/input/mice: No such device or address > > > > root@amd:/tmp# ls -al /dev/input/mice > > > > crw-rw---- 1 root root 13, 63 Apr 25 2010 /dev/input/mice > > > > root@amd:/tmp# > > > > > > Let's see whether this is /dev/input/mice issue or something else first. > > > > > > Is anything coming out of corresponding /dev/input/eventX node? > > > > /dev/input/mouse0 and /dev/input/mouse1 generate events when I move > > internal/USB mouse. > > > > ls -al /dev/input/mouse0 > > crw-rw---- 1 root root 13, 32 Apr 25 2010 /dev/input/mouse0 > > pavel@amd:/tmp$ ls -al /dev/input/mouse1 > > crw------T 1 root root 13, 33 Aug 30 16:41 /dev/input/mouse1 > > pavel@amd:/tmp$ > > > > > And /dev/hidrawX? > > > > /dev/hidraw0 seems to correspond to USB mouse and generates > > events. Could not find hidraw corresponding to PS/2 mouse. > > That is correct and expected behavior. > > > So it seems to be "/dev/input/mice" issue. Does it work for you? > > Yes, it works for me properly (testing with rc4+, 1b42fc4 more precisely). > Even after disconnect/reconnect cycle of USB mouse, I am getting events > properly from /dev/input/mice (frankly I am surprised that you noticed ... > Xorg has been using evdev driver for ages already by default, right?) > > What was the last kernel version that worked for you in this respect? > > Adding Dmitry and linux-input. Does the patch below help? Thanks. Tested-by: Krzysztof Mazur Tested-by: Pavel Machek diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 8f02e3d..4c842c3 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c @@ -12,8 +12,8 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define MOUSEDEV_MINOR_BASE 32 -#define MOUSEDEV_MINORS 32 -#define MOUSEDEV_MIX 31 +#define MOUSEDEV_MINORS 31 +#define MOUSEDEV_MIX 63 #include #include