History log of /freebsd-10-stable/sys/modules/syscons/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
294783 26-Jan-2016 des

MFH (r293034, r29304): plasma screensaver

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


211690 23-Aug-2010 imp

MFtbemd:

Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the
source code location of the machine, the latter the binary output. In
general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless
we're tesitng for a specific target. The isn't even moot for
i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86,
although a specific cleanup for that likely would be needed...


206380 07-Apr-2010 jkim

Correct beastie_saver module name.


206366 07-Apr-2010 jkim

Reconnect the old Beastie logo_saver to build as beastie_saver.


206365 07-Apr-2010 jkim

Copy logo_saver module to beastie_saver.


147882 10-Jul-2005 marius

Build blank_saver.ko, fade_saver.ko and green_saver.ko on sparc64
now that they work with creator(4) and machfb(4).

Reviewed by: ru (style)
Approved by: re (scottl)


124711 19-Jan-2004 ru

Normalize SUBDIR.


106762 11-Nov-2002 mux

Don't override CWARNFLAGS in these Makefiles.


106759 11-Nov-2002 mux

Don't override CWARNFLAGS in this Makefile.


106497 06-Nov-2002 nyan

Move adding -DPC98 to CFLAGS from each modules to sys/modules/Makefile.inc.


93011 23-Mar-2002 amorita

Add new graphical screen saver (dragon_saver).
Add support for NEC PC-9821 PEGC screen (fire/logo/rain/warp_saver).


90441 10-Feb-2002 phk

It's OK to be pedantic, but long long literals are OK.


89260 11-Jan-2002 ru

Drop <bsd.man.mk> support from <bsd.kmod.mk>.

Not objected to by: -current


81325 09-Aug-2001 peter

Build modules from the main src/sys tree.
Tidy up some loose ends.. there were extra -I's being added to CFLAGS for
no reason.


72797 21-Feb-2001 nyan

Fixed warnings.


71619 25-Jan-2001 nyan

Added necessary include for pc98.


71370 22-Jan-2001 nyan

Added PC-98 apm support.

Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>


70834 09-Jan-2001 wollman

select() DKI is now in <sys/selinfo.h>.


70711 06-Jan-2001 obrien

Use a consistent style and one much closer to the rest of /usr/src


68103 31-Oct-2000 nsayer

Don't needlessly indirect the APM softstate. It does nothing but
obfuscate the code.


62065 25-Jun-2000 markm

Remove unneeded header.


60966 27-May-2000 peter

