albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.87k stars 415 forks source link

Failed to initialize driver interface > [FAIL] Peer: <client address> Reason unknown #516

Open Craftingcat99 opened 3 months ago

Craftingcat99 commented 3 months ago

I've tried getting miraclecast to run as a sink for a few days now, but encounter the same error everytime. So far I've tried it on a clean ubuntu server install but, at first, ran into issue because of the missing gui. But even with ubuntu 22.04 (non-server, stock, clean) i can't get my phone, laptop or desktop to connect to the sink. I always get the same

[FAIL] Peer: <client address> Reason: unknown

error. Since the device is "sort of" headless and i'm not exactly a pro at working with linux, it's a bit hard to get a full log. But I managed to copy the part where the pair fails from the wifid process:

DEBUG: supplicant: local p2p-address is: <client address> (supplicant_status_fn() in /home/cc99/miraclecast/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

TRACE: wpa: raw message: IFNAME=p2p-0 <5>Failed to initialize driver interface
DEBUG: supplicant: unhandled wpas-event: IFNAME=p2p-0 <5>Failed to initialize driver interface (supplicant_event() in /home/cc99/miraclecast/src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: IFNAME=p2p-0 <3>CTRL-EVENT-DSCP-POLICY clear_all
DEBUG: supplicant: unhandled wpas-event: IFNAME=p2p-0 <3>CTRL-EVENT-DSCP-POLICY clear_all (supplicant_event() in /home/cc99/miraclecast/src/wifi/wifid-supplicant.c:1518)
TRACE: wpa: raw message: <3>P2P-GROUP-FORMATION-FAILURE
DEBUG: supplicant: peer CC99 connection failed (supplicant_event_p2p_group_formation_failure() in /home/cc99/miraclecast/src/wifi/wifid-supplicant.c:1339)
DEBUG: supplicant: sent P2P_FIND to wpas on wlx8416f90c843d (supplicant_p2p_start_scan() in /home/cc99/miraclecast/src/wifi/wifid-supplicant.c:2056)
TRACE: wpa: raw message: OK

If tried to cast from a SAMSUNG S20+, a Thinkpad T480 with an AX210 wifi card and from my Desktop with a cheap TP-Link dongle. The sink is an old QNAP NAS with Ubuntu installed (not live!) on a Thumb drive and a tp link usb dongle which supports P2P. I installed miraclecast exactly as stated on the github page and ran both "compatibility test" scripts without errors. Have I overlooked anything? Any help would be much appreaciated. If you need a specific log i can see if I'm able to provide it,

albfan commented 3 months ago

There are instructions on wiki FAQ, to provide logs for support