Bug 270597 - sysutils/keyd 100% CPU usage
Summary: sysutils/keyd 100% CPU usage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jan Beich
URL: https://github.com/rvaiya/keyd/issues...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-02 09:46 UTC by Ivan
Modified: 2023-05-17 00:04 UTC (History)
0 users

See Also:
jbeich: maintainer-feedback+
jbeich: merge-quarterly+


Attachments
workaround (1.13 KB, patch)
2023-04-02 10:36 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan 2023-04-02 09:46:38 UTC
Tried a simple config. It looks like the config works well.

But keyd uses 100% of one core CPU.
Comment 1 Ivan 2023-04-02 09:53:26 UTC
Strange.. The keyd service also prevents the machine from correct rebooting. In stops rebooting on the last stage.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2023-04-02 10:36:54 UTC
Created attachment 241264 [details]
workaround

Does this help? If so waiting for upstream fix.
Comment 3 Ivan 2023-04-02 11:00:29 UTC
Yes, it works!
Comment 5 Jan Beich freebsd_committer freebsd_triage 2023-04-04 15:29:04 UTC
The upstream fix doesn't apply cleanly on top of v2.4.2 (currently, the latest release). If you want to test now try the patch in https://github.com/rvaiya/keyd/issues/416#issuecomment-1384121844

Otherwise, waiting for v2.5.0 (or v3.0.0) per https://github.com/rvaiya/keyd/issues/463#issuecomment-1489643124
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-05-17 00:02:24 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8157ae278240ba0c7a77c84fb3154a8a31c52759

commit 8157ae278240ba0c7a77c84fb3154a8a31c52759
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-05-16 22:16:09 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-17 00:01:29 +0000

    sysutils/keyd: update to 2.4.3

    Changes:        https://github.com/rvaiya/keyd/compare/v2.4.2...v2.4.3
    Reported by:    GitHub (watch releases)
    PR:             270597

 sysutils/keyd/Makefile | 11 +++--------
 sysutils/keyd/distinfo |  8 +++-----
 2 files changed, 6 insertions(+), 13 deletions(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-05-17 00:03:26 UTC
A commit in branch 2023Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=517216d8a59e05744f851f9401b20b56397a16a8

commit 517216d8a59e05744f851f9401b20b56397a16a8
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-05-16 22:16:09 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-17 00:02:33 +0000

    sysutils/keyd: update to 2.4.3

    Changes:        https://github.com/rvaiya/keyd/compare/v2.4.2...v2.4.3
    Reported by:    GitHub (watch releases)
    PR:             270597

    (cherry picked from commit 8157ae278240ba0c7a77c84fb3154a8a31c52759)

 sysutils/keyd/Makefile | 11 +++--------
 sysutils/keyd/distinfo |  8 +++-----
 2 files changed, 6 insertions(+), 13 deletions(-)
Comment 8 Jan Beich freebsd_committer freebsd_triage 2023-05-17 00:04:34 UTC
Oops, used the wrong link in Changes field. See https://github.com/rvaiya/keyd/releases/tag/v2.4.3 for an overview.