No PS/2 keyboard = panic on X11 start

View: New views
7 Messages — Rating Filter:   Alert me  

No PS/2 keyboard = panic on X11 start

by Jesse Peterson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I've had for a while a USB keyboard that I've been using with NetBSD 3.1/amd64. Only recently however did I get around to actually physically unplugging my old PS/2 keyboard. After the next restart of NetBSD was crashing when XFree86 started. I tried to get a backtrace of the panics without much luck.

After many hours of debugging what could be the cause I realized that I had recently unplugged the PS/2 keyboard. Upon plugging it back in and restarting everything was fine - X11 started just as it did.

On a related note I tried to test NetBSD 4.0_RC4/amd64 in an attempt to find the cause (to no avail) and upon realizing the PS/2 keyboard issue I plugged it in while the system was running. Plugging in the keyboard caused a kernel panic instantly.

Is this a known issue? Perhaps something specific to my hardware? I might be able to help debug if anybody has some ideas. I'd like to be able to just use my USB keyboard without having a PS/2 keyboard also plugged in.

Dmesg attached.

THanks,
- Jesse


--
Jesse Peterson <jpeterson275@...>


dmesg.boot (10K) Download Attachment

Re: No PS/2 keyboard = panic on X11 start

by Douglas A. Tutty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 11, 2007 at 07:00:13PM -0800, Jesse Peterson wrote:

> Hello,
>
> I've had for a while a USB keyboard that I've been using with NetBSD
> 3.1/amd64. Only recently however did I get around to actually
> physically unplugging my old PS/2 keyboard. After the next restart of
> NetBSD was crashing when XFree86 started. I tried to get a backtrace
> of the panics without much luck.
>
> After many hours of debugging what could be the cause I realized that
> I had recently unplugged the PS/2 keyboard. Upon plugging it back in
> and restarting everything was fine - X11 started just as it did.
>
> On a related note I tried to test NetBSD 4.0_RC4/amd64 in an attempt
> to find the cause (to no avail) and upon realizing the PS/2 keyboard
> issue I plugged it in while the system was running. Plugging in the
> keyboard caused a kernel panic instantly.
>
> Is this a known issue? Perhaps something specific to my hardware? I
> might be able to help debug if anybody has some ideas. I'd like to be
> able to just use my USB keyboard without having a PS/2 keyboard also
> plugged in.
>

How do you start X.  Is it with a display manager or do you log into a
terminal and run startx?

If you can, get it set so that you use startx.  This ensures that wscons
works and that the keyboard works.  I'm assuming that your X config
points to the wscons device.

Also, have a look in the BIOS for some USB/legacy settings.

Never having owned a USB keyboard, this is just some ideas.  

Good luck.

Doug.


Re: No PS/2 keyboard = panic on X11 start

by bsd547 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I haven't had any issues.  Mouse and keyboard are both
USB connection.  I also have the wireless LogiTech MX Revolution
connected.

-----------------------------------------------
NetBSD 4.0_RC3 (netkrnl) #1: Sat Nov 10 16:45:40 PST 2007
        root@netBSD:/usr/src/sys/arch/i386/compile/netkrnl

uhidev3 at uhub4 port 1 configuration 1 interface 0
uhidev3: Logitech USB Receiver, rev 2.00/41.01, addr 2, iclass 3/1
ums1 at uhidev3: 16 buttons and Z dir.
wsmouse1 at ums1 mux 0
uhidev4 at uhub4 port 1 configuration 1 interface 1
uhidev4: Logitech USB Receiver, rev 2.00/41.01, addr 2, iclass 3/0

uhidev0 at uhub5 port 1 configuration 1 interface 0
uhidev0: Microsoft Basic Optical Mouse, rev 1.10/0.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 2 configuration 1 interface 0
uhidev1: vendor 0x05af USB Keyboard, rev 1.10/1.30, addr 2, iclass 3/1
ukbd0 at uhidev1
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub0 port 2 configuration 1 interface 1
uhidev2: vendor 0x05af USB Keyboard, rev 1.10/1.30, addr 2, iclass 3/0
uhidev2: 2 report ids

----------------------------------------------------
Jesse Peterson wrote:
Hello,

I've had for a while a USB keyboard that I've been using with NetBSD 3.1/amd64. Only recently however did I get around to actually physically unplugging my old PS/2 keyboard. After the next restart of NetBSD was crashing when XFree86 started. I tried to get a backtrace of the panics without much luck.

After many hours of debugging what could be the cause I realized that I had recently unplugged the PS/2 keyboard. Upon plugging it back in and restarting everything was fine - X11 started just as it did.

On a related note I tried to test NetBSD 4.0_RC4/amd64 in an attempt to find the cause (to no avail) and upon realizing the PS/2 keyboard issue I plugged it in while the system was running. Plugging in the keyboard caused a kernel panic instantly.

Is this a known issue? Perhaps something specific to my hardware? I might be able to help debug if anybody has some ideas. I'd like to be able to just use my USB keyboard without having a PS/2 keyboard also plugged in.

Dmesg attached.

THanks,
- Jesse


--
Jesse Peterson <jpeterson275@comcast.net>

 

Re: No PS/2 keyboard = panic on X11 start

by bsd547 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I haven't had any issues.  Mouse and keyboard are both
USB connection.  I also have the wireless LogiTech MX Revolution
connected.

-----------------------------------------------
NetBSD 4.0_RC3 (netkrnl) #1: Sat Nov 10 16:45:40 PST 2007
        root@netBSD:/usr/src/sys/arch/i386/compile/netkrnl

uhidev3 at uhub4 port 1 configuration 1 interface 0
uhidev3: Logitech USB Receiver, rev 2.00/41.01, addr 2, iclass 3/1
ums1 at uhidev3: 16 buttons and Z dir.
wsmouse1 at ums1 mux 0
uhidev4 at uhub4 port 1 configuration 1 interface 1
uhidev4: Logitech USB Receiver, rev 2.00/41.01, addr 2, iclass 3/0

uhidev0 at uhub5 port 1 configuration 1 interface 0
uhidev0: Microsoft Basic Optical Mouse, rev 1.10/0.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 2 configuration 1 interface 0
uhidev1: vendor 0x05af USB Keyboard, rev 1.10/1.30, addr 2, iclass 3/1
ukbd0 at uhidev1
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub0 port 2 configuration 1 interface 1
uhidev2: vendor 0x05af USB Keyboard, rev 1.10/1.30, addr 2, iclass 3/0
uhidev2: 2 report ids

----------------------------------------------------
Jesse Peterson wrote:
Hello,

I've had for a while a USB keyboard that I've been using with NetBSD 3.1/amd64. Only recently however did I get around to actually physically unplugging my old PS/2 keyboard. After the next restart of NetBSD was crashing when XFree86 started. I tried to get a backtrace of the panics without much luck.

After many hours of debugging what could be the cause I realized that I had recently unplugged the PS/2 keyboard. Upon plugging it back in and restarting everything was fine - X11 started just as it did.

On a related note I tried to test NetBSD 4.0_RC4/amd64 in an attempt to find the cause (to no avail) and upon realizing the PS/2 keyboard issue I plugged it in while the system was running. Plugging in the keyboard caused a kernel panic instantly.

Is this a known issue? Perhaps something specific to my hardware? I might be able to help debug if anybody has some ideas. I'd like to be able to just use my USB keyboard without having a PS/2 keyboard also plugged in.

Dmesg attached.

THanks,
- Jesse


--
Jesse Peterson <jpeterson275@comcast.net>

 


Re: No PS/2 keyboard = panic on X11 start

by Jesse Peterson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 11 Nov 2007 23:27:23 -0500
"Douglas A. Tutty" <dtutty@...> wrote:

> How do you start X.  Is it with a display manager or do you log into a
> terminal and run startx?

I typically use XDM, but startx does the same thing. Interestingly any X11R6 display driver shows the issue (vga, vesa, etc.)

> If you can, get it set so that you use startx.  This ensures that wscons
> works and that the keyboard works.  I'm assuming that your X config
> points to the wscons device.
>
> Also, have a look in the BIOS for some USB/legacy settings.

This is one of the places I was going to look into.

> Never having owned a USB keyboard, this is just some ideas.  
>
> Good luck.

I forgot to mention that this is an AOpen vK8T800a-LF motherboard if that helps.

Is it normal to panic the machine when plugging in a PS/2 keyboard while the machine is running?

Not a real huge issue for me - I can shove an old PS/2 keyb behind the machine for a while to get by.

THanks,
- Jesse

--
Jesse Peterson <jpeterson275@...>

Re: No PS/2 keyboard = panic on X11 start

by Magnus Eriksson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 11 Nov 2007, Jesse Peterson wrote:

> Is it normal to panic the machine when plugging in a PS/2 keyboard while
> the machine is running?

   No.  I've done it lots of times on this machine (Intel PIIX4 keyboard
controller, IBM Model M keyboard, 1.6 GENERIC) and many/several others.  I
suppose I could just have been lucky, but it seems unlikely.


> Not a real huge issue for me - I can shove an old PS/2 keyb behind the
> machine for a while to get by.

   Gut an old keyboard, keep only the cable, PCB and LEDs.  Then claim you
meant to do it all along so you could see the LED states.  Those damn
newfangled wireless keyboards...  :-)


   But really it sounds like something that fiddling with the BIOS various
"legacy" settings would fix.


Take care,
MAgnus


Re: No PS/2 keyboard = panic on X11 start

by Jesse Peterson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A little late in reply here but I wanted to report that this issue has been (seemingly) resolved.

I'm 85% certain this was just a bug in this motherboard's BIOS (AOpen vK8T800a-LF). In the BIOS (typical PC Phoenix BIOS) there is an option to turn on "USB Emulation" to support things like boot loaders being able to select boot options via old BIOS interrupt calls. This BIOS has the option to individually enable or disable the Mouse and Keyboard Emulation -- separately. Because I didn't need mouse emulation I disabled that and only had the Keybaord emulation enabled. When just enable both mouse and keyboard emulation all seems to work - X11 starts up fine without a system restart and without a PS/2 keybaord actually plugged in.

Thanks and wantd to pass along the good news! Obviously been bugging me for a few years. ;)
- Jesse

On Sun, 11 Nov 2007 19:00:13 -0800
Jesse Peterson <jpeterson275@...> wrote:

> Hello,
>
> I've had for a while a USB keyboard that I've been using with NetBSD 3.1/amd64. Only recently however did I get around to actually physically unplugging my old PS/2 keyboard. After the next restart of NetBSD was crashing when XFree86 started. I tried to get a backtrace of the panics without much luck.
>
> After many hours of debugging what could be the cause I realized that I had recently unplugged the PS/2 keyboard. Upon plugging it back in and restarting everything was fine - X11 started just as it did.
>
> On a related note I tried to test NetBSD 4.0_RC4/amd64 in an attempt to find the cause (to no avail) and upon realizing the PS/2 keyboard issue I plugged it in while the system was running. Plugging in the keyboard caused a kernel panic instantly.
>
> Is this a known issue? Perhaps something specific to my hardware? I might be able to help debug if anybody has some ideas. I'd like to be able to just use my USB keyboard without having a PS/2 keyboard also plugged in.
>
> Dmesg attached.

--
Jesse Peterson <jpeterson275@...>