-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
fix(beacon): skip point-to-point interfaces on Android #10504
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
Conversation
Signed-off-by: bt90 <btom1990@googlemail.com>
Signed-off-by: bt90 <btom1990@googlemail.com>
authored by bt90 syncthing/syncthing#10504 intended to solve the huge battery drain while syncthing local discovery is turned on
|
I run a build of Synching-Fork with this change on my Pixel 8 with Android 16 since last night and I can confirm that this solves the battery draining issue. |
|
this seems to help the users of affected phones so would love to see this rc.2 =) |
calmh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable
Signed-off-by: bt90 <btom1990@googlemail.com>
|
Let's wrap this up in time for Christmas 🎅 🎁 |
This prevents the cellular interfaces from being used by the local discovery feature. Upstream PR: syncthing/syncthing#10504 Upstream commit: b7b494b7cfaba642cded88073999bdefee472332 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
Purpose
As proposed in https://forum.syncthing.net/t/syncthing-fork-v2-uses-far-too-much-battery-over-v1/25384/124?u=bt90, the cellular interfaces on Android devices should not be woken up by local discovery in order to preserve battery life. These interfaces are marked as point-to-point on Android, which sets them apart from regular local interfaces such as Wi-Fi. Another typical use case for P2P interfaces is a VPN, but these TUN interfaces usually don't support broadcast or multicast, so we're not breaking any existing functionality.
I also added an additional
FlagRunningcheck for the multicast listener. The group join can only be done by sending IGMP packets and I doubt this is going to work on an interface that's not running 😅Testing
researchxxl/syncthing-android#75 (comment)
https://forum.syncthing.net/t/syncthing-fork-v2-uses-far-too-much-battery-over-v1/25384/128?u=bt90
Authorship
Your name and email will be added automatically to the AUTHORS file
based on the commit metadata.