Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Manager): add suspend/wake hook methods to handle reconnecting Deck target device #228

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

ShadowApex
Copy link
Contributor

@ShadowApex ShadowApex commented Nov 20, 2024

This change adds new HookSleep and HookWake dbus methods that can be called by a systemd unit on suspend/resume to allow InputPlumber to prepare for sleep/wake. It also includes the latest version of the virtual-usb crate which contains a fix where the read/write threads of the virtual usb device would fail to stop, leaving a dangling virtual usb device.

This change seems to be required due to the appearance that the virtual usb kernel driver currently does not support suspend:
https://github.com/torvalds/linux/blob/master/drivers/usb/usbip/vhci_hcd.c#L1260

In order for this feature to work, users will need to ensure the suspend systemd unit is also enabled for InputPlumber:

sudo systemctl enable inputplumber-suspend

Fixes #165

@ShadowApex ShadowApex requested a review from pastaq November 20, 2024 04:54
@ShadowApex ShadowApex force-pushed the shadowapex/sleep-handler branch 2 times, most recently from 9823db5 to 539c6b0 Compare November 21, 2024 03:02
@ShadowApex ShadowApex force-pushed the shadowapex/sleep-handler branch from 539c6b0 to 0d03f0d Compare November 21, 2024 05:02
@ShadowApex ShadowApex force-pushed the shadowapex/sleep-handler branch from 0d03f0d to 0060226 Compare November 21, 2024 05:10
@ShadowApex ShadowApex merged commit ff991d3 into main Nov 21, 2024
2 checks passed
@ShadowApex ShadowApex deleted the shadowapex/sleep-handler branch November 21, 2024 05:12
Copy link

🎉 This PR is included in version 0.38.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sleep broken when SteamDeck controller is selected
2 participants