From: <ji...@ye...> - 2003-09-04 16:37:27
|
Ah, sorry again. Yes that was the problem with mousedev.c, and the=20 problem with wacom.c is that it doesn't work for me (as I said in=20 another mail.) I didn't plan to report that until I figure out what's=20 the problem though. ;) Ping Cheng wrote: >Bruce, > >Jimmy is working on kernel 2.6 as well. He is trying to test the new cod= e >with test4. From your previous message, I think your change was for >mousedev.c instead of wacom.c. Do you also have problem with wacom.c? Wh= at's >the problem?=20 > >Jimmy, FYI, here is the first email between Bruce and me. I will send yo= u >the developping tar file in a separate email: > >Ping Cheng <pi...@wa...> writes: > > =20 > >>Please try these new changes to see if they help or not. >> >>Download 5.2-beta from http://linuxwacom.sourceforge.net/ if you=20 >>didn't do so before. Then put the attached wcmUSB.c and xf86Wacom.h to = >>the src directory. Rebuild wacom_drv.o and copy it to=20 >>/usr/X11R6/lib/modules/input. >> >>Put mousedev.c into your_kernel/drivers/input and put hid-core.c and=20 >>wacom.c into your_kerbel/drivers/usb/input and recomile them, then=20 >>copy to the proper directory. Reboot your system. >> >>Let me know if it works or not. >> =20 >> > >Some problems... > >Firstly, mousedev.c didn't build. (This is linux-2.6.0-test4 I'm using.= By >the looks of it, these things may vary quite quickly.) The fix was >straightforward: > >--- mousedev.c 2003-09-03 18:26:21.000000000 +0100 >+++ /usr/src/linux-2.6.0-test4/drivers/input/mousedev.c 2003-09-03=20 >+++ 19:42:27.000000000 +0100 >@@ -228,11 +228,11 @@ > int i; > =20 > #ifdef CONFIG_INPUT_MOUSEDEV_PSAUX >- if (imajor(inode) =3D=3D MISC_MAJOR) >+ if (major(inode->i_rdev) =3D=3D MISC_MAJOR) > i =3D MOUSEDEV_MIX; > else > #endif >- i =3D iminor(inode) - MOUSEDEV_MINOR_BASE; >+ i =3D minor(inode->i_rdev) - MOUSEDEV_MINOR_BASE; > =20 > if (i >=3D MOUSEDEV_MINORS || !mousedev_table[i]) > return -ENODEV; > > > >-----Original Message----- >From: Bruce Stephens [mailto:bru...@ce...]=20 >Sent: Thursday, September 04, 2003 8:47 AM >To: lin...@li... >Subject: Re: [Linuxwacom-devel] Linux-2.6? > > >""Jimmy Yen(=E9=A1=8F=E5=AD=9D=E6=9D=B0)"" <ji...@ye...> writes: > > =20 > >>Bruce Stephens wrote: >> =20 >> > >[...] > > =20 > >>>So probably I should repeat what I tried before, copying wacom.c,=20 >>>mousedev.c, hid-core.c to replace what's in the kernel sources? Does = >>>that sound the right thing to try? >>> >>> =20 >>> >>Yes, at least that's how I do it. By the way, I can't get wacom.c to=20 >>compile with test4. Do you have any success with it? >> =20 >> > >My apologies. I had intended to send that message to Ping Cheng; the >comments may not be relevant to either 5.2-beta or what's in CVS. > >I can't seem to get mousedev.c to compile. I did get a version of wacom= =2Ec >to build (the only problem was IMAJOR and IMINOR, which don't seem to be= >defined, but looking at the wacom.c that's in test4 made the fix obvious= =2E > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf _______________________________________________ >Linuxwacom-devel mailing list Lin...@li... >https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel > > =20 > |