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

Android Screen Record Stops after hours (service killed by system) #6192

Closed
vavolkova opened this issue Oct 25, 2023 · 7 comments
Closed

Android Screen Record Stops after hours (service killed by system) #6192

vavolkova opened this issue Oct 25, 2023 · 7 comments
Labels
question Further information is requested

Comments

@vavolkova
Copy link

vavolkova commented Oct 25, 2023

Hi guys,

Not sure if that has been discussed before, but I didn't find anything under this topic. I was looking to set unattended access on few Android devices (Android 11). I have set Pro account with Linux server and it all worked properly until I noticed that after 2-3 hours the service stops (Screen Record automatically turns off) and I need to manually turn it on and continue using it.

Is there a solution for that?

@rustdesk rustdesk transferred this issue from rustdesk/rustdesk-server-pro Oct 27, 2023
@rustdesk rustdesk changed the title Android Screen Record Stops Android Screen Record Stops after hours Oct 27, 2023
@rustdesk rustdesk added the help wanted Extra attention is needed label Oct 27, 2023
@rustdesk rustdesk changed the title Android Screen Record Stops after hours Android Screen Record Stops after hours (service killed by system) Oct 27, 2023
@TheGrave
Copy link

I have the same issue on Xperia 5 and Xperia 1. It's utterly ridiculous - I need to keep TeamViewer Host installed so that I can re-enable the service. This also forces me to have no screen lock on these phones as TeamViewer Host cannot get to an unlock prompt with them.

@scshiv29-dev
Copy link

scshiv29-dev commented Nov 23, 2023

@rustdesk for me the 'allow background activity ' is the setting that basically made sure the app was working fine even for long hours but the battery consumption is obviously higher.
I don't have rustdesk installed anymore so sending a generic screenshot.

Screenshot_2023-11-23-20-29-25-79_0ba066473b79d6e213a1f6f52505e2ee.jpg

@cikeZ00
Copy link

cikeZ00 commented Nov 23, 2023

Stock android only has these options. They don't guarantee it won't get killed tho.
Screenshot_20231123-161239_Settings.png

@TheGrave
Copy link

@rustdesk Yea sure, I figured this was getting stopped by the android OS only. It would be better if we also ask users to add the app to ignore list of battery optimization.

This won't be sufficient. I have battery optimization for the app turned off and it still dies. There are vendor-specific battery optimizations (usually called Adaptive Battery or something similar) which surely can contribute to the problem.

@scshiv29-dev
Copy link

@TheGrave okay , for the devices I tested it did not stopped for me so I thought this was android setting specific.

@vavolkova
Copy link
Author

vavolkova commented Dec 9, 2023

Hi everyone,

I just wanted to drop a quick update to let you know that the issue I was facing with Rustdesk has been successfully resolved on my Samsung A10. Big thanks to all of you for the valuable advice and suggestions!

For those who might be experiencing a similar problem, here's what worked for me:

1. Allow Background Activity:

Make sure to allow Rustdesk to run in the background. Sometimes, restrictive background activity settings can interfere with the app's functionality.

2. Remove Rustdesk from Battery Optimization:

Go to your phone's settings and navigate to the list of apps with battery optimization. Remove Rustdesk from this list to ensure it can operate without any restrictions.

By following these steps, I was able to get Rustdesk up and running smoothly on my Samsung A10. I hope this solution proves helpful to others facing the same issue.

Once again, thank you all for your support and suggestions!

@rustdesk rustdesk added question Further information is requested Fund labels Jan 19, 2024
@rustdesk
Copy link
Owner

rustdesk commented Jun 5, 2024

Implement an Android floating window to prevent the system from killing the service, ready in nightly build.
https://x.com/rustdesk/status/1798387103862231205

@rustdesk rustdesk closed this as completed Jun 6, 2024
@rustdesk rustdesk removed help wanted Extra attention is needed 💎 Bounty Fund labels Jun 6, 2024
@rustdesk rustdesk pinned this issue Jun 6, 2024
Repository owner deleted a comment from algora-pbc bot Jun 6, 2024
Repository owner deleted a comment from 21pages Jun 6, 2024
Repository owner deleted a comment from vavolkova Jun 6, 2024
Repository owner deleted a comment from scshiv29-dev Jun 6, 2024
Repository owner deleted a comment from nagasai-iitr Jun 6, 2024
Repository owner deleted a comment from algora-pbc bot Jun 6, 2024
Repository owner deleted a comment from vavolkova Jun 6, 2024
Repository owner deleted a comment from scshiv29-dev Jun 6, 2024
Repository owner deleted a comment from scshiv29-dev Jun 6, 2024
Repository owner deleted a comment from 21pages Jun 6, 2024
Repository owner deleted a comment from vavolkova Jun 6, 2024
Repository owner deleted a comment from 21pages Jun 6, 2024
Repository owner deleted a comment from vavolkova Jun 6, 2024
Repository owner deleted a comment from 21pages Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants