RE: USB Keyboard is not working with a custom kernel

2008-12-10 Thread נור דאוד
OK... This could work eventually, but think about another fact:
With GENERIC kernel, everything works correctly. I plug and unplug the 
keyboard, and it interacts wonderfully.

Noor



-Original Message-
From: Polytropon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2008 3:03 PM
To: נור דאוד
Cc: freebsd-questions@freebsd.org
Subject: Re: USB Keyboard is not working with a custom kernel

On Wed, 10 Dec 2008 07:33:44 +0200, ???  [EMAIL PROTECTED] wrote:
 With this kernel, whenever I connect a USB keyboard, I see on
 the console an alert (USB keyboard device this and that,
 connected to ) and even the make/model of the keyboard
 is shown, but the keyboard doesn't work. The Num/Caps locks
 work (I mean, the light on the keyboard alternates between
 ON/OFF whenever press on the keys).
 
 Anyone knows what's the problem? And how to fix it?

This *may* be due to kbdmux. On older FreeBSD systems (such
as FreeBSD 5), you had to manually change the active keyboard
using the kbdcontrol command. Let's say, you have an AT keyboard
present (which has the focus) and you plugged in the USB
keyboard, the keyboard would get recognized and powered (so
you can toggle the Blinkenlights), but no input would come
from it. Then you would have to use the focused keyboard
/dev/kbd0 (=/dev/atkbd0) to change focus to the USB one
/dev/kbd1 (=/dev/ukbd0). Since kbdmux has been introduced,
focus is on all keybpards that are plugged into the system,
so it doesn't matter where you type something.

Maybe you could check the presence of kbdmux or use an AT
keyboard to check via kbdcontrol.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB Keyboard is not working with a custom kernel

2008-12-10 Thread Lowell Gilbert
Please don't top-post.

נור דאוד [EMAIL PROTECTED] writes:

 OK... This could work eventually, but think about another fact:
 With GENERIC kernel, everything works correctly. I plug and unplug the 
 keyboard, and it interacts wonderfully.

Right.  The generic kernel has kbdmux these days.

 Noor



 -Original Message-
 From: Polytropon [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 10, 2008 3:03 PM
 To: נור דאוד
 Cc: freebsd-questions@freebsd.org
 Subject: Re: USB Keyboard is not working with a custom kernel

 On Wed, 10 Dec 2008 07:33:44 +0200, ???  [EMAIL PROTECTED] wrote:
 With this kernel, whenever I connect a USB keyboard, I see on
 the console an alert (USB keyboard device this and that,
 connected to ) and even the make/model of the keyboard
 is shown, but the keyboard doesn't work. The Num/Caps locks
 work (I mean, the light on the keyboard alternates between
 ON/OFF whenever press on the keys).
 
 Anyone knows what's the problem? And how to fix it?

 This *may* be due to kbdmux. On older FreeBSD systems (such
 as FreeBSD 5), you had to manually change the active keyboard
 using the kbdcontrol command. Let's say, you have an AT keyboard
 present (which has the focus) and you plugged in the USB
 keyboard, the keyboard would get recognized and powered (so
 you can toggle the Blinkenlights), but no input would come
 from it. Then you would have to use the focused keyboard
 /dev/kbd0 (=/dev/atkbd0) to change focus to the USB one
 /dev/kbd1 (=/dev/ukbd0). Since kbdmux has been introduced,
 focus is on all keybpards that are plugged into the system,
 so it doesn't matter where you type something.

 Maybe you could check the presence of kbdmux or use an AT
 keyboard to check via kbdcontrol.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: USB Keyboard is not working with a custom kernel

2008-12-10 Thread נור דאוד
 
  OK... This could work eventually, but think about another fact:
  With GENERIC kernel, everything works correctly. I plug and unplug
 the keyboard, and it interacts wonderfully.
 
 Right.  The generic kernel has kbdmux these days.
 

I see... this is one piece of info that I needed, thanks a lot! I will check it 
and I hope it works.

Noor


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

USB Keyboard is not working with a custom kernel

2008-12-09 Thread ??? ????
Hello list,

I've custom-built a kernel for a FreeBSD 7.0-STABLE amd64 system.
The kernel file (/sys/amd64/conf/KERNEL) is shown below:

*** START OF FILE **
machine amd64
cpu HAMMER
ident   KERNEL
maxusers1024

# Mandatory options
options SCHED_ULE

# SMP
options SMP

# CPU frequency control
device  cpufreq

# Memory (Adjusted for 4GB RAM for AMD64)
options MAXDSIZ=(1536UL*1024*1024)# 1.5GB for data
options MAXSSIZ=(256UL*1024*1024) # 256MB for 
stack
options DFLDSIZ=(1536UL*1024*1024)# Set default 
data size to 1.5GB

# Configuration
options KSE
options PREEMPTION
options PANIC_REBOOT_WAIT_TIME=30
options COMPAT_43
options SYSVSHM
options SYSVSEM
options SYSVMSG
options _KPOSIX_PRIORITY_SCHEDULING
options ADAPTIVE_GIANT

# Screen, Keyboard  Mouse
options MAXCONS=4

# File System
options FFS
options CD9660
options PROCFS
options PSEUDOFS
options SOFTUPDATES
options UFS_DIRHASH
options UFS_GJOURNAL

# Filesystems, Samba/CIFS shares
options NETSMB  # SMB/CIFS requester
options LIBMCHAIN   # mbuf management library
options LIBICONV
options SMBFS
options NFSSERVER
options NFSCLIENT
options NFSLOCKD

# Networking
options INET
options ACCEPT_FILTER_DATA

# All devices (Network, SCSI, Disks, Interface, ...)
device  miibus
device  bge
device  sio
device  fdc
device  ata
device  atadisk
device  atapicd
device  atapifd
device  loop
device  ether
device  isa
device  eisa
device  pci
device  agp
device  random
device  scbus
device  da
device  cd
device  ciss

# Screen, Keyboard  Mouse
device  atkbdc
device  atkbd
device  psm
device  vga
device  sc
device  uhci# UHCI PCI-USB interface
device  ohci# OHCI PCI-USB interface
device  ehci# EHCI PCI-USB interface (USB 
2.0)
device  usb # USB Bus (required)
device  ukbd# Keyboard
device  ugen# Generic
device  uhid# Human Interface Devices

# Misc
device  acpi
device  pass
device  pty
device  snp
device  speaker
* END OF FILE **

With this kernel, whenever I connect a USB keyboard, I see on the console an 
alert (USB keyboard device this and that, connected to ) and even the 
make/model of the keyboard is shown, but the keyboard doesn't work. The 
Num/Caps locks work (I mean, the light on the keyboard alternates between 
ON/OFF whenever press on the keys).

Anyone knows what's the problem? And how to fix it?

Thanks in advance.

Noor



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]