-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Sample Rate under Linux Mint w/sudo #7
Comments
Ah yes, xdotool, which is used when not running as root, unfortunately isn't that reliable. It works quite okay, but sometimes it fails for no reason. Have not figured out yet why, unfortunately. You can run it as root, there shouldn't be any problems as the code is not doing anything harmful, but I understand that this is not something you want to do. But some things are difficult to do without root privileges, as you need to interact with a different application and usually that's not something you are easily allowed to do with normal user privileges. I also get a lot of errors when running as root and at some point I gave up trying to fix it for me, that's why I've implemented the If you make any progress and/or find a fix, please let us know! :) Thank you. |
I ran into the same issue and made another issue post. I also did some digging on the "Invalid sample rate" error and found out that the problem is likely that the requested microphone audio sample rate from the script is different from the audio sample rate that the microphone is using. Unfortunately I have no idea how to read code nor do I know which file to look into. From my limited knowledge it seems like the solution would be to either edit the requested sample rate from the script, or edit the sample rate of the microphone itself. How one would go about doing that I do not know. Nor do I know for certain if this actually IS the solution as I am not a coder, merely did some internet searching. |
Please try if this fixes the issue for you: |
OS: Linux Mint 20.1 Ulyssa
Python: Python 3.8.5
All python packages installed through pip3, all necessary libraries installed via apt, I have double checked they are all the latest version.
Environment established, I mostly use the -noroot flag, as I don't like handing over root control unless I need to. Unfortunately I have noticed it is less than reliable with Elite Dangerous, there will be times the script will claim it has pressed a key, but the game will not respond for some reason. This could be due to a number of issues in the script or my own proton setup, it's hard to determine.
So, I decided to attempt the root method. I followed the steps exactly, and this is the output I get:
My instinct says this is an issue of pulseaudio not playing nice under sudo, but I haven't found a reason that would be, much less a fix.
I may create a branch on my local and attempt to fix this if I find something that looks useful, but until then, the report is here.
The text was updated successfully, but these errors were encountered: