-
Notifications
You must be signed in to change notification settings - Fork 14
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
FATAL: x52d_main.c:117 Daemon is already running as PID 23488 #47
Comments
Did you install the package from source or the Debian package? Can you run |
i installed it from the AUR on arch |
i can try and install the github version if needed |
For some reason, it looks like the daemon might have crashed earlier and not cleaned up the PID file - look for a file |
BTW, this is fixed in the latest version on Github. |
there was a pid file yeah... |
@nirenjan hmm how does it handle when no x52 is plugged in? |
I did fix #43 in the latest version on Github, so that may be the reason why the 0.2.3 version crashed. I haven't gotten around to making a new release yet though. One thing though, if you installed from Github, you should stick to running it via systemd, that will ensure it runs in foreground mode, rather than background, and it will skip the check for the PID file. |
The daemon is capable of recognizing when no joystick is connected, and it will try to reconnect every 5 seconds or so. If a joystick is connected, then it will update the joystick every 50 ms, and that should detect a disconnection nearly instantly. There was a bug in earlier versions which didn't quite handle the disconnect and reconnect properly, so that's why you should switch to the latest version. |
@MNS26, could you please uninstall the Github version and update to v0.3.0 from AUR? Make sure you cleanup the PID file. |
how do i uninstall the git version? |
i never had a issue with it (having it plugged in or not when starting the daemon didnt make a difference) |
Yes, |
You should already be running x52d from systemd, check |
hmm i was kinda hoping to not have to rely on root to access it after manually starting the service (either via on another note... do you have a communication example for sending data to the x52? (planning on replacing it with a RP2040 cus if its 12bit ADC) |
hmm yeah for whatever reason it now keeps sending wrong inputs |
here are the current keybinds running its currently 11:45pm ill look into it more tomorrow |
well ill stick with the module in master for now |
oh also... for some reason i cant set the B button led to green or amber |
That is weird, was it working earlier? Can you check in a Windows environment if the B green LED works? Amber is just both red and green on at the same time, so an issue affecting just the green LED will exhibit the behavior you see |
hmm i will have a look tomorrow |
is there a way to set the leds on the fly? |
Yes, you can run |
oh cool... im guessing i need sudo for it tho... also one of the wires broke in the joystick (right at the solder joint) but its fixed |
It should work without sudo, but do let me know if it doesn't. |
Yeah, unfortunately, the config system will accept |
ah... is it a possibility to save it color state before a |
That would be a pretty big change, I'll see what I can do. |
oh i forgot to say this earlier... with the kernel module it seems that after a while steam and (any) game that has controller support on its own crashes and takes steam with it when launching steam via a terminal for extra info it takes the terminal session with it |
i would really like to help with the changes, i know C++ and know some basic C. |
oh wow.. i realised i wasnt using x52cli but x52ctl well x52cli does work without sudo |
x52cli writes directly to the joystick using libx52, but it can get reset if the daemon restarts. The udev rule allows a user with access to |
im part of the |
for whatever reason pressing the up resets the x52 V_20230107_011447_ES10.mp4 |
its not just when its getting pressed.... when held down and pressing other buttons it also happens |
Sounds like there may be some short happening, that could cause a reset. |
whenever i insmod the saitek kernel module it starts happening |
well rebuilding the module seemed to fix it for now |
nvm still happens |
it also happens when quickly pressing the trigger and releasing the lower button release bottom button |
V_20230107_160306_ES10.mp4 |
also i will close this issue since the original issue is gone |
whenever i run any commands it will throw a fatal message (
FATAL: x52d_main.c:117 Daemon is already running as PID 22828
)when running anything other than
x52d -h
it throws a permission errorwhen using
sudo x52d
running any command after that (other thanx52d -h
) it will give the "FATAL" errorThe text was updated successfully, but these errors were encountered: