Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Peripherals / Hardware
Reload this Page Need calibration numbers for Genius G-Pen 560
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Peripherals / Hardware Is your hardware supported? Having trouble getting some hardware working? Post here!

Reply
 
Thread Tools Display Modes
Old 05-20-2007   #1 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 4
Need calibration numbers for Genius G-Pen 560

I've got the driver installed but the cursor's all over the place. For some reason the included calibration utility in the Wizardpen driver just doesn't want to work for me.

So if anyone has the calibration numbers for the Genius G-Pen 560 for the xorg.conf file, I'd be most appreciative.

I'm running Ubuntu Feisty.
dyankee23 is offline   Reply With Quote
Old 08-17-2007   #2 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 8
Hi.

The problem with G-PEN 560 is not with calibration tool, but with kernel driver.

By default this tables works exactly as mouse: provide ONLY relative coordinates and no info about pressure.

After I try to use tablet with windows drivers in vmware - all become fine. I tryed to use it with usbhid driver - all works perfectly except for buttons - them doesn't work at all. Then I watch data it sends with an slightly modified acecad tablet driver - in message with lenght 8 bytes it send s all what we need - absolute coordinates, pressure, button states.

After reboot tablet continues to work fine, but after disconnecting it - it becomes to send relative coordinates. So I think windows drivers loads some firmware in it before using, because usb configuration but be reset after rediscovering usb devices on reboot.
Dimak_XXZZ is offline   Reply With Quote
Old 08-23-2007   #3 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 4
Okay, let me be entirely certain before I try to screw up my system by trying to fix it (again; that's not a slur on the advice I was given so much as a testament to my "madd skillz" ), let me make sure I've got the proper prescription: VMWare Player running Windows and the tablet drivers installed there. Will the Player-based Windows properly process the data I need into the Linux-based GIMP and other programs, or do I have to install WinGIMP and the like into the Player as well?
dyankee23 is offline   Reply With Quote
Old 08-28-2007   #4 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 8
no, you should first unload usbhid module, then start vmware and connect to it your tablet. After tablet initialization in windows your can shut down vmware, load driver usbhid and use tablet in linux applications (see instructions on - WizardPen Driver)

Or you can try following program
http://dimak.fopf.mipt.ru/stuff/init-gpen.tar.gz
It just sends one setup packet to device, but after it tablet sends absolute coordinates and pressure.
The action for initializing tablet are almost the same as with vmware:
1. unload usbhid
2. run ./init-gpen
3. load usbhid

Please, reply how it will work.
Dimak_XXZZ is offline   Reply With Quote
Old 09-03-2007   #5 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 4
OK, I extracted the tarball you linked to, and here's what I get when I attempt to make:

Quote:
dyankee23@cynosure:~/init-gpen$ make
gcc -lusb -o init-gpen init-gpen.c
init-gpen.c:2:17: error: usb.h: No such file or directory
init-gpen.c: In function ‘find_tablet’:
init-gpen.c:15: error: ‘usb_busses’ undeclared (first use in this function)
init-gpen.c:15: error: (Each undeclared identifier is reported only once
init-gpen.c:15: error: for each function it appears in.)
init-gpen.c:15: error: dereferencing pointer to incomplete type
init-gpen.c:16: error: dereferencing pointer to incomplete type
init-gpen.c:16: error: dereferencing pointer to incomplete type
init-gpen.c:17: error: dereferencing pointer to incomplete type
init-gpen.c:18: error: dereferencing pointer to incomplete type
init-gpen.c:18: error: dereferencing pointer to incomplete type
init-gpen.c: In function ‘main’:
init-gpen.c:56: warning: assignment makes pointer from integer without a cast
make: *** [init-gpen] Error 1
dyankee23@cynosure:~/init-gpen$
I'm sorry if I'm missing something basic here. I already tried reading the man page and can't figure out what I'm doing wrong.
dyankee23 is offline   Reply With Quote
Old 09-03-2007   #6 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 8
You have not libusb headers in your system. You have to install libusb development libraries and headers before building applications, which use libusb (libusb-devel for redhat, fedora, centos)
Dimak_XXZZ is offline   Reply With Quote
Old 09-05-2007   #7 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 4
OK, got libusb and related files, and make made with the making.

So here's how it went down, step by step:

Command: (In home folder) modprobe -r usbhid
Effect: Blinking light on tablet currently plugged into my front USB port goes out.

Command: (after changing directory to init-gpen) ./init-gpen
Effect: Message returns "1 byte sent" or words to that effect. I'm away from my own computer right now.

Command: (after changing directory back to home) modprobe usbhid
Effect: Blinking light returns to the tablet, but now computer ignores all tablet input, instead of the simple lack of pressure sensitivity it displayed before.
dyankee23 is offline   Reply With Quote
Old 09-06-2007   #8 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 8
I was hope it works not only for me . There was one bug in that code (I'm new in usb programming ), if you want, you can check fixed version: http://dimak.fopf.mipt.ru/stuff/init-gpen-0.01.tar.gz
In case of success program will report
hex init-gpen # ./init-gpen
3 bytes: 02 10 01

Please, note that wizardpen driver for xorg doesn't handle correctly device plug/unplug and driver manipulations. Try to restart X-server.

You can still try to use tablet driver in windows in vmware and then go back to linux and try to use it.

Does your tablet report relative or absolute coordinates by default ?
Dimak_XXZZ is offline   Reply With Quote
Old 04-29-2008   #9 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Have you interested in wizardpen-driver driver as yet? I've made some changes in init-gpen utility. Now it's possible to reinitialize G-Pen even it's busy (usually attached to usbhid). Look at this patch:

Code:
diff -ur init-gpen-0.01/init-gpen.c init-gpen-0.01.my/init-gpen.c
--- init-gpen-0.01/init-gpen.c	2007-09-06 13:12:31.000000000 +0400
+++ init-gpen-0.01.my/init-gpen.c	2008-04-29 02:35:45.000000000 +0400
@@ -1,6 +1,9 @@
 #include <stdio.h>
 #include <usb.h>
 #include <string.h>
+#include <errno.h>
+#include <sys/ioctl.h>
+#include <linux/usbdevice_fs.h>
 
 #define VID_KYE 0x0458
 #define PID_GPEN 0x5003
@@ -37,6 +40,25 @@
 	printf("\n");
 }
 
+#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
+/* thanks to OpenPCD team */
+int usb_get_fd(usb_dev_handle *uh)
+{
+    return *((int *)uh);
+}
+
+int __usb_reattach_kernel_driver_np(usb_dev_handle *dev, int interface)
+{
+    struct usbdevfs_ioctl command;
+
+    command.ifno = interface;
+    command.ioctl_code = USBDEVFS_CONNECT;
+    command.data = NULL;
+
+    return ioctl(usb_get_fd(dev), USBDEVFS_IOCTL, &command);
+}
+#endif
+
 int main(int argc, char **argv)
 {
 	struct usb_device *gpen;
@@ -56,6 +78,14 @@
 
 	h = usb_open(gpen);
 
+#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
+        if(usb_detach_kernel_driver_np(h, 0) < 0) {
+		printf("Can't detach a kernel driver from interface\n");
+		usb_close(h);
+		return 2;
+        }
+#endif
+
 	if(usb_claim_interface(h, 0) < 0) {
 		printf("Can't claim interface on usb device. Possibly device is busy\n");
 		usb_close(h);
@@ -67,6 +97,11 @@
 	print_bytes(buf, n);
 
 	usb_release_interface(h, 0);
+
+#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
+        __usb_reattach_kernel_driver_np(h, 0);
+#endif
+
 	usb_close(h);
 }
e_asphyx is offline   Reply With Quote
Old 04-29-2008   #10 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 8
Thanks, but I've found that this tablet works fine with aiptek kernel driver, and patch already commited git.kernel.org - linux/kernel/git/aegl/linux-2.6.git/commit

So in 2.6.26 it will work in absolute mode by default.

There is another problem with it: xorg driver wizardpen doesn't work with xorg-7.3, I've fixed some issues and merged several patches from acecad dirver. You can get it from git repository Index of /stuff/xf86-input-wizardpen.git
Code:
# git-clone http://dimak.fopf.mipt.ru/stuff/xf86-input-wizardpen.git
Dimak_XXZZ is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
rounding numbers in bash cwl157 Linux Programming & Scripting 4 04-14-2007 01:54 PM
Matching MAC addresses to IP numbers tsimi Linux Networking 3 01-21-2007 06:14 PM
Comparing Numbers pcpro17 Linux Programming & Scripting 2 12-21-2006 01:28 PM
How to make page numbers happen in Openoffice.org Writer royeo Redhat / Fedora Linux Help 1 10-30-2006 06:34 PM
reassigning unit numbers in g77 vitke Linux Programming & Scripting 2 12-15-2005 04:31 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 09:06 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0