[Bug 1718719] Re: qemu can't capture keys properly under wayland

2020-10-07 Thread Thomas Huth
Is there still an issue left here for upstream QEMU?

** Changed in: qemu
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2020-08-04 Thread Bug Watch Updater
** Changed in: xserver
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2020-08-04 Thread Timo Aaltonen
upstream can't reproduce this bug, so I wonder if the backport was
incomplete and it's fixed in the current release (1.20.8), could you
test again?

** Changed in: xserver
   Importance: Medium => Unknown

** Changed in: xserver
 Remote watch: freedesktop.org Bugzilla #102475 => 
gitlab.freedesktop.org/xorg/xserver/issues #706

** Changed in: xorg-server (Ubuntu)
   Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2019-05-10 Thread Bug Watch Updater
Launchpad has imported 9 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=102475.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2017-08-30T11:42:57+00:00 Sebastien Bacher wrote:

The Ubuntu maintainer backported the recent change to add keyboard
grabbing to xwayland, with that change the keyboard arrow keys stop
working in kvm

Reply at:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1718719/comments/0


On 2017-08-30T12:40:12+00:00 Olivier Fourdan wrote:

Can you please elaborate of what exactly has been backported and the
resulting patches?

Which Wayland compositor do you use?

It's worth noting that the xwayland patches in themselves won't make a
difference *unless* the Wayland compositor implements the corresponding
protocol, and I am aware of none for now (the patch for mutter is still
pending).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1718719/comments/1


On 2017-08-30T13:36:16+00:00 Sebastien Bacher wrote:

The Ubuntu diff is
http://launchpadlibrarian.net/334552966/xorg-server_2%3A1.19.3-1ubuntu3_2%3A1.19.3-1ubuntu4.diff.gz

it looks like the backported commits are

xwayland-pointer-confine.diff
+d5e2f271ad93e50 xwayland: Remove two unused proc pointers.
+ca17f3e9fd3b59f xwayland: Lock the pointer if it is confined and has no cursor
+513e3bd3870fdb8 xwayland: Update root window size when desktop size changes
+fafdb0cc9697eb5 xwayland: "Accept" confineTo on InputOnly windows
+c217fcb4c4640ff xwayland: Allow pointer warp on root/None window

xwayland-add-grab-protocol-support.diff
https://cgit.freedesktop.org/xorg/xserver/commit/?id=0a448d133

Ubuntu doesn't have any compositor change, it's standard GNOME 3.24 so
there is must be something wrong and it does make a difference without
implementing the protocole.

Note that reverting 0a448d133 does fix the issue

Reply at:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1718719/comments/2


On 2017-08-30T14:57:34+00:00 Olivier Fourdan wrote:

Tried reproducing the issue with the arrow keys using the current
Xwayland from master with mutter/gnome-shell from master, using qemu-kvm
with SDL backend (-display sdl) but failedto reproduce, all keys
(including the arrow keys) work fine in the guest.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1718719/comments/3


On 2017-08-31T16:26:13+00:00 Olivier Fourdan wrote:

Created attachment 133910
Test patch

Can you try the attached patch (this is for testing purpose *only*) and
report back if that makes any difference?

With this patch, if the compositor has no support for Xwayland keyboard
grab protocol as you said you haven't in Ubuntu, Xwayland won't set up
its grab handler at all.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1718719/comments/4


On 2017-08-31T23:04:19+00:00 Sebastien Bacher wrote:

the patch doesn't seem to make a difference

Reply at:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1718719/comments/5


On 2017-09-01T07:15:06+00:00 Olivier Fourdan wrote:

Well, what this patch does is disabling any specific grab handler if the
Xwayland grab protocol is not available, by postponing the setup of
those handler until Xwayland can bind to the relevant interface as
advertised by the compositor.

If the compositor doesn't support the Xwayland grab protocol, then all
those routines are not "enabled" in Xwayland, I don't see how they could
break anything if not used...

Unfortunately, we cannot tell whether or not the compositor supports the
Xwayland grab protocol using something like weston-info because, for
security reasons, the compositor will (should) only advertiset he given
protocl to Xwayland alone and hide it to any other client.

So, if that patch makes no difference, it means that:

 - The Wayland compositor claim to support Xwayland grab protocol but is
buggy and doesn't send all key events as expected

 - Or the problem is completely unrelated to this patch.

So next step for you is to:

 - Check the actual patches applied to mutter in Ubuntu
 - Check what happens at the protocol level

To do so, yo can use the envvar WAYLAND_DEBUG prior to start gnome-shell
(which will spawn Xwayland) so that we can tell what globals are listed
in the wl_registry and see if "zwp_xwayland_keyboard_grab_manager_v1" is
one of them.

e.g., 

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-10-06 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: qemu (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-10-01 Thread Timo Aaltonen
Actually, this bug would affect current 1.19-branch too since the
patches are backported there as well. You can test
ppa:canonical-x/x-staging to verify, which has xorg-server from current
stable branch.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-30 Thread Sebastien Bacher
is the patch providing any user visible improvement? if not it would
probably make sense to delay including it to next cycle

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-30 Thread Timo Aaltonen
Now the question is should the patch be dropped or wait for a fix from
upstream. I'm leaning towards the first option, since artful is about to
be released.

** Package changed: wayland (Ubuntu) => xorg-server (Ubuntu)

** Changed in: xorg-server (Ubuntu)
   Status: New => Triaged

** Changed in: xorg-server (Ubuntu)
 Assignee: (unassigned) => Timo Aaltonen (tjaalton)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-29 Thread Bug Watch Updater
** Changed in: xserver
   Status: Unknown => Incomplete

** Changed in: xserver
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-29 Thread Jonas Ã…dahl
Upstream bug is probably
https://bugs.freedesktop.org/show_bug.cgi?id=102475 ?

** Bug watch added: freedesktop.org Bugzilla #102475
   https://bugs.freedesktop.org/show_bug.cgi?id=102475

** Also affects: xserver via
   https://bugs.freedesktop.org/show_bug.cgi?id=102475
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-29 Thread ChristianEhrhardt
So it is likely a wayland <-> SDL thing.
@Desktop Team could you take alook into this - the repro steps in c#2 are 
pretty easy I'd think but none of us would know where in the UI stack to look 
for.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-29 Thread Joshua Powers
Hi! I am running Artful on my X1 Carbon Gen3.

I downloaded the Ubuntu Server Artful final beta and attempt to do an
install with the following qemu cli:

$ qemu-system-x86_64 -enable-kvm -cpu host -m 1024 -boot d -hda
vdisk.img -cdrom artful-server-amd64.iso -monitor stdio

Trying to use the arrow key at the first menu does not work and errors
with the unknown keycodes error. However, if I issue the `sendkey down`
command from the qemu CLI it works as expected.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-22 Thread ChristianEhrhardt
I wanted to write steps to reproduce, which should be as simple as:
$ wget http://cdimage.ubuntu.com/daily-live/current/artful-desktop-amd64.iso
$ qemu-system-x86_64 -m 512 -boot d -cdrom artful-desktop-amd64.iso

But that works for me as seen in the attached video.
@Mathieu - can you elaborate how to trigger the missing key issue?

** Attachment added: "Screencast 2017-09-22 08:52:05.mp4"
   
https://bugs.launchpad.net/ubuntu/+source/wayland/+bug/1718719/+attachment/4954840/+files/Screencast%202017-09-22%2008%3A52%3A05.mp4

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-09-22 Thread ChristianEhrhardt
Hi Mathieu,
thanks for the report but since we are up-to-date with qemu and I can't find an 
obvious breakage we might have introduced for this, this should go to 
qmeu-upstream in this case.

Furthermore are these actually two issues?:
#1 - wayland crashes under spice
 more of a wayland bug then I'd expect, but upstream qemu
 might have heard of it and have good pointers
#2 - new qemu does not recognize keys correctly with the default (SDL I'd 
think) frontend?
 That is worth to report upstream qemu for sure.

I added an upstream qemu (and a wayland) task and you can help them to
recreate in case they have questions on how exactly to do so.

** Also affects: qemu
   Importance: Undecided
   Status: New

** Also affects: wayland (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718719

Title:
  qemu can't capture keys properly under wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1718719/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs