Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: dbus: cannot claim org.freedesktop.miracle.wifi bus-name: -13 (manager_dbus_connect() in wifid-dbus.c:898) #90

Closed
pimail1501 opened this issue Jul 7, 2016 · 12 comments

Comments

@pimail1501
Copy link

pimail1501 commented Jul 7, 2016

Hi Alberto,
I got this ERROR when running

$ sudo miracle-wifid --wpa-bindir /sbin &

ERROR: dbus: cannot claim org.freedesktop.miracle.wifi bus-name: -13 (manager_dbus_connect() in wifid-dbus.c:898)

And I found #20 ,but couldn't find your answer about miracle-wifi.sh in /res dir

wifi device also supports p2p.

the system is ubuntu 16.04, systemd 229

Thanks for help

@albfan
Copy link
Owner

albfan commented Jul 7, 2016

Nowadays you just need to stop your network service and miraclecast starts wpa_supplicant

Use the elegant:

$ sudo systemctl stop Network.service

or the nasty:

$ sudo killall wpa_supplicant

All them should setup your environment correctly to run miraclecast succesfully.

@pimail1501
Copy link
Author

pimail1501 commented Jul 9, 2016

Thanks a lot

after this ,sudo miracle-wifid --wpa-bindir /sbin & no error

I thought the wifi icon was still gone and wifi was still closed

then sudo miracle-wifictl

the wifi icon was still gone and wifi was still cloesed

then I got nothing when I inputted p2p-scan

No peers found

is wifi open when I input p2p-scan?

@albfan
Copy link
Owner

albfan commented Jul 9, 2016

miracle-wifictl is to use laptop as source. See #4 if you are interested in.

to use laptop as sink (showing screen from other device) use:

$ sudo miracle-sinkctl

or (for control source device from sink)

$ sudo miracle-sinkctl --uibc

@pimail1501
Copy link
Author

Thanks again

I finally got it ,and I connected my android phone successfully.Before that ,I used my iphone,it seemed couldn't work well in IOS.

However using this sudo miracle-sinkctl ,connect the android phone . How can I get the andoid screen? Is it auto to open?

@albfan
Copy link
Owner

albfan commented Jul 9, 2016

Check the test-viewer.sh on res/ directory. Some gst plugins are needed to see the streaming. More details on README.md prerrequisites section.

About apple devices, they don't implement miracast protocol, so it's not possible to use them with miraclecast.

@albfan
Copy link
Owner

albfan commented Jul 9, 2016

If you want to play around with iThings and airplay check https://github.com/jamesdlow/open-airplay

If you don't have a Mac, Play2Wifi seems a good choice (maybe out of date)

@pimail1501
Copy link
Author

OK,thank you very much ,you are so kind.

@laar789
Copy link

laar789 commented Jul 21, 2016

Hi, I'm trying to run miraclecast in fedora 24, but I'm getting the error:
ERROR: dbus: cannot claim org.freedesktop.miracle.wifi bus-name: -13 (manager_dbus_connect() in wifid-dbus.c:898)
when I run miracle-wifid, I tried every all the suggestions here, but no luck, still same error.

I think the problem is with fedora...can you tell if there is a solution for miraclecast to run in fedora_

@albfan
Copy link
Owner

albfan commented Jul 21, 2016

@laar789 Did you follow install instructions on README.md? Did you copy dbus policy on /etc?

@laar789
Copy link

laar789 commented Jul 21, 2016

Thank you a lot, that was the step I miss, sorry...
Now, I have up miracle-wifid and miracle-sinkctl running, but how I do "Pair your machine with other miracast device (mirroring)", because I put in my tablet the wifi-direct option, then select my miraclecast (localhos.localdomain) and the tablet says "Invited" and it doesn't connect. In miracle-sinkctl i do a "List" and show my device:
[miraclectl] # list
LINK INTERFACE FRIENDLY-NAME
3 wlp2s0 localhost.localdomain

LINK PEER-ID FRIENDLY-NAME CONNECTED
3 9a:3b:16:27:0d:45@3 Pipo_p4_luis no
3 3e:bb:fd:43:bb:0a@3 Galaxy J2 no

But I can't find the way to accept the invitation....

@albfan
Copy link
Owner

albfan commented Jul 21, 2016

Wifi Direct is the way both devices see each other (create a net between them) but miracast is the protocol that uses that net and do the screen mirroring.

This is the screen where I start miracast protocol on my android

screen mirroring on android

You can install an app to take you to screen mirroring

https://play.google.com/store/apps/details?id=com.mattgmg.miracastwidget&hl=es

But some phones simply don't implement it. I can confirm for example on a samsung galaxy grand2. Where that link don't do anything at all (although it takes you to screen mirroring display).

@albfan
Copy link
Owner

albfan commented Nov 18, 2016

@laar789 seems fedora do not have enabled wifi p2p on wpa_supplicant. See #101 (comment)

@albfan albfan closed this as completed Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants