Skip to contentSkip to conversation

Qemu on Windows: Redirect output to console

Qemu-devel Peter Laursen 5 participants 5 messages Jun 24, 2007 – Jun 25, 2007

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I have downloaded the 0.9.0 version of the Qemu source code and managed to compile it using MinGW and MSYS. But I face a problem with the compiled binary.

I am blind and therefore need to redirect the output from the guest OS to a standard Windows console or a software speech synthesizer so that a screen reader will be able to read the output produced. What functions will I eventually need to modify? A text console would of course be preferred.
My main reason for hoping to getting this to work is to allow blind people to experiment safely with other operating systems - it would also minimize the learning curve.

I hope that you will be able to point me in the right directions as to which source files and functions I would need to change. I have searched through the source files and googled for documentation for the source code, but I didn't find any. I also searched to see if there were any patches that might accomplish the work - I was unable to find any.

I look forward to hearing from you.

Peter.

#1 lore raw

Hi Peter,

there already exists a QEMU command line option -nographic which disables graphical output and redirects the first serial port of the emulated machine to the console.

With QEMU running Linux in text mode, this works fine - you will "see" the boot messages and can run a shell or any text application from the console, so it should be possible to analyse this output with a screen reader.

QEMU can also redirect any serial port to pipes, so some speech synthesizer like "festival" could be connected directly.

This URL describes the command line options -serial and -nographic:
http://fabrice.bellard.free.fr/qemu/qemu-doc.html#TOC10

I have no idea how you can access graphical interfaces like MS Windows.

Stefan

Quoted 25 lines · Peter Laursen

Hi everyone,

I have downloaded the 0.9.0 version of the Qemu source code and managed to compile it using MinGW and MSYS. But I face a problem with the compiled binary.

I am blind and therefore need to redirect the output from the guest OS to a standard Windows console or a software speech synthesizer so that a screen reader will be able to read the output produced. What functions will I eventually need to modify? A text console would of course be preferred.
My main reason for hoping to getting this to work is to allow blind people to experiment safely with other operating systems - it would also minimize the learning curve.

I hope that you will be able to point me in the right directions as to which source files and functions I would need to change. I have searched through the source files and googled for documentation for the source code, but I didn't find any. I also searched to see if there were any patches that might accomplish the work - I was unable to find any.

I look forward to hearing from you.

Peter.

#2 lore raw

Hi Peter,

Apart from what Stefan said you,
the only way that will be useful for learning graphical operating systems will be having a screen-reader capable of doing OCR of the entire screen, or at least, part of it (the QEMU window).

I don't know if there are OCR screen readers but I've heard about the idea long ago related to enabling blind people to read non-aware PDF documents.

Regards,
Natalia Portillo

#3 lore raw
Quoted 4 lines · Natalia Portillo

Apart from what Stefan said you,
the only way that will be useful for learning graphical operating systems will be having a screen-reader capable of doing OCR of the entire screen, or at least, part of it (the QEMU window).

Or perhaps figure out how a braille display would interface with the computer and emulate that?

#4 lore raw
In reply to Peter Laursen
Quoted 5 lines · On Sunday 24 June 2007 09:28:58 Peter Laursen wrote:

I am blind and therefore need to redirect the output from the guest OS to a standard Windows console or a software speech synthesizer so that a screen reader will be able to read the output produced. What functions will I eventually need to modify? A text console would of course be preferred.

If you use a serial console in the child OS and tell qemu -nographic, the serial console will be redirected to stdin and stdout of the qemu process.

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.