Remote desktop, video playback issues - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: Remote desktop, video playback issues (/showthread.php?tid=12352) Pages:
1
2
|
Remote desktop, video playback issues - Zebulon Walton - 11-29-2020 I have the 11/29 nightly build of Mobian running on my Manjaro Pinephone, booted from a micro-SD card. Overall it's quite stable and surprisingly the phone's voice and SMS functions basically "just worked" with a Tracfone SIM for the AT&T network. I have ssh server running on it which is great for working from the command line, but it would be nice to also be able to have remote desktop working. On my Debian desktop and laptop systems I normally run x11vnc for this, but since Mobian is using Wayland I assume something else is needed. What's the best choice? Also I'm noticing that video playback of mp4 files is very choppy. HD videos (1080p) just show a few frames per second. I downconverted some to 480p and those work better but are still far from smooth. To get smooth playback I need to go down to 240p - VHS quality. (Actually on the small Pinephone screen it doesn't look bad!) This happens both with the default video player and VLC. Are there any tweaks that can improve this, or is it just a matter of waiting for further development? (On a related topic, where are default programs like default video player set? I'd like to make VLC the default unless there's a reason not to.) RE: Remote desktop, video playback issues - ayourk - 05-05-2021 (11-29-2020, 08:03 PM)Zebulon Walton Wrote: I have ssh server running on it which is great for working from the command line, but it would be nice to also be able to have remote desktop working. On my Debian desktop and laptop systems I normally run x11vnc for this, but since Mobian is using Wayland I assume something else is needed. What's the best choice? From what I understand, there is a way to use x11vnc with -rawfb, but I haven't found out what the magic is just yet. RE: Remote desktop, video playback issues - Gribouille - 05-06-2021 Hello, About the video stream, I use a VDR server with a USB DVB-TNT dongle. Too many frames are missing, there is a big delay between the video and the sound. I use 'mpv'. With some records get on some playback site, the sound and video are good. With 'mpv', I use 'mpv --opengl-es=yes'. For 'mpv' :
RE: Remote desktop, video playback issues - Zebulon Walton - 05-06-2021 ayourk Wrote:From what I understand, there is a way to use x11vnc with -rawfb, but I haven't found out what the magic is just yet. Having remote desktop working would make a lot of things easier with the Pinephone. I've managed to get X forwarding working with some applications but performance is terrible. (The X wire protocol dates to the late 1980s and it's a pig. Emulating it in Wayland probably makes matters even worse.) This package gnome-remote-desktop in Debian buster looks like it might do the trick. It's supposed to support both X and Wayland. Mobian though looks like it's based on Debian bullseye (the upcoming Debian 11) which is still under development and I have no idea of the status of this package in that version. Haven't had time to experiment with it. https://packages.debian.org/buster/gnome/gnome-remote-desktop https://shebangthedolphins.net/gnulinux_vnc_remotedesktop.html RE: Remote desktop, video playback issues - ayourk - 05-06-2021 (05-06-2021, 02:13 PM)Zebulon Walton Wrote:ayourk Wrote:From what I understand, there is a way to use x11vnc with -rawfb, but I haven't found out what the magic is just yet. I learned that there are 2 x11vnc type projects for Wayland: wayvnc and waypipe RE: Remote desktop, video playback issues - MtnSk8 - 05-06-2021 Before I got my PinePhone I thought I could just run Barrier on both devices and it would be awesome, but no go. I could not get the devices to find each other. So I tried KDE Connect and It lacked the all important clipboard sharing functionality . I decided that being able to share the clipboard would make the lack of desktop-sharing much more tolerable. Sidenote: I connect to my phone (ssh) on one of 3 networks USB, Wifi or WifiHotspot so I have a script, SetHostRoute.sh, to find which network the phone is connected. Here is my clipboard sharing script: PasteToMobian.sh Code: #!/bin/bash This script finds my phone on one of the 3 networks and writes the hostname to a temp file (It runs at startup or I re-run it if I switch networks): SetRouteToMobian.sh Code: #!/bin/bash I'm also curious to see if clipboard sharing on the pinephone exists in some other form. If anyone is interested I'll post the script for doing the reverse and copying from Pinephone's clipboard. Cheers! RE: Remote desktop, video playback issues - Zebulon Walton - 05-06-2021 ayourk Wrote:I learned that there are 2 x11vnc type projects for Wayland: wayvnc and waypipe Wayland really doesn't seem quite ready for prime time, I'm still using X on my desktop and laptop systems. I know how old and crufty X is and how ugly it is internally (I did development of X apps back in the early 1990s) but most Unix/Linux graphical programs are designed for it. I'm also used to the network transparency of X and Wayland's lack of that feature to me sticks out like a sore thumb. Anyway, I looked into wayvnc and it is not currently available as a Debian package. However I found instructions to build from source for Debian bullseye, maybe I'll give that a try: https://github.com/any1/wayvnc/issues/81 RE: Remote desktop, video playback issues - moodroid - 05-07-2021 I'd like to get this working too. I suppose one option is to install Gnome Shell/GDM (https://wiki.mobian-project.org/doku.php?id=desktopenvironments#desktop-environments) and then just switch to a X11 session when you want to VNC? But I'm sure there must be a way to get it working under Wayland. RE: Remote desktop, video playback issues - ayourk - 05-07-2021 (05-06-2021, 10:40 PM)Zebulon Walton Wrote:ayourk Wrote:I learned that there are 2 x11vnc type projects for Wayland: wayvnc and waypipe Yeah, when I get some time, I'm going to look into developing the necessary Debian packages for this. RE: Remote desktop, video playback issues - Zebulon Walton - 05-07-2021 I just booted up on a mobian SD card for test purposes and built wayvnc from source using the script from the link I posted above. It works! A few notes... I built the program in /usr/src/wayvnc. The resulting executable is /usr/src/wayvnc/build/wayvnc. After copying this to /usr/local/bin I found that running "wayvnc" would result in missing libraries. It turns out there are libraries under build that are needed. So to do the complete job of copying wayvnc to /usr/local/bin do the following: Code: sudo -i EDIT: I realize now I probably should have copied the libraries to /usr/local/lib instead of /usr/lib, the former being more appropriate for software installed outside the apt system. Not a big deal since it's just a handful of files but maybe I'll move them next time I boot up the Pinephone. After doing this, everything needed to run wayvnc is in your search path. I also found that simply running wayvnc with no options didn't seem to work and found that by default it only listens to 127.0.0.1. The man page for wayvnc can be found here: https://www.mankier.com/1/wayvnc There are a number of options but I just used the following so it would listen to any address on port 5900: Code: wayvnc 0.0.0.0 5900 There are also options to add authentication and encryption and to use a config file but I haven't had time to try those out. (Might not bother since I'd only be using this on my home LAN.) More informaton here: https://github.com/any1/wayvnc So now I need to just set up an easy way to launch it from the Pinephone screen. For reference, here is the build script, it does everything and took around 10 or 15 minutes to run (I didn't time it exactly). Code: #!/bin/bash |