-
Notifications
You must be signed in to change notification settings - Fork 310
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
KMonads crashes frequently #177
Comments
On Thu, Jan 28 2021 11:53, Max Schillinger wrote:
```
kmonad: /dev/input/by-id/usb-SONiX_USB_DEVICE-event-kbd: openFd: does not exist (No such file or directory)
kmonad: Could not perform IOCTL release on: /dev/input/by-id/usb-SONiX_USB_DEVICE-event-kbd
```
This might be a hardware problem, as these crashes don't happen with
my other keyboard. Do you have an idea what could be the reason? Maybe
the keyboard gets disconnected (although it's connected via a USB
cable)?
Yes, this does indeed seem like a hardware problem; the keyboard gets
disconnected, kmonad tries to access the respective (now non-existant)
`dev/input' directory, can't find it, and throws an exception.
I can reproduce this by connecting a USB keyboard, starting kmonad, and
then disconnecting that keyboard.
|
OK, then it's not caused by KMonad. This is the corresponding part in my
Maybe some power saving function!? Nevermind, I'm closing this. |
@MaxGyver83 FYI there's a systemd unit at https://github.com/david-janssen/kmonad/blob/master/startup/kmonad.service that will restart on exit. It won't solve the problem but at least it would save the trouble of managing a loop in a shell. |
OK, meanwhile I found the root cause. I googled the first line of the syslog posted above: EMI stands for Electromagnetic interference and there are interesting stories about what could cause a USB hub to be disabled, like turning off an exhaust fan in the adjacent bath room. After reading this, I recognized a pattern. The USB port disconnects (and KMonad crashes) every time I lean towards the screen (only!) while standing up from my office chair. I would never have thought about that. I guess I need better isolated cables... @bard : Thanks for you comment. I hope that I don't need this after changing the USB cable. |
Just popping into the old issue to say: haha! Posture-induced bug, great fun :-) |
Recently, KMonad crashes very often but only for one external (USB) keyboard. That's why I'm running KMonad in an endless loop now.
Today I had 278 crashes in 9.5 hours. In most cases, I get these two error messages (for 2 subsequent restarts):
This might be a hardware problem, as these crashes don't happen with my other keyboard. Do you have an idea what could be the reason? Maybe the keyboard gets disconnected (although it's connected via a USB cable)?
The text was updated successfully, but these errors were encountered: