Hi! I'd like to have "joystick" (or maybe "game_controller") added to the possible values of ID_CLASS. The possible values are currently "spkr", "kbd", "mouse", "ir". Joydev (drivers/input/joydev.c) considers a device to be a joystick when it has (ABS_X || ABS_WHEEL || ABS_THROTTLE) && !BTN_TOUCH. Modalias has the necessary info. Example modalias for my sw p2 joystick: MODALIAS=input:b0003v045Ep0038e0108-e0,1,3,k120,121,122,123,124,125,126,127,ra0,1,5,6,10,11,mlsfw ABS caps are after "a" and KEY caps are after "k". ABS_X=0, ABS_WHEEL=8, ABS_THROTTLE=6, BTN_TOUCH=14A. Then we get the following rule to add into 60-persistent-input.rules: SYSFS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", SYSFS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick" Another possibility would be to match the capabilites flags in sysfs, but they're bitfields. For example the device in the above example has "30063" in /capabilities/abs which means 110000000001100011. I don't know how to parse that easily. I need this "joystick" value, because it would rather cleanly allow to easily differentiate joystick evdev device nodes, so that they can be chowned to the console user by pam. Patch is attached. Please comment. -- Anssi Hannula