I think your permission error might actually be a shell thing, not a
speakup thing. Allow me to explain. I'm not trying to be condescending
if you already understand the mechanics here, but I need to explain for
my explanation of the problem to make sense.
When you type:
sudo echo soft >/sys/accessibility/speakup/synth
What you're doing is to run the command "sudo echo soft" as root, then
telling your existing shell to redirect its output to the file
/sys/accessibility/speakup/synth. Here in lies the problem; your
existing (non-root) shell handles that file write operation. Only "echo
soft" is actually run as root. The file
/sys/accessibility/speakup/synth. can only be written by root, so you
get a permission error. I tested this on my own system by creating a
root-owned file, then trying "sudo echo test" and redirecting to that
file. I got a permission error, as expected.
The only solution I know of is to create a shell script with the line
sudo echo soft >/sys/accessibility/speakup/synth
Then run that using sudo. That causes the write to take place as the
root user, which is what you want.
--
Joe
On 4/3/2022 8:51 PM, Chime Hart wrote:
Thank you Greg for your analysis. Yes I am in TCSH. When I run with
sudo echo soft >/sys/accessibility/speakup/synth
I get a permission error. As far as speechd-up if I run an apt
install in Debian, it tries installing a 0.5 version from 2011, but
errors out. Here is an output
Preparing to unpack .../speechd-up_0.5~20110719-11_amd64.deb ...
Unpacking speechd-up (0.5~20110719-11) ...
Setting up speechd-up (0.5~20110719-11) ...
Job for speechd-up.service failed because the control process exited
with error code.
See "systemctl status speechd-up.service" and "journalctl -xeu
speechd-up.service" for details.
invoke-rc.d: initscript speechd-up, action "restart" failed.
x speechd-up.service - LSB: Interface between speakup and
speech-dispatcher
Loaded: loaded (/etc/init.d/speechd-up; generated)
Active: failed (Result: exit-code) since Sun 2022-04-03 17:46:08
PDT; 82ms ago
Docs: man:systemd-sysv-generator(8)
Process: 1576174 ExecStart=/etc/init.d/speechd-up start
(code=exited, status=1/FAILURE)
CPU: 37ms
Apr 03 17:46:06 chime speechd-up[1576174]: Starting Interface between
speakup and speech-dispatcher : speechd-up
Apr 03 17:46:06 chime speechd-up[1576190]: [Sun Apr 3 17:46:06 2022]
speechd: Configuration has been read from "/etc/speechd-up.conf"
Apr 03 17:46:06 chime speechd-up[1576174]: Starting speechd-up...
Apr 03 17:46:06 chime speechd-up[1576174]: To work, speechd-up needs
speakup and speakup_soft modules.
Apr 03 17:46:06 chime speechd-up[1576174]: They are loaded
automatically. If you don't want, type
Apr 03 17:46:06 chime speechd-up[1576174]: rmmod speakup speakup_soft
Apr 03 17:46:08 chime speechd-up[1576300]: failed!
Apr 03 17:46:08 chime systemd[1]: speechd-up.service: Control process
exited, code=exited, status=1/FAILURE
Apr 03 17:46:08 chime systemd[1]: speechd-up.service: Failed with
result 'exit-code'.
Apr 03 17:46:08 chime systemd[1]: Failed to start LSB: Interface
between speakup and speech-dispatcher.
dpkg: error processing package speechd-up (--configure):
installed speechd-up package post-installation script subprocess
returned error exit status 1
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for install-info (6.8-4+b1) ...
Errors were encountered while processing:
speechd-up
E: Sub-process /usr/bin/dpkg returned an error code (1)
Back again live. If this list thinks 54lines is too long, I can write
you off-list with that output. Thanks in advance.
Chime