OLED/Express Keys Support Patch: Please try it!

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

OLED/Express Keys Support Patch: Please try it!

by Nicholas Hirsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks, sorry for the delay! Midterms, job interviews, etc... have been keeping me from finalizing this. But now it's ready! Please check it out, try the patches, and let me know how things go (This is my first open source patch so there is some non-zero probability that I messed something up =P)

https://sourceforge.net/tracker/?func=detail&aid=2878608&group_id=69596&atid=525126

Enjoy your express keys!
- nick


also, I know that the Intuos4 S has 6 OLED panels as opposed to 8. Based on the documentation I've seen, I have reason to believe the OLED panels might actually be smaller than those on the M and L. Could someone let me know what the dimensions are for the Intuos4 S so I can add support for that too? Right now it's currently disabled. For reference, the size of each of the M and L OLED panels is 32 rows by 64 columns.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Dylan Thurston-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 14, 2009 at 12:08:02AM -0500, Nick Hirsch wrote:
> also, I know that the Intuos4 S has 6 OLED panels as opposed to 8. Based on the
> documentation I've seen, I have reason to believe the OLED panels might
> actually be smaller than those on the M and L. Could someone let me know what
> the dimensions are for the Intuos4 S so I can add support for that too? Right
> now it's currently disabled. For reference, the size of each of the M and L
> OLED panels is 32 rows by 64 columns.

The Intuos4 S has no OLED panels, just lights around the touch ring.

--Dylan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Ping@LinuxWacom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you Nick for the patch.  We will have to wait for someone else to test it before merging it.  If no one has time to test it, I will pick it up later next month (I am busy with a bunch of other supports now).

Ping

BTW, I've downloaded your package and looked at the two patches under 2.6.28.  They are very good (from coding style perspective).  Next time when you make patches, please use "diff -purN old new" so they would be easier to read.

On Tue, Oct 13, 2009 at 10:08 PM, Nick Hirsch <nick.hirsch@...> wrote:
Hi folks, sorry for the delay! Midterms, job interviews, etc... have been keeping me from finalizing this. But now it's ready! Please check it out, try the patches, and let me know how things go (This is my first open source patch so there is some non-zero probability that I messed something up =P)

https://sourceforge.net/tracker/?func=detail&aid=2878608&group_id=69596&atid=525126

Enjoy your express keys!
- nick


also, I know that the Intuos4 S has 6 OLED panels as opposed to 8. Based on the documentation I've seen, I have reason to believe the OLED panels might actually be smaller than those on the M and L. Could someone let me know what the dimensions are for the Intuos4 S so I can add support for that too? Right now it's currently disabled. For reference, the size of each of the M and L OLED panels is 32 rows by 64 columns.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 14 Oct 2009 13:02:58 -0700, Ping wrote:

> Thank you Nick for the patch.  We will have to wait for someone else to
> test it before merging it.  If no one has time to test it, I will pick
> it up later next month (I am busy with a bunch of other supports now).

I should be able to test this over the weekend - thanks, Nick, will be
sure to give it a shot and provide feedback.

Jim
--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 14 Oct 2009 21:43:05 +0000, Jim Henderson wrote:

> On Wed, 14 Oct 2009 13:02:58 -0700, Ping wrote:
>
>> Thank you Nick for the patch.  We will have to wait for someone else to
>> test it before merging it.  If no one has time to test it, I will pick
>> it up later next month (I am busy with a bunch of other supports now).
>
> I should be able to test this over the weekend - thanks, Nick, will be
> sure to give it a shot and provide feedback.

Sorry, this weekend was busier than I intended - will try to do some
testing on Friday this week (am taking the day off work so should have
some time free)

Jim



--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 14 Oct 2009 13:02:58 -0700, Ping wrote:

> Thank you Nick for the patch.  We will have to wait for someone else to
> test it before merging it.  If no one has time to test it, I will pick
> it up later next month (I am busy with a bunch of other supports now).

I just applied the patches to the 0.8.4-3 code, running openSUSE 11.1
with kernel 2.6.27.29-0.1 (x86_64).  I received the following compilation
errors:

--- snip ---

[jhenderson@krikkit linuxwacom-0.8.4-3]$ make
Making all in src
make[1]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
Making all in .
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
Making all in wacomxi
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/wacomxi'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/wacomxi'
Making all in util
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/util'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/util'
Making all in xdrv
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/xdrv'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/xdrv'
Making all in 2.6.27
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27'
cp -f ../2.6.19/wacom_wac.c .
cp -f ../2.6.22/wacom_wac.h .
    Building linuxwacom drivers for 2.6 kernel.
***Note: Drivers not enabled as modules in your kernel config but requested through configure are NOT built
make -C /lib/modules/2.6.27.29-0.1-default/source M=/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27
make[3]: Entering directory `/usr/src/linux-2.6.27.29-0.1'
  CC [M]  /home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_wac.o
  CC [M]  /home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.o
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c: In function ‘wacom_ioctl_set_led’:
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: ‘struct wacom_wac’ has no member named ‘config’
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: ‘WACOM_CONFIG_HANDEDNESS’ undeclared (first use in this function)
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: (Each undeclared identifier is reported only once
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: for each function it appears in.)
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c: In function ‘wacom_ioctl_set_handedness’:
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:416: error: ‘WACOM_CONFIG_HANDEDNESS’ undeclared (first use in this function)
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:417: error: ‘struct wacom_wac’ has no member named ‘config’
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:420: error: ‘struct wacom_wac’ has no member named ‘config’
make[4]: *** [/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.o] Error 1
make[3]: *** [_module_/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27] Error 2
make[3]: Leaving directory `/usr/src/linux-2.6.27.29-0.1'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
make: *** [all-recursive] Error 1

--- snip ---

Open to suggestions as to how to fix.

Jim
--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Nicholas Hirsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is probably a simple fix. So, the layout of the kernel code is kind of funny in the linuxwacom source dir. Some code is used in kernel 2.6.22 that is shared between kernels 2.6.22-2.6.27. What this means is that you'll have to patch wacom_wac.h with the patch wacom_wac.h.patch from the $patch_dir/2.6.22 against the file $src_dir/2.6.22/wacom_wac.h. (not the $src_dir/2.6.27/wacom_wac.h. That file is just copied from 2.6.22) I tried describing this process in the README, but it's kind of confusing, go figure =).

Let me know if you patch it alright and it compiles.

Thanks for trying this out!
- nick

On Thu, Oct 22, 2009 at 10:36 PM, Jim Henderson <hendersj@...> wrote:
On Wed, 14 Oct 2009 13:02:58 -0700, Ping wrote:

> Thank you Nick for the patch.  We will have to wait for someone else to
> test it before merging it.  If no one has time to test it, I will pick
> it up later next month (I am busy with a bunch of other supports now).

I just applied the patches to the 0.8.4-3 code, running openSUSE 11.1
with kernel 2.6.27.29-0.1 (x86_64).  I received the following compilation
errors:

--- snip ---

[jhenderson@krikkit linuxwacom-0.8.4-3]$ make
Making all in src
make[1]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
Making all in .
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
Making all in wacomxi
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/wacomxi'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/wacomxi'
Making all in util
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/util'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/util'
Making all in xdrv
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/xdrv'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/xdrv'
Making all in 2.6.27
make[2]: Entering directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27'
cp -f ../2.6.19/wacom_wac.c .
cp -f ../2.6.22/wacom_wac.h .
   Building linuxwacom drivers for 2.6 kernel.
***Note: Drivers not enabled as modules in your kernel config but requested through configure are NOT built
make -C /lib/modules/2.6.27.29-0.1-default/source M=/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27
make[3]: Entering directory `/usr/src/linux-2.6.27.29-0.1'
 CC [M]  /home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_wac.o
 CC [M]  /home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.o
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c: In function ‘wacom_ioctl_set_led’:
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: ‘struct wacom_wac’ has no member named ‘config’
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: ‘WACOM_CONFIG_HANDEDNESS’ undeclared (first use in this function)
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: (Each undeclared identifier is reported only once
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:380: error: for each function it appears in.)
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c: In function ‘wacom_ioctl_set_handedness’:
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:416: error: ‘WACOM_CONFIG_HANDEDNESS’ undeclared (first use in this function)
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:417: error: ‘struct wacom_wac’ has no member named ‘config’
/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.c:420: error: ‘struct wacom_wac’ has no member named ‘config’
make[4]: *** [/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27/wacom_sys.o] Error 1
make[3]: *** [_module_/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27] Error 2
make[3]: Leaving directory `/usr/src/linux-2.6.27.29-0.1'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src/2.6.27'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jhenderson/Downloads/linuxwacom-0.8.4-3/src'
make: *** [all-recursive] Error 1

--- snip ---

Open to suggestions as to how to fix.

Jim
--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Ping@LinuxWacom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 22, 2009 at 8:47 PM, Nick Hirsch <nick.hirsch@...> wrote:
This is probably a simple fix. So, the layout of the kernel code is kind of funny in the linuxwacom source dir. Some code is used in kernel 2.6.22 that is shared between kernels 2.6.22-2.6.27. What this means is that you'll have to patch wacom_wac.h with the patch wacom_wac.h.patch from the $patch_dir/2.6.22 against the file $src_dir/2.6.22/wacom_wac.h. (not the $src_dir/2.6.27/wacom_wac.h. That file is just copied from 2.6.22) I tried describing this process in the README, but it's kind of confusing, go figure =).

The idea behind the layout of Wacom kernel driver was to minimize the rework among the kernel versions. As number of kernel versions we supported growing many years ago (we support 22 versions right now), we split wacom.c into four files. wacom_sys.c and wacom.h deal with kernel/system related code, which changes as kernel interface changes.  wacom_wac.c and wacom_wac.h process Wacom specific data, which normally can be shared among kernel versions. That's why you see some files in the newer kernels are copied from an older kernel path since they didn't change among those kernel versions.

Hope this makes sense to you.  Feel free to post your questions when confused.

Ping

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 22 Oct 2009 22:47:25 -0500, Nick Hirsch wrote:

> This is probably a simple fix. So, the layout of the kernel code is kind
> of funny in the linuxwacom source dir. Some code is used in kernel
> 2.6.22 that is shared between kernels 2.6.22-2.6.27. What this means is
> that you'll have to patch wacom_wac.h with the patch wacom_wac.h.patch
> from the $patch_dir/2.6.22 against the file $src_dir/2.6.22/wacom_wac.h.
> (not the $src_dir/2.6.27/wacom_wac.h. That file is just copied from
> 2.6.22) I tried describing this process in the README, but it's kind of
> confusing, go figure =).
>
> Let me know if you patch it alright and it compiles.

I had believed I followed this procedure, but it looks like I did it
backwards - I copied the wacom_wac.h file from the 2.6.22 directory and
applied the patch from the $patch_dir/2.6.22 directory in the 2.6.27
directory,  I see, though, in my compilation attempt, that it recopied
from 2.6.22, so that probably would explain it.

And that does seem to have allowed me to compile the driver now, so on to
the next steps. :-)

> Thanks for trying this out!

No problem - I'm always glad to try out new things. :-)

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Everything compiled, and I'm now looking at just using the textToWacom.sh
script.  I've changed the script slightly to point to where arial.ttf is
on my system (/usr/share/fonts/truetype/arial.ttf), and now I have the
requisite Python modules installed, but I can't figure out the proper
values to set for the left handed parameter.

I've tried numeric (0, 1, 2) and the program tells me it can't set the
handedness.  usbfs is mounted at /proc/bus/usb and the device is /proc/
bus/usb/002/002

If I create the raw file by hand (just using convert the way the script
does) and execute the commands:

convert -size 64x32 xc:transparent -font /usr/share/fonts/truetype/arial.ttf -fill white -monochrome -pointsize 8 -draw "text 2,30 'Test'" tmp.png
./imgToRaw.py tmp.png
./imageToLed tmp.png /proc/bus/usb/002/002 8

(To update button 8 - the bottom button on the tablet I assume?)

I get the error message "Couldn't update LEDs".

This is the Intuos4 M tablet.

I have not yet restarted X after reloading the wacom kernel module; since it all seems to
be in the kernel module, that didn't seem necessary, but I'm going to restart X now to be
sure.

Jim
--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 23 Oct 2009 05:32:28 +0000, Jim Henderson wrote:

> I have not yet restarted X after reloading the wacom kernel module;
> since it all seems to be in the kernel module, that didn't seem
> necessary, but I'm going to restart X now to be sure.

Restart of X doesn't seem to have made a difference.

Jim



--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 23 Oct 2009 05:32:28 +0000, Jim Henderson wrote:

> If I create the raw file by hand (just using convert the way the script
> does) and execute the commands:
>
> convert -size 64x32 xc:transparent -font
> /usr/share/fonts/truetype/arial.ttf -fill white -monochrome -pointsize 8
> -draw "text 2,30 'Test'" tmp.png ./imgToRaw.py tmp.png ./imageToLed
> tmp.png /proc/bus/usb/002/002 8
>
> (To update button 8 - the bottom button on the tablet I assume?)
>
> I get the error message "Couldn't update LEDs".

BTW, I did this as root.  I should have mentioned that.

Jim



--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Nicholas Hirsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I've been out all day. The buttons are index 0-7. The left handed should be set to 1 or 0. It should have worked it you did it as root or sudo. (anything with /proc/bus/usb should be done with elevated privileges). Try setting a button in the range 0 to 7 and do it as root and let me know how it goes.

thanks again!
- nick

On Fri, Oct 23, 2009 at 12:36 AM, Jim Henderson <hendersj@...> wrote:
On Fri, 23 Oct 2009 05:32:28 +0000, Jim Henderson wrote:

> If I create the raw file by hand (just using convert the way the script
> does) and execute the commands:
>
> convert -size 64x32 xc:transparent -font
> /usr/share/fonts/truetype/arial.ttf -fill white -monochrome -pointsize 8
> -draw "text 2,30 'Test'" tmp.png ./imgToRaw.py tmp.png ./imageToLed
> tmp.png /proc/bus/usb/002/002 8
>
> (To update button 8 - the bottom button on the tablet I assume?)
>
> I get the error message "Couldn't update LEDs".

BTW, I did this as root.  I should have mentioned that.

Jim



--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 23 Oct 2009 18:10:20 -0500, Nick Hirsch wrote:

> Sorry, I've been out all day. The buttons are index 0-7. The left handed
> should be set to 1 or 0. It should have worked it you did it as root or
> sudo. (anything with /proc/bus/usb should be done with elevated
> privileges). Try setting a button in the range 0 to 7 and do it as root
> and let me know how it goes.

No problem - I tried running the left handed program with values of 0, 1,
and 2 (since I wasn't sure) and all returned the same error message.

I also tried button 1 (on the off chance that I was doing the numbering
backwards).

> thanks again!

No problem :-)

