You are not logged in.

#1 2022-02-06 21:36:33

benpeltz
Member
Registered: 2020-09-07
Posts: 20

Can't mirror screen to Roku TV using gnome-network-managers

As the title suggests, I'm trying to mirror my screen to a Roku TV using gnome-network-managers.

Under my Roku settings I have screen mirroring enabled. I have tried setting it to both "Always Allow" and "Never Allow." I installed gnome-network-managers from AUR and made sure all dependencies were installed.

When I run it, the Network Displays window pops up, and my TV appears under "Available Video Sinks." When I click it, the window reads "Connecting   Establishing connection to sink" and lists my TV under that. It stalls out at this point, eventually yielding two system errors: Network Management says "Connection 'Wifi P2P Peer DA:31:34:8B:68:62' Deactivated", and "p2p-dev-wlp1s0 Authorization supplicant timed out."

Here is the debug output I get when I run

G_MESSAGES_DEBUG=all gnome-network-displays
(gnome-network-displays:52025): GLib-GIO-DEBUG: 16:08:13.860: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
(gnome-network-displays:52025): GLib-DEBUG: 16:08:13.887: unsetenv() is not thread-safe and should not be used after threads are created
(gnome-network-displays:52025): Gtk-DEBUG: 16:08:13.887: Connecting to session manager
(gnome-network-displays:52025): Gtk-DEBUG: 16:08:13.888: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(gnome-network-displays:52025): Gtk-DEBUG: 16:08:13.888: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
** (gnome-network-displays:52025): DEBUG: 16:08:13.995: NdScreencastPortal: Aquired Portal proxy
** (gnome-network-displays:52025): DEBUG: 16:08:13.995: task is: 0x564158a98d60
** (gnome-network-displays:52025): DEBUG: 16:08:14.008: NdScreencastPortal: Received CreateSession response

** (gnome-network-displays:52025): WARNING **: 16:08:14.008: Error initing screencast portal: Failed to create portal session (response: 2)

** (gnome-network-displays:52025): WARNING **: 16:08:14.008: Falling back to X11! You need to fix your setup to avoid issues (XDG Portals and/or mutter screencasting support)!
** (gnome-network-displays:52025): DEBUG: 16:08:14.008: NdPulseaudio: Querying sink info by name
** (gnome-network-displays:52025): DEBUG: 16:08:14.014: NdPulseaudio: Error querying sink info
** (gnome-network-displays:52025): DEBUG: 16:08:14.014: NdPulseaudio: Got a sink info for the expected name
** (gnome-network-displays:52025): DEBUG: 16:08:14.018: WFDP2PRegistry: Found a new device, creating provider
** (gnome-network-displays:52025): DEBUG: 16:08:14.018: WFDP2PProvider: Found a new sink with peer 0x564158cac530 on device 0x564158b1a6d0
** (gnome-network-displays:52025): DEBUG: 16:08:14.018: WFDP2PProvider: Found a new sink with peer 0x564158cac5c0 on device 0x564158b1a6d0
** (gnome-network-displays:52025): DEBUG: 16:08:14.018: WfdP2PProvider: Discover is now set to 1
** (gnome-network-displays:52025): DEBUG: 16:08:14.019: SinkList: Adding a sink
** (gnome-network-displays:52025): DEBUG: 16:08:14.019: SinkList: Adding a sink
** (gnome-network-displays:52025): DEBUG: 16:08:14.020: WFDP2PProvider: Found a new sink with peer 0x564158cac5c0 on device 0x564158b1a6d0
** (gnome-network-displays:52025): DEBUG: 16:08:14.020: WFDP2PProvider: Found a new sink with peer 0x564158cac530 on device 0x564158b1a6d0
** (gnome-network-displays:52025): DEBUG: 16:08:14.031: WFDP2PRegistry: Got NMClient
** (gnome-network-displays:52025): DEBUG: 16:08:18.698: WFDP2PProvider: Found a new sink with peer 0x564158ccd4b0 on device 0x564158b1a6d0
** (gnome-network-displays:52025): DEBUG: 16:08:18.698: SinkList: Adding a sink
** (gnome-network-displays:52025): DEBUG: 16:08:42.297: Found x264enc for video encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.297: Found fdkaacenc for audio encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.297: Found avenc_aac for audio encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.297: Found faac for audio encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.298: Got state change notification from streaming sink to state ND_SINK_STATE_ENSURE_FIREWALL
** (gnome-network-displays:52025): DEBUG: 16:08:42.299: WfdP2PProvider: Discover is now set to 0
** (gnome-network-displays:52025): DEBUG: 16:08:42.300: NdFirewalld: Firewalld does not seem to be installed. Code will assume that no firewall will be configured.
** (gnome-network-displays:52025): DEBUG: 16:08:42.300: NdWfdP2PSink: Got firewall information
** (gnome-network-displays:52025): DEBUG: 16:08:42.300: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_P2P
** (gnome-network-displays:52025): DEBUG: 16:08:42.326: NdWfdP2PSink: Got P2P connection
** (gnome-network-displays:52025): DEBUG: 16:08:42.326: Found x264enc for video encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.326: Found fdkaacenc for audio encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.326: Found avenc_aac for audio encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.326: Found faac for audio encoding.
** (gnome-network-displays:52025): DEBUG: 16:08:42.327: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_SOCKET
** (gnome-network-displays:52025): DEBUG: 16:09:27.759: WfdServer: Finalize
** (gnome-network-displays:52025): DEBUG: 16:09:27.759: WfdMediaFactory: Finalize
** (gnome-network-displays:52025): DEBUG: 16:09:27.760: Got state change notification from streaming sink to state ND_SINK_STATE_ERROR
** (gnome-network-displays:52025): DEBUG: 16:09:44.122: WFDP2PProvider: Peer removed
** (gnome-network-displays:52025): DEBUG: 16:09:44.123: WFDP2PProvider: Peer removed
** (gnome-network-displays:52025): DEBUG: 16:09:44.125: WFDP2PProvider: Peer removed
** (gnome-network-displays:52025): DEBUG: 16:09:44.125: MetaSink: No usable sink is left, object has become invalid.
** (gnome-network-displays:52025): DEBUG: 16:09:44.125: SinkList: Removing a sink

The Network Manager logs show the following at the time that this is happening:

Feb 06 16:14:37 ben-pc NetworkManager[285]: <info>  [1644182077.7998] audit: op="statistics" interface="wlp1s0" ifindex=2 args="0" pid=612 uid=1000 result="success"
Feb 06 16:14:35 ben-pc NetworkManager[285]: <info>  [1644182075.6952] audit: op="statistics" interface="wlp1s0" ifindex=2 args="2000" pid=612 uid=1000 result="success"
Feb 06 16:09:27 ben-pc NetworkManager[285]: <info>  [1644181767.7569] device (p2p-dev-wlp1s0): state change: failed -> disconnected (reason 'none', sys-iface-state: '>
Feb 06 16:09:27 ben-pc NetworkManager[285]: <warn>  [1644181767.7562] device (p2p-dev-wlp1s0): Activation: failed for connection 'Wi-Fi P2P Peer DA:31:34:8B:68:62'
Feb 06 16:09:27 ben-pc NetworkManager[285]: <info>  [1644181767.7557] device (p2p-dev-wlp1s0): state change: config -> failed (reason 'supplicant-timeout', sys-iface->
Feb 06 16:09:27 ben-pc NetworkManager[285]: <warn>  [1644181767.7557] device (p2p-dev-wlp1s0): Activation: (wifi-p2p) connecting took too long, failing activation
Feb 06 16:09:09 ben-pc NetworkManager[285]: <info>  [1644181749.9261] audit: op="statistics" interface="wlp1s0" ifindex=2 args="0" pid=612 uid=1000 result="success"
Feb 06 16:08:56 ben-pc NetworkManager[285]: <info>  [1644181736.1261] audit: op="statistics" interface="wlp1s0" ifindex=2 args="2000" pid=612 uid=1000 result="success"
Feb 06 16:08:42 ben-pc NetworkManager[285]: <info>  [1644181722.3102] device (p2p-dev-wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'manag>
Feb 06 16:08:42 ben-pc NetworkManager[285]: <info>  [1644181722.3100] device (p2p-dev-wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: >
Feb 06 16:08:42 ben-pc NetworkManager[285]: <info>  [1644181722.3097] audit: op="connection-add-activate" uuid="3b6206d8-7a3a-4fda-9bd5-ccd89c0edc81" name="Wi-Fi P2P >
Feb 06 16:08:42 ben-pc NetworkManager[285]: <info>  [1644181722.3096] device (p2p-dev-wlp1s0): Activation: starting connection 'Wi-Fi P2P Peer DA:31:34:8B:68:62' (3b6

From all of this, and the information on the gitlab page, what I'm getting is that an IP link is being established but then timing out. But, I have no idea where to go from here in terms of narrowing down why this is happening and identifying a solution.

Thanks in advance for any help!

Offline

#2 2022-04-06 23:52:25

ajay_S
Member
Registered: 2022-04-06
Posts: 1

Re: Can't mirror screen to Roku TV using gnome-network-managers

@benpeltz did you figure this out?
I have a roku tv too and while gnome-network-displays detects the tv, it neither makes a successful connection nor do I get a prompt on the tv. Also tried 'allow always' option on tv. Doesn't work sad
I know the issue is not with the hardware because it works on the same device with Windows.

Offline

#3 2022-05-13 00:26:32

benpeltz
Member
Registered: 2020-09-07
Posts: 20

Re: Can't mirror screen to Roku TV using gnome-network-managers

No, sadly I never did get it working. Got my Android phone connected and settled for that.

Offline

Board footer

Powered by FluxBB