I have followed the compilation guide carefully and managed to get miraclecast running, it detects the TV but whenever I attempt to connect to it, it doesn't connect.
Here are the commands I ran to start Miraclecast:
root@fedora:~# sudo systemctl stop NetworkManager.service
root@fedora:~# sudo systemctl stop wpa_supplicant.service
root@fedora:~# miracle-wifictl
[ADD] Link: 4
[wifictl] # list
LINK INTERFACE FRIENDLY-NAME MANAGED
4 wlp0s29u1u5 <unknown> yes
LINK PEER-ID FRIENDLY-NAME CONNECTED
0 peers and 1 links listed.
[wifictl] # select 4
link 4 selected
[wifictl] # list
LINK INTERFACE FRIENDLY-NAME MANAGED
4 wlp0s29u1u5 <unknown> yes
LINK PEER-ID FRIENDLY-NAME CONNECTED
0 peers and 1 links listed.
[wifictl] # p2p-scan
[ADD] Peer: 1c:30:08:18:62:57@4
[wifictl] # p2p-scan stop
[wifictl] # list
LINK INTERFACE FRIENDLY-NAME MANAGED
4 wlp0s29u1u5 <unknown> yes
LINK PEER-ID FRIENDLY-NAME CONNECTED
4 1c:30:08:18:62:57@4 Toshiba Smart TV no
1 peers and 1 links listed.
[wifictl] # connect 1c:30:08:18:62:57@4
[FAIL] Peer: 1c:30:08:18:62:57@4 Reason: lost
[REMOVE] Peer: 1c:30:08:18:62:57@4
Here is the output of the sudo miracle-wifid --log-level trace command open in another terminal window:
INFO: miracle-wifid - revision 1.0 Feb 5 2024 11:30:27
DEBUG: friendly-name from local hostname: fedora (manager_read_name() in ../src/wifi/wifid.c:395)
DEBUG: link: new link: wlp0s29u1u5 (4) (link_new() in ../src/wifi/wifid-link.c:71)
DEBUG: supplicant: new supplicant for wlp0s29u1u5 (supplicant_new() in ../src/wifi/wifid-supplicant.c:2123)
INFO: link: add link: wlp0s29u1u5
INFO: link: manage link wlp0s29u1u5
DEBUG: supplicant: start supplicant of wlp0s29u1u5 (supplicant_start() in ../src/wifi/wifid-supplicant.c:2661)
DEBUG: supplicant: spawn supplicant of wlp0s29u1u5 (supplicant_spawn() in ../src/wifi/wifid-supplicant.c:2507)
INFO: supplicant: wpa_supplicant found: /usr/sbin/wpa_supplicant
INFO: supplicant: wpas spawned as pid:10510
DEBUG: supplicant: open supplicant of wlp0s29u1u5 (supplicant_open() in ../src/wifi/wifid-supplicant.c:2289)
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: p2p_device_address=90:de:80:3d:13:c6
p2p_state=IDLE
wifi_display=1
ifname=wlp0s29u1u5
address=90:de:80:3d:13:c6
DEBUG: supplicant: local p2p-address is: 90:de:80:3d:13:c6 (supplicant_status_fn() in ../src/wifi/wifid-supplicant.c:1843)
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: FAIL
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: FAIL
DEBUG: supplicant: send 'WFD_SUBELEM_SET 0 000600111c4400c8' to wpas on wlp0s29u1u5 (supplicant_set_wfd_subelements() in ../src/wifi/wifid-supplicant.c:2010)
TRACE: wpa: raw message: OK
DEBUG: supplicant: sent P2P_FIND to wpas on wlp0s29u1u5 (supplicant_p2p_start_scan() in ../src/wifi/wifid-supplicant.c:2056)
TRACE: wpa: raw message: OK
DEBUG: supplicant: p2p-scanning now active on wlp0s29u1u5 (supplicant_p2p_find_fn() in ../src/wifi/wifid-supplicant.c:1937)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 0 14:b9:68:87:e7:dd
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 1 14:b9:68:87:e7:dc
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 2 30:42:40:f6:5f:06
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 3 20:e8:82:8d:80:a2
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 4 5c:a4:f4:a0:a1:38
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 5 5c:a4:f4:9d:5d:f0
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 6 e0:19:54:64:f8:64
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 7 94:a7:b7:40:22:f0
TRACE: wpa: raw message: <3>P2P-DEVICE-FOUND 1c:30:08:18:62:57 p2p_dev_addr=1c:30:08:18:62:57 pri_dev_type=10-0050F204-5 name='Toshiba Smart TV' config_methods=0x188 dev_capab=0x25 group_capab=0x0 new=1
DEBUG: peer: new peer: 1c:30:08:18:62:57 @ wlp0s29u1u5 (peer_new() in ../src/wifi/wifid-peer.c:52)
INFO: peer: add peer: 1c:30:08:18:62:57
DEBUG: peer: peer 1c:30:08:18:62:57 @ wlp0s29u1u5 started (peer_supplicant_started() in ../src/wifi/wifid-peer.c:162)
DEBUG: supplicant: requesting data for new peer 1c:30:08:18:62:57 (supplicant_event_p2p_device_found() in ../src/wifi/wifid-supplicant.c:983)
TRACE: wpa: raw message: 1c:30:08:18:62:57
pri_dev_type=10-0050F204-5
device_name=Toshiba Smart TV
manufacturer=
model_name=
model_number=
serial_number=
config_methods=0x188
dev_capab=0x25
group_capab=0x0
level=-70
age=0
listen_freq=2462
wps_method=not-ready
interface_addr=00:00:00:00:00:00
member_in_go_dev=00:00:00:00:00:00
member_in_go_iface=00:00:00:00:00:00
go_neg_req_sent=0
go_state=unknown
dialog_token=0
intended_addr=00:00:00:00:00:00
country=__
oper_freq=0
req_config_methods=0x0
flags=[REPORTED]
status=0
invitation_reqs=0
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
DEBUG: supplicant: sent P2P_STOP_FIND to wpas on wlp0s29u1u5 (supplicant_p2p_stop_scan() in ../src/wifi/wifid-supplicant.c:2090)
TRACE: wpa: raw message: <3>P2P-FIND-STOPPED
DEBUG: supplicant: p2p-scanning stopped on wlp0s29u1u5 (supplicant_event_p2p_find_stopped() in ../src/wifi/wifid-supplicant.c:925)
TRACE: wpa: raw message: OK
DEBUG: supplicant: connect to 1c:30:08:18:62:57 via pbc/(null) (supplicant_peer_connect() in ../src/wifi/wifid-supplicant.c:760)
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: <3>P2P-GO-NEG-SUCCESS role=client freq=2437 ht40=0 peer_dev=1c:30:08:18:62:57 peer_iface=1e:30:08:08:62:57 wps_method=PBC
DEBUG: supplicant: set STA-MAC for 1c:30:08:18:62:57 from <none> to 1e:30:08:08:62:57 (via GO-NEG-SUCCESS) (supplicant_event_p2p_go_neg_success() in ../src/wifi/wifid-supplicant.c:1215)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>WPS-PBC-ACTIVE
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SCAN-STARTED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-BSS-ADDED 8 1e:30:08:08:62:57
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>WPS-AP-AVAILABLE-PBC
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>Trying to associate with 1e:30:08:08:62:57 (SSID='DIRECT-PQ-Toshiba Smart TV' freq=2437 MHz)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>Associated with 1e:30:08:08:62:57
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0 (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-STARTED EAP authentication started
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-STATUS status='started' parameter=''
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=1
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-STATUS status='accept proposed method' parameter='WSC'
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-METHOD EAP vendor 14122 method 1 (WSC) selected
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>WPS-CRED-RECEIVED
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>WPS-SUCCESS
TRACE: wpa: raw message: <3>P2P-GROUP-FORMATION-SUCCESS
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-STATUS status='completion' parameter='failure'
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-EAP-FAILURE EAP authentication failed
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-DISCONNECTED bssid=1e:30:08:08:62:57 reason=3 locally_generated=1
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-DSCP-POLICY clear_all
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-DSCP-POLICY clear_all (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=EG
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=EG (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>Trying to associate with 1e:30:08:08:62:57 (SSID='DIRECT-PQ-Toshiba Smart TV' freq=2437 MHz)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>Associated with 1e:30:08:08:62:57
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0 (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>WPA: Key negotiation completed with 1e:30:08:08:62:57 [PTK=CCMP GTK=CCMP]
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-CONNECTED - Connection to 1e:30:08:08:62:57 completed [id=0 id_str=]
TRACE: wpa: raw message: <3>P2P-GROUP-STARTED wlp0s29u1u5 client ssid="DIRECT-PQ-Toshiba Smart TV" freq=2437 psk=c6b9966f0d31b5fa574bed10c01b7e1196ba05b9be21c8461d688b48002dbbed go_dev_addr=1c:30:08:18:62:57 [PERSISTENT]
DEBUG: supplicant: ssid: DIRECT-PQ-Toshiba Smart TV (supplicant_event_p2p_group_started() in ../src/wifi/wifid-supplicant.c:1241)
DEBUG: supplicant: new group: wlp0s29u1u5 (supplicant_group_new() in ../src/wifi/wifid-supplicant.c:510)
DEBUG: supplicant: start remote group on new group wlp0s29u1u5 as client/0 (supplicant_event_p2p_group_started() in ../src/wifi/wifid-supplicant.c:1275)
ERROR: supplicant: HUP on dhcp-comm socket on wlp0s29u1u5 (supplicant_group_comm_fn() in ../src/wifi/wifid-supplicant.c:252)
DEBUG: supplicant: free group wlp0s29u1u5 (supplicant_group_free() in ../src/wifi/wifid-supplicant.c:179)
DEBUG: supplicant: killing DHCP-process pid:10603.. (supplicant_group_free() in ../src/wifi/wifid-supplicant.c:202)
DEBUG: caught SIGCHLD for 10603, reaping child (manager_signal_fn() in ../src/wifi/wifid.c:191)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-DISCONNECTED bssid=1e:30:08:08:62:57 reason=3 locally_generated=1
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-DSCP-POLICY clear_all
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-DSCP-POLICY clear_all (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: <3>P2P-GROUP-REMOVED wlp0s29u1u5 client reason=REQUESTED
DEBUG: supplicant: stray P2P-GROUP-REMOVED: <3>P2P-GROUP-REMOVED wlp0s29u1u5 client reason=REQUESTED (supplicant_event_p2p_group_removed() in ../src/wifi/wifid-supplicant.c:1307)
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=EG
DEBUG: supplicant: unhandled wpas-event: IFNAME=wlp0s29u1u5 <3>CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=EG (supplicant_event() in ../src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: <3>P2P-DEVICE-LOST p2p_dev_addr=1c:30:08:18:62:57
DEBUG: supplicant: lost peer 1c:30:08:18:62:57 (supplicant_event_p2p_device_lost() in ../src/wifi/wifid-supplicant.c:1007)
DEBUG: peer: peer 1c:30:08:18:62:57 @ wlp0s29u1u5 stopped (peer_supplicant_stopped() in ../src/wifi/wifid-peer.c:172)
DEBUG: peer: free peer: 1c:30:08:18:62:57 @ wlp0s29u1u5 (peer_free() in ../src/wifi/wifid-peer.c:90)
INFO: peer: remove peer: 1c:30:08:18:62:57
The TV doesn't show any signs of external connection from the PC, I also have tried the same procedures but with Samsung's built-in screen mirroring feature of my phone (On samsung smart view hidden developer settings) but it does the same and does not want to connect, keep in mind that screen mirroring to TV works pretty well on Windows 8.1 and on my phone.
I have followed the compilation guide carefully and managed to get miraclecast running, it detects the TV but whenever I attempt to connect to it, it doesn't connect.
Here are the commands I ran to start Miraclecast:
Here is the output of the
sudo miracle-wifid --log-level trace
command open in another terminal window:The TV doesn't show any signs of external connection from the PC, I also have tried the same procedures but with Samsung's built-in screen mirroring feature of my phone (On samsung smart view hidden developer settings) but it does the same and does not want to connect, keep in mind that screen mirroring to TV works pretty well on Windows 8.1 and on my phone.