Is there anything we could look at (I'm happy modifying code) that might
give us more diagnostic information as to why the writes are failing?

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Nicholas Hirsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Huh, that's funny. If the LED isn't returning correctly, the ioctl is returning -1 from within the kernel. I'm not sure what could be causing it. You could patch your already patched wacom_sys.c with the attached file. Recompile, run the new kernel, try setting the OLEDs using the above methods. Then call dmesg and let me know what it prints out. In specific, look at the patch and let me know which of the new print messages it prints out.

thanks,
- nick

On Fri, Oct 23, 2009 at 7:51 PM, Jim Henderson <hendersj@...> wrote:
On Fri, 23 Oct 2009 18:10:20 -0500, Nick Hirsch wrote:

> Sorry, I've been out all day. The buttons are index 0-7. The left handed
> should be set to 1 or 0. It should have worked it you did it as root or
> sudo. (anything with /proc/bus/usb should be done with elevated
> privileges). Try setting a button in the range 0 to 7 and do it as root
> and let me know how it goes.

No problem - I tried running the left handed program with values of 0, 1,
and 2 (since I wasn't sure) and all returned the same error message.

I also tried button 1 (on the off chance that I was doing the numbering
backwards).

> thanks again!

No problem :-)

Is there anything we could look at (I'm happy modifying code) that might
give us more diagnostic information as to why the writes are failing?

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss


[wacom_sys.c.patch]

751a752
> printk(KERN_DEBUG "wacom_set_led_img\n");
758a760
> printk(KERN_DEBUG "wacom_set_left_handed\n");
765a768
> printk(KERN_DEBUG "wacom_set_led_mode\n");
772a776
> printk(KERN_DEBUG "default\n");


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 23 Oct 2009 21:28:50 -0500, Nick Hirsch wrote:

> You could patch your already patched wacom_sys.c with the attached file.
> Recompile, run the new kernel, try setting the OLEDs using the above
> methods. Then call dmesg and let me know what it prints out. In
> specific, look at the patch and let me know which of the new print
> messages it prints out.

Same error message on the console, but dmesg doesn't say anything about
it after applying the patch.

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Nicholas Hirsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like a permissions issue or the wrong /proc/bus/usb/DEV is being selected somehow.

You might try modifying the source for imageToLed.c to add a printout to the inside of the set_led function. Figure out which return is causing failure, and let me know. (there are 2 points to failure, opening the usb device, and making the ioctl)

If it's still the ioctl that is failing, then perhaps the new module isn't actually installed properly? If the ioctl is failing, it would have to be the case that the printouts from dmesg would appear since there is a printout for every case in the main wacom_ioctl handler, so we know it should be getting to the kernel. Either this or the wrong device is being selected.

The only other thing that might cause this is that I hard coded the interface number (ifno) to be 0 in the ubsdevfs_ioctl structure that I pass to the ioctl in set_led. My system only has ifno's of 0. You might run `lshal | grep "usb.interface.number"` to see if there are some interfaces that are set to a non-zero number. If you find any, you might pipe lshal to less and manually identify which are non-zero. If it happens to be that your wacom device's usb.interface.number is non-zero, let me know.
(I'll be honest, the documentation for what the ifno represents is sorely lacking and I hard coded this out of confusion)

thanks,
- nick

On Sat, Oct 24, 2009 at 9:30 PM, Jim Henderson <hendersj@...> wrote:
On Fri, 23 Oct 2009 21:28:50 -0500, Nick Hirsch wrote:

> You could patch your already patched wacom_sys.c with the attached file.
> Recompile, run the new kernel, try setting the OLEDs using the above
> methods. Then call dmesg and let me know what it prints out. In
> specific, look at the patch and let me know which of the new print
> messages it prints out.

Same error message on the console, but dmesg doesn't say anything about
it after applying the patch.

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 24 Oct 2009 22:00:23 -0500, Nick Hirsch wrote:

> Sounds like a permissions issue or the wrong /proc/bus/usb/DEV is being
> selected somehow.

# lsusb | grep Wacom
Bus 002 Device 002: ID 056a:00b9 Wacom Co., Ltd

That would be /proc/bus/usb/002/002, correct?  (Just making sure I'm not
doing something wrong here)

> You might try modifying the source for imageToLed.c to add a printout to
> the inside of the set_led function. Figure out which return is causing
> failure, and let me know. (there are 2 points to failure, opening the
> usb device, and making the ioctl)

The open is working, it's the ioctl that's failing.  I can confirm that
it's returning a -1 (since the test is just for < 0 )

> If it's still the ioctl that is failing, then perhaps the new module
> isn't actually installed properly? If the ioctl is failing, it would
> have to be the case that the printouts from dmesg would appear since
> there is a printout for every case in the main wacom_ioctl handler, so
> we know it should be getting to the kernel. Either this or the wrong
> device is being selected.

That got it.  For some reason, "make install" on the driver wasn't
actually updating the driver in the module directory.  I manually copied
the driver and reloaded it, and now it's working.

>
> The only other thing that might cause this is that I hard coded the
> interface number (ifno) to be 0 in the ubsdevfs_ioctl structure that I
> pass to the ioctl in set_led. My system only has ifno's of 0. You might
> run `lshal | grep "usb.interface.number"` to see if there are some
> interfaces that are set to a non-zero number. If you find any, you might
> pipe lshal to less and manually identify which are non-zero. If it
> happens to be that your wacom device's usb.interface.number is non-zero,
> let me know. (I'll be honest, the documentation for what the ifno
> represents is sorely lacking and I hard coded this out of confusion)

usb.interface.number is 0.  I note this just for moving forward with the
patch.  All 8 of my buttons now are labeled with the text "Test". :-)

Thanks for your patience!

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Nicholas Hirsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh yeah, I forgot to mention the makefile thing entirely. Doh! Thanks for sticking it through and testing for me.

I hope you enjoy the LED functionality =)
- nick

On Sat, Oct 24, 2009 at 10:17 PM, Jim Henderson <hendersj@...> wrote:
On Sat, 24 Oct 2009 22:00:23 -0500, Nick Hirsch wrote:

> Sounds like a permissions issue or the wrong /proc/bus/usb/DEV is being
> selected somehow.

# lsusb | grep Wacom
Bus 002 Device 002: ID 056a:00b9 Wacom Co., Ltd

That would be /proc/bus/usb/002/002, correct?  (Just making sure I'm not
doing something wrong here)

> You might try modifying the source for imageToLed.c to add a printout to
> the inside of the set_led function. Figure out which return is causing
> failure, and let me know. (there are 2 points to failure, opening the
> usb device, and making the ioctl)

The open is working, it's the ioctl that's failing.  I can confirm that
it's returning a -1 (since the test is just for < 0 )

> If it's still the ioctl that is failing, then perhaps the new module
> isn't actually installed properly? If the ioctl is failing, it would
> have to be the case that the printouts from dmesg would appear since
> there is a printout for every case in the main wacom_ioctl handler, so
> we know it should be getting to the kernel. Either this or the wrong
> device is being selected.

That got it.  For some reason, "make install" on the driver wasn't
actually updating the driver in the module directory.  I manually copied
the driver and reloaded it, and now it's working.

>
> The only other thing that might cause this is that I hard coded the
> interface number (ifno) to be 0 in the ubsdevfs_ioctl structure that I
> pass to the ioctl in set_led. My system only has ifno's of 0. You might
> run `lshal | grep "usb.interface.number"` to see if there are some
> interfaces that are set to a non-zero number. If you find any, you might
> pipe lshal to less and manually identify which are non-zero. If it
> happens to be that your wacom device's usb.interface.number is non-zero,
> let me know. (I'll be honest, the documentation for what the ifno
> represents is sorely lacking and I hard coded this out of confusion)

usb.interface.number is 0.  I note this just for moving forward with the
patch.  All 8 of my buttons now are labeled with the text "Test". :-)

Thanks for your patience!

Jim

--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Re: OLED/Express Keys Support Patch: Please try it!

by Jim Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 24 Oct 2009 22:37:33 -0500, Nick Hirsch wrote:

> Oh yeah, I forgot to mention the makefile thing entirely. Doh! Thanks
> for sticking it through and testing for me.
>
> I hope you enjoy the LED functionality =) - nick

No problem, Nick - having fun with it now.  The OLED is grayscale, so
there are some interesting things that can be done with it.

One thing that I'm having a little trouble with, though, is resetting the
values to just black - it seems that if I pass a plain black image in, I
get garbage on the OLED display.  I think it's an artifact of the
imgToRaw.py script, will try converting something else.  What format is
the tmp.out file in?  Is it just an RLE-encoded bmp, or something else?

Jim



--
 Jim Henderson
 Please keep on-topic replies on the list so everyone benefits


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@...
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
< Prev | 1 - 2 | Next >