I have a machine at work, beige box with 4.8 on it that doesn't like hotplugd.

It's on a kvm. When it boots it uses the keyboard encoding from
/etc/kbdtype but after switching the kvm and back it goes to default
encoding - qwerty.
This machine also has the keyboard bell muted but it beeps from boot.

Anyway I installed 4.8 on another machine at home the other day and
the same deal. It beeps from boot and although the encoding is fine
initially after switching the kvm and back it goes to default encoding
- qwerty.

I thought it might be the issue with 16 USB devices failing attach so
I've removed the kvm (plugging into a MOBO USB port) to no avail and
the beep is an issue anyway.

Here is wsconsctl.conf grepped:
keyboard.bell.volume=0          # mute keyboard beep

Contents of kbdtype:
us.dvorak

Here is rc.conf.local grepped:
hotplugd_flags=""

Log of hotplugd at debug level - 12:46 is boot, 13:04 is unplug, 13:05 is plug:
Jan 27 12:46:12 server hotplugd[2262]: started
Jan 27 12:46:12 server hotplugd[2262]: uhub1 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: wskbd1 attached, class 5
Jan 27 12:46:12 server hotplugd[2262]: ukbd0 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: uhidev0 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: uhid0 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: uhidev1 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: softraid0 attached, class 0
Jan 27 13:04:28 server hotplugd[2262]: wskbd1 detached, class 5
Jan 27 13:04:28 server hotplugd[2262]: ukbd0 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhidev0 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhid0 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhidev1 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhub1 detached, class 0
Jan 27 13:05:13 server hotplugd[2262]: uhub1 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: wskbd1 attached, class 5
Jan 27 13:05:15 server hotplugd[2262]: ukbd0 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: uhidev0 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: uhid0 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: uhidev1 attached, class 0

Here is wsconsctl -a before unplugging:
keyboard.type=pc-xt
keyboard.bell.pitch=400
keyboard.bell.period=100
keyboard.bell.volume=0
keyboard.bell.pitch.default=400
keyboard.bell.period.default=100
keyboard.bell.volume.default=50
keyboard.repeat.del1=400
keyboard.repeat.deln=100
keyboard.repeat.del1.default=400
keyboard.repeat.deln.default=100
keyboard.ledstate=0
keyboard.encoding=us.dvorak
keyboard1.type=usb
keyboard1.bell.pitch=400
keyboard1.bell.period=100
keyboard1.bell.volume=50
keyboard1.bell.pitch.default=400
keyboard1.bell.period.default=100
keyboard1.bell.volume.default=50
keyboard1.repeat.del1=400
keyboard1.repeat.deln=100
keyboard1.repeat.del1.default=400
keyboard1.repeat.deln.default=100
keyboard1.ledstate=0
keyboard1.encoding=us.dvorak
display.type=vga-pci
display.emulations=vt100
display.screentypes=80x25,80x25bf,80x40,80x40bf,80x50,80x50bf
display.focus=0
display.screen_on=250
display.screen_off=300000
display.vblank=off
display.kbdact=off
display.msact=off
display.outact=off

After re-plugging this is changed:
keyboard1.encoding=us

Oop, there's one reason to post to misc and read logs.
It's pretty obvious now that the the keyboard is on keyboard1 and I've
changed wsconsctl.conf to ...
keyboard1.bell.volume=0          # mute keyboard beep
... and the beep is gone at boot.
However after unplugging the keyboard and plugging it back in the beep
is back and the keyboard encoding is wrong.
I guess I'll have to put a mute into the attach script but I think
that's the issue here - the attach script here and on the machine at
work aren't firing.

This is the attach script:
#!/bin/sh

       DEVCLASS=$1
       DEVNAME=$2

       case DEVNAME in
               wskbd1)
               kbd us.dvorak
       ;;
       esac

Any ideas welcome.

Best wishes.

OpenBSD 4.8 (GENERIC) #136: Mon Aug 16 09:06:23 MDT 2010
   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 731 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,SER,MMX,FXSR,SSE
real mem  = 266891264 (254MB)
avail mem = 252567552 (240MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/05/01, BIOS32 rev. 0 @
0xfd87d, SMBIOS rev. 2.2 @ 0xe4010 (42 entries)
bios0: vendor Phoenix Technologies Ltd. version "IP.01.08US" date 12/05/2001
bios0: Hewlett-Packard HP Vectra
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd810/0x7f0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xa000 0xe0000/0x4000! 0xe4000/0xc000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82815 Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82815 Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xf0000000, size 0x4000000
ppb0 at pci0 dev 30 function 0 "Intel 82801AA Hub-to-PCI" rev 0x02
pci1 at ppb0 bus 1
xl0 at pci1 dev 4 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 7,
address 00:01:03:03:c3:8c
bmtphy0 at xl0 phy 24: 3C905C internal PHY, rev. 7
ichpcib0 at pci0 dev 31 function 0 "Intel 82801AA LPC" rev 0x02:
24-bit timer at 3579545Hz
pciide0 at pci0 dev 31 function 1 "Intel 82801AA IDE" rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD80EB-28CGH2>
wd0: 16-sector PIO, LBA, 7633MB, 15633072 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <ATAPI-CD, ROM-DRIVE-52MAX, 52E4> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 31 function 2 "Intel 82801AA USB" rev 0x02: irq 11
ichiic0 at pci0 dev 31 function 3 "Intel 82801AA SMBus" rev 0x02: irq 9
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 128MB SDRAM non-parity PC133CL2
spdmem1 at iic0 addr 0x51: 128MB SDRAM non-parity PC133CL2
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ff6d netmask ffed ttymask ffff
mtrr: Pentium Pro MTRR support
uhub1 at uhub0 port 2 "Apple, Inc. Keyboard Hub" rev 2.00/96.15 addr 2
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple, Inc Apple
Keyboard" rev 2.00/0.69 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 5 key codes, country code 33
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple, Inc Apple
Keyboard" rev 2.00/0.69 addr 3
uhidev1: iclass 3/0
uhid0 at uhidev1: input=1, output=0, feature=0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

Reply via email to