Re: xrandr and xwayland

2021-08-02 Thread Pekka Paalanen
On Fri, 30 Jul 2021 23:30:38 +0100
Carsten Haitzler  wrote:

> On Fri, 30 Jul 2021 16:28:02 + David Deyo  said:
> 
> No - this is up to the compositor itself to do in its own internal ways. Far
> too many abuses have happened over the years with xrandr available to any
> client anywhere. While in theory a wayland compositor could create an 
> extension
> that works like xrandr, it'd be problematic to make it general-access like
> xrandr.

Indeed.

> > 
> > Hello  everyone,
> > 
> > I need to rotate  my screen 90 degrees and back to normal in xwayland on an
> > iMX8 running gatesgarth distro.

Maybe you could explain your top-level use case for this, and the
general system architecture (which relevant programs are running and
what their responsibilities are)?

Quite likely the solution will start by removing Xwayland from the
equation, and to have the compositor you use to automatically apply
that rotation when needed, but how to achieve that depends on your use
case. Can the compositor do it all on its own, does the client need to
synchronise to the orientation change, does the client need to drive
the orientation change, etc.

Also sounds like this might not be a normal desktop system you are
working on, which means you have more options on how to design this
than on normal desktop systems with arbitrary applications.


Thanks,
pq

> > 
> > Does anyone know if xrandr can be coerced/modified to make rotations work?
> > I’m in the middle of xserver, libX11, libxrandr and xrandr source.
> > 
> > How would a client communicating to Xwayland as the xserver request a
> > rotation?  Does Xwayland listen to a unix socket and pass commands on to the
> > kernel?
> > 
> > (Thanks Hans,)
> > 
> > -dwd
> >  
> > David


pgpApSQdWW8TI.pgp
Description: OpenPGP digital signature


Client-driven orientation change in Weston

2021-08-02 Thread Guillermo Rodriguez Garcia
Hi,

I am asking this because I saw the following from Pekka Paalanen in another
thread:

> [...] Can the compositor do it all on its own, does the client need to
synchronise to the orientation change, does the client need to drive
the orientation change, etc.

In Weston I am currently controlling the orientation via transform=xxx in
the .ini file.

Is it possible to drive this change dynamically from the client instead?

BR,

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com


Re: Client-driven orientation change in Weston

2021-08-02 Thread Marius Vlad
On Mon, Aug 02, 2021 at 10:58:39AM +0200, Guillermo Rodriguez Garcia wrote:
> Hi,
Hi,
> 
> I am asking this because I saw the following from Pekka Paalanen in another
> thread:
> 
> > [...] Can the compositor do it all on its own, does the client need to
> synchronise to the orientation change, does the client need to drive
> the orientation change, etc.
> 
> In Weston I am currently controlling the orientation via transform=xxx in
> the .ini file.
> 
> Is it possible to drive this change dynamically from the client instead?
It is, we have a sort-of working WIP for it, with the help of a private
protocol [1]. With that there's also a simple client that can request an
output rotation, interactively, as well as using an accelerometer that
detects an orientation change and uses that protocol to signal it. 
More details could be find at [2]. Note, that is still need of a polish,
but should work with regular wayland clients.

[1] 
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/480/diffs?commit_id=09d7a79a9a18ab48317833680d550a483a5c92b4
[2] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/480
> 
> BR,
> 
> Guillermo Rodriguez Garcia
> guille.rodrig...@gmail.com


signature.asc
Description: PGP signature


[ANNOUNCE] libinput 1.18.1

2021-08-02 Thread Peter Hutterer
libinput 1.18.1 is now available. This release only adds device-specific
quirks, no other changes to the library.

Kevin Anderson (1):
  quirks: add Framework Touchpad Quirk

Mohamed Elsharnouby (1):
  quirks: add pressure range for Dell Latitude 7480

Peter Hutterer (3):
  quirks: add a quirk for the Huawei Matebook 2020 touchpad
  quirks: add a quirk for the X61 bezel buttons
  libinput 1.18.1

Quytelda Kahja (2):
  quirks: Add tablet smoothing attribute.
  Add section for Lenovo Yoga C930 tablet in 50-system-lenovo.quirks.

Sanjiv (1):
  Update quirks/50-system-chuwi.quirks

The_Observer (1):
  quirks: add a quirk for the Purism Librem 14v1

Thomas Stenhouse-Pyne (1):
  quirks: add volume rocker quirk for Lenovo Duet 7i

satrmb (1):
  quirks: Chuwi AeroBook Plus has a clickpad falsely claiming to have 
BTN_RIGHT

git tag: 1.18.1

https://www.freedesktop.org/software/libinput/libinput-1.18.1.tar.xz
SHA256: 9ca14021fbc2523bc0610582c51f368321592040b6ca63becc2fa1ea11f1a7cb  
libinput-1.18.1.tar.xz
SHA512: 
450e38c0f8245aa0165a8047d25aebee646332f0f2ed442bb2d1bd3e723c2082b6d00d6e3bda308981ece8e29b5cddbd56eab900d2b7497705a45fc27b281828
  libinput-1.18.1.tar.xz
PGP:  https://www.freedesktop.org/software/libinput/libinput-1.18.1.tar.xz.sig



signature.asc
Description: PGP signature