Posts

Showing posts with the label screen casting

Screen mirroring using GNU Emacs

Image
Screen mirroring using GNU Emacs from Debian XFCE to LG UJ632T   Note: Don't forget to quit properly (or use wpa_cli p2p_cancel ). Else your computer will continue to scan for peers in the background. Config (require 'tv) (setq wfd-wpa-cli " /usr/sbin/wpa_cli ")   Code https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/tv.el https://gitlab.com/atamariya/hostap/-/blob/tools/wpaspy/wfd.py (RTSP server)   Setup We need to be able to run wpa_cli and nmcli as a normal user. Hence we will add the user and the tools to netdev group.   - Edit /usr/lib/systemd/system/wpa_supplicant.service (as root) ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant -G netdev   - Restart wpa_supplicant (as root). systemctl daemon-reload service wpa_supplicant restart    - Modify user group, file permissions and path. sudo adduser <username> netdev chown -R :netdev /usr/sbin/wpa_cli /var/run/wpa_supplicant/* export PATH=/usr/sbin:$PATH    - Start th...

Screen Mirroring in GNU Linux

Image
Screen mirroring allows you to display your laptop screen on a TV via Wifi Direct . This is also known as screen casting, Miracast, Wifi Display or Wifi P2P. Usage of Wifi Direct means you don't necessarily need a router or a working network. The data is streamed using RTSP . However, it doesn't use the standard RTSP port. The port information is shared during connection process (usually defaults to 7236 as per Miracast specifications). Also, the RTSP server must support additional Miracast related negotiations. Note: Feature-wise, Second Screen or DIAL (DIscovery And Launch) provides similar experience (primarily for Youtube and Netflix apps). But this (DIAL) requires both the devices to be in the same network. Debian XFCE meets LG 4K TV (UJ632T) The core of this technology in Linux is wpa_supplicant (or its variant - connmand or miracle-wifid). connmand (for WDS ) and miracle-wifid (for MiracleCast ) also manage your network interface. You might also have NetworkManager ...