Hi Matthew, 於 三,2010-05-05 於 16:39 +0100,Matthew Garrett 提到: > On Wed, May 05, 2010 at 09:34:45AM -0600, Joey Lee wrote: > > > In some MSI netbook, like N034, it will need userland to call rfkill > > interface for enable/disable H/W module power and LED by using EC > > command. > > And, some MSI netbook, like N014/N051, the BIOS will change the H/W > > state when user press wifi function key. > > I am sure rfkill-input was also call .set_block and causes race > > condition with userland application or BIOS. > > Any userspace rfkill agent has to disable rfkill-input first. The > question is what to do in your case in order to consume the event before > it's sent to userspace. Let me think about this. > Thank's, actually, not just userland rfkill agent, there also have some MSI machine will control the H/W state by BIOS when user press function key. The rfill-input call each rfkill implmenetation's .set_block Joey Lee -- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html