Run the CWDaemon as Service
If you want to automatically run the cwdaemon with sidetone output through pulseaudio, the cwdaemon needs to be started as a systemd user service. This is because pulseaudio is only avaiable when you are logged in and the cwdaemon must not be started before pulseaudio is available.
- Add the following content as
~/.config/systemd/user/cwdaemon.service
:
[Unit]
Description="CW Daemon"
[Service]
Type=forking
ExecStart=/usr/sbin/cwdaemon -d ttyS1 -x p -T 700 -s 30
[Install]
WantedBy=default.target
- Reload the unit file:
systemctl --user daemon-reload
- Enable the service:
systemctl --user enable cwdaemon.service
- Start the service:
systemctl --user start cwademon.service
On the next boot, the cwdaemon will only start when you log in and stop when you log out.