Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758313Ab0DPMGu (ORCPT ); Fri, 16 Apr 2010 08:06:50 -0400 Received: from mailservice.tudelft.nl ([130.161.131.5]:42758 "EHLO mailservice.tudelft.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756225Ab0DPMGt (ORCPT ); Fri, 16 Apr 2010 08:06:49 -0400 X-Spam-Flag: NO X-Spam-Score: -14.389 Message-ID: <4BC852CD.40406@tremplin-utc.net> Date: Fri, 16 Apr 2010 14:06:37 +0200 From: =?UTF-8?B?w4lyaWMgUGllbA==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100331 Mandriva/3.0.4-1mdv2010.1 (2010.1) Thunderbird/3.0.4 MIME-Version: 1.0 To: Marcin Derlukiewicz CC: Jiri Kosina , Andrew Morton , Samu Onkalo , Pavel Machek , lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] lis3lv02d: provide means to disable polled input interface References: <4BBF2BD1.5050107@tremplin-utc.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1213 Lines: 32 On 16/04/10 13:41, Marcin Derlukiewicz wrote: : > sorry for the delay, had a crunch time > > here is the link for this lsof: > https://bugzilla.novell.com/attachment.cgi?id=354953 So apparently, it's opened by mplayer. Indeed, by default mplayer always opens the first joystick device, because some people like to control a movie with a joystick. I don't think much can be done from the kernel point of view. Maybe there are even people who enjoy controlling their movies by moving their laptop! Here, my ~/.mplayer/config looks like: [default] input=js-dev=/dev/input/js8 You could also put a udev rule to change the name of this joystick to something like js1. All I could think of in the kernel side to improve this situation would be to give more information about joystick devices, and define a subtype "accelerometer", which mplayer could avoid selecting by default. I don't know enough the input interface to know if this already exists... See you, Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/