use ttyC4 as the control device instead of ttyC0

This commit is contained in:
robert 2021-08-25 12:35:20 +00:00
parent ddb12bf8e0
commit 96467fe5b7
2 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,11 @@
# $OpenBSD: Makefile,v 1.19 2021/08/25 12:05:52 robert Exp $
# $OpenBSD: Makefile,v 1.20 2021/08/25 12:35:20 robert Exp $
COMMENT= MATE power manager
MATE_PROJECT= mate-power-manager
REVISION= 0
# LGPLv2
PERMIT_PACKAGE= Yes

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_gpm-backlight-helper_c,v 1.1 2021/08/25 12:05:52 robert Exp $
$OpenBSD: patch-src_gpm-backlight-helper_c,v 1.2 2021/08/25 12:35:20 robert Exp $
Index: src/gpm-backlight-helper.c
--- src/gpm-backlight-helper.c.orig
@ -60,7 +60,7 @@ Index: src/gpm-backlight-helper.c
filename = gcm_backlight_helper_get_best_backlight ();
if (filename == NULL) {
+#elif defined(__OpenBSD__)
+ if ((fd = open("/dev/ttyC0", O_RDWR)) < 0) {
+ if ((fd = open("/dev/ttyC4", O_RDWR)) < 0) {
+#endif
/* TRANSLATORS: no backlights found */
g_print ("%s\n", _("No backlights were found on your system"));