Hey, this one is not exactly a bug, more an not so documented feature, which some people might find questionable. As it is somehow security related, it's wise to have it documented and maybe think about it. Downstream bug is at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666061 but basically a summary is that, when multiple screens are used, xfce4-power-manager won't lock the screen on lid close even though the setting is set to “Lock screen”. I guess (as I said on dowstream bug) the rationale is that people do it when they use their laptop docked with an external screen and external mouse/keyboard. Then they only use the external screen, and close the display. In this case, they might not want to lock the screen. Note that the behavior is not consistent with the suspend case: when xfpm is configured to suspend on lid close, it'll happily do it even though an external screen is plugged in, so I'm not sure the rationale really holds. Some way to fix it would be to add another option, maybe an hidden one, and to document the behavior somehwere.
Adding Nick on CC:
And adding downstream url
Nick, any idea on how to move forward on this?
*** Bug 9251 has been marked as a duplicate of this bug. ***
This one is difficult now since we also try to support LoginD. If it handles the lock on lid close, it has the same hardwired logic in it's code: http://cgit.freedesktop.org/systemd/systemd/tree/src/login/logind-action.c#n72 And there's no way for us to inhibit that, so a setting from us wouldn't always work. Leaving it as it is now at least keeps it consistent.
Someone filed an upstream feature request to SystemD https://bugs.freedesktop.org/show_bug.cgi?id=82485
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/2. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev