Subject: Re: USB keyboard + wscons issues
To: Sean Davis <dive-nb@endersgame.net>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: tech-kern
Date: 10/30/2005 10:56:39
On Sun, 2005-10-30 at 03:06 -0500, Sean Davis wrote:
> I wasn't sure if this is i386 specific or not, so it's going to both lists.
> Anyhow, I've discovered a problem since switching to a USB keyboard: if I'm
> running in X, and I switch virtual consoles to a normal text console while X
> is still running, the keyboard is totally unresponsive.
> 
> my Keyboard entry in XF86Config is:
> Section "InputDevice"
>         Identifier  "Keyboard0"
>         Driver      "kbd"
>         Option      "XkbRules" "xfree86"
>         Option      "XkbModel" "pc105"
>         Option      "XkbLayout" "us"
>         Option      "Protocol" "wskbd"
>         Option      "Device" "/dev/wskbd"
> EndSection

Last I tried using 'Protocol wskbd' and 'Device /dev/wskbd' (on
2.0.2/alpha), I ran into all sorts of strange problems.

> I'm running 3.99.10, on an A7V880 motherboard with an Athlon XP 2700+ and
> 1GB ram (just in case it's a usb controller issue, which i doubt) with a Sun
> Type 6 USB (unix layout) keyboard.

I'm using a USB keyboard on an A7V8X-X (without 'Protocol wskbd' and
friends) on -current (always have, actually) without problems. Works in
both xfree86 and xorg.

Keyboard config:

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"  "us"
EndSection

> A couple questions:
> 
> 1) is there any command to switch virtual consoles from a text console? for
> example, right now, if I accidentally switch out of X, I have to ssh in from
> another machine and kill off kdm to get the keyboard back. I suspect that if
> I could merely switch back to the console X is running on, it'd be fine.

wsconscfg -s <vt#>

> 2) is it possible to (without modding the kernel) change the key combo
> required to switch virtual consoles? I commonly use shift-alt-f3 to maximize
> konsoles in KDE, and it's easy to hit control instead of shift by mistake.

Never really looked into it. Might be less effort to change your KDE
hotkeys :)

Cheers,
Jared