Cast - Miracast or Wifi Display Not Working - Mirroring Workaround
I can confirm that Cast (Miracast or Wifi display) is not working on my S5 G900M LineageOS 16.0 Pie build 2019-02-09 + Open GApps ARM 9.0 Pico + Magisk v18.0. No custom kernel or any other system modifications.
Added to
New S5 LineageOS 16.0 haggertk 2019-02-09 Build! - Bug Report.
I don't think that it's a bug. It's simply not enabled yet as this unofficial build
is a work in progress on it's way to becoming official.
@haggertk could confirm this. Meanwhile check the LineageOS Gerrit links below.
Did not test Chromecast as I don't have a Chromecast enabled device to project to.
I can mirror & control the S5 using scrcpy as described in the
scrcpy chapter below.
LineageOS Cast Test Setup:
On my S3 i9300 running official LineageOS 14.1 > Settings > Display > Cast > 3-dots > Enable wireless display. The S3's screen was immediatly mirrored on the laptop after enabling Cast.
It failed with the S5 G900M running haggertk's klte Unofficial LineageOS 16.0 Pie build 2019-02-09. Settings > Connected devices > Connection preferences > Cast > 3-dots > Enable wireless display. In the Cast panel the S5 is seeing the laptop but fails to project to the PC. The PC is not finding the S5 Wifi display as illustrated in the second screen capture.
I captured a logcat on both Galaxy devices using the fast & easy
SysLog after a fresh reboot. Some selected lines:
Sorry for the clutter XDA app users as the Hide function does not work in the app.
These pages in the LineageOS Gerrit are interesting:
So it seems that Google removed support for Miracast in Pie, probably to push their data collecting Chromecast.
Check
Requirements for Chromecast devices and
Requirements for Google Home and Chromecast devices. And Google Home requieres in turn the data collecting Google Assistant while Miracast requieres none of those.
But thankfully some LineageOS devs are working on Miracast - Wifi display. And maybe an XDA dev will come up with a hack to enable it in Android 9.0 Pie.
LineageOS Gerrit searches:
S5 Screen Mirroring Using scrcpy via USB
I can successfully mirror & control the S5 via USB or wirelessly in my laptop using
scrpy - Display and control your Android device > README.md.
It is very easy to use:
- S5 > Settings > System > Advanced > Developer options > Debugging > Android debugging & Debugging notify enabled.
- The S5's screen must be turned on but > Display > Brightness level can be turned down all the way to 0% & scrcpy still works (30% for my taste).
- Settings > Display > Advanced > Sleep > 30 minutes for me until I'm finished with the scrcpy session.
- On Windows 10 64-bit I downloaded scrcpy-win64-v1.6.zip, unzipped it, copied the scrcpy-win64 folder to the root of C drive.
I did not try the Linux & Mac OS versions.
- Connected the S5 to computer via USB cable. Grant adb debugging permission on the phone if asked.
- PC > File Explorer > in the navigation bar of C:\scrcpy-win64 typed CMD & hit Enter to open the Command Prompt & then typed scrcpy & hit Enter: done!
I can then see the S5 display on my laptop & control it with a mouse & the keyboard shortcuts described in > scrcpy - Display and control your Android device > README.md >
Shortcuts without touching the S5's buttons.
I attached a screenshot
made on the laptop using Alt + Print Screen & pasting in Paint.
***
S5 Screen Mirroring Wirelessly Using scrcpy
- Connect the S5 to the same Wi-Fi network as your computer.
- S5 > Settings > System > Advanced > Developer options > Debugging: Android debugging, Debugging notify & ADB over network enabled (read the warning about enabling this only on trusted networks).
- ADB over network now shows your S5's IP. It's 192.168.1.2:5555 in my case.
- A status bar notification appears: ADB over network enabled.
- Type CMD in File Explorer's navigation bar of C:\scrcpy-win64 & hit Enter to open the Command Prompt.
- Type & hit Enter after each line:
adb connect 192.168.1.2:5555 (change for your S5's IP on that network). Grant adb debugging permission on the phone if asked.
scrcpy
Done! I can see my S5's screen on the laptop & control it with a mouse and the keyboard shortcuts described in the README.md's Shortcuts or via the S5's screen as normal. I attached a screenshot made on the laptop.
When you are finished > tap on the ADB over network enabled notification which will open Developer options & disable ADB over network. Or reboot which will disable it.
I always keep Android debugging & Debugging notify enabled to fix some problems, reboot the S5 if the screen or buttons are not responsive (adb reboot), capture logcat, etc.
***
Note if you get this error when switching from a scrcpy USB session to wireless or vice versa or when connecting an other device:
adb: error: failed to get feature set: more than one device/emulator
ERROR: "adb push" returned with value 1
Press any key to continue...
Just type this & hit Enter after each line:
adb disconnect
scrcpy
Or read this scrcpy Github thread:
Add multiple devices support to mirror
Check this scrcpy
@®om dev's blog about how it works technically:
Introducing scrcpy. On Reddit with some user comments & questions:
Introducing scrcpy, an app to display and control Android devices
Hope this is helpful to somebody. Feedback is always appreciated.
***
does screen mirroring work? to me no
It doesn't work for me either. I think it's some sort of unknown bug.
...Is screen mirroring or streaming now working?
If by screen mirroring you mean casting your phone screen to a TV wirelessly, this has worked for me for the last several builds. Using 900t with latest baseband. Btw, also using open gapps nano
@djbrzos - Could you give some details please?
Are you using Chromecast? Which app & settings on your S5? Using a dongle on the TV? TV settings?
Yes this is what I mean and some other users are having the same problem.
I'm using KLTE and haggertk's 20181210...
I think it is somehow, a model specific problem. I am experiencing this issues with my phone. I'm on kltedv 20190109 (G900P) builds by the way.
almost all android 9 had this issue.. cant cast nor screen mirror
***
100% Battery Rebooting @ 92%
The battery seems to have a BUG. After the battery is fully charged, it will restart. The power is only 92%, and the same is true for another battery!
yes there something not ok with battery calibration
i saw that when i unplug my phone from charger
it have 90 % after few minut it show me 100% same problem happened with oreo too
This is a known issue (or a feature?) & caused by a Samsung charging driver maximum battery voltage limitation. See
New S5 LineageOS 16.0 haggertk 2019-01-09 Build! - Report & Bugs > 9. Battery charging...
***