Fwd: Re: kwin display issue on librem5

Heather Ellsworth heather.ellsworth at puri.sm
Tue Mar 6 01:58:08 UTC 2018


On 03/04/2018 11:38 PM, Bhushan Shah wrote:
> Hello,
> 
> On Fri, Mar 02, 2018 at 10:43:28AM -0700, Heather Ellsworth wrote:
>>> So my questions for you are:
>>> * Do you have any idea what could be missing or causing the
>>> display_issue.jpg that could be fixed by exporting KWIN_COMPOSE?
> 
> This issue is due to kwin_wayland not using the zwp_linux_dmabuf
> interface yet.
> 
> See the following task: https://phabricator.kde.org/T8067 and the diffs
> attached with it.
> 
> In my opinion you should have a local kwin and kwayland packaging fork
> with patches attached to this tasks or wait for Plasma 5.13 release

Since PureOS is based on Debian buster, the versions of kwayland and
kwin I was running were:

kwayland 5.42.0-2
kwin 5.12.1-1

Using the patches attached to T8067...
1. I built and installed a kwayland 5.42.0-3 and kwin 5.12.1-2 from the
debian sources + the patches
2. rebooted for good measure
3. I uncommented the 'export QT_QPA_PLATFORM=wayland' line in the
plasma-phone script (so that it is back to the original version with no
changes)
4. Started kwin_wayland with:
$ kwin_wayland --drm plasma-phone

I can confirm that the patches remove the bad display issue and the
display looks great!!

When will the Plasma 5.13 release be ready? I can carry them in a fork
but I'd like to be working ideally off of packages included in Debian,
or at least the patched kwin and kwayland repos.

> 
>>> * Do you know how to make the mouse cursor show up?
> 
> There is two bugs, and workaround:
> 
> - https://bugs.kde.org/show_bug.cgi?id=391412 : due to this, if hardware
>   doesn't provide the cursor plane it never fallbacks to software
>   cursor.
> - However, this is more interesting
>     - KWin calls : output->initCursor(m_cursorSize)
>     - initCursor calls DrmBuffer::map
>     - But somehow map function is failing internally, but returns true
>       anyway.
>     - Through gdb session if we break on DrmOutput::initCursor() and
>       make it return false early, it initalizes the software cursor
>       correctly.
>     - Which makes me believe either there is something wrong in
>       DrmBuffer::map and/or the DRM driver.
> 
> The solution is to ofcourse fix a bug.. but other then that, as a
> workaround you can enable track mouse effect and press Ctrl+Meta to make
> it show a "circle" around mouse cursor position.

I can confirm that Ctrl+super does indeed show a circle where the mouse
pointer is.

> 
> https://files.kde.org/plasma/kwin/effect-videos/track_mouse.mp4
> 
> You can add following line under [Plugins] section in ~/.config/kwinrc
> 
> trackmouseEnabled=true

I've also added this to my kwinrc.
Thanks so much for all of your help!!

Cheers,
Heather

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180305/d3e2b08f/attachment.sig>


More information about the Plasma-devel mailing list