Module Name:    src
Committed By:   macallan
Date:           Sat Oct  2 00:52:03 UTC 2010

Modified Files:
        src/sys/dev/wscons: wsconsio.h

Log Message:
clarify how backlight control ioctl()s are supposed to work
TODO: adapt r128fb and radeonfb


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/dev/wscons/wsconsio.h

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/wscons/wsconsio.h
diff -u src/sys/dev/wscons/wsconsio.h:1.92 src/sys/dev/wscons/wsconsio.h:1.93
--- src/sys/dev/wscons/wsconsio.h:1.92	Thu Dec 31 05:08:05 2009
+++ src/sys/dev/wscons/wsconsio.h	Sat Oct  2 00:52:02 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: wsconsio.h,v 1.92 2009/12/31 05:08:05 macallan Exp $ */
+/* $NetBSD: wsconsio.h,v 1.93 2010/10/02 00:52:02 macallan Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -442,7 +442,14 @@
 };
 #define	_O_WSDISPLAYIO_SETKEYBOARD	_IOWR('W', 81, struct wsdisplay_kbddata)
 
-/* Misc control.  Not applicable to all display types. */
+/*
+ * Misc control.  Not applicable to all display types.
+ * - WSDISPLAYIO_PARAM_BACKLIGHT should be an on/off switch for screensavers,
+ *   it should turn the display dark / turn the backlight off without changing
+ *   the brightness value so screensavers and such can just flip the switch
+ *   without caring about actual brightness settings
+ * - WSDISPLAYIO_PARAM_BRIGHTNESS should set display / backlight brightness
+ */
 struct wsdisplay_param {
 	int param;
 #define	WSDISPLAYIO_PARAM_BACKLIGHT	1

Reply via email to