Re: using kvm with brltty

2020-09-15 Thread Halim Sahin

Hi Samuel,

Am 15.09.20 um 10:38 schrieb Samuel Thibault:

Halim Sahin, le mar. 15 sept. 2020 10:17:57 +0200, a ecrit:

How does this work $WINDOWID is this an environment variable?


It should be when you are running under X.


OK.



$WINDOWSID is not set on my machine :-(, who sets it?


How are you running kvm? In the console? In X? In Wayland?


I run qemu in xfce4-terminal and don't use wayland.

I run qemu like this:

#!/bin/bash
export WINDOWPATH=${WINDOWPATH:+${WINDOWPATH}:}$WINDOWID
qemu-system-x86_64 -enable-kvm -display curses \
-full-screen -m 4G -soundhw hda \
-usb -device usb-braille,chardev=char0 -chardev braille,id=char0 \
-drive file=myimage.img,if=virtio

tested with netinst iso as well.
I see no braille output.
MfG.
Halim



Re: using kvm with brltty

2020-09-15 Thread Halim Sahin

Hi,
my misstake sorry now I have a terminal where windowid is set.
Will test and report (thx).
MfG.
Halim




Re: using kvm with brltty

2020-09-15 Thread Samuel Thibault
Halim Sahin, le mar. 15 sept. 2020 10:17:57 +0200, a ecrit:
> How does this work $WINDOWID is this an environment variable?

It should be when you are running under X.

> $WINDOWSID is not set on my machine :-(, who sets it?

How are you running kvm? In the console? In X? In Wayland?

> Should your mentioned bug reported to upstream?

I have already submitted a patch.

Samuel



Re: using kvm with brltty

2020-09-15 Thread Halim Sahin

Hi Samuel,
I am confused a bit.
How does this work $WINDOWID is this an environment variable?
$WINDOWSID is not set on my machine :-(, who sets it?

Should your mentioned bug reported to upstream?
Regards Halim





Am 14.09.20 um 21:53 schrieb Samuel Thibault:

Hello,

Halim Sahin, le lun. 14 sept. 2020 10:29:15 +0200, a ecrit:

Now I tried to use kvm to install a debian buster vm.

qemu-system-x86_64 -m 4G -usb -usbdevice braille -cdrom debian...netinst.iso
.

qemu starts up and info usb in qemu console displays a braille device but
nothing was displayed on the connected braille display.


It seems a bug slipped in indeed for the non-sdl display case. You can
run

export WINDOWPATH=${WINDOWPATH:+${WINDOWPATH}:}$WINDOWID

before calling qemu-system-x86_64, and use -display curses, so the
braille input/output correctly gets routed through your terminal window.

Samuel