Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 1996 20:51:38 -0500
From:      Benjamin Lewis <blewis@vet.purdue.edu>
To:        current@freebsd.org
Subject:   Weird keyboard problem with COMPAT_LINUX
Message-ID:  <199611270151.UAA00471@ylana.vet.purdue.edu>

next in thread | raw e-mail | index | archive | help

On -hackers recently, someone mentioned that they had experienced weird 
problems with their keyboard, and attributed it to starting xdm sometime
in the boot process.  The discussion quickly wandered into the proper
way to start xdm, but as J. Wunsch pointed out, xdm doesn't seem to be
the problem (I don't subscribe to -hackers - I found this stuff in a 
search of the lists, so I may have missed significant portions of the
discussion).

I just made world and recompiled the kernel, and I see similar problems
even though I don't start xdm at boot time.  The sources were from 
freefall:/pub/CTM/src-cur, up to src-cur.2459.gz (the last available
delta at compile time).  I would show the uname -a output from that
kernel, but I can't get that far.

The machine probed and booted fine.  The keyboard works fine when editing
the config using the -v option.  However, when the login: prompt appears,
the keyboard seems totally wacked out: what I type isn't what ends up on
screen, CapsLock & NumLock don't have any effect on the LEDs, after a 
while it seems to end up in "ControlLock", and other weird effects.
I was unable to login, so I couldn't try any commands to reset the 
keyboard.  Perhaps if I was running xdm at startup, the situation might
have been recoverable.

The only change in the config file was to add:
	options         COMPAT_LINUX



When the COMPAT_LINUX option is removed, the kernel works fine:
	FreeBSD ylana.vet.purdue.edu 3.0-CURRENT \
	FreeBSD 3.0-CURRENT #0: Tue Nov 26 20:17:51 EST 1996 \
	root@ylana.vet.purdue.edu:/usr/src/sys/compile/YLANA  i386

So, does anyone know why COMPAT_LINUX is tripping me up?  Relevant info
below:

sc0 related stuff in the config file:
	device          sc0     at isa? port "IO_KBD" tty irq 1 vector scintr 

Some of the more "interesting" options in the config:
	cpu             "I586_CPU"

	options         "I586_OPTIMIZED_BCOPY"
	options         "I586_OPTIMIZED_BZERO"
	options         PERFMON
	#options                COMPAT_LINUX
	options         "I586_CTR_GUPROF"
	options         "I586_PMC_GUPROF=0x70000"

	options         USERCONFIG
	options         VISUAL_USERCONFIG	

	options         CLK_CALIBRATION_LOOP
	options         "CLK_USE_I8254_CALIBRATION"
	options         "CLK_USE_I586_CALIBRATION"	

	options         "AUTO_EOI_1"
	options         "AUTO_EOI_2"

	options         SCSI_REPORT_GEOMETRY 
	options         "AHC_TAGENABLE"
	options         "AHC_SCBPAGING_ENABLE"
	options         PQ_LARGECACHE  

Hardware:
	A.I.R 54-TPI Motherboard - 133MHz Pentium 
		(picture at http://www.airwebs.com/bigtpi.jpg
		 specs at   http://www.airwebs.com/54TPI.html  )
	aic7880 on-board, sd0: Fuji M2915Q
	ATI Mach64CT video, 2MB
	Mitsumi keyboard, model KPQEA4ZA or KPQ E99ZC-13 depending on where
		ya look on the bottom
	Generic NE2000 compatable
	sb32awe

-Ben
-- 
Benjamin Lewis - blewis@vet.purdue.edu





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611270151.UAA00471>