First I removed old Unity8.log from .cache/upstart/ then I attached an external display with an HDMI cable, then I connected the power source to the adapter. Here's the log:
** Attachment added: "unity8.log" https://bugs.launchpad.net/ubuntu/+source/mir/+bug/1519235/+attachment/4533697/+files/unity8.log -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mir in Ubuntu. https://bugs.launchpad.net/bugs/1519235 Title: Nexus 4 - HDMI-Slimport adapter can't charge the phone and display the screen at the same time. Status in mir package in Ubuntu: Confirmed Bug description: I have a Nexus4 device and I bought a MyDP HDMI-SlimPort adapter, which is compatible with N4. But I can't charge my phone and display the screen on the external display at the same time. If I connect the charger the screen switches back to the device, If I disconnect the charger, the screen switches to the external display. It works well with Android. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mir/+bug/1519235/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp