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

scrcpy not working after removing the display assembly #2923

Open
2 tasks done
sum1re opened this issue Jan 4, 2022 · 4 comments
Open
2 tasks done

scrcpy not working after removing the display assembly #2923

sum1re opened this issue Jan 4, 2022 · 4 comments

Comments

@sum1re
Copy link

sum1re commented Jan 4, 2022

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 10
  • scrcpy version: 1.12.1
  • installation method: Windows release
  • device model: Pixel XL
  • Android version: 10

Describe the bug
My Pixel screen is broken, but I'm not going to fix it anymore, so I want to control it by scrcpy and use it as a test phone. Scrcpy works fine before I remove the display assembly, but when I remove the display assembly and running scrcpy, the console has no errors, usually Windows10 will pop up a window, but this time nothing happens.

logcat:

01-04 17:45:50.187  1804  2364 I chatty  : uid=10098(com.google.android.apps.nexuslauncher) GoogleApiHandle expire 2 lines
01-04 17:45:51.150  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:51.152  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:51.622  2254  2492 I chatty  : uid=10100(com.google.android.as) GoogleApiHandle identical 5 lines
01-04 17:45:51.696  2254  2492 I chatty  : uid=10100(com.google.android.as) GoogleApiHandle identical 4 lines
01-04 17:45:52.152  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:52.153  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:53.154  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:53.154  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:54.155  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:54.156  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:55.157  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:55.158  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:55.215  1804  2364 I chatty  : uid=10098(com.google.android.apps.nexuslauncher) GoogleApiHandle identical 2 lines
01-04 17:45:56.160  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:56.160  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:56.632  2254  2492 I chatty  : uid=10100(com.google.android.as) GoogleApiHandle identical 5 lines
01-04 17:45:56.664  4191  4191 W app_process: type=1400 audit(0.0:2307): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=15589 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0
01-04 17:45:56.664  4191  4191 W app_process: type=1400 audit(0.0:2308): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=15589 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0
01-04 17:45:56.664  4191  4191 W app_process: type=1400 audit(0.0:2309): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=15589 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0
01-04 17:45:56.664  4191  4191 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 17:45:56.669  4191  4191 E libc    : Access denied finding property "persist.device_config.runtime_native_boot.enable_apex_image"
01-04 17:45:56.669  4191  4191 I AndroidRuntime: Using default boot image
01-04 17:45:56.669  4191  4191 E libc    : Access denied finding property "persist.device_config.runtime_native_boot.disable_lock_profiling"
01-04 17:45:56.669  4191  4191 I AndroidRuntime: Leaving lock profiling enabled
01-04 17:45:56.670  4191  4191 E libc    : Access denied finding property "persist.device_config.runtime_native_boot.enable_generational_cc"
01-04 17:45:56.702  2254  2492 I chatty  : uid=10100(com.google.android.as) GoogleApiHandle identical 3 lines
01-04 17:45:56.784  4191  4191 D ICU     : Time zone APEX file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
01-04 17:45:56.829  4191  4191 W app_process: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes
01-04 17:45:56.838  4191  4191 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
01-04 17:45:56.842  4191  4191 I scrcpy  : Device: Google Pixel XL (Android 10)
01-04 17:45:56.870  4191  4191 I app_process: Thread[1,tid=4191,Native,Thread*=0x76307a6c00,peer=0x12c023d0,"main"] recursive attempt to load library "libmedia_jni.so"
01-04 17:45:56.871  4191  4191 D MtpDeviceJNI: register_android_mtp_MtpDevice
01-04 17:45:56.871  4191  4191 I app_process: Thread[1,tid=4191,Native,Thread*=0x76307a6c00,peer=0x12c023d0,"main"] recursive attempt to load library "libmedia_jni.so"
01-04 17:45:56.871  4191  4191 I app_process: Thread[1,tid=4191,Native,Thread*=0x76307a6c00,peer=0x12c023d0,"main"] recursive attempt to load library "libmedia_jni.so"
01-04 17:45:56.882  4191  4210 I OMXClient: IOmx service obtained
01-04 17:45:56.883   862  4000 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in android.hardwar process
01-04 17:45:56.886   862  4000 I OMX-VENC: Video encode perflock acquired,handle=-1
01-04 17:45:56.900   862  4000 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
01-04 17:45:56.911   862  1738 E OMX-VENC: set_parameter: metamode is valid for input port only
01-04 17:45:56.911   862  1738 W OMXNodeInstance: [0xe6da3004:qcom.encoder.avc] component does not support metadata mode; using fallback
01-04 17:45:56.911  4191  4210 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
01-04 17:45:56.912  4191  4210 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
01-04 17:45:56.912  4191  4210 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
01-04 17:45:56.913  4191  4210 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
01-04 17:45:56.913  4191  4210 W OMXUtils: do not know color format 0x7f000789 = 2130708361
01-04 17:45:56.918   862  1738 E OMX-VENC: ERROR: Unsupported H.264 level= 0
01-04 17:45:56.927   862  4000 E OMX-VENC: ERROR: Unsupported H.264 level= 0
01-04 17:45:56.932  4191  4210 I ACodec  : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]
01-04 17:45:56.933   862  1738 I OMX-VENC: Updating Bframes from 0 to 0
01-04 17:45:56.936  4191  4210 I ACodec  : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring01-04 17:45:56.936  4191  4210 I ACodec  : setupVideoEncoder succeeded
01-04 17:45:56.940  4191  4210 W OMXUtils: do not know color format 0x7f000789 = 2130708361
01-04 17:45:56.941   862   940 E OMX-VENC: ERROR: unsupported index 1870659589
01-04 17:45:56.941   862   940 E OMXNodeInstance: getConfig(0xe6da3004:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
01-04 17:45:56.954   862  1581 E OMX-VENC: Does not handle dataspace request
01-04 17:45:56.954   862  1581 E OMXNodeInstance: getConfig(0xe6da3004:qcom.encoder.avc, ??(0x7f00005e)) ERROR: UnsupportedSetting(0x80001019)
01-04 17:45:56.957   862  1581 E OMXNodeInstance: getParameter(0xe6da3004:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
01-04 17:45:56.958   862  1581 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
01-04 17:45:56.959   862  1581 E OMXNodeInstance: getParameter(0xe6da3004:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
01-04 17:45:56.959   862  1581 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))
01-04 17:45:57.141  4207  4207 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 17:45:57.144  4207  4207 W app_process: type=1400 audit(0.0:2310): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=15589 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0
01-04 17:45:57.144  4207  4207 W app_process: type=1400 audit(0.0:2311): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=15589 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0
01-04 17:45:57.148  4207  4207 E libc    : Access denied finding property "persist.device_config.runtime_native_boot.enable_apex_image"
01-04 17:45:57.148  4207  4207 I AndroidRuntime: Using default boot image
01-04 17:45:57.148  4207  4207 E libc    : Access denied finding property "persist.device_config.runtime_native_boot.disable_lock_profiling"
01-04 17:45:57.148  4207  4207 I AndroidRuntime: Leaving lock profiling enabled
01-04 17:45:57.149  4207  4207 E libc    : Access denied finding property "persist.device_config.runtime_native_boot.enable_generational_cc"
01-04 17:45:57.161  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:57.162  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:57.274  4207  4207 D ICU     : Time zone APEX file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
01-04 17:45:57.316  4207  4207 W app_process: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes
01-04 17:45:57.325  4207  4207 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.CleanUp
01-04 17:45:58.162  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:58.163  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:45:59.164  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:45:59.165  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
01-04 17:46:00.165  3924  3925 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-04 17:46:00.166  3924  3925 E adbd    : cannot open control endpoint /dev/usb-ffs/adb/ep0: Device or resource busy
scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
C:\userprogram\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 64.4 MB/s (40067 bytes in 0.001s)
[server] INFO: Device: Google Pixel XL (Android 10)
INFO: Renderer: direct3d
INFO: Initial texture: 1280x960
@rom1v
Copy link
Collaborator

rom1v commented Jan 4, 2022

Yes, removing the hardware cause screen capture to be impacted: #1456.

Does it work better with screenrecord?

adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

@sum1re
Copy link
Author

sum1re commented Jan 4, 2022

screenrecord working fine

@rom1v
Copy link
Collaborator

rom1v commented Jan 4, 2022

Does it work with another encoder?

Otherwise, I don't know.

@sum1re
Copy link
Author

sum1re commented Jan 4, 2022

  • OMX.qcom.video.encoder.avc
  • c2.android.avc.encoder
  • OMX.google.h264.encoder
    None of the three encoders can not work.

This comments #1456 (comment), #1285 (comment) are useful, but the framerate is still low. I decide to reinstall the display assembly, although it was broken, but it made scrcpy work better.

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

No branches or pull requests

2 participants