benzea/gnome-network-displays

Suddenly can't connect to the tv

hermithuang opened this issue · 1 comments

I used gnome-network-displays for sometimes and think it's a very good software. before this I tried intel/wds and miraclecast but cant make them work. They all want me to stop wpa_supplicant.service and NetworkManager.service and I feel not good . Only when I use gnome-network-displays I successed to put my pc screen to the tv. But suddenly it can't work.....

So may someone can tell me how to solve this or how to debug... THANKS!

This is log:

######################################
[root@home hermit]# G_MESSAGES_DEBUG=all gnome-network-displays
(gnome-network-displays:4452): GLib-DEBUG: 19:18:17.422: posix_spawn avoided (fd close requested) 
(gnome-network-displays:4452): GLib-GIO-DEBUG: 19:18:17.444: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
(gnome-network-displays:4452): GLib-DEBUG: 19:18:17.463: unsetenv() is not thread-safe and should not be used after threads are created
(gnome-network-displays:4452): Gtk-DEBUG: 19:18:17.463: Connecting to session manager
(gnome-network-displays:4452): Gtk-DEBUG: 19:18:17.463: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(gnome-network-displays:4452): Gtk-DEBUG: 19:18:17.463: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
** (gnome-network-displays:4452): DEBUG: 19:18:17.490: NdPulseaudio: PA context went into failed state during init
** (gnome-network-displays:4452): DEBUG: 19:18:17.490: NdPulseaudio: Error querying sink info

** (gnome-network-displays:4452): WARNING **: 19:18:17.521: Error initializing pulse audio sink: PA failed
** (gnome-network-displays:4452): DEBUG: 19:18:17.522: NdScreencastPortal: Aquired Portal proxy
** (gnome-network-displays:4452): DEBUG: 19:18:17.522: task is: 0x1202030
** (gnome-network-displays:4452): DEBUG: 19:18:17.525: NdScreencastPortal: Received CreateSession response

** (gnome-network-displays:4452): WARNING **: 19:18:17.525: Error initing screencast portal: Failed to create portal session (response: 2)

** (gnome-network-displays:4452): WARNING **: 19:18:17.525: Falling back to X11! You need to fix your setup to avoid issues (XDG Portals and/or mutter screencasting support)!
** (gnome-network-displays:4452): DEBUG: 19:18:17.532: WFDP2PRegistry: Found a new device, creating provider
** (gnome-network-displays:4452): DEBUG: 19:18:17.533: WfdP2PProvider: Discover is now set to 1
** (gnome-network-displays:4452): DEBUG: 19:18:17.536: WFDP2PRegistry: Got NMClient
** (gnome-network-displays:4452): DEBUG: 19:18:20.719: WFDP2PProvider: Found a new sink with peer 0xc4ccd0 on device 0x12c6290
** (gnome-network-displays:4452): DEBUG: 19:18:20.720: SinkList: Adding a sink
** (gnome-network-displays:4452): DEBUG: 19:18:22.270: Found x264enc for video encoding.
** (gnome-network-displays:4452): DEBUG: 19:18:22.270: Found fdkaacenc for audio encoding.
** (gnome-network-displays:4452): DEBUG: 19:18:22.270: Found avenc_aac for audio encoding.
** (gnome-network-displays:4452): DEBUG: 19:18:22.270: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_P2P
** (gnome-network-displays:4452): DEBUG: 19:18:22.271: WfdP2PProvider: Discover is now set to 0
** (gnome-network-displays:4452): DEBUG: 19:18:22.274: NdWfdP2PSink: Got P2P connection
** (gnome-network-displays:4452): DEBUG: 19:18:22.274: Found x264enc for video encoding.
** (gnome-network-displays:4452): DEBUG: 19:18:22.274: Found fdkaacenc for audio encoding.
** (gnome-network-displays:4452): DEBUG: 19:18:22.274: Found avenc_aac for audio encoding.
** (gnome-network-displays:4452): DEBUG: 19:18:22.275: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_SOCKET
######################################
**And at this time the windows is keeping  "Connecting Establish connectiong to a sink", it lasts a very very long time then finally error.**
######################################
**/var/log/messages**
Jun 15 19:18:17 home journal[4216]: A backend call failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface â<80><9c>org.freedesktop.impl.portal.ScreenCastâ<80><9d> on object at path /org/freedesktop/portal/desktop
Jun 15 19:18:17 home journal[4216]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface â<80><9c>org.freedesktop.impl.portal.Sessionâ<80><9d> on object at path /org/freedesktop/portal/desktop/session/1_9/gtk1418906608
Jun 15 19:18:20 home wpa_supplicant[1022]: P2P-DEVICE-FOUND ee:9c:32:72:56:d5 p2p_dev_addr=ee:9c:32:72:56:d5 pri_dev_type=10-0050F204-5 name='ty' config_methods=0x188 dev_capab=0x25 group_capab=0x0 wfd_dev_info=0x00111c440032 vendor_elems=1 new=1
Jun 15 19:18:20 home wpa_supplicant[1022]: dbus: Register peer object '/fi/w1/wpa_supplicant1/Interfaces/0/Peers/ee9c327256d5'
Jun 15 19:18:22 home wpa_supplicant[1022]: P2P-FIND-STOPPED
Jun 15 19:18:22 home NetworkManager[1362]: <info>  [1592219902.2739] device (p2p-dev-wlp37s0): Activation: starting connection 'Wi-Fi P2P Peer EE:9C:32:72:56:D5' (67d83f17-672e-4c83-ab32-510f36e292ac)
Jun 15 19:18:22 home NetworkManager[1362]: <info>  [1592219902.2740] audit: op="connection-add-activate" uuid="67d83f17-672e-4c83-ab32-510f36e292ac" name="Wi-Fi P2P Peer EE:9C:32:72:56:D5" pid=4452 uid=0 result="success"
Jun 15 19:18:22 home NetworkManager[1362]: <info>  [1592219902.2754] device (p2p-dev-wlp37s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jun 15 19:18:22 home NetworkManager[1362]: <info>  [1592219902.2756] device (p2p-dev-wlp37s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jun 15 19:18:22 home systemd-udevd[4461]: Using default interface naming scheme 'v245'.
Jun 15 19:18:22 home systemd-udevd[4461]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jun 15 19:18:22 home systemd-udevd[4461]: Could not set AlternativeName= or apply AlternativeNamesPolicy= on p2p-wlp37s0-2: File exists
Jun 15 19:18:22 home systemd-udevd[4461]: p2p-wlp37s0-2: Could not apply link config, ignoring: File exists
Jun 15 19:18:23 home wpa_supplicant[1022]: P2P-GO-NEG-SUCCESS role=GO freq=2412 ht40=0 peer_dev=ee:9c:32:72:56:d5 peer_iface=e6:9c:32:72:56:d5 wps_method=PBC
Jun 15 19:18:23 home wpa_supplicant[1022]: Using interface p2p-wlp37s0-2 with hwaddr 14:f6:d8:d9:55:b8 and ssid "DIRECT-cb"
Jun 15 19:18:23 home wpa_supplicant[1022]: p2p-wlp37s0-2: interface state UNINITIALIZED->ENABLED
Jun 15 19:18:23 home wpa_supplicant[1022]: p2p-wlp37s0-2: AP-ENABLED
Jun 15 19:18:23 home kernel: IPv6: ADDRCONF(NETDEV_CHANGE): p2p-wlp37s0-2: link becomes ready
Jun 15 19:18:23 home wpa_supplicant[1022]: p2p-wlp37s0-2: CTRL-EVENT-CONNECTED - Connection to 14:f6:d8:d9:55:b8 completed [id=0 id_str=]
Jun 15 19:18:23 home wpa_supplicant[1022]: p2p-wlp37s0-2: WPS-PBC-ACTIVE
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: CTRL-EVENT-EAP-STARTED e6:9c:32:72:56:d5
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=254
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: WPS-REG-SUCCESS e6:9c:32:72:56:d5 12345678-9abc-def0-1234-56789abcdef0
Jun 15 19:18:24 home wpa_supplicant[1022]: P2P-GROUP-FORMATION-SUCCESS
Jun 15 19:18:24 home wpa_supplicant[1022]: P2P-GROUP-STARTED p2p-wlp37s0-2 GO ssid="DIRECT-cb" freq=2412 go_dev_addr=14:f6:d8:d9:55:b7
Jun 15 19:18:24 home wpa_supplicant[1022]: dbus: Register group object '/fi/w1/wpa_supplicant1/Interfaces/3/Groups/cb'
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: WPS-PBC-DISABLE
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: WPS-SUCCESS
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: CTRL-EVENT-EAP-FAILURE e6:9c:32:72:56:d5
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3433] sup-iface[0x562b8d615300,(null)]: supports 5 scan SSIDs
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3446] device (p2p-dev-wlp37s0): P2P Group supplicant interface state: starting -> ready
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3518] device (p2p-dev-wlp37s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3711] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface p2p-wlp37s0-2 --protocol tcp --destination-port 53 --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3726] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface p2p-wlp37s0-2 --protocol udp --destination-port 53 --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3751] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface p2p-wlp37s0-2 --protocol tcp --destination-port 67 --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3772] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface p2p-wlp37s0-2 --protocol udp --destination-port 67 --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3789] Executing: /usr/sbin/iptables --table filter --insert FORWARD --in-interface p2p-wlp37s0-2 --jump REJECT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3805] Executing: /usr/sbin/iptables --table filter --insert FORWARD --out-interface p2p-wlp37s0-2 --jump REJECT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3819] Executing: /usr/sbin/iptables --table filter --insert FORWARD --in-interface p2p-wlp37s0-2 --out-interface p2p-wlp37s0-2 --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3836] Executing: /usr/sbin/iptables --table filter --insert FORWARD --source 10.42.0.0/255.255.255.0 --in-interface p2p-wlp37s0-2 --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3850] Executing: /usr/sbin/iptables --table filter --insert FORWARD --destination 10.42.0.0/255.255.255.0 --out-interface p2p-wlp37s0-2 --match state --state ESTABLISHED,RELATED --jump ACCEPT
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3868] Executing: /usr/sbin/iptables --table nat --insert POSTROUTING --source 10.42.0.0/255.255.255.0 ! --destination 10.42.0.0/255.255.255.0 --jump MASQUERADE
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3883] dnsmasq-manager: starting dnsmasq...
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.3895] device (p2p-dev-wlp37s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Jun 15 19:18:24 home dnsmasq[4492]: started, version 2.81 cachesize 150
Jun 15 19:18:24 home dnsmasq[4492]: compile time options: IPv6 GNU-getopt DBus no-UBus no-i18n IDN2 DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Jun 15 19:18:24 home dnsmasq[4492]: chown of PID file /run/nm-dnsmasq-p2p-wlp37s0-2.pid failed: Operation not permitted
Jun 15 19:18:24 home dnsmasq-dhcp[4492]: DHCP, IP range 10.42.0.10 -- 10.42.0.254, lease time 1h
Jun 15 19:18:24 home dnsmasq[4492]: reading /etc/resolv.conf
Jun 15 19:18:24 home dnsmasq[4492]: using nameserver 192.168.6.1#53
Jun 15 19:18:24 home dnsmasq[4492]: cleared cache
Jun 15 19:18:24 home systemd[1]: Starting Network Manager Script Dispatcher Service...
Jun 15 19:18:24 home systemd[1]: Started Network Manager Script Dispatcher Service.
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.4023] device (p2p-dev-wlp37s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.4026] device (p2p-dev-wlp37s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Jun 15 19:18:24 home NetworkManager[1362]: <info>  [1592219904.4039] device (p2p-dev-wlp37s0): Activation: successful, device activated.
Jun 15 19:18:24 home wpa_supplicant[1022]: p2p-wlp37s0-2: AP-STA-CONNECTED e6:9c:32:72:56:d5 p2p_dev_addr=ee:9c:32:72:56:d5
Jun 15 19:18:24 home wpa_supplicant[1022]: AP-STA-CONNECTED e6:9c:32:72:56:d5 p2p_dev_addr=ee:9c:32:72:56:d5
Jun 15 19:18:24 home systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Jun 15 19:18:25 home NetworkManager[1362]: <info>  [1592219905.5121] policy: ipv6-pd: no device to obtain a subnet to share on p2p-dev-wlp37s0 from
Jun 15 19:18:27 home dnsmasq-dhcp[4492]: DHCPDISCOVER(p2p-wlp37s0-2) e6:9c:32:72:56:d5
Jun 15 19:18:27 home dnsmasq-dhcp[4492]: DHCPOFFER(p2p-wlp37s0-2) 10.42.0.246 e6:9c:32:72:56:d5
Jun 15 19:18:27 home dnsmasq-dhcp[4492]: DHCPREQUEST(p2p-wlp37s0-2) 10.42.0.246 e6:9c:32:72:56:d5
Jun 15 19:18:27 home dnsmasq-dhcp[4492]: DHCPACK(p2p-wlp37s0-2) 10.42.0.246 e6:9c:32:72:56:d5
Jun 15 19:18:34 home systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Jun 15 19:18:59 home journal[2055]: variant_to_string: assertion 'len < max_len' failed
Jun 15 19:19:04 home NetworkManager[1362]: <info>  [1592219944.8004] device (wlp37s0): set-hw-addr: set MAC address to 5A:B3:87:15:1E:20 (scanning)
Jun 15 19:19:04 home NetworkManager[1362]: <info>  [1592219944.8215] device (wlp37s0): supplicant interface state: scanning -> disconnected
Jun 15 19:19:04 home NetworkManager[1362]: <info>  [1592219944.8216] device (p2p-dev-wlp37s0): supplicant management interface state: scanning -> disconnected
Jun 15 19:19:04 home NetworkManager[1362]: <info>  [1592219944.8267] device (wlp37s0): supplicant interface state: disconnected -> inactive
Jun 15 19:19:04 home NetworkManager[1362]: <info>  [1592219944.8268] device (p2p-dev-wlp37s0): supplicant management interface state: disconnected -> inactive
Jun 15 19:19:04 home wpa_supplicant[1022]: wlp37s0: Reject scan trigger since one is already pending
Jun 15 19:19:19 home NetworkManager[1362]: <info>  [1592219959.8114] device (wlp37s0): supplicant interface state: inactive -> scanning
Jun 15 19:19:19 home NetworkManager[1362]: <info>  [1592219959.8115] device (p2p-dev-wlp37s0): supplicant management interface state: inactive -> scanning
Jun 15 19:19:23 home kernel: iwlwifi 0000:25:00.0: Unhandled alg: 0x71b
Jun 15 19:19:23 home NetworkManager[1362]: <info>  [1592219963.6587] device (wlp37s0): supplicant interface state: scanning -> inactive
Jun 15 19:19:23 home NetworkManager[1362]: <info>  [1592219963.6596] device (p2p-dev-wlp37s0): supplicant management interface state: scanning -> inactive
Jun 15 19:19:27 home NetworkManager[1362]: <info>  [1592219967.7994] device (wlp37s0): supplicant interface state: inactive -> scanning
Jun 15 19:19:27 home NetworkManager[1362]: <info>  [1592219967.7995] device (p2p-dev-wlp37s0): supplicant management interface state: inactive -> scanning
#################################################
(base) [hermit@home ~]$ ip a
...........
8: p2p-wlp37s0-2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 14:f6:d8:d9:55:b8 brd ff:ff:ff:ff:ff:ff
    inet 10.42.0.1/24 brd 10.42.0.255 scope global noprefixroute p2p-wlp37s0-2
       valid_lft forever preferred_lft forever
    inet6 fe80::3275:be97:95a0:6bcb/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
(base) [hermit@home ~]$ fping -g 10.42.0.0/24 | grep alive
10.42.0.1 is alive
10.42.0.246 is alive
(base) [hermit@home ~]$ nmap 10.42.0.246
Starting Nmap 7.80 ( https://nmap.org ) at 2020-06-15 19:18 CST
Nmap scan report for 10.42.0.246
Host is up (0.036s latency).
Not shown: 997 closed ports
PORT      STATE SERVICE
554/tcp   open  rtsp
11111/tcp open  vce
12345/tcp open  netbus

Could it be that a firewall is blocking access from the TV to port 7236 on your machine?