* Re: baum: NVDA does not detect usb-braille, and following the input-linux grab
[not found] ` <atNo9sk_7jCAi98u@end>
@ 2026-10-17 19:13 ` Alexander Epaneshnikov
0 siblings, 0 replies; only message in thread
From: Alexander Epaneshnikov @ 2026-10-17 19:13 UTC (permalink / raw)
To: Samuel Thibault; +Cc: qemu-devel, brltty
On Sat, Oct 17, 2026 at 02:24:22PM +0200, Samuel Thibault wrote:
> Hello,
>
> Please always keep some mailing list in Cc, so that I am not the only
> recipient of the mail. Writing to me only means risking falling in
> the middle of my vacations and thus not getting an answer for weeks,
> or that I just don't have the time to answer and thus you would at
> best get a terse answer, or worse, no answer at all... Conversely,
> keeping the list in Cc means avoiding all these issues completely,
> you'll involve all the community to help you, make the answers you
> get available to everyone, and even archived for web crawlers to find
> them whenever somebody has the same issue.
Sorry about that. I'm adding qemu-devel and the BRLTTY list now, and
quoting my original message in full below for the lists. If anyone else
on the lists is interested in picking this up, that would be welcome
too.
> Samuel
>
> Alexander Epaneshnikov, le sam. 17 oct. 2026 15:23:14 +0300, a ecrit:
> > Hi Samuel,
> >
> > I use a HumanWare Brailliant BI 40X with BRLTTY and Orca on the host, and a Windows guest under libvirt with NVDA. The keyboard and mouse go to the guest through input-linux with grab_all, toggled with left+right Ctrl. I wanted the braille display to follow that grab: NVDA's output while the guest has input, Orca's when it's back on the host. I have a local prototype working, and I'd like to ask whether you'd consider supporting this upstream.
> >
> > 1. NVDA can't detect the emulated display.
> >
> > NVDA's Baum driver treats 0403:FE72 as a serial device. For serial ports it detects the display by sending PROTOCOL_ONOFF (0x15) to turn the protocol off and then on, then waits for the cell count (0x01) and the device identity (0x84). chardev/baum.c reads the 0x15 request but never replies, so NVDA reports "No Baum display found", even with an FTDI COM-port driver that covers FE72. Replying to "protocol on" with the identity and the cell count fixes it. As far as I can tell, that's what real displays do.
> >
> > 2. Sharing the display between the host and the guest.
> >
> > My prototype adds a small grab notifier in ui/input.c. input-linux fires it when the grab toggles. baum then changes its BrlAPI client priority (BRLAPI_PARAM_CLIENT_PRIORITY, local): 80 while the guest holds the grab, which is above Orca's 50 and the 70 it uses in flat review, and 0 (disabled) when the grab is released. BRLTTY then switches between the two clients on the same tty without reconnecting, and each side's last content comes back straight away. Under libvirt, QEMU has no controlling tty, so I also set CONTROLVT in the environment.
> >
> > Questions:
> >
> > - Is client priority the right BrlAPI mechanism for this, or would you rather do it another way?
> > - Should it be opt-in, for example a chardev option?
> > - Should other grab sources (SDL, GTK) report to the same notifier, or should it stay limited to input-linux?
> >
> > One caveat: I built my local prototype with an AI assistant (Claude). Because of QEMU's code-provenance policy, I can't submit it, and I'm deliberately not sending you the code, so nothing you write is derived from it. I'm not able to write these patches myself without that kind of help.
> >
> > Would you be willing to write them? The first one, answering "protocol on", is a plain bug fix and should be small. The second is a feature request, so please do it whatever way you think is right; my version above is only to show what I'm after. I'm happy to test anything you send, and to provide NVDA and BRLTTY logs with my setup (Brailliant BI 40X, BRLTTY hw driver, Orca on GNOME Wayland, Windows guest with NVDA, libvirt, input-linux with grab_all).
> >
> > --
> > Sincerely, Alexander
> >
>
> --
> Samuel
> «Tiens, quand j'aurai un peu de temps et une partition libre, je crois
> que je vais essayer de remplacer mes scripts de démarrage par des
> programmes Windows lancés via Wine et binfmt_misc :-)»
> -+- AGV in Guide du linuxien pervers - "J'sais pas quoi faire... (air connu)"
--
Sincerely, Alexander
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-17 20:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <atNoDNz0dQucxzFN@alex-pc>
[not found] ` <atNo9sk_7jCAi98u@end>
2026-10-17 19:13 ` baum: NVDA does not detect usb-braille, and following the input-linux grab Alexander Epaneshnikov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.