On Tue, 30.08.11 18:30, Kevin Kofler (kevin.kofler@xxxxxxxxx) wrote: > > Matthew Garrett wrote: > > There's no way to get any feedback from the gameport driver as to (a) > > whether there's anything plugged in, or (b) what is plugged in. We could > > have the gameport driver automatically pull in analog but that'd > > probably break people doing midi or using some more specialised input > > device. It's a hard problem that only impacts a pretty tiny set of > > people, so it's prioritised somewhere below the hard problems that > > impact a pretty large set of people. > > An Arch Linux user once pointed out to me that Arch (at the time) probed for > analog joysticks using this udev rule: > SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="PNPb02f", > RUN+="/lib/udev/load-modules.sh analog" > (They have since dropped that rule in their trunk.) I don't know whether it > makes any sense though. I presume this is just testing for the presence of a > gameport without caring about what is connected, right? If the PNP device with the ID "PNPb02f" is an analog joystick port then instead of hacking userspace rules like this the analog.ko kernel module should just gain a modinfo alias for it like for example parport_pc has for its PNP device ids. See "modinfo parport_pc" as an example. Lennart -- Lennart Poettering - Red Hat, Inc. -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel