Skip to contentSkip to conversation

new udev rule proposal for m5602 camera

DISCUSSION Lukáš Karas 2 participants 2 messages Feb 3, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,
new kernel (>2.6.33-rc1) failed suspend to ram with my build in camera (0402:5602). For more information see bug
http://bugzilla.kernel.org/show_bug.cgi?id189

Solution is simple udev rule, that disable wakeup from this ugly hardware:

## m5602 camera defends to successful suspend ATTR{idVendor}="0402", ATTR{idProduct}="5602", ATTR{power/wakeup}="disabled"

I proposes add this rule to default udev rules. Some other people may have the same problem.

btw sorry for my english

Lukas karas

#1 lore raw

2010/2/3 Lukáš Karas <[email protected]>:

Quoted 8 lines

new kernel (>2.6.33-rc1) failed suspend to ram with my build in camera (0402:5602). For more information see bug
http://bugzilla.kernel.org/show_bug.cgi?id189

Solution is simple udev rule, that disable wakeup from this ugly hardware:

## m5602 camera defends to successful suspend ATTR{idVendor}="0402", ATTR{idProduct}="5602", ATTR{power/wakeup}="disabled"

So far, quirk handling is maintained inside the kernel drivers. Up until now, udev does not carry any entries like this for any subsystem. If that should change, it would need commitment from the video4linux maintainers to maintain the udev rules entries instead of the in-kernel quirks.

We can not just add entries like this to the udev repository, because nobody will care about and maintain them when things change, and only the v4l developers have knowledge about what is needed here for which kernel driver release, or the current state of the video4linux subsystem.

I guess, if quirk handling in general, is supposed to live in userspace instead of the kernel, this informations needs to be shipped with the kernel itself and somehow exported to udev rules when needed, otherwise we will end up with a huge pile of random rules, nobody really knows what they are good for, or if they are still needed.

Thanks for the mail, and sorry, that there is no immediate solution to your problem,
Kay