Page 5 of 20 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 194

Thread: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

  1. #41
    Join Date
    Feb 2007
    Beans
    3

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    hello, anybody knows where I can get msnek4k-patchset for 2.6.20?
    Thanks!
    p.s. google doesn't know

  2. #42
    Join Date
    Dec 2004
    Location
    Germany
    Beans
    155
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    Quote Originally Posted by vetik32 View Post
    hello, anybody knows where I can get msnek4k-patchset for 2.6.20?
    Thanks!
    p.s. google doesn't know
    Google is our god. There is no patchset for codebase 2.6.20. Liyus last post can be found here.

    Regards,
    zerwas

  3. #43
    Join Date
    Apr 2006
    Beans
    2

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    I've filled a bug for complete support of this keyboard at https://launchpad.net/ubuntu/+bug/84965.

  4. #44
    Join Date
    Feb 2007
    Location
    Amsterdam
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Red face Microsoft Natural Ergonomic Keyboard 4000 - Patch Failures

    I've slightly modified Liyu's patch to try to make it compatible with kernel 2.6.20.1 but I keep getting the following error in line 40.

    Here is what I did...

    I put a simlink to my kernel source /usr/src/linux-2.6.20.1 is linked to /usr/src/linux and modified liyu's code as such to make it kernel independent. just changed all reference to 2.6.19 to linux...

    I modified the code from liyu's last post to
    http://marc.theaimsgroup.com/?l=linu...9956331436&w=2

    When I test the patch with the command:

    Code:
     sudo patch -p1 --dry-run < msnek4-patch
    I get the following error:

    Code:
    patching file drivers/usb/input/hid-core.c
    Hunk #1 succeeded at 27 (offset 1 line).
    Hunk #2 FAILED at 35.
    Hunk #3 succeeded at 50 (offset 2 lines).
    patch: **** malformed patch at line 40: struct hid_usage *usage, __s32 value, int interrupt)  {
    any idea's why Kernel 2.6.20.1 does not like line 40??

  5. #45

    Angry Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    Hi,

    I think I'm too stupid to get theses keyboard to work.
    I tryed with a lot of differnt Kernel sources (2.6.17 - 2.6.20.1) But with none of them the patch (Yes I looked for the korrekt version number) would work correctly. Everytime I got an compiling error.
    So now I think its to difficult for me and I like to ask if someone has an precompiled ubuntukernel with this patch and can give me that packaged?

    He/she would help me a lot....

    Or a really working howto with the correct files....

    Br
    Dominik

  6. #46
    Join Date
    Aug 2006
    Beans
    18

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    The hid core is split from USB since kernel 2.6.20. So we can not port this driver to it easier.

    I already have ported it to 2.6.21-rc2. see this URL:

    version 0.5.0 http://lkml.org/lkml/2007/3/5/18

    Well, I think it also can use it in 2.6.20 kernel, however it may need some little changes ( adjust the offset of some lines ).
    Last edited by liyu; March 5th, 2007 at 09:07 AM.

  7. #47
    Join Date
    Aug 2006
    Beans
    18

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    Regarding to the problem hidinput_pb_event(), you can use this patch, the 0.5.0 already fixed this.

    --- linux-2.6.19.2/drivers/usb/input/hid-input.c 2007-02-02 17:12:58.000000000 +0800
    +++ linux-2.6.19.2.new/drivers/usb/input/hid-input.c 2007-02-02 17:18:00.000000000 +0800
    @@ -199,7 +199,7 @@
    if (hidinput_trylock_simple(hidinput))
    return 0;
    if (test_bit(usage->code, hid->pb_pressed_numlock) ||
    - test_bit(LED_NUML, input->led)) {
    + test_bit(LED_NUML, hidinput->input->led)) {
    trans = find_translation(powerbook_numlock_keys, usage->code);

    if (trans) {
    @@ -219,7 +219,7 @@
    if (hid->quirks & HID_QUIRK_POWERBOOK_ISO_KEYBOARD) {
    trans = find_translation(powerbook_iso_keyboard, usage->code);
    if (trans) {
    - input_event(input, usage->type, trans->to, value);
    + input_event(hidinput->input, usage->type, trans->to, value);
    return 1;
    }
    }

  8. #48
    Join Date
    Feb 2007
    Beans
    3

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    Quote Originally Posted by liyu View Post
    ...
    Well, I think it also can use it in 2.6.20 kernel, however it may need some little changes ( adjust the offset of some lines ).
    I've got rejects for
    drivers/hid/hid-core
    drivers/hid/hid-input
    drivers/usb/input/Kconfig
    drivers/usb/input/Makefile
    drivers/usb/input/hid-core.c
    include/linux/hid.h
    apparently
    hidinput_input_init needs:
    + input_dev->open = hid->hidinput_open;
    + input_dev->close = hid->hidinput_close;
    and not
    + input_dev->open = hidinput_open;
    + input_dev->close = hidinput_close;

    and those methods are from
    drivers/usb/input/hid-core
    and not drivers/hid/hid-input.c

    other rejects have successfully been fixed with
    rej -m meld XXX.y XXX.y.rej

    p.s. I am a simple guy who don't know nothing about c or c++
    p.p.s.: make shows some warnings :

    include/linux/hid-simple.h:139: warning: previous implicit declaration of 'schedule' was here
    drivers/usb/input/usbnek4k.c: In function 'nek4k_pre_event':
    drivers/usb/input/usbnek4k.c:211: warning: cast from pointer to integer of different size
    drivers/usb/input/usbnek4k.c:221: warning: cast to pointer from integer of different size

    In file included from drivers/usb/input/usbnek4k.c:20:
    include/linux/hid-simple.h: In function 'hidinput_lock_simple':
    include/linux/hid-simple.h:139: warning: implicit declaration of function 'schedule'

    used: gentoo-sources (vanilla + gentoo patches) (gentoo distro)

  9. #49
    Join Date
    Aug 2006
    Beans
    18

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    I guess your machine is 64bit, is it true? if so, you can redefine code variable in
    nek4k_pre_event() as long type, and replace (int) at line usbnek4k.c:211 with (long), I think this can remove the warnings.

    The implicit declaration of 'schedule', well, I lost linux/sched.h header file, sorry.

  10. #50

    Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys

    I tried your 0.5 patch and this will work, but LUKS won't work anymore
    So is there a way to patch the ubuntu-kernel? because I thing its something with the kernelmodifikations they did....

    Br
    Dominik

Page 5 of 20 FirstFirst ... 3456715 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •