Re: [PATCH 0/6] drm: Add mouse cursor hotspot support to atomic KMS

2022-06-11 Thread Hans de Goede
Hi,

On 6/10/22 14:53, Simon Ser wrote:
> On Friday, June 10th, 2022 at 14:36, Gerd Hoffmann  wrote:
> 
>> Hi,
>>
 As Pekka mentionned, I'd also like to have a conversation of how far we 
 want to
 push virtualized driver features. I think KMS support is a good feature to 
 have
 to spin up a VM and have all of the basics working. However I don't think 
 it's
 a good idea to try to plumb an ever-growing list of fancy features
 (seamless integration of guest windows into the host, HiDPI, multi-monitor,
 etc) into KMS. You'd just end up re-inventing Wayland or RDP on top of KMS.
 Instead of re-inventing these, just use RDP or waypipe or X11 forwarding
 directly.
>>
 So I think we need to draw a line somewhere, and decide e.g. that 
 virtualized
 cursors are fine to add in KMS, but HiDPI is not.
>>
>>
>> What is the problem with HiDPI? qemu generates standard edid blobs,
>> there should be no need to special-case virtualized drivers in any way.
>>
>> What is the problem with multi-monitor? That isn't much different than
>> physical multi-monitor either.
>>
>> One little thing though: On physical hardware you just don't know which
>> monitor is left and which is right until the user tells you. In case of
>> a virtual multi-monitor setup we know how the two windows for the two
>> virtual monitors are arranged on the host and can pass that as hint to
>> the guest (not sure whenever that is the purpose of the
>> suggested_{x,y} properties).
> 
> The problem with suggested_x/y is described here:
> https://lore.kernel.org/dri-devel/20220610123629.fgu2em3fto53f...@sirius.home.kraxel.org/T/#m119cfbbf736e43831c3105f0c91bd790da2d58fb
> 
> HiDPI would need a way to propagate the scale factor back-and-forth:
> the VM viewer needs to advertise the preferred scale to the guest
> compositor, and the guest compositor needs to indicate the scale it
> renders with to the VM viewer.
> 
> Sounds familiar? Yup, that's exactly the Wayland protocol. Do we really
> want to replicate the Wayland protocol in KMS? I'm not so sure.
> 
>>> It's getting a bit far off-topic, but google cros team has an out-of-tree
>>> (at least I think it's not merged yet) wayland-virtio driver for exactly
>>> this use-case. Trying to move towards something like that for fancy
>>> virtualized setups sounds like the better approach indeed, with kms just
>>> as the bare-bones fallback option.
>>
>> virtio-gpu got the ability to attach uuids to objects, to allow them
>> being identified on the host side. So it could be that wayland-virtio
>> still uses kms for framebuffers (disclaimer: don't know how
>> wayland-virtio works in detail). But, yes, all the scanout + cursor
>> handling would be out of the way, virtio-gpu would "only" handle fast
>> buffer sharing.
> 
> wayland-virtio is not used with KMS. wayland-virtio proxies the Wayland
> protocol between the host and the guest, so the guest doesn't use KMS
> in that case.

It would be more correct to say: wayland clients inside the guest
don't talk to a compositor inside the guest (but rather one
outside the guest) and thus also don't depend (indirectly) on\
having kms inside the guest.

But the guest likely still needs kms for e.g. the kernel console
to e.g. debug boot failures. Note this could be done over a serial
console too, so in some cases whatever "video-card" emulation
the guest has could theoretically go away. But it is also completely
possible for a guest to have both some emulated video-card which
offers a kms API to userspace as well as wayland-virtio.

Regards,

Hans



[ANNOUNCE] libinput 1.21.0

2022-06-11 Thread José Expósito
libinput 1.21.0 is now available for download.

This version includes a new configuration option that, similarly to its
touchpad counterpart, allows disabling the trackpoint while typing.

Compositors can take advantage of it thanks to four new APIs:
 - libinput_device_config_dwtp_is_available
 - libinput_device_config_dwtp_set_enabled
 - libinput_device_config_dwtp_get_enabled
 - libinput_device_config_dwtp_get_default_enabled

Those who use the flat acceleration profile on their touchpad are in
luck, it has been improved in this version.

In addition to the changes already mentioned, new quirks have been
added for multiple StarLabs laptops.

Last but not least, several bugs have been fixed, so make sure to
update!

Thanks to everyone involved for making this new version possible <3


Alexander Courtis (1):
  AttrLidSwitchReliability quirk default unreliable->reliable

José Expósito (7):
  evdev: check well-known keyboard keys on joystick/gamepad detection
  evdev: modernize variable declaration in 
evdev_device_is_joystick_or_gamepad
  coding style: allow C99 variable declaration
  test: disable hold gestures when are not required
  Remove "device-" file
  wheel: fix Lenovo Scrollpoint quirk
  libinput 1.21.0

Peter Hutterer (26):
  gitlab CI: fail the sanity check stage if the fork is not public
  util: auto-declare the element variable in ARRAY_FOR_EACH
  meson: fix a meson warning
  meson: replace a meson.source_root() with the explicit directory
  doc/user: add a page to troubleshoot right-click Clickpads
  tools/record: fix the indentation of the system: section
  evdev: strip the device name of format directives
  tools: allow limiting the axes in libinput analyse recording
  tools: don't print a carriage return if we're not on a tty
  tools/record: fix indentation for libinput events
  tools/analyze-recording: add --print-state to always print values
  tools/analyze-recording: improve the repeated-events line printing
  tools: add a libinput test tool as entry point for our test suites
  test: install libinput-test-utils as part of install-tests
  quirks: move the canvas quirk enum to the right order
  quirks: remove an unused quirk
  tablet: remove an always-true part of an if condition
  test: rename a test function to make it easier to select
  tablet: use a helper variable to make the code more readable
  tablet: require a minimum pressure before we process pressure events
  test: fix the lowres-only wheel event tests
  test: ensure we always have an axis event where we expect one
  test: use a ranged test instead of a duplicated one
  test: fix a typo
  meson.build: check gtk targets before building
  gitlab CI: bump to F35 and F36, as well as Ubuntu 21.10 and 22.04

Sean Rhodes (2):
  quirks: Add quirk for StarLite Mk IV
  Quirk all StarLabs trackpads

Tom Stellard (1):
  Update valgrind.h to a newer version

pudiva chip líquida (1):
  touchpad: new option dwtp (disable-while-trackpointing)

satrmb (1):
  filter-touchpad: normalize for dpi on the touchpad-specific flat profile