Skip to content

fix: wayland sleep inhibit on client - #8947

Merged
nbolton merged 1 commit into
deskflow:masterfrom
Psykar:fix-wayland-sleep-inhibit
Sep 12, 2025
Merged

fix: wayland sleep inhibit on client#8947
nbolton merged 1 commit into
deskflow:masterfrom
Psykar:fix-wayland-sleep-inhibit

Conversation

@Psykar

@Psykar Psykar commented Sep 12, 2025

Copy link
Copy Markdown
Contributor

Fixes #8827
Adds the XWindowsPowerManager to the EiScreen as, despite the name, this works on Wayland as well.

Tested on KDE and shows the inhibit in the power menu when the client connects successfully.

image

I believe this change is small enough to not need copyright updates or doco changes (as this actually brings inline with doco rather than adding anything) - but let me know if you want me to update it.
I also decided that renaming XWindowsPowerManager is probably not worthwhile as part of this change, but again if that's preferred, happy to do so.

I do not have access to a windows or OSX machine to test, but given the EiScreen is Linux only I don't believe this will be an issue.

Fixes deskflow#8827
Adds the XWindowsPowerManager to the EiScreen as, despite the name, this
works on Wayland as well.
@Psykar
Psykar marked this pull request as ready for review September 12, 2025 01:25
@sithlord48 sithlord48 added this to the v1.25.0 milestone Sep 12, 2025

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seams alright.

@nbolton nbolton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working nicely. And wow that was simpler than I expected. As I mentioned on the issue, we should rename the power manager, but in a separate PR:

Thinking about it, would the XWindowsPowerManager code work for Wayland or is org.freedesktop.ScreenSaver X11 specific? If not, the class name is a bit silly. Maybe it should be renamed to something else.
#8827 (comment)

Edit: Raised #8949

@nbolton
nbolton merged commit 7a2591a into deskflow:master Sep 12, 2025
56 of 57 checks passed
@Psykar
Psykar deleted the fix-wayland-sleep-inhibit branch October 28, 2025 20:28
@ovflowd

ovflowd commented Oct 30, 2025

Copy link
Copy Markdown

OOC, is there any update on when this ships on Synergy? Was about to open an issue as this seems to be a bug on Wayland (possibly due to lack of system-inhibits call) and saw this got merged. Apologies for the noise :)

@sithlord48

Copy link
Copy Markdown
Member

No Idea, I think the proper place to ask about synergy is within one of their support places.

Don't take that as me being upset you asked or anything. I only want to direct question to the proper place. Deskflow is not Synergy. Symless can take what they do or don't want (or anyone really as long as the license is followed) so its hard for us (deskflow) to say what another group might do with the code and in what kind of time frame. I know that Nick (who is an active contributor) will also very likely answer your question here. It may not always be the case we have someone from the specific downstream your asking about active enough here to answer.

@ovflowd

ovflowd commented Oct 30, 2025

Copy link
Copy Markdown

Absolutely fair answer, will do a support ticket on Synergy then :)

@nbolton

nbolton commented Oct 30, 2025

Copy link
Copy Markdown
Member

OOC, is there any update on when this ships on Synergy?

It was backported in symless/synergy#123 and released in v1.19.0. Thanks for being a customer!

Edit: Also, v3.4.0 includes the Core from v1.19.0, so the fix should be there. If you're still seeing problems, then please open a support ticket.

@ovflowd

ovflowd commented Oct 30, 2025

Copy link
Copy Markdown

Cool! Waiting for it to reach on Synergy 3 (also apologies for the off topic)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent sleep feature does not work on Wayland client

4 participants