Comment 7 for bug 1590135

Revision history for this message
Michael Sievers (mike+s) wrote : Re: BQ Aquaris M10 cannot successfully connect with LG WebOS SmartTV / Attempts to connect always time out

I have the same symptoms. Am trying to connect a BQ M10 with OTA-13 to a Microsoft Wireless Display Adapter and having only timeouts:

aethercastctl> scan
[CHG] Manager Scanning changed: true
Device 9a:5f:d3:ba:f6:f2 MSDisplayAdapter_F2 added
aethercastctl> connect 9a:5f:d3:ba:f6:f2
[CHG] Manager State changed: association
[CHG] Manager Scanning changed: false
[CHG] Manager State changed: configuration
Failed to connect with device: Timeout was reached
[CHG] Manager State changed: disconnected
[CHG] Manager State changed: idle

Looking at /var/log/syslog, I get the impression that it is a file permisson problem (lease file can't be created) or that apparmor is blocking the DHCP process:

Oct 20 15:30:16 ubuntu-phablet dhclient: DHCPREQUEST of 192.168.157.100 on p2p0
to 255.255.255.255 port 67 (xid=0x24353745)
Oct 20 15:30:16 ubuntu-phablet dhclient: DHCPOFFER of 192.168.157.100 from 192.1
68.157.1
Oct 20 15:30:16 ubuntu-phablet dhclient: DHCPACK of 192.168.157.100 from 192.168
.157.1
Oct 20 15:30:16 ubuntu-phablet dhclient: can't create /run/aethercast/dhclient-b
288-e425-ac76-e0af-p2p0.leases: Permission denied
Oct 20 15:30:16 ubuntu-phablet dhclient: bound to 192.168.157.100 -- renewal in
419807 seconds.
Oct 20 15:30:16 ubuntu-phablet kernel: [114896.700534] (0)[21159:dhclient]type=1
400 audit(1476970216.550:728): apparmor="DENIED" operation="open" profile="/sbin
/dhclient" name="/run/aethercast/dhclient-b288-e425-ac76-e0af-p2p0.leases" pid=2
1159 comm="dhclient" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0

After setting /run/aethercast/ to world-writable for testing:
 sudo chmod 777 /run/aethercast/

I got to a new error message:

Oct 20 15:48:47 ubuntu-phablet dhcpd: Can't create new lease file: Permission de
nied
Oct 20 15:48:47 ubuntu-phablet kernel: [116007.269469] (1)[22043:dhcpd]type=1400
 audit(1476971327.120:737): apparmor="DENIED" operation="mknod" profile="/usr/sb
in/dhcpd" name="/run/aethercast/dhcpd-af7c-12b4-43e0-c782-p2p0.leases.1476971327
" pid=22043 comm="dhcpd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0

I believe this points to a problem with directory rights and/or AppArmor configuration.

Hope this helps..

Best regards,
Michael