qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1907952] [NEW] qemu-system-aarch64: with "-display gtk" arrow keys are received as just ^[ on ttyAMA0
@ 2020-12-13 11:51 Ryutaroh Matsumoto
  2020-12-15 21:58 ` [Bug 1907952] " Ryutaroh Matsumoto
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Ryutaroh Matsumoto @ 2020-12-13 11:51 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

I originally observed this on Debian packaged qemu 5.2 at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976808

Today I checked out the latest git source at
Sun, 13 Dec 2020 19:21:09 +0900
and configured the source as follows:

./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/qemu \
 --localstatedir=/var --disable-blobs --disable-strip --localstatedir=/var \
 --libdir=/usr/lib/aarch64-linux-gnu \ 
 --firmwarepath=/usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/qemu \ 
 --target-list=aarch64-softmmu,arm-softmmu --disable-werror \ 
 --disable-user  --enable-gtk --enable-vnc
then executed "make" on an ARM64 (not an x86_64) host,
running the latest Debian testing.

I did the following commands on an arm64 host with the Debian Installer Alpha 3 at
https://cdimage.debian.org/cdimage/bullseye_di_alpha3/arm64/iso-cd/debian-bullseye-DI-alpha3-arm64-netinst.iso

#!/bin/sh

ARCH=arm64
IMAGE=`pwd`/qemu-disk-${ARCH}.qcow2
CDROM=`pwd`/debian-bullseye-DI-alpha3-${ARCH}-netinst.iso
rm -f $IMAGE
qemu-img create -f qcow2 -o compat=1.1 -o lazy_refcounts=on -o preallocation=off $IMAGE 20G
cd /var/tmp
cp /usr/share/AAVMF/AAVMF_VARS.fd .
$HOME/qemu-git/qemu/build/qemu-system-aarch64 \
    -display gtk -enable-kvm -machine virt -cpu host -m 3072 -smp 2\
    -net nic,model=virtio -net user -object rng-random,filename=/dev/urandom,id=rng0 \
    -device virtio-rng-pci,rng=rng0,id=rng-device0 \
    -drive if=virtio,file=${IMAGE},index=0,format=qcow2,discard=unmap,detect-zeroes=unmap,media=disk \
    -drive if=virtio,file=${CDROM},index=1,format=raw,readonly=on,media=cdrom \
    -drive if=pflash,format=raw,unit=0,file=/usr/share/AAVMF/AAVMF_CODE.fd,readonly=on \
    -drive if=pflash,format=raw,unit=1,file=`pwd`/AAVMF_VARS.fd

Then 4 arrow keys on the physical keyboard are received as just "^[".

This symptom was not observed on qemu-system-x86_64.
This symptom was not observed with virt-manager on my arm64 host, neither.
This seems unique to -display gtk of qemu-system-aarch64.

** Affects: qemu
     Importance: Undecided
         Status: New

** Affects: qemu (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: arm

** Bug watch added: Debian Bug tracker #976808
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976808

** Also affects: qemu (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976808
   Importance: Unknown
       Status: Unknown

** Tags added: arm

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1907952

Title:
  qemu-system-aarch64: with "-display gtk" arrow keys are received as
  just ^[ on ttyAMA0

Status in QEMU:
  New
Status in qemu package in Debian:
  Unknown

Bug description:
  I originally observed this on Debian packaged qemu 5.2 at
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976808

  Today I checked out the latest git source at
  Sun, 13 Dec 2020 19:21:09 +0900
  and configured the source as follows:

  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/qemu \
   --localstatedir=/var --disable-blobs --disable-strip --localstatedir=/var \
   --libdir=/usr/lib/aarch64-linux-gnu \ 
   --firmwarepath=/usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/qemu \ 
   --target-list=aarch64-softmmu,arm-softmmu --disable-werror \ 
   --disable-user  --enable-gtk --enable-vnc
  then executed "make" on an ARM64 (not an x86_64) host,
  running the latest Debian testing.

  I did the following commands on an arm64 host with the Debian Installer Alpha 3 at
  https://cdimage.debian.org/cdimage/bullseye_di_alpha3/arm64/iso-cd/debian-bullseye-DI-alpha3-arm64-netinst.iso

  #!/bin/sh

  ARCH=arm64
  IMAGE=`pwd`/qemu-disk-${ARCH}.qcow2
  CDROM=`pwd`/debian-bullseye-DI-alpha3-${ARCH}-netinst.iso
  rm -f $IMAGE
  qemu-img create -f qcow2 -o compat=1.1 -o lazy_refcounts=on -o preallocation=off $IMAGE 20G
  cd /var/tmp
  cp /usr/share/AAVMF/AAVMF_VARS.fd .
  $HOME/qemu-git/qemu/build/qemu-system-aarch64 \
      -display gtk -enable-kvm -machine virt -cpu host -m 3072 -smp 2\
      -net nic,model=virtio -net user -object rng-random,filename=/dev/urandom,id=rng0 \
      -device virtio-rng-pci,rng=rng0,id=rng-device0 \
      -drive if=virtio,file=${IMAGE},index=0,format=qcow2,discard=unmap,detect-zeroes=unmap,media=disk \
      -drive if=virtio,file=${CDROM},index=1,format=raw,readonly=on,media=cdrom \
      -drive if=pflash,format=raw,unit=0,file=/usr/share/AAVMF/AAVMF_CODE.fd,readonly=on \
      -drive if=pflash,format=raw,unit=1,file=`pwd`/AAVMF_VARS.fd

  Then 4 arrow keys on the physical keyboard are received as just "^[".

  This symptom was not observed on qemu-system-x86_64.
  This symptom was not observed with virt-manager on my arm64 host, neither.
  This seems unique to -display gtk of qemu-system-aarch64.

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-15 13:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13 11:51 [Bug 1907952] [NEW] qemu-system-aarch64: with "-display gtk" arrow keys are received as just ^[ on ttyAMA0 Ryutaroh Matsumoto
2020-12-15 21:58 ` [Bug 1907952] " Ryutaroh Matsumoto
2021-03-03 14:51 ` Bug Watch Updater
2021-03-22 19:19 ` Peter Maydell
2021-04-30  9:59 ` Thomas Huth
2021-06-15  8:28 ` Christian Ehrhardt 
2021-07-15 13:04 ` Launchpad Bug Tracker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).