Can't connect to TV MEDION BC0B04-Gen4
At first, the TV is detected and offered in the GUI to connect to. Then the TV-Screen flickers but returns to it's "waiting for connection"-screen. Network manager shows two messages:
-
Netzwerkverwaltung p2p-dev-wlp5s0 Zeitüberschreitung beim Authentifizierungs-Supplicant
-
Netzwerkverwaltung Wi-Fi P2P Peer 02:..:..:..:..:.. Die Verbindung Wi-Fi P2P Peer 02:..:..:..:..:.. wurde deaktiviert.
So there is a "timeout" and then a "deactivated".
I was running with command:
$ G_MESSAGES_DEBUG=all /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-network-displays org.gnome.NetworkDisplays
and got this output in the end:
** (gnome-network-displays:2): DEBUG: 13:14:53.275: WFDP2PProvider: Started P2P discovery
** (gnome-network-displays:2): DEBUG: 13:15:13.271: WFDP2PProvider: Restarting P2P discovery
** (gnome-network-displays:2): DEBUG: 13:15:13.274: WFDP2PProvider: Started P2P discovery
** (gnome-network-displays:2): DEBUG: 13:15:33.271: WFDP2PProvider: Restarting P2P discovery
** (gnome-network-displays:2): DEBUG: 13:15:33.273: WFDP2PProvider: Started P2P discovery
** (gnome-network-displays:2): DEBUG: 13:15:37.153: WFDP2PProvider: Device state changed. It is now 20. Reason: 10
** (gnome-network-displays:2): DEBUG: 13:15:37.153: WFDP2PProvider: Stopping P2P discovery.
** (gnome-network-displays:2): DEBUG: 13:15:47.678: WFDP2PProvider: Device state changed. It is now 10. Reason: 36
** (gnome-network-displays:2): DEBUG: 13:15:47.679: NdNMDeviceRegistry: Lost a device, removing provider
** (gnome-network-displays:2): DEBUG: 13:15:47.680: WFDP2PProvider: Device state changed. It is now 0. Reason: 0
** (gnome-network-displays:2): DEBUG: 13:15:47.682: NdNMDeviceRegistry: Found a new device, creating provider
** (gnome-network-displays:2): DEBUG: 13:15:47.682: WFDP2PProvider: Discover is now set to 1
** (gnome-network-displays:2): DEBUG: 13:15:47.682: WFDP2PProvider: Device state changed. It is now 20. Reason: 2
** (gnome-network-displays:2): DEBUG: 13:15:47.684: WFDP2PProvider: Device state changed. It is now 30. Reason: 0
** (gnome-network-displays:2): DEBUG: 13:15:47.684: WFDP2PProvider: Starting P2P discovery.
** (gnome-network-displays:2): DEBUG: 13:15:47.685: WFDP2PProvider: Started P2P discovery
** (gnome-network-displays:2): DEBUG: 13:15:49.662: WFDP2PProvider: Found a new sink with peer "MEDION BC0B04-Gen4" (02:..:..:..:..:..) on device 0x562a........
** (gnome-network-displays:2): DEBUG: 13:15:49.662: MetaSink: Priority sink updated. Priority: 100
** (gnome-network-displays:2): DEBUG: 13:15:49.662: SinkList: Adding a sink
** (gnome-network-displays:2): DEBUG: 13:15:58.607: Found openh264enc for video encoding.
** (gnome-network-displays:2): DEBUG: 13:15:58.607: Found fdkaacenc for audio encoding.
** (gnome-network-displays:2): DEBUG: 13:15:58.607: Got state change notification from streaming sink to state ND_SINK_STATE_ENSURE_FIREWALL
** (gnome-network-displays:2): DEBUG: 13:15:58.608: WFDP2PProvider: Discover is now set to 0
** (gnome-network-displays:2): DEBUG: 13:15:58.608: WFDP2PProvider: Stopping P2P discovery.
** (gnome-network-displays:2): DEBUG: 13:15:58.609: NdFirewalld: Firewalld does not seem to be installed. Code will assume that no firewall will be configured.
** (gnome-network-displays:2): DEBUG: 13:15:58.609: NdWfdP2PSink: Got firewall information
** (gnome-network-displays:2): DEBUG: 13:15:58.609: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_P2P
** (gnome-network-displays:2): DEBUG: 13:15:58.644: WFDP2PProvider: Device state changed. It is now 40. Reason: 0
** (gnome-network-displays:2): DEBUG: 13:15:58.644: WFDP2PProvider: Device state changed. It is now 50. Reason: 0
** (gnome-network-displays:2): DEBUG: 13:15:58.657: NdWfdP2PSink: Got P2P connection
** (gnome-network-displays:2): DEBUG: 13:15:58.657: Found openh264enc for video encoding.
** (gnome-network-displays:2): DEBUG: 13:15:58.657: Found fdkaacenc for audio encoding.
** (gnome-network-displays:2): DEBUG: 13:15:58.657: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_SOCKET
** (gnome-network-displays:2): DEBUG: 13:16:43.657: WFDP2PProvider: Device state changed. It is now 120. Reason: 11
** (gnome-network-displays:2): DEBUG: 13:16:43.665: WfdServer: Finalize
** (gnome-network-displays:2): DEBUG: 13:16:43.665: WfdMediaFactory: Finalize
** (gnome-network-displays:2): DEBUG: 13:16:43.665: Got state change notification from streaming sink to state ND_SINK_STATE_ERROR
** (gnome-network-displays:2): DEBUG: 13:16:43.689: WFDP2PProvider: Device state changed. It is now 30. Reason: 0
** (gnome-network-displays:2): DEBUG: 13:17:05.220: WFDP2PProvider: Peer removed
** (gnome-network-displays:2): DEBUG: 13:17:05.220: MetaSink: No usable sink is left, object has become invalid.
** (gnome-network-displays:2): DEBUG: 13:17:05.220: SinkList: Removing a sink
** (process:190592): DEBUG: 13:19:08.425: Error reading from socket: Fehler beim Empfang der Nachricht: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
Finally I found these commands: $ sudo gdbus call --system --dest fi.w1.wpa_supplicant1 --object-path /fi/w1/wpa_supplicant1 --method org.freedesktop.DBus.Properties.Get fi.w1.wpa_supplicant1 Capabilities (<['ap', 'ibss-rsn', 'p2p', 'interworking', 'pmf', 'mesh', 'fils', 'fils_sk_pfs', 'ft', 'sha384', 'owe', 'suiteb192']>,)
$ sudo gdbus call --system --dest fi.w1.wpa_supplicant1 --object-path /fi/w1/wpa_supplicant1 --method org.freedesktop.DBus.Properties.Get fi.w1.wpa_supplicant1 WFDIEs (<@ay []>,)