linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sean Young <sean@mess.org>
To: Rajil Saraswat <rajil.s@gmail.com>
Cc: linux-media@vger.kernel.org
Subject: Re: mceusb Fintek ir transmitter only works when X is not running
Date: Tue, 6 Aug 2013 09:31:23 +0100	[thread overview]
Message-ID: <20130806083123.GA11080@pequod.mess.org> (raw)
In-Reply-To: <CAFoaQoBFVJ+pKHtJncyLxH5tjLDeR5v5fQ4VqGx0Yoko_tiN2w@mail.gmail.com>

On Mon, Aug 05, 2013 at 11:57:58PM +0100, Rajil Saraswat wrote:
> >
> > Why are you doing this?
> >
> > -snip-
> 
> My initial guess was that X was claiming over the ir device, so I
> wanted to disable ir device as an input device.

X may open the input device, but that does not affect IR transmission.

> > X case where it does not work:
> >
> >> ffff880118d1f240 2548275209 S Io:2:008:1 -115:1 3 = 9f0802
> >> ffff880118d1f240 2548275281 E Io:2:008:1 -28 0
> >> ffff880118d1fb40 2548286204 S Io:2:008:1 -115:1 86 = 84ffb458 8b840a8b 0a8b8420 8b0a8b84 0a8b0a8b 840a8b0a 8b84208b 208b840a
> >> ffff880118d1fb40 2548286310 E Io:2:008:1 -28 0
> >
> > All the urb submissions result in an error -28: ENOSPC. These errors aren't
> > logged by default. I'm not sure about why this would happen.
> >
> > According to Documentation/usb/error-codes.txt:
> >
> > -ENOSPC         This request would overcommit the usb bandwidth reserved
> >                 for periodic transfers (interrupt, isochronous).
> >
> > Could you try putting the device on its own bus (i.e root hub which does
> > not share bus with another device, see lsusb output).
> >
> 
> 
> Unfortunately, this is a laptop with few usb ports. I have tried
> moving devices around but still end-up on the same bus (02). I am
> running the OS off the 1TB usb harddisk ( Western Digital
> Technologies) connected on the same bus.
> 
> # lsusb
> Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
> Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 003: ID 05ca:1814 Ricoh Co., Ltd HD Webcam
> Bus 002 Device 003: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
> Bus 002 Device 009: ID 1934:5168 Feature Integration Technology Inc.
> (Fintek) F71610A or F71612A Consumer Infrared Receiver/Transceiver
> Bus 002 Device 005: ID 1058:0748 Western Digital Technologies, Inc. My
> Passport 1TB USB 3.0
> Bus 002 Device 006: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module
> Bus 002 Device 007: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure
> Applications Processor

That is a lot devices, can you try with less devices connected? 

> The disk is quite responsive
> #hdparm -Tt /dev/sdb3
> 
> /dev/sdb3:
>  Timing cached reads:   4896 MB in  2.00 seconds = 2449.42 MB/sec
>  Timing buffered disk reads:  90 MB in  3.04 seconds =  29.58 MB/sec

It's not about whether there is enough bandwidth, it's about whether
issuing more usb urbs would overflow the bandwidth allocated to other
devices (whether in use or not). Make sure you have 
CONFIG_USB_EHCI_TT_NEWSCHED defined in your kernel.

> > If that does not work, could you capture the usbmon output while starting
> > X and then irsend, to see if your X config somehow affects it.
> 
> The usbmon capture (Xstart.txt) is attached as requested. I ran a
> script which rotated on channel numbers and simultaneously started X.
> The channels initially changed but stopped when I logged into the X
> session.

Thanks. Only the IR transmit urb submits results in error ENOSPC.


Sean

  reply	other threads:[~2013-08-06  8:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-04 12:56 mceusb Fintek ir transmitter only works when X is not running Rajil Saraswat
2013-08-05 11:29 ` Sean Young
2013-08-05 18:17   ` Rajil Saraswat
2013-08-05 21:15     ` Sean Young
2013-08-05 22:57       ` Rajil Saraswat
2013-08-06  8:31         ` Sean Young [this message]
2013-08-06 17:21           ` Rajil Saraswat

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=20130806083123.GA11080@pequod.mess.org \
    --to=sean@mess.org \
    --cc=linux-media@vger.kernel.org \
    --cc=rajil.s@gmail.com \
    /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).