You are not logged in.
Pages: 1
Hello,
I am using cronie 1.5.7-2, pipewire 0.3.33, and 5.13.10-zen1-1-zen
I am having an issue with my audio sink defaults on my Arctic Wireless Pro headset; when I try to set them via
Gnome Sound GUI,
pavucontrol or
pactlI am able to change them and they stay but when I reboot they do not save.
I am trying to set a crontab that changes the sink for me @reboot. The script runs and the sink definitely changes, but the cron does not.
crontab -eis set to:
* * * * * /home/username/.customsh/change-sink.shI confirmed I can run the .sh via
bash -cand
sh -cand both from the absolute path and relative path.
(Keeping it on the * * * * * for troubleshooting; I will change to @reboot when I know it works.)
My script (change-sink.sh) is:
#!/bin/bash
pactl set-default-sink alsa_output.usb-SteelSeries_Arctis_Pro_Wireless-00.stereo-gameThen,
systemctl status cronie.servicestates it is
active (running)and the following below:
Aug 15 14:51:01 archbox crond[306328]: pam_unix(crond:session): session opened for user username(uid=1000) by (uid=0)
Aug 15 14:51:01 archbox CROND[306331]: (username) CMD (/home/username/.customsh/change-sink.sh)
Aug 15 14:51:01 archbox CROND[306328]: (username) CMDOUT (Connection failure: Connection refused)
Aug 15 14:51:01 archbox CROND[306328]: (username) CMDOUT (pa_context_connect() failed: Connection refused)
Aug 15 14:51:01 archbox CROND[306328]: (username) CMDEND (/home/username/.customsh/change-sink.sh)
Aug 15 14:51:01 archbox CROND[306328]: pam_unix(crond:session): session closed for user usernameWhat could I be missing? Pointers?
Thank you.
Last edited by mightywonton (2021-08-15 20:32:26)
Offline
Offline
Pages: 1