Module Name:    src
Committed By:   macallan
Date:           Thu Feb  6 13:31:30 UTC 2020

Modified Files:
        src/sys/dev/pci: radeonfb.c

Log Message:
sent PMF events when (un)blanking so things like lmu can turn their lights on
or off as well


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 src/sys/dev/pci/radeonfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/radeonfb.c
diff -u src/sys/dev/pci/radeonfb.c:1.105 src/sys/dev/pci/radeonfb.c:1.106
--- src/sys/dev/pci/radeonfb.c:1.105	Thu Aug 15 00:50:11 2019
+++ src/sys/dev/pci/radeonfb.c	Thu Feb  6 13:31:30 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: radeonfb.c,v 1.105 2019/08/15 00:50:11 rin Exp $ */
+/*	$NetBSD: radeonfb.c,v 1.106 2020/02/06 13:31:30 macallan Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.105 2019/08/15 00:50:11 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.106 2020/02/06 13:31:30 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1173,6 +1173,9 @@ radeonfb_ioctl(void *v, void *vs,
 		    (*(unsigned int *)d == WSDISPLAYIO_VIDEO_OFF));
 		radeonfb_switch_backlight(dp,
 		    (*(unsigned int *)d == WSDISPLAYIO_VIDEO_ON));
+		pmf_event_inject(NULL, 
+		    (*(unsigned int *)d == WSDISPLAYIO_VIDEO_ON) ?
+		     PMFE_DISPLAY_ON : PMFE_DISPLAY_OFF);
 		return 0;
 
 	case WSDISPLAYIO_GETCMAP:

Reply via email to