Use .include <bsd.kmod.mk> to get to ../../*/conf/kmod.mk instead of
encoding the relative path.


60201 08-May-2000 nyan

Added PC-98 supports.

Obtained from: FreeBSD(98) 4.0R-Rev01


60062 06-May-2000 obrien

All the screen savers other than "apm" build on the Alpha. daemon.ko has
been tested to work.


59951 04-May-2000 peter

Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.
This means that the kernel can be totally self contained now and is not
dependent on the last buildworld to update /usr/share/mk. This might
also make it easier to build 5.x kernels on 4.0 boxes etc, assuming
gensetdefs and config(8) are updated.


59874 01-May-2000 peter

Add $FreeBSD$


59617 25-Apr-2000 bp

More machdep/random.h -> sys/random.h fixes.


56043 15-Jan-2000 yokota

This is the 3rd stage of syscons code reorganization.

- Split terminal emulation code from the main part of the driver so
that we can have alternative terminal emulator modules if we like in
the future. (We are not quite there yet, though.)

- Put sysmouse related code in a separate file, thus, simplifying the
main part of the driver.

As some files are added to the source tree, you need to run config(8)
before you compile a new kernel next time.

You shouldn't see any functional change by this commit; this is only
internal code reorganization.


51851 02-Oct-1999 nsayer

Add the apm_saver syscons screen saver module.

apm_saver uses the apm_display() routine from the apm system to
"suspend" the "display" part of the machine.

This is beneficial for some laptops (or other machines with
non-traditional displays) that choke on the 'green' saver's
effect.

Another way of looking at this is that it's the same as a screen
saver that does an 'apm -d 0' to blank the display and an 'apm -d 1'
to bring it back. One probably ought to use these commands to make
sure the effect will be correct before using it unattended.


51101 08-Sep-1999 des

Clean up and reorder.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48104 22-Jun-1999 yokota

The second phase of syscons reorganization.

- Split syscons source code into manageable chunks and reorganize
some of complicated functions.

- Many static variables are moved to the softc structure.

- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>

- Modified the kernel console input function sccngetc() so that it
handles function keys properly.

- Reorganized the screen update routine.

- VT switching code is reorganized. It now should be slightly more
robust than before.

- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.

- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.

SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.

SC_DISABLE_DDBKEY
Disables the `debug' key combination.

SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)

SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.

- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.

- The video driver provides a set of ioctl commands to manipulate the
frame buffer.

- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.

- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.

- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.

- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.


46899 10-May-1999 des

MFS: indent-assisted style cleanup.


46689 08-May-1999 des

A little closer to style(9).


46409 04-May-1999 jkh

Add missing copyright.


46407 04-May-1999 jkh

Add "fire" screen saver.

Submitted by: Brad Forschinger <retch@flag.blackened.net>


45616 12-Apr-1999 des

Centralize and reorganize a few macros.


43673 05-Feb-1999 des

Followup to yokota's last commit:

- va_mode_flags -> va_info.vi_flags
- scanline width may be different from screen width


42749 17-Jan-1999 yokota

Retrun EAGAIN if the current video mode is a graphics mode.


42720 16-Jan-1999 des

Move the definition of set_origin from logo_saver.c to saver.h.


42504 11-Jan-1999 yokota

The first stage of console driver reorganization: activate new
keyboard and video card drivers.

Because of the changes, you are required to update your kernel
configuration file now!

The files in sys/dev/syscons are still i386-specific (but less so than
before), and won't compile for alpha and PC98 yet.

syscons still directly accesses the video card registers here and
there; this will be rectified in the later stages.


42236 01-Jan-1999 des

Use M_VGA_VG320 if M_VESA_CG800x600 is not available. It looks ugly in
low-res, but it works...

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>


42206 31-Dec-1998 des

Activate the rain screensaver.


42205 31-Dec-1998 des

Here's one for the terminally melancholic amongst us.


42204 31-Dec-1998 des

Eliminate "initialization from incompatible type" warning in SAVER_MODULE
macro.


42203 31-Dec-1998 des

Compile without warnings.


42143 29-Dec-1998 peter

Add -I${.CURDIR} since it #includes logo.c from the source dir and breaks
when building with an obj dir.

Reported by: Quite a few people.. :-/


42121 28-Dec-1998 des

Activate the logo screensaver.


42120 28-Dec-1998 des

One more for the road: Chuck the friendly floating daemon. Requires
VESA_800x600 to run.


42119 28-Dec-1998 des

Save the palette in case syscons doesn't restore it properly.
Fix a minor overflow.


42109 27-Dec-1998 des

Activate the warp screensaver.


42108 27-Dec-1998 des

Finally give FreeBSD a graphical screensaver. It isn't much, but it works,
and can serve as a template for further efforts. Consider this my (belated)
Christmas present to the Project :)

Requested by: jkh


40885 04-Nov-1998 peter

Simple update to make these work as kld and preload modules.


40440 16-Oct-1998 peter

Sample initial set of kld-ified modules. Not all have been completely
converted yet. These are more of a starting point. This is NOT connected
to the parent Makefile.

OK'ed by jkh (who is ever so patiently waiting)


39428 17-Sep-1998 sos

Fix the sreensavers so the work again with the new syscons & friends.

Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>


39287 15-Sep-1998 sos

Add VESA support to syscons.

Kazu writes:

The VESA support code requires vm86 support. Make sure your kernel
configuration file has the following line.
options "VM86"
If you want to statically link the VESA support code to the kernel,
add the following option to the kernel configuration file.
options "VESA"

The vidcontrol command now accepts the following video mode names:
VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600

The VESA_800x600 mode is a raster display mode. The 80x25 text will
be displayed on the 800x600 screen. Useful for some laptop computers.

vidcontrol accepts the new `-i <info>' option, where <info> must be
either `adapter' or `mode'. When the `-i adapter' option is given,
vidcontrol will print basic information (not much) on the video
adapter. When the `-i mode' option is specified, vidcontrol will
list video modes which are actually supported by the video adapter.

Submitted by: Kazutaka YOKOTA yokota@FreeBSD.ORG


38137 06-Aug-1998 yokota

The daemon, snake and star savers should refuse to load if the current
video mode is the VESA mode, because they cannot work properly under the
VESA mode support as in the current form.


32988 01-Feb-1998 bde

Don't put a path to "sys" in ${CFLAGS} here. bsd.kmod.mk now handles
this more generally.


32571 16-Jan-1998 bde

Include <machine/pc/display.h>, not <i386/include/pc/display.h>. This is
not quite correct, because the Makefiles in lkm/syscons don't set up the
`machine' symlink, but other, more volatile headers in <machine> are
already used.


30725 26-Oct-1997 yokota

- The daemon might go off the screen and crashed the system if the
screen size was changed while the screen saver was inactive. Adjust
the positions of the daemon and the text and clip them accordingly
each time.

- Don't call set_border() too often. Some video chip may produce
flicker.

Pointed out by tony@dell.com

- Don't fill the entire screen with blank char every time the saver is
called. Blank only the part of the screen where the daemon and the
text was previously printed.


30095 04-Oct-1997 yokota

Make the blank screen saver work with MDA and CGA. The fade and green
savers are also modified so that they behave in the same way as the
blank saver on MDA and CGA, although it's not the way these screen
savers are supposed to work, but fading monitor and tickling green
monitor cannot be done on MDA and CGA, AFAIK. So, this is the second
best solution.

As of this change, the current state of support of screen savers is
summarized in the following table.

MDA CGA EGA VGA
blank OK OK NA OK
daemon OK OK OK OK
fade * * NA OK
green * * NA OK
snake OK OK OK OK
star OK OK OK OK

OK: works
NA: doesn't work, the module cannot be loaded for this adapter.
*: behave the same way as the blank saver.

As you can see, EGA is left out for now. But, we can do no better, as
EGA registers cannot be read...

Reviewed by: sos


27427 15-Jul-1997 yokota

Incorporated lots of fixes and suggestions from Bruce and changes to
facilitate the new saver loading/unloading notification interface
in syscons.

daemon_saver:
- M_NOWAIT was wrong, since NULL returns are not handled. Just use
M_WAITOK.
- use `ostype' instead of hard-coded "FreeBSD". Now there is no more
hard-coded string! (But, who will run this screen saver on other
OS?!)
- put macros and data declarations in a consistent order.
- -DDEAMON_ONLY and -DSHOW_HOSTNAME options added in the previous commit
are removed. Options of this kind can go stale and no one notices
because no one uses them. DEAMON_ONLY is just removed. SHOW_HOSTNAME
is made default.

snake_saver:
- use `ostype' and `osrelease' as in the daemon saver. The string changes
slightly - there was a hyphen after "FreeBSD"; now there is a space.
(It is consistent with uname -a, like the daemon server already is.)

all screen savers:
- Use the new add_scrn_saver()/remove_scrn_saver() in syscons.c
to declare loading/unloading of a screen saver. Removed reference
to `current_saver' and the variable `old_saver' as they are not
necessary anymore.
- The blank, fade and green screen savers manipulate VGA registers.
Module loading should fail for non-VGA cards.
- `scrn_blanked' is consistently treated as a number/counter rather
than boolean.
- Some savers touch `scp->start' and `scp->end' to force entire screen
update when stopping themselves. This is unnecessary now because
syscons.c takes care of that.
- cleared up many unused or unnecessary #include statements.
- Removed -DLKM from Makefiles.

YOU NEED TO RECOMPILE BOTH SCREEN SAVERS AND KERNEL AS OF THIS CHANGE.


26893 24-Jun-1997 yokota

Take the OS release string from the kernel variable `osrelease'
rather than hard-code it in the message text. Optinally include
the host name in the message if SHOW_HOSTNAME is defined.

The origianl idea and sample code submitted by Angelo Turetta
<ATuretta@stylo.it>.


26146 26-May-1997 yokota

Corrected accidental breakage in the last commit.

Pointed out by: Steve Passe, smp@csn.net


26128 25-May-1997 obrien

Fixed up ssigala@globalnet.it's "Jumping Daemon" screen saver for < v3.0.


26081 24-May-1997 yokota

Flip the daemon at the edge of the screen.
Submitted by: Sandro Sigala, Chris Shenton


25968 21-May-1997 yokota

Introducing "Jumping Daemon" screen saver. This is really cute and
eye-catching :-)

Submitted by: ssigala@globalnet.it


25967 21-May-1997 yokota

Introducing "Jumping Daemon" screen saver. This is really cute and
eye-catching :-)

Submitted by: ssigala@globalnet.it

Also fixed some `extern' declarations in saver.h.


24674 06-Apr-1997 dufault

Make MOD_* macros almost consistent:

Use the name argument almost the same in all LKM types. Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name. This is a candidate for change and I vote just the name without
the "_mod".

Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.

Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.

Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.

Change source in tree to use the new interface.

Reviewed by: Bruce Evans


24673 06-Apr-1997 dufault

Make MOD_* macros almost consistent:

Use the name argument almost the same in all LKM types. Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name. This is a candidate for change and I vote just the name without
the "_mod".

Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.

Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.

Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.

Change source in tree to use the new interface.

Reviewed by: Bruce Evans


22982 22-Feb-1997 peter

Revert $FreeBSD$ back to $Id$


21731 15-Jan-1997 sos

Upgrade the kbdio rutines to provide queued kbd & mouse events.
Minor other updates to syscons by me.

Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


19643 11-Nov-1996 jkh

Make snake 3.0-CURRENT here.

There's gotta be a better way of syncronizing our release numbers. :-)


18778 06-Oct-1996 wosch

delete unused variable BINDIR, use new variable MODLOAD/MODUNLOAD


18471 22-Sep-1996 wosch

add forgotten $Id$


16879 01-Jul-1996 bde

Added or restored #include of <machine/md_var.h>. Some declarations
moved from <machine/cpufunc.h> to better places.


12536 29-Nov-1995 wollman

Delete obnoxious uprintf()s in load/unload procedures.


12276 14-Nov-1995 bde

Changed the first (name) arg of MOD_DEV(), MOD_EXEC() and MOD_MISC()
from a string to an identifier so that it can be used to generate
declarations and strings. It's much easier to stringize an identifier
than to identifize a string. A uniform naming scheme must be used
for the automatically generated things to apply. This is a feature.

Used the module identifer to generate prototypes for the module load,
unload and stat functions. Removed the few prototypes for these that
already existed.

Used the module identifier to generate a unique struct tag in MOD_DEV().
This should probably be done for all the MOD_*() macros.

Moved the trailing semicolon from the MOD_*() macro definitions to the
macro invocations that didn't already (bogusly) have it.

Staticized the module load and unload functions.

Added function return types for the module load, unload and stat functions.

lkm/ibcs2/ibcs2.c:
Included <sys/sysproto.h> to get everything prototyped.
Cleaned up #includes.

lkm/ibcs2/ipfw.c:
Cleaned up #includes.

lkm/linux/linux.c:
The module name had to change from "linux_emulator" to "linux_mod" to
be automatically generated.
Cleaned up #includes.

lkm/syscons/*/*_saver.c:
Completed delcarations of function pointers.

