git: 7d99b7a67610 - main - sysutils/keyd: add resume support after S3 suspend
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Mar 2026 14:43:40 UTC
The branch main has been updated by tz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7d99b7a6761020b1d4f61b4431696d94d93211ee
commit 7d99b7a6761020b1d4f61b4431696d94d93211ee
Author: Torsten Zuehlsdorff <tz@FreeBSD.org>
AuthorDate: 2026-03-24 16:58:10 +0000
Commit: Torsten Zuehlsdorff <tz@FreeBSD.org>
CommitDate: 2026-03-25 14:43:02 +0000
sysutils/keyd: add resume support after S3 suspend
keyd breaks after S3 suspend/resume because USB devices aren't ready
on restart. Add resume keyword and a delayed restart to the rc script.
PR: 270603
Approved by: chalpin@cs.wisc.edu (maintainer timeout)
---
sysutils/keyd/Makefile | 1 +
sysutils/keyd/files/keyd.in | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/sysutils/keyd/Makefile b/sysutils/keyd/Makefile
index 9b9f76648da0..bad077a3ebee 100644
--- a/sysutils/keyd/Makefile
+++ b/sysutils/keyd/Makefile
@@ -1,6 +1,7 @@
PORTNAME= keyd
DISTVERSIONPREFIX= v
DISTVERSION= 2.6.0
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= chalpin@cs.wisc.edu
diff --git a/sysutils/keyd/files/keyd.in b/sysutils/keyd/files/keyd.in
index 32af464ca97e..189a1290240d 100644
--- a/sysutils/keyd/files/keyd.in
+++ b/sysutils/keyd/files/keyd.in
@@ -2,7 +2,7 @@
# PROVIDE: keyd
# REQUIRE: DAEMON
-# KEYWORD: shutdown
+# KEYWORD: resume shutdown
#
# Add the following lines to /etc/rc.conf to enable this service:
#
@@ -13,6 +13,8 @@
name="keyd"
rcvar="${name}_enable"
+resume_cmd="sleep 3; run_rc_command restart"
+extra_commands="resume"
load_rc_config "$name"