Thanks, Dave. I moved the additional dependency lines from brltty.service to
[email protected]. Results, oddly, are the same as before: console I/O error
and baud rate gets changed after the braille display connection is
established.

Same console error in the log:
2017-03-07@10:56:57.112 [brltty] console control error 5: fd=12 vt=1
op=0X5603: Input/output error

I was looking at the wrong sty output the other night. It appears, by the
time I get logged in, that the baud on the serial port is set to 115,200.
Sounds like something's cycling through baud rates trying to autodetect a
modem or other device as you suggested, and it's happening after brltty
already has the display initialized at 19,200.

Here's my modified [email protected]:
[Unit]

Description=BRLTTY Instance: %I
Documentation=man:brltty(1)
Documentation=http://brltty.com/

DefaultDependencies=no
StopWhenUnneeded=true

RequiresMountsFor=/var/lib/brltty

After=local-fs.target
Before=sysinit.target
Wants=systemd-udev-settle.service
After=systemd-udev-settle.service

[Service]

Environment="BRLTTY_SYSTEMD_INSTANCE=%I"
ExecStart=/sbin/brltty-systemd-wrapper

Type=notify
Environment="BRLTTY_EXECUTABLE_ARGUMENTS=-n -q -l debug -L /brltty.log"

PIDFile=%t/brltty-%i.pid
Environment=BRLTTY_PID_FILE=%t/brltty-%i.pid

TimeoutStartSec=5
TimeoutStopSec=10

Restart=always
RestartSec=30

Nice=-10
OOMScoreAdjust=-900

ProtectHome=read-only
ProtectSystem=full


And here's brltty.service as shipped with brltty, I think:
[Unit]

Description=Default BRLTTY Instance
Documentation=man:brltty(1)
Documentation=http://brltty.com/

DefaultDependencies=no
Before=sysinit.target
[email protected]


[Service]

Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true


[Install]
WantedBy=sysinit.target


Any further thoughts on system unit changes I can make to solve this?

Keith

-----Original Message-----
From: BRLTTY [mailto:[email protected]] On Behalf Of Dave Mielke
Sent: Monday, March 06, 2017 11:44 AM
To: Informal discussion between users and developers of BRLTTY.
<[email protected]>
Subject: Re: [BRLTTY] Brltty woes on Centos 7

[quoted lines by Keith Wessel on 2017/03/06 at 11:24 -0600]

>FWIW, I added these additional wants and after lines to brltty.service
>rather than the [email protected] abstract service unit definition. Was that
>the right place to put them?

No, they need to be in the instance unit since that's what actually runs the

executable.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: [email protected] | Canada  K2A 1H7   | http://FamilyRadio.org/
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.com/mailman/listinfo/brltty

_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.com/mailman/listinfo/brltty

Reply via email to