mischnic / hyperpen-for-apple

Automatically exported from code.google.com/p/hyperpen-for-apple
0 stars 0 forks source link

Please post your comments about my driver #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please tell me what you think about my driver.
Does it work for you as expected?
What features should be added?

Original issue reported on code.google.com by udo.kill...@gmail.com on 25 Jun 2012 at 5:06

GoogleCodeExporter commented 9 years ago
oh!! and I realize I left some of my pressure experiments in the code posted 
you.. oops.. 

The pressure code I was using before was:
stylus.pressure = (UInt16)  valueForElement(pressureHIDElementRef);
which would give me pressure from 0-1024.

Thanks for responding btw,

George

Original comment by GeorgeCo...@gmail.com on 14 Mar 2013 at 9:00

GoogleCodeExporter commented 9 years ago
and to fully explain : I think I have everything I need from the manufacturer 
now: 

I have proximity (off_tablet YES or NO), pressure from 0-1024, and x and y 
position (in some arbitary high value, which doesn't match their max value in 
their report for some reason, which I can nevertheless scale back to normal 
screen positions).

The only problem I think I have is that the way I report these to the system 
just doesn't seem to jive well with photoshop.

Original comment by GeorgeCo...@gmail.com on 14 Mar 2013 at 9:02

GoogleCodeExporter commented 9 years ago
Hope you don't mind all this noise - there is no "edit comment" button... so - 
I saw another comment on this forum which said to use an earlier version of the 
wacom driver, which I downloaded, and lo and behold: with the wacom tablet 
driver installed the pen works perfectly in sketchbook pro, illustrator and 
flash
correct screen resolution mapping,
fast, fluid movements,
can draw lines,
has pressure!
in fact it is faster than with the modified code I sent you (which I stated 
often has lag)

now in photoshop cs5, it exhibits the strange behaviour I told you about 
before, whereby it will just draw dots instead of lines. I will try corel 
painter too - but it looks like for the most part the wacom driver works.. but 
as luck would have it - the MOST important app for me is photoshop.. :(

Any ideas? I'll be more than happy to use your driver, and keep hacking if I 
can get photoshop working.. but to be honest - anything that get's photoshop 
working (short of animal/human sacrifice) will probably be agreeable to me.

Original comment by GeorgeCo...@gmail.com on 14 Mar 2013 at 10:45

GoogleCodeExporter commented 9 years ago
last bit of info here : when running my modified code, I get no pressure in no 
programs - when just using the wacom drivers, I get pressure in some programs.. 
attached is some log output from what y driver is doing - the "update xxxxxx" 
output is just printf output, but you can see the nxevent's I'm generating. I 
can get you whatever info you need to help me debug this - when I use your 
drive I can draw in flash without pressure - I can't draw in painter or 
photoshop -desperate to rectify that. thanks.

Original comment by GeorgeCo...@gmail.com on 14 Mar 2013 at 11:59

Attachments:

GoogleCodeExporter commented 9 years ago
Hi- I'm not real experienced with Terminal. Can't seem to get the options for 
Manual Configuration to work. I'm running an iMac 27" Quad with OS 10.7.5. When 
the driver is initiated, I just have the upper left corner active. Can you give 
me an example of the line of text to use in Terminal, so I can see the syntax 
of the options command? HyperpenConfig doen't seem to solve the problem. 
Thanks, Dan Selby

Original comment by danse...@mac.com on 5 Apr 2013 at 12:11

GoogleCodeExporter commented 9 years ago
Dan,

You don't mention the tablet you are using. Without this info I have no clue.
Please send me a screenshot of HyperpenConfig and a copy of the status messages 
at the driver's start.

Regards
Udo 

Original comment by udo.kill...@gmail.com on 5 Apr 2013 at 5:31

GoogleCodeExporter commented 9 years ago
Hi Udo: Sorry about that. I've been working so hard trying to get this tablet 
working my mind got frazzled. My tablet is a DigiPro T-8000U. 

Original comment by danse...@mac.com on 5 Apr 2013 at 10:54

Attachments:

GoogleCodeExporter commented 9 years ago
Dan,

another user solved the problem (see above) by setting the tablet's bounds to 
3000 x 2200. You can do this as well. Just open daemonStarter.command and 
change the number after -w to 3000 and the number following -h to 2200. You can 
do this in TextEdit. Save the results and start the command file by double 
clicking.

Let me know if it works out for you as well.

Kind regards,
Udo

Original comment by udo.kill...@gmail.com on 6 Apr 2013 at 1:34

GoogleCodeExporter commented 9 years ago
Hi Udo: That did it. As I am a curious type, how do you get to the options list 
as you state in "If you start the driver from the command line with option -? 
it will show you the available options". Which is the driver you mention - the 
daemon Starter.com or the hyperpendaemon? As far as the tablet working 
completely; pressure, buttons, etc., all work well. Thank you for all your 
labor! Your check is in the mail (figuratively speaking).

Dan

Original comment by danse...@mac.com on 6 Apr 2013 at 6:22

GoogleCodeExporter commented 9 years ago
Hi Dan,

Good news you send.
The driver is named hyperpenDeamon and shown in the finder as a screen with 
green print. You'll need to use the Terminal and go to the directory the driver 
sits in (cd is the command you need). Then you type ./hyperpenDaemon -? and see 
the available options.

Many thanks for your donation!

Kind regards,
Udo

Original comment by udo.kill...@gmail.com on 6 Apr 2013 at 6:49

GoogleCodeExporter commented 9 years ago
First of all: thank you for this wonderful project! I found it by accidentally 
a few days ago. 

I bought Trust Mini Tablet when I saw one for 10 euros a year ago or something. 
No Mac drivers were provided, but I found out it was an OEM of UC-Logic 
WP4030U. I got it working on my older Macbook with Snow Leopard using not the 
newest (1.26) but 1.25 drivers provided by UC-Logic. I never got it working on 
the other Mac on either Lion (or now upgraded) Mountain Lion. I tried many 
drivers and I thought that the problem might be that not all of those probably 
uninstalled cleanly. 

I had already given up hope. Until I came across this project :-) The tablet 
didn't work with hyperPenDaemon, but provided with the source and XCode, I 
thought I take a look. I found out that the communication was a bit different 
than the driver expected, but it wasn't hard to reverse engineer which bytes 
carried which info. A night of hacking and I had coordinates and buttons values 
printing out correctly to the console. I even got the mouse cursor moving with 
tablet, but when I wired the buttons work in the code, I ran to strange problem 
where it seemed like that the button was stuck or something. I just ran out of 
the time to figure out what was wrong, but I will take another look next 
weekend. 

If there is intrest to the code / info how this model works, please ask. 
Attached is the screenshot of the hyperPenConfig showing the tablet.

Original comment by jani.sch...@gmail.com on 11 Jun 2013 at 7:04

Attachments:

GoogleCodeExporter commented 9 years ago
I got it work! The problem was that I needed to double the duration of the 
ShortSleep otherwise the driver would produce stuck mouse button presses as 
soon as I moved the stylus a bit or pressed the buttons.

Original comment by jani.sch...@gmail.com on 12 Jun 2013 at 4:29

GoogleCodeExporter commented 9 years ago
Jani,

congratulation! It's good to read that my code can be reused with creativity to 
drive even more tablet.

Kind regards,
Udo

Original comment by udo.kill...@gmail.com on 12 Jun 2013 at 5:47

GoogleCodeExporter commented 9 years ago
Hi! I'm having the same top left corner problem, and I couldn't solve it. I 
tried typing -v 0x8CA -p 0x21 -w 3000 -w 3000 on terminal (like eduardo on #36 
did), but it didn't work for me.. Am I missing something?

I have a Mac Book Pro running Mac OSX v10.7.5. Tablet is a Trust TB-3100.

Any Help would be greatly appreciated! Thanks!

Original comment by btcavalc...@gmail.com on 19 Aug 2013 at 11:26