Skip to contentSkip to conversation

xserver-kdrive 1.4 and USB keyboard

DISCUSSION Cliff Brake 3 participants 6 messages Sep 16, 2008 – Sep 17, 2008

lore
Share & tools
lore
#0 lore raw

Does anyone have this combination working yet?

On my system, ctrl-alt-f1 does not work, and caps/num lock lights do not work when X is running. Keyboard works fine at the console.

It works fine with xserver-kdrive-fbdev 1.3

with 1.4, it seem there are some options added:

-keybd driver [,,options] Specify the keyboard driver and its options
-kb disable the X Keyboard Extension
+kb enable the X Keyboard Extension

In the source code, I found the following:

./hw/kdrive/ephyr/Xephyr :1 -fp /usr/share/fonts/X11/misc/ -mouse
ephyr -keybd ephyr,,xkblayout=br,xkbmodel=abnt2

/*
* You can call your kdriver server with something like:
* $ ./hw/kdrive/yourserver/X :1 -mouse evdev,,device=/dev/input/event4 -keybd
* evdev,,device=/dev/input/event1,xkbmodel=abnt2,xkblayout=br
*/

there are a few patch files that might be related:
./xserver-kdrive-1.4.0.90/no_xkb.patch ./xserver-kdrive/optional-xkb.patch

I'm slogging through the source code, but would appreciate any ideas from anyone who understands this or has it working.

Thanks,
Cliff

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com
#1 lore raw
Quoted 4 lines · Cliff Brake

Does anyone have this combination working yet?

On my system, ctrl-alt-f1 does not work, and caps/num lock lights do not work when X is running. Keyboard works fine at the console.

I suspect that's because kdrive 1.4 lacks a default keymap. Graeme provided a really bare-bones one that makes X access keys (e.g. xkbd, matchbox-keyboard). Making USB keyboards work properly proved to be too much work, so I am now using full-blown Xorg on anything with a usb-keyboard. Having said that, the A-z keys did work on beagle, the fact that left-mouse button clicks produced a 'q' was the final straw (clock on window running powertop - boom). Something is very broken in kdrive, which might be due to people working on it only care for tablets from a certain scandinavian company.

regards,

Koen

Quoted 30 lines

It works fine with xserver-kdrive-fbdev 1.3

with 1.4, it seem there are some options added:

(quoted diff) +1 -2
-keybd driver [,,options]      Specify the keyboard driver and its options
-kb                    disable the X Keyboard Extension
+kb                    enable the X Keyboard Extension

In the source code, I found the following:

./hw/kdrive/ephyr/Xephyr :1 -fp /usr/share/fonts/X11/misc/ -mouse
ephyr -keybd ephyr,,xkblayout=br,xkbmodel=abnt2

/*
* You can call your kdriver server with something like:
* $ ./hw/kdrive/yourserver/X :1 -mouse evdev,,device=/dev/input/event4 -keybd
* evdev,,device=/dev/input/event1,xkbmodel=abnt2,xkblayout=br
*/

there are a few patch files that might be related:
./xserver-kdrive-1.4.0.90/no_xkb.patch ./xserver-kdrive/optional-xkb.patch

I'm slogging through the source code, but would appreciate any ideas from anyone who understands this or has it working.

Thanks,
Cliff

#2 lore raw
Quoted 7 lines · Koen Kooi
Quoted 5 lines · Cliff Brake

Does anyone have this combination working yet?

On my system, ctrl-alt-f1 does not work, and caps/num lock lights do not work when X is running. Keyboard works fine at the console.

Quoted 9 lines

I suspect that's because kdrive 1.4 lacks a default keymap. Graeme provided a really bare-bones one that makes X access keys (e.g. xkbd, matchbox-keyboard). Making USB keyboards work properly proved to be too much work, so I am now using full-blown Xorg on anything with a usb-keyboard. Having said that, the A-z keys did work on beagle, the fact that left-mouse button clicks produced a 'q' was the final straw (clock on window running powertop - boom).
Something is very broken in kdrive, which might be due to people working on it only care for tablets from a certain scandinavian company.

Thanks. Yes, you are correct. I can get arrow keys, and enter to work, but not cap/num lock or Ctrl-Alt-F1.

Cliff

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com
#3 lore raw
Quoted 16 lines · Cliff Brake
Quoted 5 lines · Koen Kooi
Quoted 4 lines · Cliff Brake

Does anyone have this combination working yet?

On my system, ctrl-alt-f1 does not work, and caps/num lock lights do not work when X is running. Keyboard works fine at the console.

Quoted 9 lines

I suspect that's because kdrive 1.4 lacks a default keymap. Graeme provided a really bare-bones one that makes X access keys (e.g. xkbd, matchbox-keyboard). Making USB keyboards work properly proved to be too much work, so I am now using full-blown Xorg on anything with a usb-keyboard. Having said that, the A-z keys did work on beagle, the fact that left-mouse button clicks produced a 'q' was the final straw (clock on window running powertop - boom).
Something is very broken in kdrive, which might be due to people working on it only care for tablets from a certain scandinavian company.

Quoted 2 lines

Thanks. Yes, you are correct. I can get arrow keys, and enter to work, but not cap/num lock or Ctrl-Alt-F1.

In that case fixing the keymap would be the way to go. You'll need to poke the resident X exports on how to do that properly, though :)

regards,

Koen

Quoted 3 lines

Cliff

#4 lore raw
Quoted 5 lines · Koen Kooi
Quoted 2 lines

Thanks. Yes, you are correct. I can get arrow keys, and enter to work, but not cap/num lock or Ctrl-Alt-F1.

In that case fixing the keymap would be the way to go. You'll need to poke the resident X exports on how to do that properly, though :)

xmodmap lists some diff between 1.3 and 1.4:

1.3:

shift       Shift_L (0x32),  Shift_R (0x3e),  Menu (0x78)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40)
mod2        Num_Lock (0x4d)

mod3
mod4 Mode_switch (0x6c)
mod5

1.4:
shift
lock
control
mod1
mod2
mod3
mod4
mod5

Stuffing the 1.3 xmodmap settings into Xfbdev 1.4 does not seem to make any difference, so more digging ...

Cliff

#5 lore raw
Quoted 3 lines · On Wed, 17 Sep 2008 12:25:08 -0400 "Cliff Brake" <[email protected]> wrote:

Stuffing the 1.3 xmodmap settings into Xfbdev 1.4 does not seem to make any difference, so more digging ...

Saving the xmodmap from 1.3 and loading it in 1.4 was exactly what I did to "fix" the problem originally.

A nasty kludge, but after hours of git log checking I couldn't actually find the keyboard change that caused the problem.

Graeme