From: Jonathan Corbet <corbet@lwn.net>
To: Matthew Garrett <mjg@redhat.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [now bisected] Weird bluetooth keyboard regression - just me?
Date: Thu, 10 May 2012 16:51:44 -0600 [thread overview]
Message-ID: <20120510165144.57a96941@lwn.net> (raw)
In-Reply-To: <20120502222724.GB2215@srcf.ucam.org>
On Wed, 2 May 2012 23:27:24 +0100
Matthew Garrett <mjg@redhat.com> wrote:
> Hm. Well, easiest thing to do would just to be to delete that for the
> moment and make sure that things work again - beyond that it's me trying
> to figure out how to write a udev file to do the right thing when I
> don't have hardware that has this layout. I'll see if I can mock it up.
I get the implied hint there ... :)
Every time I delve into udev I have to learn it all over again. I've just
done a bit of that. Looking at the 42-usb-hid-pm-rules file you sent me,
I see this at the end:
ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="removable", GOTO "usb_hid_pm_end"
ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="unknown", GOTO "usb_hid_pm_end"
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTRS{removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto"
LABEL="usb_hid_pm_end"
The two GOTO rules are the ones you've added over what Rawhide provided
me. By a laborious path I figured out that they were not working as
expected, while if I instead just commented out the final rule my keyboard
was happy again.
Then I looked closer and noticed that they read:
GOTO "usb_hid_pm_end"
GOTO considered harmful indeed, at least when it's written as above,
instead of:
GOTO="usb_hid_pm_end"
Once I dug up a couple of spare equals signs and stuffed them in there,
things worked. Sure was nice of udev to tell me about the problem...
Sorry it took me so long to figure that out, and thanks for the help. Can
you get the fixed rules into rawhide, or should I go bug somebody?
Thanks,
jon
next prev parent reply other threads:[~2012-05-10 22:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 13:37 Jonathan Corbet
2012-05-01 16:00 ` Gustavo Padovan
2012-05-01 17:01 ` [now bisected] " Jonathan Corbet
2012-05-01 17:19 ` Matthew Garrett
2012-05-01 18:01 ` Jonathan Corbet
2012-05-01 18:31 ` Matthew Garrett
2012-05-01 18:39 ` Jonathan Corbet
2012-05-01 18:54 ` Matthew Garrett
2012-05-01 19:27 ` Matthew Garrett
2012-05-01 23:24 ` Jonathan Corbet
2012-05-02 21:50 ` Matthew Garrett
2012-05-02 22:04 ` Jonathan Corbet
2012-05-02 22:27 ` Matthew Garrett
2012-05-10 22:51 ` Jonathan Corbet [this message]
2012-05-14 13:25 ` Matthew Garrett
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=20120510165144.57a96941@lwn.net \
--to=corbet@lwn.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.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
all inboxes | Powered by JetHome®