Okay, let's break down how you can use your Android 14 phone (Samsung S22 with Shizuku, unrooted) as a PC monitor using only FOSS (Free and Open Source Software).
It's important to understand that Android phones don't have dedicated video input ports like a standard monitor. Therefore, you can't just plug in an HDMI cable. Instead, the solutions involve software that captures your PC screen and streams it over the network (Wi-Fi) or USB to an app on your phone that displays the stream.
Here are a few FOSS options you can explore:
1. Weylus
- How it works: Weylus is designed primarily to turn your tablet or phone into a graphics tablet and screen mirror for your Linux or Windows PC. It captures either your entire screen or a specific window on your PC and streams it to a web browser or a dedicated client on your phone. It supports input (touch/stylus) back to the PC as well, but you can use it just for display.
- FOSS: Yes, licensed under MIT.
- Components:
- PC Server: You run the Weylus application on your PC (Windows or Linux builds available).
- Android Client: You access the stream by opening a specific URL (provided by the Weylus server) in a web browser on your phone. There isn't a dedicated FOSS app client typically needed, the browser works. Any FOSS browser like Fennec F-Droid (Firefox fork) or Mull would work.
- Connection: Can work over Wi-Fi (connect browser to PC's IP address and port) or USB (requires
adb forward to forward the port over the USB connection).
- Setup:
- Download and run the Weylus executable on your PC from its GitHub releases page.
- Configure Weylus on the PC (e.g., select screen/window to capture).
- It will provide a URL (like
http://<your-pc-ip>:1701).
- Open that URL in a FOSS browser on your Android phone connected to the same Wi-Fi network.
- For USB: Connect your phone via USB, enable USB debugging, and run
adb forward tcp:1701 tcp:1701 on your PC. Then access http://localhost:1701 in the phone's browser.
- Shizuku Relevance: Shizuku doesn't directly enable Weylus, but it can make managing ADB permissions easier if you were to use the USB method and needed to grant permissions without a constant PC connection (though initial
adb forward still needs the PC).
2. Sunshine + Moonlight (Primarily for Game Streaming, but works for Desktop)
- How it works: Sunshine is a FOSS implementation of Nvidia's GameStream protocol, acting as the host/server on your PC. Moonlight is a FOSS client that can connect to GameStream/Sunshine hosts. While designed for low-latency game streaming, you can configure Sunshine to stream your entire desktop.
- FOSS: Yes (Sunshine: GPLv3, Moonlight: GPLv3).
- Components:
- PC Server: Sunshine (available for Windows, Linux, macOS).
- Android Client: Moonlight (available on Google Play, F-Droid, or GitHub). Ensure you get it from F-Droid or GitHub releases for a purely FOSS path.
- Connection: Primarily Wi-Fi, but can work over the internet (requires configuration). USB tethering might also work.
- Setup:
- Install and configure Sunshine on your PC via its web UI (usually
https://localhost:47990). You may need to add your Desktop as an "application" to stream.
- Install Moonlight on your Android phone from F-Droid.
- Open Moonlight; it should automatically detect the Sunshine host on your network. If not, add your PC's IP address manually.
- Pair Moonlight with Sunshine using the PIN provided.
- Select your PC in Moonlight and choose the "Desktop" option (or whatever you named it) to start streaming.
- Shizuku Relevance: No direct relevance for this method.
3. VNC (Virtual Network Computing)
- How it works: A classic remote desktop protocol. You run a VNC server on your PC, which makes the desktop accessible over the network. A VNC client on your phone connects and displays it.
- FOSS: Yes, many implementations are FOSS.
- Components:
- PC Server (FOSS options):
- TigerVNC (Windows, Linux, macOS)
- TightVNC (Windows, Linux - though development might be slower)
- LibVNCServer (used by other projects, like Weylus's VNC mode)
- Android Client (FOSS options from F-Droid):
- AVNC (Recommended, modern FOSS client)
- bVNC Free (Another popular FOSS option)
- Connection: Wi-Fi typically. USB might be possible with
adb forward similar to Weylus.
- Setup:
- Install and configure a FOSS VNC server on your PC. Set a password. Ensure it's configured to share the desired display.
- Install a FOSS VNC client like AVNC from F-Droid on your phone.
- In the VNC client app, enter your PC's IP address and the port the VNC server is using (usually 5900 or 5901).
- Enter the password you set on the server.
- Connect.
- Shizuku Relevance: No direct relevance.
- Note: VNC can sometimes have higher latency than solutions like Sunshine/Moonlight or Weylus's WebRTC mode, depending on the server/client/network. Setting it up to extend your desktop rather than just mirror it might require creating a virtual display on the PC, which can be complex depending on your OS.
Summary and Recommendation:
- For best potential performance (lower latency), especially if you might want smooth video: Try Sunshine + Moonlight. It's designed for streaming video/games.
- For a potentially simpler setup focusing on screen mirroring and possible stylus input: Try Weylus. Using the browser as a client simplifies the Android side.
- Classic, reliable method: VNC is always an option, but check latency and ease of setup for your needs. AVNC is a good FOSS client choice.
Remember that using your phone this way will drain its battery faster and the display quality/latency won't match a dedicated hardware monitor. Shizuku is useful for granting permissions on your phone but isn't a core part of making these streaming solutions work. Always download FOSS software from trusted sources like F-Droid or the official GitHub releases pages.