Skip to content
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

Error when unplugging keyboard #19

Open
avdv opened this issue Mar 11, 2022 · 0 comments · May be fixed by #20
Open

Error when unplugging keyboard #19

avdv opened this issue Mar 11, 2022 · 0 comments · May be fixed by #20

Comments

@avdv
Copy link

avdv commented Mar 11, 2022

Hi.

I have a laptop with a secondary monitor and keyboard connected through a USB C dock. As soon as I unplug the cable, the illum daemon crashes:

illum-d: main-daemon.c:471: evdev_cb: Assertion `r == LIBEVDEV_READ_STATUS_SUCCESS' failed.

To debug this, I have added this code to main-daemon.c right before the assert statement:

                if (r != LIBEVDEV_READ_STATUS_SUCCESS) {
                   errno = -r;
                   perror("libevdev_next_event");
                }

here is the output:

sudo ./illum-d
<6>using /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight as a backlight
<6>using /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input0/event0 as an input dev
<6>using /sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.4/3-6.4.4/3-6.4.4.1/3-6.4.4.1:1.1/0003:046D:C548.000D/input/input34/event4 as an input dev
<6>using /sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.4/3-6.4.4/3-6.4.4.2/3-6.4.4.2:1.2/0003:04D9:A131.0010/input/input39/event9 as an input dev
<6>using /sys/devices/platform/INTC1051:00/input/input13/event12 as an input dev
<6>using /sys/devices/platform/thinkpad_acpi/input/input17/event16 as an input dev
libevdev_next_event: No such device
illum-d: main-daemon.c:474: evdev_cb: Assertion `r == LIBEVDEV_READ_STATUS_SUCCESS' failed.
Aborted

Apparently, libevdev_next_event really does report other errors than the three values mentioned in the documentation.

avdv added a commit to avdv/illum that referenced this issue Mar 12, 2022
@avdv avdv linked a pull request Mar 12, 2022 that will close this issue
bors bot added a commit that referenced this issue Mar 16, 2022
20: Stop processing events on error r=jmesmon a=avdv

Fixes #19


Co-authored-by: Claudio Bley <[email protected]>
Artturin pushed a commit to NixOS/nixpkgs that referenced this issue May 7, 2022
illum segfaults when unplugging keybords, see upstream issue [1]. The upstream
PR [2] is still open.

[1]: codyps/illum#19
[2]: codyps/illum#20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant