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

Very high background battery usage while doing nothing #84

Open
Marocco2 opened this issue Jan 11, 2025 · 2 comments
Open

Very high background battery usage while doing nothing #84

Marocco2 opened this issue Jan 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Marocco2
Copy link

Marocco2 commented Jan 11, 2025

Describe the bug

Default settings let Artemis do work on background.
While this wasn't a big deal before, I've noticed a short battery lifespan without doing anything relevant. Watching battery stats I've discovered that Artemis (according to Android OS) is likely to keep my device awake for some reason.
I didn't use Artemis on most of the hours Android have specified, so I'm quite sure a bug is present.
I'll attach logs below

Steps to reproduce

Watch battery stats

Affected games

No response

Other Moonlight clients

None

Moonlight adjusted settings

None

Moonlight adjusted settings (please complete the following information)

No response

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

GrapheneOS (Android 15)

Device model

Google Pixel 8 Pro

Server PC OS version

Windows 11 23H2

Server PC GeForce Experience version

No response

Server PC Nvidia GPU driver version

No response

Server PC antivirus and firewall software

No response

Screenshots

Screenshot_20250111-111346

Relevant log output

type: logcat
osVersion: google/husky/husky:15/AP4A.250105.002/2025010700:user/release-keys
flags: dev options enabled
package: com.limelight.noir:41, targetSdk 34
buffers: main,system,crash,events,kernel
level: verbose

--------- beginning of events
01-11 09:07:18.640 11237 11237 I auditd  : avc=type=1400 audit(0.0:219660): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.656 11237 11237 I auditd  : avc=type=1400 audit(0.0:219661): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.656 11237 11237 I auditd  : avc=type=1400 audit(0.0:219662): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.656 11237 11237 I auditd  : avc=type=1400 audit(0.0:219663): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.656 11237 11237 I auditd  : avc=type=1400 audit(0.0:219664): avc:  denied  { read } for  comm=".limelight.noir" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.664 11237 11237 I auditd  : avc=type=1400 audit(0.0:219665): avc:  denied  { read } for  comm=".limelight.noir" name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=362 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.664 11237 11237 I auditd  : avc=type=1400 audit(0.0:219666): avc:  denied  { read } for  comm=".limelight.noir" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.668 11237 11237 I auditd  : avc=type=1400 audit(0.0:219667): avc:  denied  { getattr } for  comm=".limelight.noir" path="/apex/apex-info-list.xml" dev="tmpfs" ino=91 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:apex_info_file:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.780 11237 11237 I auditd  : avc=type=1400 audit(0.0:219668): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=183 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.780 11237 11237 I auditd  : avc=type=1400 audit(0.0:219669): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=183 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.780 11237 11237 I auditd  : avc=type=1400 audit(0.0:219670): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=183 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.780 11237 11237 I auditd  : avc=type=1400 audit(0.0:219671): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=183 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.780 11237 11237 I auditd  : avc=type=1400 audit(0.0:219672): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=183 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.784 11237 11237 I auditd  : avc=type=1400 audit(0.0:219673): avc:  denied  { read } for  comm="main" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=455 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.836 11237 11237 I auditd  : avc=type=1400 audit(0.0:219674): avc:  denied  { read } for  comm="binder:11237_2" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=386 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 app=com.limelight.noir
01-11 09:07:18.836 11237 11237 I auditd  : avc=type=1400 audit(0.0:219675): avc:  denied  { read } for  comm="binder:11237_2" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=386 scontext=u:r:untrusted_app:s0:c74,c257,c512,c768 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 app=com.limelight.noir

Additional context

No response

@Marocco2 Marocco2 added the bug Something isn't working label Jan 11, 2025
@ClassicOldSong
Copy link
Owner

How to let Artemis do things in the background?

By default the stream quits when you put the app to background. The only way to keep stream alive is enable PIP, and that for sure will use more CPU power.

@Marocco2
Copy link
Author

Marocco2 commented Jan 11, 2025

I'll try to get better logs if I can so I can determine if it's a fluke or not.
We agree that Artemis shouldn't do anything while my phone is sleeping and my PC is off (PiP permission was granted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants