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 ../src/wifi/wifid-dbus.c:899) #289

Closed
yabb85 opened this issue Aug 25, 2018 · 8 comments

Comments

@yabb85
Copy link

yabb85 commented Aug 25, 2018

Hi,

I try to use miraclecast on fedora 28 with sytemd 238 and kernel 4.17.17.
I follow the build instruction and launch documentation.

After
systemctl stop NetworkManager.service
systemctl stop wpa_supplicant.service
and

sudo miracle-wifid &
The error is : ERROR: dbus: cannot claim org.freedesktop.miracle.wifi bus-name: -13 (manager_dbus_connect() in ../src/wifi/wifid-dbus.c:899)

with command
sudo miracle-wifid --log-level trace
the display is:
INFO: miracle-wifid - revision 1.0 Aug 25 2018 10:33:50
ERROR: dbus: cannot claim org.freedesktop.miracle.wifi bus-name: -13 (manager_dbus_connect() in ../src/wifi/wifid-dbus.c:899)
DEBUG: exiting.. (main() in ../src/wifi/wifid.c:591)

@albfan
Copy link
Owner

albfan commented Aug 25, 2018

Error 13 means permission denied

Install phase deploy a policy for dbus to allow miraclecast to access WiFi.

Did you install miraclecast? Maybe the path on fedora is different from the one miraclecast use

@yabb85
Copy link
Author

yabb85 commented Aug 25, 2018

Yes i have installed miraclecast in /usr/local/ (default path)
The syscondir=/etc
I find path /etc/dbus-1. Is it this repository?

@albfan
Copy link
Owner

albfan commented Aug 25, 2018

Yes. Checking a random package that uses dbus (bolt) https://fedora.pkgs.org/28/fedora-x86_64/bolt-0.3-1.fc28.x86_64.rpm.html seems that path is correct, as it installs "/etc/dbus-1/system.d/org.freedesktop.bolt.conf" there.

You should find there this file https://github.com/albfan/miraclecast/blob/master/res/org.freedesktop.miracle.conf

Another option is that you already has another old I stance of miraclecast running so second one cannot claim that dbus name (check with ps -ef | grep miracle and kill it if so)

@yabb85
Copy link
Author

yabb85 commented Aug 26, 2018

Thanks you after reboot and check all file it works.
in tutorial the steps 3 is: Enable visibility for other devices
how to enable visiblity please?

@yabb85
Copy link
Author

yabb85 commented Aug 26, 2018

after use another miracast device i can connect to with "connect" command.
But it display an error:

[miraclectl] # ERROR: supplicant: HUP on dhcp-comm socket on p2p-wlp2s0-2 (supplicant_group_comm_fn() in ../src/wifi/wifid-supplicant.c:247)
[FAIL] Peer: 24:da:9b:d8:b4:51@2 Reason: unknow

@albfan
Copy link
Owner

albfan commented Aug 26, 2018

You can connect using miracle-sinkctl, is that what you are trying?

@yabb85
Copy link
Author

yabb85 commented Aug 26, 2018

I try 2 mode.
The first method (sink):

$ sudo miracle-sinkctl
[ADD] Link: 2
[miraclectl] # run 2
[miraclectl] # list
  LINK INTERFACE                FRIENDLY-NAME                 
     2 wlp2s0                   tiwabit                       

  LINK PEER-ID                  FRIENDLY-NAME                  CONNECTED 
     2 xx:xx:xx:xx:xx:xx@2      [TV]Samsung LED48              no        
     2 xx:xx:xx:xx:xx:xx@2      XT1092_2f02                    no        

 2 peers and 1 links listed. 

=> i try to connect with my peripherical XT... and it display:

[GO NEG] Peer: xx:xx:xx:xx:xx:xx@2 Type: pbc PIN: 
[FAIL] Peer: xx:xx:xx:xx:xx:xx@2 Reason: unknown

I try also the second method (peer):

$ sudo miracle-wifictl
[ADD] Link: 2
[miraclectl] # p2p-scan 2
[ADD] Peer: xx:xx:xx:xx:xx:xx@2
[miraclectl] # list
  LINK INTERFACE                FRIENDLY-NAME                 
     2 wlp2s0                   tiwabit                       

  LINK PEER-ID                  FRIENDLY-NAME                  CONNECTED 
     2 xx:xx:xx:xx:xx:xx@2      XT1092_2f02                    no        

 1 peers and 1 links listed.
[miraclectl] # connect xx:xx:xx:xx:xx:xx@2

=> the connection is accepted on device but a new message is displayed on console

[FAIL] Peer: xx:xx:xx:xx:xx:xx@2 Reason: unknown
[miraclectl] # list
  LINK INTERFACE                FRIENDLY-NAME                 
     2 wlp2s0                   tiwabit                       

  LINK PEER-ID                  FRIENDLY-NAME                  CONNECTED 
     2 xx:xx:xx:xx:xx:xx@2      XT1092_2f02                    no        

 1 peers and 1 links listed.

@albfan
Copy link
Owner

albfan commented Sep 22, 2018

miracle-wifictl is not still usable, see #172.

About miracle-sinkctl, provide logs as in https://github.com/albfan/miraclecast/wiki/FAQ#log-for-support as seems something is ending your conection

The main problem is fixed. Please open new issues for new problems to help others to find responses to their problems.

@albfan albfan closed this as completed Sep 22, 2018
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

2 participants