[Moto G7 Play Questions & Answers] pinchorla:
Hi.

I have moto g7 play root with the instructions of the xda forum.

My tv is a lg smart tv with miracast option. Miracast work fine in the tv with my old moto g 1 lte, but no with mi moto g7 play.

In moto g7 play I had edit build.prop adding the line:

persist.debug.wfd.enable=1

I try to connect the smartphone with miracast to mirroring the screen on tv.

The connection is directly between smartphone and tv. Smartphone and tv are not connected to my local wifi.

Moto g7 play starts the connection, the tv recognice moto g7 play, but finally is disconnected from the tv. The mirroring never succeced. Sometimes the smartphone reboot itself.

At the bottom I attached log of the connection.

Any ideas about what could be the problem, and the possible solution?

Thanks in advance.

Here is the log of the moto g7 play. We can see the error connection:

***********************************************************************

12-07 00:56:30.155 W/wificond(21649): No handler for scan result notification from interface with index: 33

12-07 00:56:30.414 I/WifiDisplayController(21746): Connecting to Wifi display: [TV][LG]32LF5800-ZA

12-07 00:56:30.435 I/WifiDisplayController(21746): Initiated connection to Wifi display: [TV][LG]32LF5800-ZA

12-07 00:56:34.422 W/wificond(21649): No handler for scan result notification from interface with index: 33

12-07 00:56:34.819 W/wificond(21649): No handler for scan result notification from interface with index: 33

12-07 00:56:34.868 W/ViewRootImpl[[TV][LG]32LF5800-ZA](24065): Dropping event due to root view being removed: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=462.3329, y[0]=440.30798, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=2618298, downTime=2618291, deviceId=4, source=0x1002 }

12-07 00:56:35.218 W/wificond(21649): No handler for scan result notification from interface with index: 33

12-07 00:56:38.725 I/WifiDisplayController(21746): Connected to Wifi display: [TV][LG]32LF5800-ZA

12-07 00:56:38.725 I/WifiDisplayController(21746): Stopping Wifi display scan.

12-07 00:56:38.737 I/WifiDisplayController(21746): Listening for RTSP connection on 192.168.16.20:7236 from Wifi display: [TV][LG]32LF5800-ZA

--------- beginning of crash

12-07 00:56:38.742 E/AndroidRuntime(21746): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.display

12-07 00:56:38.742 E/AndroidRuntime(21746): java.lang.IllegalStateException: Could not start listening for remote display connection on "192.168.16.20:7236"

12-07 00:56:38.742 E/AndroidRuntime(21746):	at android.media.RemoteDisplay.startListening(RemoteDisplay.java:121)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at android.media.RemoteDisplay.listen(RemoteDisplay.java:84)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at com.android.server.display.WifiDisplayController.updateConnection(WifiDisplayController.java:738)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at com.android.server.display.WifiDisplayController.access$1200(WifiDisplayController.java:70)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at com.android.server.display.WifiDisplayController$15.onGroupInfoAvailable(WifiDisplayController.java:867)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler.handleMessage(WifiP2pManager.java:878)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at android.os.Handler.dispatchMessage(Handler.java:106)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at android.os.Looper.loop(Looper.java:193)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at android.os.HandlerThread.run(HandlerThread.java:65)

12-07 00:56:38.742 E/AndroidRuntime(21746):	at com.android.server.ServiceThread.run(ServiceThread.java:44)

12-07 00:56:39.338 I/wificond(1657): wificond is starting up...

******************************************************************