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

Screen mirroring is not working for Onyx boox Max 3 #1789

Closed
jelofer opened this issue Sep 24, 2020 · 3 comments
Closed

Screen mirroring is not working for Onyx boox Max 3 #1789

jelofer opened this issue Sep 24, 2020 · 3 comments

Comments

@jelofer
Copy link

jelofer commented Sep 24, 2020

  • [x ] I have read the FAQ.
  • [x ] I have searched in existing issues.

I have actually seen issues #921 and #1293, but I could not find a solution for my problem on them.

Environment:

  • OS: Windows 10
  • scrcpy version: v1.16
  • installation method: Windows release (prebuilt archive).
  • device model: Onyx Boox Max 3
  • Android version: 9

The bug:

When I try to mirror my Onyx Boox Max 3 (E-ink tablet) screen to the computer nothing comes up. The console does not show any clear error, but the tablet screen is not mirrored into the computer's.

The command window shows:

c:\scrcpy\v1.16>scrcpy
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
c:\scrcpy\v1.16\scrcpy-server: 1 file ...pped. 0.8 MB/s (33622 bytes in 0.042s)
[server] INFO: Device: ONYX Max3 (Android 9)
INFO: Renderer: direct3d
INFO: Initial texture: 1648x2200

The adb logcat, that I've started just a few moments before calling scrcpy, provides with a lot of information that I do not understand. I attach it in here:

c:\scrcpy\v1.16>adb logcat
--------- beginning of main
09-24 20:18:00.004  1212  1212 D KeyguardUpdateMonitor: received broadcast android.intent.action.TIME_TICK
09-24 20:18:00.005  1212  1212 D KeyguardUpdateMonitor: handleTimeUpdate
09-24 20:18:00.007   559   559 E SurfaceFlinger: refresh out of screen region: point (2200, 0) screen (2200, 1650)
09-24 20:18:00.047   535   535 I SDM     : update_to_display[0/1] -- marker[143] waveform_mode = 255, update_mode = 0, Rect[0 0 2200 1650], flags = 0
09-24 20:18:00.079   535   535 I SDM     : update_to_display[0/1] -- marker[144] waveform_mode = 255, update_mode = 0, Rect[2126 0 74 1650], flags = 0
09-24 20:18:15.411  3711  3711 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-24 20:18:15.417  3711  3711 I AndroidRuntime: use persist.sys.locale: en-GB
09-24 20:18:15.574  3711  3711 W main    : type=1400 audit(0.0:50): avc: denied { read } for name="u:object_r:vendor_mpctl_prop:s0" dev="tmpfs" ino=12956 scontext=u:r:shell:s0 tcontext=u:object_r:vendor_mpctl_prop:s0 tclass=file permissive=0
09-24 20:18:15.584  3711  3711 E libc    : Access denied finding property "ro.vendor.at_library"
09-24 20:18:15.597  3711  3711 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
09-24 20:18:15.598  3711  3711 I scrcpy  : Device: ONYX Max3 (Android 9)
09-24 20:18:15.619  3711  3711 I app_process: Thread[1,tid=3711,Native,Thread*=0x7646614c00,peer=0x12c01ed8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
09-24 20:18:15.620  3711  3711 D MtpDeviceJNI: register_android_mtp_MtpDevice
09-24 20:18:15.620  3711  3711 I app_process: Thread[1,tid=3711,Native,Thread*=0x7646614c00,peer=0x12c01ed8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
09-24 20:18:15.620  3711  3711 I app_process: Thread[1,tid=3711,Native,Thread*=0x7646614c00,peer=0x12c01ed8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
09-24 20:18:15.626  3711  3725 I OMXClient: IOmx service obtained
09-24 20:18:15.627   671  3246 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in [email protected] process
09-24 20:18:15.632   546   571 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
09-24 20:18:15.633   671  3246 I OMX-VENC: Video encode perflock acquired,handle=10
09-24 20:18:15.740   671  3246 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
09-24 20:18:15.746   559  1026 D PermissionCache: checking android.permission.ACCESS_SURFACE_FLINGER for uid=2000 => granted (569 us)
09-24 20:18:15.748   671  3246 E OMXNodeInstance: setParameter(0xe5d26104:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
09-24 20:18:15.748   671  3246 W OMXNodeInstance: [0xe5d26104:qcom.encoder.avc] component does not support metadata mode; using fallback
09-24 20:18:15.748  3711  3725 I ExtendedACodec: setupVideoEncoder()
09-24 20:18:15.749  3711  3725 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
09-24 20:18:15.749  3711  3725 W OMXUtils: do not know color format 0x7f000789 = 2130708361
09-24 20:18:15.769  3711  3725 I ACodec  : setupAVCEncoderParameters with [profile: High] [level: Level51]
09-24 20:18:15.774  3711  3725 I ACodec  : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
09-24 20:18:15.774  3711  3725 I ACodec  : setupVideoEncoder succeeded
09-24 20:18:15.774  3711  3725 I ExtendedACodec: [OMX.qcom.video.encoder.avc] configure, AMessage : AMessage(what = 'conf', target = 1) = {
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t color-format = 2130708361
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t i-frame-interval = 10
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   string mime = "video/avc"
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t width = 1648
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t bitrate = 8000000
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t frame-rate = 60
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int64_t repeat-previous-frame-after = 100000
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t height = 2200
09-24 20:18:15.774  3711  3725 I ExtendedACodec:   int32_t encoder = 1
09-24 20:18:15.774  3711  3725 I ExtendedACodec: }
09-24 20:18:15.780  3711  3725 W OMXUtils: do not know color format 0x7f000789 = 2130708361
09-24 20:18:15.780   671  1413 E OMXNodeInstance: getConfig(0xe5d26104:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
09-24 20:18:15.802  3711  3725 W ExtendedACodec: Failed to get extension for extradata parameter
09-24 20:18:15.806   671  1413 E OMXNodeInstance: getConfig(0xe5d26104:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
09-24 20:18:15.809   671  1413 E OMXNodeInstance: getParameter(0xe5d26104:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
09-24 20:18:15.811   671  1413 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
09-24 20:18:15.812   671  1413 E OMXNodeInstance: getParameter(0xe5d26104:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
09-24 20:18:15.813   671  1413 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))
09-24 20:18:15.820  3734  3734 E asset   : setgid: Operation not permitted
09-24 20:18:15.840  3711  3711 I AssetManager: no overlays.list file found
09-24 20:18:15.845  3711  3711 D OpenGLRenderer: Skia GL Pipeline
09-24 20:18:15.852   559  1026 E         : HpInterface: Wrong interface type.
09-24 20:18:15.844   559   559 W Binder:559_3: type=1400 audit(0.0:51): avc: denied { call } for scontext=u:r:surfaceflinger:s0 tcontext=u:r:mediacodec:s0 tclass=binder permissive=0
09-24 20:18:15.856  3711  3719 W H2BGraphicBufferProducer: getConsumerUsage is not fully supported
09-24 20:18:15.859  3711  3719 W H2BGraphicBufferProducer: getConsumerUsage is not fully supported
09-24 20:18:15.860   559   559 E HWComposer: getHdrCapabilities failed for display -1: Invalid display
09-24 20:18:15.862   671  1413 W GraphicBufferSource: released unpopulated slots: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
09-24 20:18:15.865   559   559 E HWComposer: getSupportedPerFrameMetadata failed for display -1: Invalid display
09-24 20:18:15.870   671  3246 D vndksupport: Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
09-24 20:18:15.872   671  3246 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8953.so from current namespace instead of sphal namespace.
09-24 20:18:15.875   526   526 W AshmemAllocator: ashmem_create_region(8) returning hidl_memory(0x739c42c100, 8)
09-24 20:18:15.898   526   526 I chatty  : uid=1000(system) [email protected] identical 7 lines
09-24 20:18:15.900   526   526 W AshmemAllocator: ashmem_create_region(8) returning hidl_memory(0x739c42c100, 8)
09-24 20:18:15.906   526   526 W AshmemAllocator: ashmem_create_region(5458176) returning hidl_memory(0x739c42c100, 5458176)
09-24 20:18:15.909   526   526 W AshmemAllocator: ashmem_create_region(5458176) returning hidl_memory(0x739c42c100, 5458176)
09-24 20:18:15.909   671  3246 E media.codec: TWGraphicBufferProducer::queueBuffer - Invalid input
09-24 20:18:15.909   559   559 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22
09-24 20:18:15.910   559   559 I Adreno  : QueueBuffer: queueBuffer failed
09-24 20:18:15.910   559   559 E SurfaceFlinger: eglSwapBuffers(0x1, 0x7064f3fa80) failed with 0x0000300d
09-24 20:18:15.911   526   526 W AshmemAllocator: ashmem_create_region(5458176) returning hidl_memory(0x739c42c100, 5458176)
09-24 20:18:15.913   535   535 I SDM     : update_to_display[0/1] -- marker[145] waveform_mode = 255, update_mode = 0, Rect[0 0 2200 1650], flags = 0
09-24 20:18:15.916   526   526 W AshmemAllocator: ashmem_create_region(5458176) returning hidl_memory(0x739c42c100, 5458176)
09-24 20:18:16.016  3720  3720 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-24 20:18:16.023  3720  3720 I AndroidRuntime: use persist.sys.locale: en-GB
09-24 20:18:16.164  3720  3720 W main    : type=1400 audit(0.0:52): avc: denied { read } for name="u:object_r:vendor_mpctl_prop:s0" dev="tmpfs" ino=12956 scontext=u:r:shell:s0 tcontext=u:object_r:vendor_mpctl_prop:s0 tclass=file permissive=0
09-24 20:18:16.178  3720  3720 E libc    : Access denied finding property "ro.vendor.at_library"
09-24 20:18:16.191  3720  3720 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.CleanUp
09-24 20:18:17.552  2394  2454 E PowerManager: WakeLock tag:AttachmentService from [com.android.email] is forbidden
09-24 20:18:17.560  2394  2454 E PowerManager: WakeLock under-locked: AttachmentService
--------- beginning of system
09-24 20:18:17.577   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-24 20:18:17.578   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-24 20:18:17.579   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-24 20:18:17.579   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-24 20:18:17.584   991  1008 I ActivityManager: App 10029/com.google.android.gms on gms whitelist; not restricted in background
09-24 20:18:17.609  3171  3746 E PowerManager: WakeLock tag:IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation from [com.google.android.gms] is forbidden
09-24 20:18:17.628   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-24 20:18:17.628   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-24 20:18:17.635   991  1008 I ActivityManager: App 10029/com.google.android.gms on gms whitelist; not restricted in background
09-24 20:18:17.626  3171  3746 E PowerManager: WakeLock tag:IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation from [com.google.android.gms] is forbidden
09-24 20:18:17.647  3171  3747 E WakeLock: IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation should be held!
09-24 20:18:17.644   991  1008 I ActivityManager: App 10029/com.google.android.gms on gms whitelist; not restricted in background
09-24 20:18:17.649   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-24 20:18:17.649   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-24 20:18:17.662  3171  3753 E PowerManager: WakeLock tag:IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation from [com.google.android.gms] is forbidden
09-24 20:18:17.670  3171  3747 E WakeLock: IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation should be held!
09-24 20:18:17.676   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-24 20:18:17.676   991  1012 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-24 20:18:17.688  3171  3747 E WakeLock: IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation should be held!
09-24 20:18:17.694  3171  3747 E PowerManager: WakeLock tag:IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation from [com.google.android.gms] is forbidden
09-24 20:18:17.708  3171  3753 E PowerManager: WakeLock tag:IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation from [com.google.android.gms] is forbidden
09-24 20:18:17.713  3171  3746 E WakeLock: IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation should be held!
09-24 20:18:20.790   669   776 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
09-24 20:18:17.726  3171  3746 E WakeLock: IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation should be held!
09-24 20:18:25.399  1212  1212 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
09-24 20:18:25.407  1212  1212 D KeyguardUpdateMonitor: handleBatteryUpdate
09-24 20:18:25.444   559   559 I Adreno  : HandleWindowTransforms: Invalid rotation angle (0xe840f820)
09-24 20:18:25.450   671  3246 E media.codec: TWGraphicBufferProducer::queueBuffer - Invalid input
09-24 20:18:25.450   559   559 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22
09-24 20:18:25.451   559   559 I Adreno  : QueueBuffer: queueBuffer failed
09-24 20:18:25.451   559   559 E SurfaceFlinger: eglSwapBuffers(0x1, 0x7064f3fa80) failed with 0x0000300d
09-24 20:18:25.457   535   535 I SDM     : update_to_display[0/1] -- marker[146] waveform_mode = 255, update_mode = 0, Rect[0 0 2200 1650], flags = 0
^C

Any help will be so welcome!

@rom1v
Copy link
Collaborator

rom1v commented Sep 24, 2020

It's a duplicate of #1293. It does not work on E-ink devices…

@rom1v rom1v closed this as completed Sep 24, 2020
@christianhacker
Copy link

Ditto on the Boox Max Lumi. I noticed something interesting with guiscrcpy, however. If you launch guiscrcpy and launch the mapper config, a static (color!) capture of the screen does show up. It doesn't update, though. Considering the Max Lumi currently supports screen casting on Windows (miracast?), it's possible that the hardware at least supports this feature. Maybe worth requesting that the Boox devs update the firmware to include.

@jelofer
Copy link
Author

jelofer commented Nov 19, 2020

Thanks christianhacker!

Ditto on the Boox Max Lumi. I noticed something interesting with guiscrcpy, however. If you launch guiscrcpy and launch the mapper config, a static (color!) capture of the screen does show up. It doesn't update, though. Considering the Max Lumi currently supports screen casting on Windows (miracast?), it's possible that the hardware at least supports this feature. Maybe worth requesting that the Boox devs update the firmware to include.

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

3 participants