linux-clicky icon indicating copy to clipboard operation
linux-clicky copied to clipboard

We found a error with SoX, did you install it?

Open Lew-Rockwell-Fan opened this issue 4 years ago • 3 comments

Under Openbox in pclos, in lxterminal running bash as root, I just get this error message for every key: We found a error with SoX, did you install it? Python, sox and sox-devel are installed.

Question: If I can get this working, can I get it to run automatically in any login terminal or tty?

Lew-Rockwell-Fan avatar Jan 09 '21 22:01 Lew-Rockwell-Fan

I get the same error, but experience no issues. However I'm using a python3 version I hacked together.

https://askubuntu.com/questions/290099/how-to-run-a-script-during-boot-as-root tl;dr use crontab or create a systemd service to have it run automatically.

Also consider if you're using xinitrc, you could have it start at login and have your polkit(lxpolkit I'm guessing) prompt you after login - to avoid potential issues. A line at the end of your .bashrc running a script would be the best solution imo. (this app allows for multiple instances, so you should do > grep process; sudo linux-clicky &) I would take this route to save yourself a headache.

hiringManager avatar Jan 05 '22 22:01 hiringManager

Ive encountered this error as well. A manual test confirms that the play command does not work with sudo or su. It seems to me to be related, that if you run as a non-root user, you cannot let root play sounds, as described here; https://superuser.com/questions/756334/pulseaudio-no-sound-after-su-to-root-no-default-audio-device-configured So I think it only works if your program gets privileges as non-root user, or you ensure sox works under root

robidev avatar Jun 10 '23 20:06 robidev

Solved with sudo chmod 664 /dev/input/event*. Then it is possible to execute main.py without root privileges.

slabua avatar Feb 17 '24 16:02 slabua