summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-03-18 16:58:27 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-03-18 16:58:27 +0100
commit1a2aefcf119e21345e41466d3d28bddcd6d6488a (patch)
treea912921ae86a62984257ac4cbe8c950a68682775 /sys/man
parent08453422b1b8ac1daaba8000fb07d6551fb155b8 (diff)
devmouse: refactor screen blanking logic
devmouse controls the screen blanking timeout, so move the code there avoiding cross calls between modules. the only function that needs to be provided is blankscreen(), which gets called with drawlock locked. the blank timeout is set thru /dev/mousectl now, so kernels without devvga can set it. blanking now only happens while /dev/mouse is read. so this avoids accidentally blanking the screen on cpu servers that do not have a mouse to unblank it.
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/3/mouse12
-rw-r--r--sys/man/3/vga19
2 files changed, 13 insertions, 18 deletions
diff --git a/sys/man/3/mouse b/sys/man/3/mouse
index 11bf6f3ee..078faff9a 100644
--- a/sys/man/3/mouse
+++ b/sys/man/3/mouse
@@ -151,6 +151,18 @@ unlike
clears the mouse
to its default state.
.TP
+.B blank
+Blank the screen.
+The screen also blanks after 30 minutes of inactivity.
+The screen can be unblanked by moving the mouse.
+.TP
+.BI blanktime " minutes"
+Set the timeout before the
+screen blanks; the default is 30 minutes.
+If
+.I minutes
+is zero, blanking is disabled.
+.TP
.B twitch
unblanks the screen and resets the idle timeout as if the
mouse was twitched.
diff --git a/sys/man/3/vga b/sys/man/3/vga
index d17858008..e633de6d5 100644
--- a/sys/man/3/vga
+++ b/sys/man/3/vga
@@ -141,22 +141,6 @@ which must be either
or
.BR 8 .
.TP
-.B blank
-Blank the screen.
-This consists of setting the hardware
-color map to all black as well as, on some controllers, setting the
-VGA hsync and vsync signals so as to turn off
-VESA DPMS-compliant monitors.
-The screen also blanks after 30 minutes of inactivity.
-The screen can be unblanked by moving the mouse.
-.TP
-.BI blanktime " minutes"
-Set the timeout before the
-screen blanks; the default is 30 minutes.
-If
-.I minutes
-is zero, blanking is disabled.
-.TP
.BI hwaccel " mode"
Depending on whether
.I mode
@@ -195,8 +179,7 @@ or
.BR off ,
enable or disable the use of DPMS blanking
(see
-.B blank
-above).
+.IR mouse (3)).
.TP
.BI linear " size align"
Use a linear screen aperture of size