sys/i386/isa/atapi.c:
The module name had to change from "atapi" to "atapi_mod" to be
automatically generated.

sys/i386/isa/wcd.c:
Used the fixed MOD_DEV(). This module has two devices and expanded the
macro in the source instead of fixing it.
The module names had to change from "wcd" and "rwcd" to "wcd_mod" and
"rwcd_mod" to be automatically generated.

sys/pccard/pcic.c:
The module name had to change from "pcic" to "pcic_mod" to be
automatically generated.


12250 13-Nov-1995 bde

Replaced nosys() by lkm_nullcmd(). Always call lkm load/unload/stat
functions instead of skipping the call if the function is nosys().
nosys() returned the wrong value as well as having the wrong type.


11857 28-Oct-1995 peter

Do a pass over the broken LKM's and update them to use the "new"
convention of having their entry point named "<modname>_mod"".
Symorder is enforcing this when the current bsd.kmod.mk is installed.

I've not tested all these, but at least they all compile now.

Reattach them to the makefile.

Note that the change that I made to symorder needs to be compiled and
installed before any LKM's will work - the last version was corrupting
the relocation tables. A "make world" will to this, but if you
manually run a make on the lkm's you'll need to take care of it by
hand.


10555 04-Sep-1995 peter

Update the version in the snake saver...
Something similar needs to happen to RELENG_2_1_0 - or better yet, this
should become dynamic...


8871 30-May-1995 rgrimes

Remove trailing whitespace.


8560 16-May-1995 sos

Changed relase number in snake_saver.c from 2.1 to 2.0.5


8513 14-May-1995 bde

Fix declaration of palette[] so that fade saver doesn't cause panics.


7500 30-Mar-1995 sos

Update to new screen update method.


6859 03-Mar-1995 nate

Make in lkm/syscons fails due to missing include for apm stuff.

Submitted by: John Capo <jc@irbs.com> and John Hay <jhay@mikom.csir.co.za>


6671 23-Feb-1995 phk

Once and for all: Never a ${DESTDIR} in ${BINDIR} !


6628 22-Feb-1995 sos

Next syscons update (given up on numbering :)

Removed screensavers from syscons, they are now LKM's. This makes it
possible to do some really "interesting" screensavers...
Fixed bug that sometimes caused garbage to appear when leaving
"scroll-lock" history.
Reformattet indentation, it got too deep for a normal 80 pos screen.
Split up in syscons.c & syscons.h for use with the saver-lkm's.
Temporarily removed -s option from vidcontrol, savers should now
be loaded with modload.