Re: [gpm] When will happen duplicate lid close/open event?



On Fri, 2008-09-12 at 17:18 +0800, simon zheng sun com wrote:
> Hi Richard and all,
> 
> Just curious about why do we need to explicitly avoid duplicate event as
> below code? When is will possibly happen?

Broken hardware, or broken linux kernel.

Some hardware will generate:

DOWN
DOWN
UP

and then we make matters worse by having linux report some lid events
over INPUT, and also the depricated ACPI event way. Hence we get:

DOWN
DOWN
UP
UP

Richard.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]