Subject: bin/21630: Wscons will lose input after X exits
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nightshade@phreaker.net>
List: netbsd-bugs
Date: 05/20/2003 23:04:20
>Number:         21630
>Category:       bin
>Synopsis:       Wscons will lose input after X exits
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 20 23:05:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nick
>Release:        1.6.1
>Organization:
>Environment:
NetBSD nightmare.mydomain.com 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC_LAPTOP) #0: Tue May 20 01:00:32 PDT 2003     nick@nightmare.mydomain.com:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
>Description:
Wscons runs fine at startup then once I run X and then exit X wscons losses input ability. The blinking cursor goes away and the speakers beep non stop and when I run a progam like vi. It says no keyboard input available on console. Also if I type something in the console and hit backspace to erase a charcter the whole line gets deleted. All of these wierd things only happen when I start then exit X. Any ideas. Here is my XF86Config and wscons.conf

************************************************************************************

Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "glx"
	Load  "record"
	Load  "xtrap"
	Load  "speedo"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "XkbRules" "xfree86"
	Option	    "XkbModel" "pc101"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "wsmouse"
	Option	    "Device" "/dev/wsmouse0"
	Option	    "Emulate3Buttons"
	Option	    "Emulate3Timeout" "50"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	VertRefresh     40-110
	HorizSync       28-90
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "accel"              	# [<bool>]
        #Option     "crt_screen"         	# [<bool>]
        #Option     "composite_sync"     	# [<bool>]
        Option     "hw_cursor"          	# [<bool>]
        #Option     "linear"             	# [<bool>]
        #Option     "mmio_cache"         	# [<bool>]
        #Option     "probe_clocks"       	# [<bool>]
        #Option     "reference_clock"    	# <freq>
        #Option     "shadow_fb"          	# [<bool>]
        #Option     "sw_cursor"          	# [<bool>]
	Identifier  "Card0"
	Driver      "ati"
	VendorName  "ATI"
	BoardName   "Mach64 LM"
	ChipSet     "ati"
	ChipId      0x4c4d
	ChipRev     0x64
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth     16
	SubSection "Display"
		Depth     1
	EndSubSection
	SubSection "Display"
		Depth     4
	EndSubSection
	SubSection "Display"
		Depth     8
	EndSubSection
	SubSection "Display"
		Depth     15
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     24
	EndSubSection
EndSection

*************************************************************************************

#	$NetBSD: wscons.conf,v 1.10 2001/12/19 09:36:36 augustss Exp $
#
# workstation console configuration

# fonts to load
#	name	width	height	enc	file
#font	ibm	-	8	ibm	/usr/share/wscons/fonts/vt220l.808

# Note: "pcvt" encoded fonts are only useful with the "*bf" screen types
#  of the "vga" driver. The kernel must be compiled with the option
#  "WSCONS_SUPPORT_PCVTFONTS" turned on. See vga(4).
#font	pcvt	-	-	pcvt	/usr/share/wscons/fonts/vt220h.816
#font	pcvt	-	8	pcvt	/usr/share/wscons/fonts/vt220h.808

# screens to create
#	idx	screen	emul
# Screen 0 is already configured as console in most cases.
#  Uncomment if a serial console is used.
#screen	0	-	vt100
screen	1	-	vt100
screen	2	-	vt100
screen	3	-	vt100
screen	4	-	-
#screen	4	80x25bf	vt100
# Note: You must uncomment the 'font	ibm' line above to get a useful
#	font for any 50 line screens.
#screen	5	80x50	vt100

#keyboard	auto

# Select a kernel builtin keyboard map by uncommenting the following line and
# altering the country code to your requirements
# (choose from user, us, uk, de, dk, it, fr, jp, sv, no, es).
# See wsconsctl(8), pckbd(4), ukbd(4) etc. for more details.
#encoding sv

# Redefine individual keys from a file containing "keysym" and/or "keycode"
# entries.
# See wsconsctl(8) for more details.
#mapfile /usr/share/wscons/keymaps/pckbd.sv.svascii

*************************************************************************************

>How-To-Repeat:
start and then exit X and wscons goes crazy.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: