Logitech G11 keyboard under wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
gbil
Newbie
Newbie
Posts: 1
Joined: Sun May 04, 2008 7:58 am

Logitech G11 keyboard under wine

Post by gbil »

Hello,

I have a logitech G11 keyboard which has some extra keys - about 21 extra keys.

Under Linux with the use of g15daemon and using the 'logitech_g15' XkbModel, all keys are working and can be mapped to keyboard shortcuts under gnome for example.

Pressing the key G2 under xev outputs the following:

keycode 152 (keysym 0x1008ff45, XF86Launch5)

Unfortunatelly under wine the applications don't see these keys. Runing notepad as:

WINEDEBUG=+keyboard wine notepad.exe

I get the following when I press the same key:

trace:keyboard:X11DRV_ToUnicodeEx NumLockMask = 0010
trace:keyboard:X11DRV_ToUnicodeEx AltGrMask = 0010
trace:keyboard:X11DRV_ToUnicodeEx Found keycode 152 (0x98)
trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x1008ff45

The funny thing is that if I press the G3 key which is again recognized fine under X windows, under wine I get the following:
trace:keyboard:X11DRV_ToUnicodeEx NumLockMask = 0010
trace:keyboard:X11DRV_ToUnicodeEx AltGrMask = 0010
trace:keyboard:X11DRV_ToUnicodeEx Found keycode 8 (0x 8)
trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x00000000
warn:keyboard:X11DRV_ToUnicodeEx no char for keysym 0000 (No Name) :


So as you see in one case at least the keycode is recognized but in the other case it is not even recognized.

I tried to change a couple of things in keyboard.h file but no luck.

Can someone point me a bit to the changes that need to be made in keyboard.h file? For example should I add another layout?

Thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Logitech G11 keyboard under wine

Post by vitamin »

gbil wrote:Can someone point me a bit to the changes that need to be made in keyboard.h file? For example should I add another layout?
dlls/winex11.drv/keyboard.c
There are hard-coded scan codes for different keyboard layouts.
Locked