![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() |
How to get Microsoft Natural Ergonomic Keyboard 4000 (MSNEK4K) to work completely with Ubuntu Please note: If you are using Ubuntu 8.04 (Hardy Heron) everything will work out of the box except the zoomer. Second note: The zoom wheel currently only works by applying another patch to the kernel. I can't test it at the moment so i need some acknowledge that it works. See Appendix[3]. = Solution 1 = (use a newer kernel) Upgrade to kernel 2.6.24 or higher (included in Ubuntu 8.04 already for example) which includes the drivers for MSNEK4K. In order to do that, follow this tutorial. This solution should not be riskier than compiling the kernel by yourself. You should always be cautious when it comes to the kernel, whether you use solution 1 or 2. = Solution 2 = (recompile your old kernel)
= Appendix =
Thanks:
Last edited by zerwas; January 23rd, 2009 at 07:44 PM.. |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
This should be the correct instructions to install the patch. On my pc, the Favorites-Buttons still doesn't work with version 0.3.0.
Perhaps anybody has ideas or can tell me that it works for him Greetings, zerwas |
|
|
|
|
|
#3 |
|
Way Too Much Ubuntu
![]() Join Date: Jun 2006
Beans: 229
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
Thanks!!!!
Question though. When I do: sudo patch -pl /home/charles/installing/4000/msnek4k.patch patch: **** strip count l is not a number What does it mean? Thanks! |
|
|
|
|
|
#4 |
|
Way Too Much Ubuntu
![]() Join Date: Jun 2006
Beans: 229
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
eh.. i think i forgot to change the Ergonomic 4000 to "m"
what will happen? |
|
|
|
|
|
#5 | ||
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
Quote:
At best you copy and paste these lines into your terminal: Code:
sudo patch -p1 < /home/charles/installing/4000/simple.patch sudo patch -p1 < /home/charles/installing/4000/msnek4k.patch Quote:
If you don't do this, it won't work. |
||
|
|
|
|
|
#6 | |
|
5 Cups of Ubuntu
![]() Join Date: Sep 2005
Beans: 27
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
The patches don't seem to apply cleanly anymore.
Quote:
Last edited by unixfudotnet; August 11th, 2006 at 10:56 AM.. |
|
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Aug 2006
Beans: 18
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
I am "liyou", but should be "liyu".
Regarding to 5 my favorites keys, I also found they can not work under default XKB configuration (XkbModel pc105 for me at least), in other words, I think this is a problem of XKB configuration, if you insert evbug.ko into kernel, you can see the keycode is yield in system log or dmesg when we press and release these five keys. I still am beginner of the XKB configuration, I will reply here at once if I configure them successfully. I can not sure what problem the friend unixfudotnet have , this patch both should be can apply on 2.6.17.7 and 2.6.17.8kernel code tree. but not 2.6.18.x so far. Do you eager to try new 2.6.18 kernel? if so, I also will release them. The latest patch can be downloaded from linux-usb-devel maillist. I use them as example. Follow is my process of playing this patch. I recommend you use 0.3.1, the reason is not only it add force-feedback support, but also include some bugfixes. [root@liyu tmp]# ls -l linux-2.6.17.7.tar.bz2 linux-2.6.17.8.tar.bz2 -rw-rw-r-- 1 sailor sailor 41283287 8月 5 13:23 linux-2.6.17.7.tar.bz2 -rw-rw-r-- 1 sailor sailor 41276096 8月 7 17:34 linux-2.6.17.8.tar.bz2 [root@liyu tmp]# tar jxf linux-2.6.17.8.tar.bz2 [root@liyu tmp]# mv linux-2.6.17.8 linux-2.6.17.7 [root@liyu tmp]# patch -p0 < patches/hid-simple-0.3.1.patch patching file linux-2.6.17.7/drivers/usb/input/hid-core.c patching file linux-2.6.17.7/drivers/usb/input/hid.h patching file linux-2.6.17.7/drivers/usb/input/hid-input.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.h [root@liyu tmp]# patch -R -p0 < patches/hid-simple-0.3.1.patch patching file linux-2.6.17.7/drivers/usb/input/hid-core.c patching file linux-2.6.17.7/drivers/usb/input/hid.h patching file linux-2.6.17.7/drivers/usb/input/hid-input.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.h [root@liyu tmp]# mv linux-2.6.17.7 linux-2.6.17.8 [root@liyu tmp]# tar jxf linux-2.6.17.7.tar.bz2 [root@liyu tmp]# patch -p0 < patches/hid-simple-0.3.1.patch patching file linux-2.6.17.7/drivers/usb/input/hid-core.c patching file linux-2.6.17.7/drivers/usb/input/hid.h patching file linux-2.6.17.7/drivers/usb/input/hid-input.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.h [root@liyu tmp]# patch -p0 -R < patches/hid-simple-0.3.1.patch patching file linux-2.6.17.7/drivers/usb/input/hid-core.c patching file linux-2.6.17.7/drivers/usb/input/hid.h patching file linux-2.6.17.7/drivers/usb/input/hid-input.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.c patching file linux-2.6.17.7/drivers/usb/input/hid-simple.h [root@liyu tmp]# LANG=C rpm -qi patch Name : patch Relocations: (not relocatable) Version : 2.5.4 Vendor: Red Hat, Inc. Release : 19 Build Date: Wed Feb 18 00:12:33 2004 Install Date: Mon Feb 13 15:06:14 2006 Build Host: tweety.devel.redhat.com Group : Development/Tools Source RPM: patch-2.5.4-19.src.rpm Size : 102492 License: GPL Signature : DSA/SHA1, Fri May 7 05:33:41 2004, Key ID b44269d04f2a6fd2 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.gnu.org/software/patch/patch.html Summary : The GNU patch command, for modifying/upgrading files. Description : The patch program applies diff files to originals. The diff command is used to compare an original to a changed file. Diff lists the changes made to the file. A person who has the original file can then use the patch command with the diff file to add the changes to their original file (patching the file). Patch should be installed because it is a common way of upgrading applications. I hope this can help you a bit. Last edited by liyu; August 18th, 2006 at 04:30 AM.. Reason: fix some typoes |
|
|
|
|
|
#8 |
|
5 Cups of Ubuntu
![]() Join Date: Aug 2006
Beans: 18
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
|
|
|
|
|
|
#9 |
|
Quad Shot of Ubuntu
![]() Join Date: May 2006
Beans: 414
Ubuntu 6.10 Edgy
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
I had the same problem as previously when trying to get the patch to apply...
|
|
|
|
|
|
#10 | |
|
Just Give Me the Beans!
![]() Join Date: Jun 2006
Location: USA
Beans: 48
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Microsoft Natural Ergonomic Keyboard 4000 - enabling special keys
Quote:
I too get patch errors. So, I cut and pasted the text from the above link. I am attempting to compile the 2.6.17.7 kernel. Do I need to modify the diff line before I proceed? The comments in the post state that file is also a patch for my kernel. I have come over from Mandriva earlier this year, I have compiled my own kernel before just not used/modified patch files. I just know enough to be dangerous :>. Code:
diff -Naurp linux-2.6.18-rc4/drivers/usb/input.orig/hid-core.c linux-2.6.18-rc4/drivers/usb/input/hid-core.c --- linux-2.6.18-rc4/drivers/usb/input.orig/hid-core.c 2006-08-19 15:53:28.000000000 +0800 +++ linux-2.6.18-rc4/drivers/usb/input/hid-core.c 2006-08-19 15:49:24.000000000 +0800 Last edited by skaramanger; September 8th, 2006 at 04:23 PM.. Reason: sloppy code |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|