Comment 1 for bug 949296

Revision history for this message
Andrei Dragomir (adragomir) wrote : Re: gnome-settings-daemon always prevents suspend on macbookpro5,3

Some investigations:

The problem seems to be related to non_laptop_outputs_are_all_off in plugins/power/gsd-power-manager.c

Also possible culprits could be is_laptop and gnome_rr_output_is_laptop.

My Display name is Apple DFP, so it doesn't seem to be caught by gnome_rr_output_is_laptop

However, detecting if it is a laptop monitor by name seems a bit flaky. However, since I don't have any external monitors connected, it seems that a workaround would be to also count how many displays we have in total. If the number is 1, and since this is a laptop (lid event, etc), is there any case where the one display isn't the laptop display ?

I am attaching a patch that fixes (probably incorrectly) the issue for me.