From: David Brownell <david-b@pacbell.net>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-usb-devel@lists.sourceforge.net, Greg KH <gregkh@suse.de>,
Rogan Dawes <lists@dawes.za.net>,
Oliver Neukum <oliver@neukum.org>,
linux-kernel@vger.kernel.org,
Alan Stern <stern@rowland.harvard.edu>
Subject: Re: [linux-usb-devel] [PATCH] USB: Only enable autosuspend by default on certain device classes
Date: Fri, 3 Aug 2007 09:29:16 -0700 [thread overview]
Message-ID: <200708030929.17049.david-b@pacbell.net> (raw)
In-Reply-To: <20070803150303.GA19968@srcf.ucam.org>
On Friday 03 August 2007, Matthew Garrett wrote:
> On Fri, Aug 03, 2007 at 07:37:55AM -0700, David Brownell wrote:
> > On Friday 03 August 2007, Matthew Garrett wrote:
> > > Popping up a box saying "Is your device broken?" isn't good UI.
> >
> > Which is why I didn't suggest doing that, of course. The only
> > one making that kind of straw man argument seems to be you.
>
> But however you phrase it, that's effectively what it is.
As http://en.wikipedia.org/wiki/Straw_Man phrases it,
"A straw man argument is an informal fallacy based on
misrepresentation of an opponent's position ... the
opponent's actual argument has not been refuted."
That's clearly what you've been doing by proposing some
specific -- and obviously bad -- user interfaces, none
of which have the fundamental characteristic I described.
> And, frankly, if I got a requestor like that every time I plugged in a
> new USB device I'd be fairly unhappy.
Which is why my comment was about something else entirely!
That is, having an out-of-kernel database which could preclude
the need for such requestors for devices already known.
> > If I were to describe any dialog users would see, it would be more
> > like "I don't recognize this device, help me set it up right...".
> > As with music CDs, that help might update the database for the next
> > person. (Assuming this were done well, of course.)
>
> Users understand CDs. They don't understand runtime power management.
A new straw man! Because power management isn't the relevant point.
All they'd ever have to understand is: is it working correctly right
now? That's after an experimental autosuspend, and after poking the
hardware to verify that, from the kernel perspective, it acts OK.
Oliver pointed out that the typical failure mode is easily detected
in software. So when the user says "OK, I'll help set it up", the
worst case would be that the device is NOT recorded already in that
database, the user might need to be ready to unplug then replug the
device (when that experiment fails).
> > Speaking of which, what's this /dev/bus/usb/* crap on Ubuntu?
> > I had to undo all that on my Feisty system before any normal
> > /proc/bus/usb stuff would work again.
>
> "Usbfs files can't handle Access Control Lists (ACL), which are the
> default way to grant access to USB devices for untrusted users of a
> desktop system. The usbfs functionality is replaced by real device-nodes
> managed by udev. These nodes live in /dev/bus/usb and are used by
> libusb."
>
> (From Kconfig)
That's shortly after the explanation that the relevant Kconfig
option is for ** /proc/bus/usb ** files ... note that despite the
strangeness in that text (usbfs still hasn't been "replaced", so
that should say "will eventually be replaced" not "is replaced"),
it's clear that /proc/bus/usb/ and /dev/bus/usb/ are two different
things. And thus: that Ubuntu's /dev/bus/usb/ setup is flakey.
> > > You commonly run a laptop off battery while having a printer plugged in?
> >
> > Unfortunately I need to run laptop off AC since its battery life is
> > painfully short, and since Linux behaves so incredibly rudely when
> > the battery power goes down to almost-zero: it lets it go to zero
> > rather than hibernating. (And doesn't automatically enter suspend
> > when it idles, either...)
>
> System/Preferences/Power Management
There's no option there to affect what happens when it's running
on battery power. Though I'm curious what it means when it has
a "suspend" option (not "hibernate") ... I wouldn't mind STR.
> > Note by the way that if you were -- for the sake of argument -- accept
> > my premise that this should all be handled in userspace ... it's very
> > easy to make userspace code do what you want. It doesn't need to be
> > done inside the kernel.
>
> It can be, but I'd prefer to have userspace enable functionality than
> have the kernel break things.
That side of things has been absent from the discussion so far.
When something is wrongly blacklisted (by whatever), how are you
proposing that it get un-blacklisted? Seems to me that whatever
mechanism resolves that issue should also work the other way around...
- Dave
next prev parent reply other threads:[~2007-08-03 16:30 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-02 23:56 [PATCH] USB: Only enable autosuspend by default on certain device classes Matthew Garrett
2007-08-03 1:15 ` Greg KH
2007-08-03 1:47 ` Matthew Garrett
2007-08-03 2:46 ` [linux-usb-devel] " Alan Stern
2007-08-03 6:01 ` David Brownell
2007-08-03 11:28 ` Matthew Garrett
2007-08-03 11:44 ` Oliver Neukum
2007-08-03 12:04 ` Matthew Garrett
2007-08-03 12:26 ` Rogan Dawes
2007-08-03 12:32 ` Matthew Garrett
2007-08-03 14:01 ` David Brownell
2007-08-03 14:09 ` Matthew Garrett
2007-08-03 14:28 ` Alan Stern
2007-08-03 14:33 ` Matthew Garrett
2007-08-03 14:41 ` Alan Stern
2007-08-03 15:10 ` Matthew Garrett
2007-08-03 14:43 ` Jiri Kosina
2007-08-03 14:53 ` [linux-usb-devel] " Dave Jones
2007-08-03 14:58 ` Jiri Kosina
2007-08-03 15:24 ` David Brownell
2007-08-03 15:29 ` Jiri Kosina
2007-08-03 17:47 ` Alan Stern
2007-08-03 15:25 ` Adam Kropelin
2007-08-03 15:31 ` Jiri Kosina
2007-08-03 15:48 ` Dave Jones
2007-08-03 16:49 ` David Brownell
2007-08-03 16:55 ` Adam Kropelin
2007-08-03 15:06 ` Matthew Garrett
2007-08-03 14:37 ` [linux-usb-devel] " David Brownell
2007-08-03 15:03 ` Matthew Garrett
2007-08-03 16:08 ` Oliver Neukum
2007-08-03 17:49 ` Alan Stern
2007-08-03 20:03 ` Dave Jones
2007-08-03 16:29 ` David Brownell [this message]
2007-08-03 16:50 ` Matthew Garrett
2007-08-03 17:49 ` Greg KH
2007-08-03 17:44 ` Greg KH
2007-08-03 17:48 ` Matthew Garrett
2007-08-03 19:29 ` Chuck Ebbert
2007-08-03 19:56 ` Pete Zaitcev
2007-08-07 9:14 ` Amit Kucheria
2007-08-03 20:12 ` [linux-usb-devel] " Dave Jones
2007-08-03 21:17 ` Alan Stern
2007-08-03 21:31 ` Dave Jones
2007-08-03 21:33 ` Matthew Garrett
2007-08-03 12:34 ` Felipe Balbi
2007-08-03 6:06 ` David Brownell
2007-08-03 14:22 ` Dave Jones
2007-08-03 14:52 ` David Brownell
2007-08-03 7:57 ` Oliver Neukum
2007-08-03 14:24 ` Dave Jones
2007-08-03 14:32 ` Oliver Neukum
2007-08-03 14:36 ` [linux-usb-devel] [PATCH] USB: Only enable autosuspend by?default " Dave Jones
2007-08-03 19:34 ` [linux-usb-devel] [PATCH] USB: Only enable autosuspend by default " Pete Zaitcev
2007-08-03 19:45 ` Dave Jones
2007-08-03 20:04 ` Pete Zaitcev
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=200708030929.17049.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=lists@dawes.za.net \
--cc=mjg59@srcf.ucam.org \
--cc=oliver@neukum.org \
--cc=stern@rowland.harvard.edu \
/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