linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.de>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Jiri Kosina <jkosina@suse.cz>, x0r <x0r@dv-life.ru>,
	Linux Input <linux-input@vger.kernel.org>,
	Linux USB <linux-usb@vger.kernel.org>
Subject: Re: ACRUX gamepads not happy with autosuspend?
Date: Tue, 20 Jul 2010 10:07:04 +0200	[thread overview]
Message-ID: <201007201007.04518.oneukum@suse.de> (raw)
In-Reply-To: <20100720001745.GA17910@core.coreip.homeip.net>

[-- Attachment #1: Type: Text/Plain, Size: 1127 bytes --]

Am Dienstag, 20. Juli 2010, 02:17:45 schrieb Dmitry Torokhov:
> Jiri, Oliver,
> 
> It looks like ACRUX game controllers do not like autopm. There is
> a bug report over at Ubuntu's launchpad:
> 
> 	https://bugs.launchpad.net/ubuntu/+source/joystick/+bug/448446

That report shows that the symptoms are consistent with autosuspend,
but it doesn't show that autosuspend was on.

> that states that once device is plugged in the light ion it turns on
> briefly and then goes off and from that point on nothing comes from
> the device. They deal with it by having an application open the jsX
> device as soon as it appears and that makes gamepad work - but it
> is obviously not a solution.

If autosuspend is enabled simply opening the device file will keep the
device active as it does not suport remote wakeup.

Something like
sleep 5000 </dev/input/js0
should fix the issue.

> It looks like we either need to disable autosuspend for these devices
> or maybe kick the device harder when userspace tries to open it so
> that it wakes up if it went to sleep.

You can try the attached patch. I doubt it works.

	Regards
		Oliver

[-- Attachment #2: 0001-USB-quirk-for-ACRUX-USB-GAMEPAD-8116.patch --]
[-- Type: text/x-patch, Size: 993 bytes --]

From d7fb44af446eaf9f2a200d3645b72f7f98029b57 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oliver@neukum.org>
Date: Tue, 20 Jul 2010 10:04:47 +0200
Subject: [PATCH] USB: quirk for ACRUX USB GAMEPAD 8116

This needs to be reset as the system wakes up and
for runtime power management.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
---
 drivers/usb/core/quirks.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index f22d03d..cb2e985 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -75,6 +75,9 @@ static const struct usb_device_id usb_quirk_list[] = {
 	{ USB_DEVICE(0x1908, 0x1315), .driver_info =
 			USB_QUIRK_HONOR_BNUMINTERFACES },
 
+	/* ACRUX USB GAMEPAD 8116 */
+	{ USB_DEVICE(0x1a34, 0x0802), .driver_info = USB_QUIRK_RESET_RESUME },
+
 	/* INTEL VALUE SSD */
 	{ USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME },
 
-- 
1.7.1


  reply	other threads:[~2010-07-20  8:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4C3F8A90.3020308@dv-life.ru>
     [not found] ` <20100716080200.GA14120@core.coreip.homeip.net>
     [not found]   ` <4C44D236.40002@dv-life.ru>
     [not found]     ` <201007191630.07475.dmitry.torokhov@gmail.com>
     [not found]       ` <4C44E3A2.8080301@dv-life.ru>
2010-07-20  0:17         ` ACRUX gamepads not happy with autosuspend? Dmitry Torokhov
2010-07-20  8:07           ` Oliver Neukum [this message]
     [not found]             ` <201007201007.04518.oneukum-l3A5Bk7waGM@public.gmane.org>
2010-07-20  8:58               ` Jiri Kosina
2010-07-20 10:03                 ` Oliver Neukum
     [not found]                   ` <201007201203.43573.oneukum-l3A5Bk7waGM@public.gmane.org>
2010-07-20 12:14                     ` x0r
2010-07-20 12:24                       ` Oliver Neukum
2010-07-24  7:51                         ` Dmitry Torokhov
     [not found]                           ` <20100724075112.GB3615-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2010-07-25  0:58                             ` x0r

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201007201007.04518.oneukum@suse.de \
    --to=oneukum@suse.de \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=x0r@dv-life.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).