Comment 3 for bug 524830

Revision history for this message
Kai Jauch (kaijauch) wrote :

I suspect that the following is happening:

- lid close causes a (fake) fn-f8 keypress (display toggle on the Dell Latitude E6400, gsd calls it fn-f7), gsd reconfigures outputs (all outputs off)
- lid open causes another (fake) fn-f8 keypress, gsd reconfigures outputs (LVDS on)

So, for one lid close and open, gsd should receive two (fake) fn-f8 keypresses and reconfigure the outputs each time. Unfortunately any keypress after a fn-f8 keypress will cause a duplicate fn-f8 keypress to appear (bug #535348), causing this:

- lid close -> fake fn-f8 keypress, gsd reconfigures outputs
- lid open -> fake fn-f8 keypress, which is causing a duplicate fn-f8 keypress to appear. gsd reconfigures outputs twice
- if you hit any key at any time after you've opened the lid, this causes another duplicate fn-f8 keypress to appear. gsd reacts and again reconfigures outputs, causing the visual lag and flashing of icons.

This is visible in the log I attached before, gsd claims to handle "fn-f7"-events four times.