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

[xenial] wireless external display - not connecting #781

Open
luksus42 opened this Issue Jul 19, 2018 · 31 comments

Comments

Projects
None yet
10 participants
@luksus42
Copy link

luksus42 commented Jul 19, 2018

  • Device: FP2
  • Channel: 16.04/RC
  • Build: 16.04 (2018-W29)

Steps to reproduce

Switch "External Display"-setting on. Go Into "wireless display devices".
Wait until it finds your display and then tap on it, to initiate the connection process.

Expected behavior

After a short connecting-period, the external display should show the ubuntu desktop.

Actual behavior

The phone states it is connecting.
The external display is displaying that it is connecting.
After 5 seconds the phone states that it is not connected.
The ext. display is trying to connect for further 10 seconds, then does nothing.

Sometimes the phone shows a message that there was an error while connecting.
I believe that's the case, when I switch off the "External Display" switch, while the display is trying to connect, but the phone already stated, that it is not connected.

Logfiles and additional information

Display: LG LARGO (PF1500) projector.
Used to work with 15.04 ubports image.

The only relevant log I could find, was in application-ubuntu-system-settings-.log:
http://paste.ubuntu.com/p/GNTyyRv43t
The part of it:

file:///usr/share/ubuntu/settings/system/qml-plugins/brightness/WifiDisplays.qml:61:5: QML Flickable: Binding loop detected for property "contentHeight"
file:///usr/share/ubuntu/settings/system/qml-plugins/brightness/WifiDisplays.qml:148:26: QML Item: Binding loop detected for property "width"

@UniversalSuperBox

This comment has been minimized.

Copy link
Member

UniversalSuperBox commented Aug 5, 2018

A community member has confirmed that this bug does NOT occur with the FP2 connecting to the Microsoft Wireless Display Adapter. It seems like this bug does not affect ALL wireless display casting, just the LG PF1500 projector.

@nfsprodriver

This comment has been minimized.

Copy link
Member

nfsprodriver commented Aug 8, 2018

Shouldn't we delay it to e.g. OTA5?

@Ingo-FP-Angel

This comment has been minimized.

Copy link
Collaborator

Ingo-FP-Angel commented Aug 13, 2018

  • Device: FP2
  • Channel: 16.04/devel
  • Build: 16.04 (2018-08-11)

I can confirm this for a Samsung BD-J5500 Blu-Ray player: after initiating the connection, the phone shows "not connected" and the player continues for a couple of seconds showing "connecting..."
It used to work with 15.04 (albeit freezing after a handful of seconds reproducibly).

At work we have some videoconferencing/presentation platform that supports WiFi direct as well. There the connection attempt fails immediately.

@UniversalSuperBox

This comment has been minimized.

Copy link
Member

UniversalSuperBox commented Aug 14, 2018

This issue leaves us with a bit of a pickle:

  1. The tested and """certified""" devices currently at Touch/DisplayCasting on the Ubuntu Wiki are still reported to work by community members. Most (read: 99.99% of) devices do not correctly implement the Miracast/WiDi/(proprietary name for streaming video over Wi-Fi Direct) standard and may need specific tweaks tailored to them and added to the Wireless Display server. That was the primary reason behind Canonical maintaining the list on the Ubuntu Wiki.
  2. The devices that are reported to work in 15.04 may have already had issues (screen freezing, poor connection) and 16.04 broke them all the way.
  3. Developers with enough experience to try their hand at fixing this issue likely do not have a previously working device and a Fairphone. Those with one likely do not want to purchase the other.

For all of these reasons, I'm removing this from the 16.04 backlog milestone. I feel that it may be infeasible to add this to another milestone until point 3 above can be resolved.

@UniversalSuperBox UniversalSuperBox removed this from the 16.04 Backlog milestone Aug 14, 2018

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 11, 2018

@UniversalSuperBox
I discovered a possible fix as described here: https://bugs.launchpad.net/aethercast/+bug/1590135/comments/8.
By disabling apparmor I am able to connect succesfully to my LG Projector (also with webOs, how described in that bug report).

They also seem to fixed that problem in the latest canonical OTA's of ubuntu touch. Perhaps this can be adapted for ubports.

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 19, 2018

@UniversalSuperBox
So I provided a possible fix ^^. As I assume, some guys of the core-team should have both devices (i.e. N5 and FP2), and could test if this doesn't break anything. Right? :-)

