From: Teemu Kuusisto <teemu.kuusisto@gmail.com>
To: qemu-devel@nongnu.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Braille device (chardev/baum.c) is unable to detect the TTY correctly and does not act on graphic console connect/disconnect
Date: Thu, 14 Nov 2019 14:09:15 +0200 [thread overview]
Message-ID: <20191114120915.GA31365@valhalla> (raw)
Hello,
As a blind developer I would be very happy to use QEMU's baum chardev for a braille display. Unfortunately, this device fails to detect the tty in which
the spice client is running. I would like to improve this device but I don't yet know how to achieve a better solution.
The current code calls qemu_console_get_window_id() to get the tty. This function returns zero, which causes the code to skip even the default behavior
of brlapi's brlapi__enterTtyMode() (including checcking some env variables such as CONTROLVT). Furthermore, window id sounds like something different
than a tty number, maybe a number of X display? The code does not currently consider the fact that the lifetime of the connected graphical consoles is
not the same as the lifetime of the VM.
I hardcoded a tty number to the sources of QEMU version 3.0.0 to gladly verify that the device is working besides these problems.
So, I have a handful of open questions to start with: Is it possible to get callbacks for connect and disconnect of a graphical console (like spice and
vnc)? How? Is it further possible to get any information of the connected client to determine the tty, and possibly sub-windows too (see
brlapi__enterTtyModeWithPath), in which the client is running? Such events should lead to calls of brlapi__EnterTtyMode() and brlapi__leaveTtyMode().
To get this device working properly would be a life changing lifehack for me so I highly appreciate any help!
It would allow the use of Linux side by side with Windows and ChromiumOS, which is a big leap in this rather poorly accessible world.
If this is successful, I'm looking forward to spreading the word and helping others too!
With kind regards and informally on behalf of the Finnish braille authority,
-- Teemu Kuusisto
next reply other threads:[~2019-11-14 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 12:09 Teemu Kuusisto [this message]
2019-11-14 13:08 ` Braille device (chardev/baum.c) is unable to detect the TTY correctly and does not act on graphic console connect/disconnect Samuel Thibault
2019-11-14 13:27 ` Samuel Thibault
2019-11-14 13:31 ` Samuel Thibault
2019-11-15 8:27 ` Teemu Kuusisto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191114120915.GA31365@valhalla \
--to=teemu.kuusisto@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=samuel.thibault@ens-lyon.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).