[BRLTTY] Brlapi not connecting in headless mode

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Apr 2 23:55:41 UTC 2025


Hello,

Julian Dreykorn wrote:
> Regarding how I started the program. Yes to all frankly. Through console or
> some form of auto-start did not matter.

No, it should really matter. And as you wrote later:

> On the raspberry pi, I can also pass any tty number, but only tty1
> will grant me actual access to the display.

Which means that your device focus is actually on tty1. And thus running
programs there should be detecting it just fine. I'm not actually even
sure what you call "console" in the end, actually. Are you perhaps
running some kind of fbterm software on top of it? I'm really at a loss
knowing how you are actually running things since that is apparently
completely departing from a common Linux system.

> > > since using default (-1) did not work out for me.
> > What was it producing?
> And finally of course, using enterTtyModeWithPath("") and an empty String,
> also worked on the pi.
> There is no return value for that function in the Java bindings though.

Dave Mielke wrote:
> enterTtyModeWithPath() effectively returns a boolean, i.e. 0 on success and -1 on failure. There's no return value in Java because a failure throws an exception whereas success returns.

I was asking about enterTtyMode (which does take the tty parameter), not
enterTtyModeWithPath (which doesn't).

enterTtyMode does return an int on java too, that's what I was asking in
the case where it doesn't return an error but things don't work.

Samuel


More information about the BRLTTY mailing list