@Flohack74

This comment has been minimized.

Copy link
Member

Flohack74 commented Sep 19, 2018

I am sorry to say but I got both devices, but no compatible hardware to test it ;)

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 19, 2018

Meh...
Ok, if it fails on that, I would be willing to donate an MS Wireless Dongle v2 to you.

@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 19, 2018

Part of the fix is in ubports/aethercast#2

The Canonical silo in Bileto has some more changes, on the isc-dhcp package that we don't have in Ubports and which doesn't seem to be in Launchpad either. It looks like it comes straight from Debian, so I'm not so sure how to proceed on that one.

I'll see if the Debian package has already been fixed and, if not, I'll file a bug. But I don't know the right procedure to bring the fix into Ubports, without having to wait for Debian.

@Flohack74

This comment has been minimized.

Copy link
Member

Flohack74 commented Sep 19, 2018

Simple we fork it and keep a tracking branch up2date with Debian. If it is only a small fix this will not be too much work. Is it a package which is in the normal Ubuntu distro?

@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 19, 2018

Yes, it's actually in main:

$ apt-cache policy isc-dhcp-server
isc-dhcp-server:
  Installed: (none)
  Candidate: 4.3.3-5ubuntu12.10
  Version table:
     4.3.3-5ubuntu12.10 500
        500 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     4.3.3-5ubuntu12.9 500
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     4.3.3-5ubuntu12 500
        500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 19, 2018

I filed a bug on the Ubuntu package, but meanwhile we should do as @Flohack74 says. I just don't know how to do it with the tracking branch :-)

To my understanding, the repository that we want to clone and track is this one from Xenial updates (please correct me if you think I'm wrong), and the change that we want to apply on top of it if the first chunk from this diff.

@Flohack74

This comment has been minimized.

Copy link
Member

Flohack74 commented Sep 19, 2018

LOL OT its a Git repo? Where is Bazaar xD

@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 19, 2018

Yes, they've switched to git in 2017 :-)

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 20, 2018

Okay, I got lost in this conversation about the best way of getting aethercast up to date... ;-)

Is there something I could do right now?

@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 20, 2018

In about one hour a new rootfs image should be released (look at https://ci.ubports.com/job/xenial-rootfs-armhf/ to see when this actually happens), and that should include the aethercast changes which we merged yesterday -- essentially the same changes that you also contributed. Please try it out once it's ready, and let us know if that solves the issue.

If it doesn't, then we need also to prepare a similar patch for isc-dhcp, and that's the thing we were discussing above. But first let's see if we are lucky with the first part only :-)

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 20, 2018

Ok, I can test it tonight. As I do this the first time, I assume I have to download the ubports-touch.rootfs-xenial-armhf.tar.gz file and push it with adb to the phone? Or something else?

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 20, 2018

Hm, that does not seem to have changed anything. :-(
Tested with 16.04/devel build-number: 2018-09-20/2
But it still works with disabled apparmor.

@mardy
I just read the description of the original fix here: https://bileto.ubuntu.com/#/ticket/2162

Fixup AppArmor rules for aethercast
Somehow the rules parser doesn't understand
/{,var/}run/aethercast/dhclient*.leases lrw,
and we need to have an explicit
/run/aethercast/dhclient*.leases lrw,
in there to get the lease files correctly created.

In the the vivid diffs there is this explicit line /run/aethercast/dhclient*.leases lrw,, but in xenial diffs it's missing. Is it because ut was based on vivid and they didn't wanted to break anything for xenial?
Should we try to add this line, too?

@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 22, 2018

@luksus42 would you be able to make your image writable (you can use the phablet-config writable-image command from your PC) and try adding the

 /{,var/}run/aethercast/dhclient*.leases lrw,

to the /etc/apparmor.d/sbin.dhclient file, then reboot and see if that helps?
If you still got errors, could you please attach the syslog?

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 22, 2018

ahh, thanks for that advice, I thought I need to build aethercast to test this.
I give it a try.

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 22, 2018

It works. Needed to reboot after modifying.
What I don't understand: Should this athercast-lines not already be present in this file?

@mardy

This comment has been minimized.

Copy link
Member

mardy commented Sep 22, 2018

So, the story is the following: in the overlay PPA which we were using till a few months ago, Canonical had uploaded a version of isc-dhcp which indeed had those lines. For some reason, they never contributed these changes to the main Ubuntu package, so when we stopped using the overlay PPA we also lost those changes. I've now asked @tsimonq2 if he can sponsor them back into the main Ubuntu package, so that we won't have this issue in the future.

@luksus42

This comment has been minimized.

Copy link
Author

luksus42 commented Sep 22, 2018

Great, thank you.

@delijati

This comment has been minimized.

Copy link

delijati commented Nov 1, 2018

it it not writing to the right path:

[DD 2018-11-01 11:31:37] [service.cpp:468@Connect] address 02:0c:43:e9:58:07
[DD 2018-11-01 11:31:37] [networkmanager.cpp:307@Connect] address 02:0c:43:e9:58:07
[DD 2018-11-01 11:31:37] [p2pdevicestub.cpp:385@StopFind] 
[DD 2018-11-01 11:31:37] [p2pdevicestub.cpp:404@Connect] 
[DD 2018-11-01 11:31:37] [p2pdevicestub.cpp:409@Connect] path /fi/w1/wpa_supplicant1/Interfaces/9/Peers/020c43e95807
[DD 2018-11-01 11:31:37] [p2pdevicestub.cpp:413@Connect] Using GO intent 0
[DD 2018-11-01 11:31:37] [service.cpp:386@OnDeviceStateChanged] Device state changed: address 02:0c:43:e9:58:07 new state association
[DD 2018-11-01 11:31:37] [service.cpp:339@AdvanceState] new state association current state idle
[DD 2018-11-01 11:31:37] [networkmanager.cpp:252@StartConnectTimeout] 
[DD 2018-11-01 11:31:37] [unitydisplaylock.cpp:79@operator()] Successfully locked display (cookie 7)
[DD 2018-11-01 11:31:39] [p2pdevicestub.cpp:155@OnDeviceFound] Found device /fi/w1/wpa_supplicant1/Interfaces/9/Peers/020c43e95807
[DD 2018-11-01 11:31:39] [p2pdevicestub.cpp:179@OnGONegotiationSuccess] 
[DD 2018-11-01 11:31:39] [managerstub.cpp:91@OnInterfaceAdded] path /fi/w1/wpa_supplicant1/Interfaces/23
[DD 2018-11-01 11:31:43] [p2pdevicestub.cpp:247@OnGroupStarted] 
[DD 2018-11-01 11:31:43] [networkmanager.cpp:550@OnGroupStarted] group /fi/w1/wpa_supplicant1/Interfaces/23/Groups/UR interface /fi/w1/wpa_supplicant1/Interfaces/23 role client
[DD 2018-11-01 11:31:43] [service.cpp:386@OnDeviceStateChanged] Device state changed: address 02:0c:43:e9:58:07 new state configuration
[DD 2018-11-01 11:31:43] [service.cpp:339@AdvanceState] new state configuration current state association
[DD 2018-11-01 11:31:43] [networkmanager.cpp:765@OnGroupInterfaceReady] Enabled WiFi driver miracast mode
[DD 2018-11-01 11:31:43] [processexecutor.cpp:42@FinalizeConstruction] Running with: /sbin/dhclient -d -v -4 -lf /run/aethercast/dhclient-66f1-4c2c-8c4c-2c68-p2p-wlan0-6.leases p2p-wlan0-6
[DD 2018-11-01 11:31:43] [p2pdevicestub.cpp:133@operator()] Successfully setup P2P device proxy
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

can't create /run/aethercast/dhclient-66f1-4c2c-8c4c-2c68-p2p-wlan0-6.leases: Permission denied
Listening on LPF/p2p-wlan0-6/b2:aa:33:88:08:88
Sending on   LPF/p2p-wlan0-6/b2:aa:33:88:08:88
Sending on   Socket/fallback
DHCPDISCOVER on p2p-wlan0-6 to 255.255.255.255 port 67 interval 3 (xid=0x3c283467)
DHCPREQUEST of 192.168.49.227 on p2p-wlan0-6 to 255.255.255.255 port 67 (xid=0x6734283c)
DHCPOFFER of 192.168.49.227 from 192.168.49.1
DHCPACK of 192.168.49.227 from 192.168.49.1
can't create /run/aethercast/dhclient-66f1-4c2c-8c4c-2c68-p2p-wlan0-6.leases: Permission denied
bound to 192.168.49.227 -- renewal in 31662 seconds.
@delijati

This comment has been minimized.

Copy link

delijati commented Nov 1, 2018

After #781 (comment) i get a successful connect but the screen is black (external) and it disconnects after some couple of seconds.

Device: Wecast e68

Log:

[DD 2018-11-01 11:50:42] [networkmanager.cpp:133@Initialize] Successfully initialized
[DD 2018-11-01 11:50:42] [managerstub.cpp:91@OnInterfaceAdded] path /fi/w1/wpa_supplicant1/Interfaces/1
[DD 2018-11-01 11:50:42] [interfaceselector.cpp:87@TryNextInterface] Looking at /fi/w1/wpa_supplicant1/Interfaces/1
[DD 2018-11-01 11:50:43] [interfaceselector.cpp:116@operator()] Found interface which supports P2P
[DD 2018-11-01 11:50:43] [networkmanager.cpp:636@OnInterfaceSelectionDone] Found P2P interface /fi/w1/wpa_supplicant1/Interfaces/1
[DD 2018-11-01 11:50:43] [networkmanager.cpp:685@ConfigureFromCapabilities] device type 0 session availability 1
[DD 2018-11-01 11:50:43] [p2pdevicestub.cpp:133@operator()] Successfully setup P2P device proxy
[DD 2018-11-01 11:50:43] [networkmanager.cpp:445@OnP2PDeviceReady] 
[DD 2018-11-01 11:50:43] [p2pdevicestub.cpp:476@Flush] 
[DD 2018-11-01 11:50:43] [p2pdevicestub.cpp:535@SetDeviceConfiguration] name bacon device type 000A0050F2040005



[DD 2018-11-01 11:53:01] [p2pdevicestub.cpp:347@Find] timeout 30
[II 2018-11-01 11:53:01] [controllerskeleton.cpp:229@OnHandleScan] Scanning for remote devices
[DD 2018-11-01 11:53:02] [p2pdevicestub.cpp:155@OnDeviceFound] Found device /fi/w1/wpa_supplicant1/Interfaces/1/Peers/32cda7b23e86
[DD 2018-11-01 11:53:02] [p2pdevicestub.cpp:155@OnDeviceFound] Found device /fi/w1/wpa_supplicant1/Interfaces/1/Peers/020c43e95807
[DD 2018-11-01 11:53:02] [controllerskeleton.cpp:90@OnDeviceFound] device 32:cd:a7:b2:3e:86
[DD 2018-11-01 11:53:02] [controllerskeleton.cpp:90@OnDeviceFound] device 02:0c:43:e9:58:07
[DD 2018-11-01 11:53:04] [service.cpp:468@Connect] address 02:0c:43:e9:58:07
[DD 2018-11-01 11:53:04] [networkmanager.cpp:307@Connect] address 02:0c:43:e9:58:07
[DD 2018-11-01 11:53:04] [p2pdevicestub.cpp:385@StopFind] 
[DD 2018-11-01 11:53:04] [p2pdevicestub.cpp:404@Connect] 
[DD 2018-11-01 11:53:04] [p2pdevicestub.cpp:409@Connect] path /fi/w1/wpa_supplicant1/Interfaces/1/Peers/020c43e95807
[DD 2018-11-01 11:53:04] [p2pdevicestub.cpp:413@Connect] Using GO intent 0
[DD 2018-11-01 11:53:04] [service.cpp:386@OnDeviceStateChanged] Device state changed: address 02:0c:43:e9:58:07 new state association
[DD 2018-11-01 11:53:04] [service.cpp:339@AdvanceState] new state association current state idle
[DD 2018-11-01 11:53:04] [networkmanager.cpp:252@StartConnectTimeout] 
[DD 2018-11-01 11:53:04] [unitydisplaylock.cpp:79@operator()] Successfully locked display (cookie 1)
[DD 2018-11-01 11:53:07] [p2pdevicestub.cpp:179@OnGONegotiationSuccess] 
[DD 2018-11-01 11:53:07] [managerstub.cpp:91@OnInterfaceAdded] path /fi/w1/wpa_supplicant1/Interfaces/3
[DD 2018-11-01 11:53:11] [p2pdevicestub.cpp:247@OnGroupStarted] 
[DD 2018-11-01 11:53:11] [networkmanager.cpp:550@OnGroupStarted] group /fi/w1/wpa_supplicant1/Interfaces/3/Groups/nZ interface /fi/w1/wpa_supplicant1/Interfaces/3 role client
[DD 2018-11-01 11:53:11] [service.cpp:386@OnDeviceStateChanged] Device state changed: address 02:0c:43:e9:58:07 new state configuration
[DD 2018-11-01 11:53:11] [service.cpp:339@AdvanceState] new state configuration current state association
[DD 2018-11-01 11:53:11] [networkmanager.cpp:765@OnGroupInterfaceReady] Enabled WiFi driver miracast mode
[DD 2018-11-01 11:53:11] [processexecutor.cpp:42@FinalizeConstruction] Running with: /sbin/dhclient -d -v -4 -lf /run/aethercast/dhclient-ead4-e908-7c3d-ef4a-p2p-wlan0-0.leases p2p-wlan0-0
[DD 2018-11-01 11:53:11] [p2pdevicestub.cpp:133@operator()] Successfully setup P2P device proxy
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/p2p-wlan0-0/b2:aa:33:88:08:88
Sending on   LPF/p2p-wlan0-0/b2:aa:33:88:08:88
Sending on   Socket/fallback
DHCPDISCOVER on p2p-wlan0-0 to 255.255.255.255 port 67 interval 3 (xid=0x80acca21)
DHCPREQUEST of 192.168.49.227 on p2p-wlan0-0 to 255.255.255.255 port 67 (xid=0x21caac80)
DHCPOFFER of 192.168.49.227 from 192.168.49.1
DHCPACK of 192.168.49.227 from 192.168.49.1
bound to 192.168.49.227 -- renewal in 33750 seconds.
[DD 2018-11-01 11:53:12] [networkmanager.cpp:604@OnDhcpAddressAssigned] local 192.168.49.227 remote 192.168.49.1
[DD 2018-11-01 11:53:12] [networkmanager.cpp:294@StopConnectTimeout] 
[DD 2018-11-01 11:53:12] [networkmanager.cpp:685@ConfigureFromCapabilities] device type 0 session availability 0
[DD 2018-11-01 11:53:12] [service.cpp:386@OnDeviceStateChanged] Device state changed: address 02:0c:43:e9:58:07 new state connected
[DD 2018-11-01 11:53:12] [service.cpp:339@AdvanceState] new state connected current state configuration
[DD 2018-11-01 11:53:12] [networkmanager.cpp:419@LocalAddress] address 192.168.49.227
[DD 2018-11-01 11:53:12] [sourcemanager.cpp:100@Setup] Successfully setup source on 192.168.49.227:7236 and awaiting incoming connection requests
[DD 2018-11-01 11:53:12] [sourcemanager.cpp:112@OnNewConnection] 
[DD 2018-11-01 11:53:12] [mediamanagerfactory.cpp:65@CreateSource] Creating source media manager of type mir
[DD 2018-11-01 11:53:12] [basesourcemediamanager.cpp:94@InitOptimalVideoFormat] Sink native resolution:
[DD 2018-11-01 11:53:12] [videoformat.cpp:244@DumpNativeFormat]  resolution type: CEA
[DD 2018-11-01 11:53:12] [videoformat.cpp:247@DumpNativeFormat] resolution: 640x480p60
[DD 2018-11-01 11:53:12] [basesourcemediamanager.cpp:97@InitOptimalVideoFormat] Sink supports the following codecs:
[DD 2018-11-01 11:53:12] [videoformat.cpp:211@DumpVideoCodec]  profile: chp
[DD 2018-11-01 11:53:12] [videoformat.cpp:212@DumpVideoCodec]  level: 4.1
[DD 2018-11-01 11:53:12] [videoformat.cpp:214@DumpVideoCodec]  CEA resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   640x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   720x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   720x576p50
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1920x1080p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p25
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1920x1080p25
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p24
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1920x1080p24
[DD 2018-11-01 11:53:12] [videoformat.cpp:219@DumpVideoCodec]  VESA resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   800x600p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1024x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1152x864p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1280x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1280x800p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1360x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1366x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1280x1024p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1400x1050p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1440x900p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1600x900p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1600x1200p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1680x1024p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1680x1050p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1920x1200p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:224@DumpVideoCodec]  HH resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   800x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   800x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   854x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   854x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   864x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   864x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   640x360p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   640x360p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   960x540p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   960x540p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   848x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   848x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:211@DumpVideoCodec]  profile: cbp
[DD 2018-11-01 11:53:12] [videoformat.cpp:212@DumpVideoCodec]  level: 4.1
[DD 2018-11-01 11:53:12] [videoformat.cpp:214@DumpVideoCodec]  CEA resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   640x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   720x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   720x576p50
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1920x1080p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p25
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1920x1080p25
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p24
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1920x1080p24
[DD 2018-11-01 11:53:12] [videoformat.cpp:219@DumpVideoCodec]  VESA resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   800x600p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1024x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1152x864p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1280x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1280x800p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1360x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1366x768p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1280x1024p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1400x1050p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1440x900p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1600x900p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1600x1200p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1680x1024p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1680x1050p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:222@DumpVideoCodec]   1920x1200p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:224@DumpVideoCodec]  HH resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   800x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   800x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   854x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   854x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   864x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   864x480p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   640x360p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   640x360p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   960x540p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   960x540p60
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   848x480p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:227@DumpVideoCodec]   848x480p60
[DD 2018-11-01 11:53:12] [basesourcemediamanager.cpp:83@GetH264VideoCodecs] Video codecs supported by us:
[DD 2018-11-01 11:53:12] [videoformat.cpp:211@DumpVideoCodec]  profile: cbp
[DD 2018-11-01 11:53:12] [videoformat.cpp:212@DumpVideoCodec]  level: 3.1
[DD 2018-11-01 11:53:12] [videoformat.cpp:214@DumpVideoCodec]  CEA resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p30
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p25
[DD 2018-11-01 11:53:12] [videoformat.cpp:217@DumpVideoCodec]   1280x720p24
[DD 2018-11-01 11:53:12] [videoformat.cpp:219@DumpVideoCodec]  VESA resolutions: 
[DD 2018-11-01 11:53:12] [videoformat.cpp:224@DumpVideoCodec]  HH resolutions: 
[DD 2018-11-01 11:53:12] [basesourcemediamanager.cpp:118@InitOptimalVideoFormat] Found optimal video format:
[DD 2018-11-01 11:53:12] [videoformat.cpp:231@DumpVideoFormat]  profile: cbp
[DD 2018-11-01 11:53:12] [videoformat.cpp:232@DumpVideoFormat]  level: 3.1
[DD 2018-11-01 11:53:12] [videoformat.cpp:233@DumpVideoFormat]  resolution type: CEA
[DD 2018-11-01 11:53:12] [videoformat.cpp:236@DumpVideoFormat] resolution: 1280x720p24
[DD 2018-11-01 11:53:12] [udpstream.cpp:59@Connect] Connected with remote on 192.168.49.1:15550
[DD 2018-11-01 11:53:12] [sourcemediamanager.cpp:73@Configure] dimensions: 1280x720@24
[DD 2018-11-01 11:53:12] [screencast.cpp:57@Setup] Setting up screencast [extend 1280x720]
[II 2018-11-01 11:53:12] [screencast.cpp:122@Setup] Selected output ID 0 [(1920x1080)+(1080x0)] orientation 0
[DD 2018-11-01 11:53:12] [h264encoder.cpp:182@Configure] configuring with 1280x720@24
library "libstagefright_soft_hevcdec.so" not found
[DD 2018-11-01 11:53:13] [h264encoder.cpp:296@Configure] Configured encoder succesfully
[DD 2018-11-01 11:53:13] [sourcemediamanager.cpp:151@Play] 
[DD 2018-11-01 11:53:13] [h264encoder.cpp:325@OnSourceStart] 
[DD 2018-11-01 11:53:13] [streamrenderer.cpp:104@Start] Everything successfully setup; Starting recording now 1280x720@24
[DD 2018-11-01 11:53:13] [threadedexecutor.cpp:39@ThreadWorker] Started threaded executor H264Encoder
[DD 2018-11-01 11:53:13] [threadedexecutor.cpp:39@ThreadWorker] Started threaded executor MediaSender
[DD 2018-11-01 11:53:13] [threadedexecutor.cpp:39@ThreadWorker] Started threaded executor RTPSender
[DD 2018-11-01 11:53:13] [threadedexecutor.cpp:39@ThreadWorker] Started threaded executor StreamRenderer
[DD 2018-11-01 11:53:14] [mpegtspacketizer.cpp:153@Finalize] 
[WW 2018-11-01 11:53:15] [mpegtspacketizer.cpp:662@Packetize] Reset PES packet length to 0
[WW 2018-11-01 11:53:41] [mpegtspacketizer.cpp:662@Packetize] Reset PES packet length to 0
[WW 2018-11-01 11:53:46] [mpegtspacketizer.cpp:662@Packetize] Reset PES packet length to 0
[WW 2018-11-01 11:53:46] [mpegtspacketizer.cpp:662@Packetize] Reset PES packet length to 0
[DD 2018-11-01 11:53:56] [p2pdevicestub.cpp:281@OnGroupFinished] interface /fi/w1/wpa_supplicant1/Interfaces/3 group /fi/w1/wpa_supplicant1/Interfaces/3/Groups/nZ
[DD 2018-11-01 11:53:56] [networkmanager.cpp:569@OnGroupFinished] group /fi/w1/wpa_supplicant1/Interfaces/3/Groups/nZ interface /fi/w1/wpa_supplicant1/Interfaces/3
[DD 2018-11-01 11:53:56] [networkmanager.cpp:490@AdvanceDeviceState] Disabled WiFi driver miracast mode
[DD 2018-11-01 11:53:56] [networkmanager.cpp:685@ConfigureFromCapabilities] device type 0 session availability 1
[DD 2018-11-01 11:53:56] [service.cpp:386@OnDeviceStateChanged] Device state changed: address 02:0c:43:e9:58:07 new state disconnected
[DD 2018-11-01 11:53:56] [service.cpp:339@AdvanceState] new state disconnected current state connected
[EE 2018-11-01 11:53:56] [h264encoder.cpp:465@Execute] Failed to read a new buffer from encoder
[DD 2018-11-01 11:53:56] [h264encoder.cpp:333@OnSourceStop] 
[DD 2018-11-01 11:53:56] [screencast.cpp:38@~Screencast] 
[DD 2018-11-01 11:53:56] [managerstub.cpp:105@OnInterfaceRemoved] path /fi/w1/wpa_supplicant1/Interfaces/3
[DD 2018-11-01 11:53:56] [networkmanager.cpp:718@OnManagerInterfaceRemoved] path /fi/w1/wpa_supplicant1/Interfaces/3
[DD 2018-11-01 11:53:56] [unitydisplaylock.cpp:113@operator()] Successfully unlocked display
[DD 2018-11-01 11:54:01] [service.cpp:339@AdvanceState] new state idle current state disconnected
[DD 2018-11-01 11:54:05] [p2pdevicestub.cpp:347@Find] timeout 30
[II 2018-11-01 11:54:05] [controllerskeleton.cpp:229@OnHandleScan] Scanning for remote devices

@Ingo-FP-Angel

This comment has been minimized.

Copy link
Collaborator

Ingo-FP-Angel commented Nov 25, 2018

After adding mardy's suggested line to the apparmor config, I was able to connect my FP2 to a Samsung BD-J5500 Blu-Ray player.

But then I was back at the problem I already had with 15.04: the screen freezes after maybe 10s or so.

Edit: with a Polycom videoconferencing solution at work all works well.

@delijati

This comment has been minimized.

Copy link

delijati commented Nov 25, 2018

@TartanSpartan

This comment has been minimized.

Copy link

TartanSpartan commented Jan 12, 2019

Confirmed on turbo, Stable, OTA-7. Sink device: Microsoft Display Adapter V2. Neither the GUI option from settings nor aethercastctl from CLI will allow this. Of course, my M10 on OTA-3 still works for both wireless and wired connections.

What is the status of this bug? Can the fixes with the patched apparmor profile etc please be merged into the system image for OTA-8?

@Ingo-FP-Angel

This comment has been minimized.

Copy link
Collaborator

Ingo-FP-Angel commented Jan 12, 2019

As I update quite frequently on the devel channel I grew tired of applying the change manually each time, so I wrote a script I now have in /home/phablet and run after each update: https://gist.github.com/Ingo-FP-Angel/905c5655511435b0ded2eb354dab538b
Might help other, too, until this is fixed permanently.

@TartanSpartan

This comment has been minimized.

Copy link

TartanSpartan commented Feb 10, 2019

@Flohack74 can this fix please be officially integrated into Ubuntu Touch for an upcoming OTA, so that all users may benefit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.