floppy support (was: [HEADS UP] remove ddate(1) command from rawhide)

Lennart Poettering mzerqung at 0pointer.de
Tue Aug 30 17:18:40 UTC 2011


On Tue, 30.08.11 18:30, Kevin Kofler (kevin.kofler at chello.at) 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.


More information about the devel mailing list