Changing to a PS/2 keyboard after install
Gary Schenk
gwschenk at socal.rr.com
Mon Jun 9 22:09:06 PDT 2003
On Monday 09 June 2003 05:30 pm, Scott Mitchell wrote:
> On Mon, Jun 09, 2003 at 05:06:36PM -0700, Gary Schenk wrote:
> > Thanks for the suggestion, but that did not work. After rebooting
> > not only did I not have a PS/2 keyboard, I no longer could plug in
> > the USB keyboard.
> >
> > This is very perplexing. There must be a way to install a new
> > keyboard. Reinstalling the OS is the Microsoft way, and I want to
> > avoid that.
> >
> > Gary
>
> As you've guessed already, you shouldn't have needed to do anything
> special to get a PS/2 keyboard working. A few things to try:
>
> - Is the keyboard & port hardware actually OK? Make sure you can at
> least use it to get into the machine's BIOS setup screens. Note that
> PS/2 keyboards shouldn't be hot-plugged -- you can easily kill the
> port doing that. Try another keyboard if possible.
The keyboard works in the BIOS part of the boot. I can get into
UserConfig with it, but after FreeBSD takes over the boot it no longer
works. And after configuring the kernel with UserConfig it works fine.
I am using it to type this message. It is only when I do not interrupt
the boot process that the keyboard does not work.
> - Boot a GENERIC kernel. It's got everything you need for both PS/2
> and USB keyboards. There should be no harm in having them both
> enabled.
The kernel that I am booting now has both enabled (I think) thusly:
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12
and thus:
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device uscanner # Scanners
device urio # Diamond Rio MP3 Player
> - Post your /etc/rc.conf, /var/run/dmesg.boot and anything that looks
> relevant from /var/log/messages. There may be a clue in there as
> to why the keyboard isn't working.
The rc.conf file is a little messy, perhaps there is a conflict of some
sort here? Changes have been made to this while playing around, but I
have been uncertain about whether or not to comment out lines in this
file.
# -- sysinstall generated deltas -- # Thu Feb 20 21:50:08 2003
# Created: Thu Feb 20 21:50:08 2003
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
#hostname="fuzz.socal.rr.com"
#ifconfig_rl0="DHCP"
kern_securelevel_enable="NO"
linux_enable="YES"
moused_enable="NO"
moused_port="/dev/mse0"
moused_type="auto"
nfs_reserved_port_only="YES"
#saver="rain"
sendmail_enable="YES"
sshd_enable="NO"
usbd_enable="YES"
lpd_enable="YES"
inetd_enable="YES"
# -- sysinstall generated deltas -- # Mon Apr 21 20:22:44 2003
#ifconfig_rl0="inet 192.168.1.101 netmask 255.255.255.0"
#defaultrouter="192.168.1.1"
#hostname="fuzz.socal.rr.com"
# -- sysinstall generated deltas -- # Mon Apr 21 20:30:43 2003
#ifconfig_rl0="inet 192.168.1.101 netmask 255.255.255.0"
#defaultrouter="192.168.1.1"
#hostname="fuzz.socal.rr.com"
# -- sysinstall generated deltas -- # Mon Apr 21 20:42:02 2003
ifconfig_rl0="inet 192.168.1.101 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
hostname="fuzz.socal.rr.com"
# -- sysinstall generated deltas -- # Mon Apr 28 22:18:46 2003
#saver="fire"
# -- sysinstall generated deltas -- # Fri May 9 18:28:39 2003
ntpdate_flags="ntp.ucsd.edu"
ntpdate_enable="YES"
# -- sysinstall generated deltas -- # Tue May 13 16:11:36 2003
saver="blank"
# -- sysinstall generated deltas -- # Sun Jun 8 11:09:18 2003
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"
dmesg is here, but perhaps this will not do you any good? This is from
the last boot, in which UserConfig was used to enable the PS/2
keyboard. When I had booted the kernel without USB keyboard support, I
was forced to switch the machine off, which is the reason / was not
properly dismounted.
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.7-RELEASE #5: Mon Jun 9 16:33:35 PDT 2003
root at fuzz.socal.rr.com:/usr/src/sys/compile/FUZZ
Timecounter "i8254" frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (598.48-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x681 Stepping = 1
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory = 134205440 (131060K bytes)
FreeBSD Kernel Configuration Utility - Version 1.2
Type "help" for help or "visual" to go to the visual
configuration interface (requires MGA/VGA display or
serial terminal capable of displaying ANSI graphics).
config> visual
\^[[m\^[[H\^[[J\^[[1;1H\^[[m\^[[1;4H\^[[m\^[[1m\^[[m\^[[1m\^[[1;64H\^[[m\^[[1m\^[[m\^[[1m\^[[m\^[[1m\^[[10;1H\^[[m\^[[10;4H\^[[m\^[[1m\^[[m\^[[1m\^[[10;64H\^[[m\^[[1m\^[[18;1H\^[[m\^[[22;1H\^[[m\^[[m\^[[24;1H\^[[m\^[[24;1H\^[[m\^[[1m\^[[m\^[[1m\^[[m\^[[1m\^[[m\^[[1;46H\^[[m\^[[7m\^[[2;1H\^[[m\^[[2;1H\^[[3;1H\^[[m\^[[3;1H\^[[4;1H\^[[m\^[[4;1H\^[[5;1H\^[[m\^[[5;1H\^[[6;1H\^[[m\^[[6;1H\^[[7;1H\^[[m\^[[7;1H\^[[m\^[[8;1H\^[[m\^[[m\^[[9;1H\^[[m\^[[11;1H\^[[m\^[[11;1H\^[[12;1H\^[[m\^[[12;1H\^[[13;1H\^[[m\^[[13;1H\^[[14;1H\^[[m\^[[14;1H\^[[15;1H\^[[m\^[[15;1H\^[[16;1H\^[[m\^[[16;1H\^[[m\^[[17;1H\^[[m\^[[m\^[[19;1H\^[[m\^[[20;1H\^[[m\^[[21;1H\^[[m\^[[2;1H\^[[m\^[[7m\^[[m\^[[23;1H\^[[m\^[[23;1H\^[[m\^[[m\^[[23;1H\^[[m\^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m\^[[5;1H\^[[m\^[[19;1H\^[[m\^[[20;1H\^[[m\^[[21;1H\^[[m\^[[20;2H\^[[m\^[[21;2H\^[[m\^[[4;1H\^[[m\^[[7m\^[[m\^[[23;1H\^[[m\^[[23;1H\^[[m\^[[1m\^[[m\^[[1m\^[[m\^[[4;1H\^[[m\^[[19;1H\^[[m\^[[20;1H\^[[m\^[[21;1H\^[[m\^[[19;1H\^[[m\^[[1m\^[[m\^[[1m\^[[m\^[[1m\^[[m\^[[m\^[[m\^[[H\^[[Javail
memory = 125317120 (122380K bytes)
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00f0b00
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0
on pci0
pci1: <PCI bus> on pcib2
pci1: <ATI model 5144 graphics accelerator> at 0.0 irq 11
isab0: <VIA 82C596B PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C596 ATA66 controller> port 0xb800-0xb80f at device 7.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 5 at device
7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhid0: Microsoft SideWinder Precision 2 Joystick, rev 1.10/1.08, addr 2,
iclass 3/0
pci0: <unknown card> (vendor=0x1106, dev=0x3050) at 7.3
rl0: <Accton MPX 5030/5038 10/100BaseTX> port 0xb000-0xb0ff mem
0xd6800000-0xd68000ff irq 10 at device 10.0 on pci0
rl0: Ethernet address: 00:10:b5:44:13:da
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0: <Creative EMU10K1> port 0xa800-0xa81f irq 11 at device 12.0 on
pci0
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROM> at iomem 0xc0000-0xcafff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0: <hp deskjet 6122> PRINTER MLC,PCL,PML,DW-PCL,DYN,DESKJET
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 28629MB <QUANTUM FIREBALLlct10 30> [58168/16/63] at ata0-master
UDMA66
acd0: CD-RW <CR-4804TE> at ata1-master PIO3
acd1: DVD-ROM <SAMSUNG DVD-ROM SD-608> at ata1-slave PIO4
Mounting root from ufs:ad0s2a
WARNING: / was not properly dismounted
I wish I knew enough to know what might be relevant from
/var/log/messages.
This is my third install on this machine. I've made many changes, tried
many programs and fooled around quite a bit with this attempting to
learn FreeBSD. It may not be worth the trouble to find this problem, as
I will install 5.1-RELEASE as soon as it is available to purchase on
CD, although of course I'd like to know what is going on here.
>
> Scott
Thanks,
Gary
More information about the freebsd-questions
mailing list