From owner-freebsd-current Tue Apr 21 22:08:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA14086 for freebsd-current-outgoing; Tue, 21 Apr 1998 22:08:15 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA14080 for ; Wed, 22 Apr 1998 05:08:13 GMT (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: by outmail.utsunomiya-u.ac.jp id AA26417; Wed, 22 Apr 1998 14:08:04 +0900 Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id OAA00391; Wed, 22 Apr 1998 14:16:41 +0900 (JST) Message-Id: <199804220516.OAA00391@zodiac.mech.utsunomiya-u.ac.jp> To: "Alok K. Dhir" Cc: current@FreeBSD.ORG, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: Disappearing keyboard In-Reply-To: Your message of "Tue, 21 Apr 1998 22:11:39 -0400." References: Date: Wed, 22 Apr 1998 14:16:40 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I've been having a strange problem with -current since late March. The >machine is a Dell Workstation 400, dual Pentium 300 (running SMP). > >Problem is that occasionally, the keyboard stops responding completely. >The mouse in X continues to work, and telnet sessions are fine. It just >stops taking keyboard input. > >I can make this happen repeatably simply by having "xdm" in rc.local. >Then, every time it comes up, the keyboard is dead. Taking xdm out of >rc.local, and starting it manually as root after the system is up keeps >the keyboard working OK. It still dies every now and then though. > >Any ideas? There may be conflict between getty and xdm. On which vty are you running xdm? AFAIK, there are four ways to start xdm and avoid conflicts with getty. 1. Specify xdm in /etc/ttys. If you want to run xdm in ttyv3, you write: ttyv3 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure 2. Run xdm from /etc/rc.local (or other rc* files). if [ -x /usr/X11R6/bin/xdm ]; then (sleep 10; /usr/X11R6/bin/xdm) & fi It is essential to add "sleep N" for proper operation. You may need to experient in order to find an appropriate value for N in your configuration. 3. Another way to run xdm from /etc/rc.local (or other rc* files). if [ -x /usr/X11R6/bin/xdm ]; then /usr/X11R6/bin/xdm fi You need to explicitly specify a vty in which to run the X server by modifying /usr/X11R6/lib/X11/xdm/Xserver. :0 local /usr/X11R6/bin/X vt4 The above example will run the X server in ttyv3. Note that the X server counts vtys as vt1, vt2, vt3..., whereas FreeBSD uses the notation ttyv0, ttyv1, ttyv2,... 4. Specify the X server in /etc/ttys. ttyv3 "/usr/X11R6/bin/X vt4 -query localhost" xterm on secure _Remove_ the X server from /usr/X11R6/lib/X11/xdm/Xserver. _Add_ localhost to /usr/X11R6/lib/X11/xdm/Xaccess. Start xdm from /etc/rc* as: if [ -x /usr/X11R6/bin/xdm ]; then /usr/X11R6/bin/xdm fi Hope this will give you some ideas. Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message