linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Mielke <Dave@mielke.cc>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org,
	Samuel Thibault <Samuel.Thibault@ens-lyon.org>,
	Nicolas Pitre <nico@fluxnic.net>
Subject: Re: Writing to /sys/../power/autosuspend when not root.
Date: Tue, 28 Apr 2020 05:26:49 -0400	[thread overview]
Message-ID: <20200428092649.GI756@beta.private.mielke.cc> (raw)
In-Reply-To: <20200427103009.GA2362731@kroah.com>

[quoted lines by Greg KH on 2020/04/27 at 12:30 +0200]

>Have a udev rule that turns autosuspend off for each specific USB device
>that you know does not work with autosuspend.  

Yes, thanks, that should work. I have another question, though. Our code first
tries to write "-1" to power/autosuspend, and then, if that fails, it writes
"0". I'm guessing that "-1" was an older way (but I've forgotten). How can a
udev rule be written to accommodate that?

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave@Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |

  parent reply	other threads:[~2020-04-28  9:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 19:08 Writing to /sys/../power/autosuspend when not root Dave Mielke
2020-04-27 10:30 ` Greg KH
2020-04-27 14:27   ` Alan Stern
2020-04-28  9:26   ` Dave Mielke [this message]
2020-04-28  9:53     ` Greg KH
2020-04-28 13:17     ` Alan Stern

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=20200428092649.GI756@beta.private.mielke.cc \
    --to=dave@mielke.cc \
    --cc=Samuel.Thibault@ens-lyon.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=nico@fluxnic.net \
    /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).