Genius Mouse pen on Fedora

This is basically for Genius Mouse pen 5×4 but I have also written for others too. If you have any other Linux distribution follow the source code compilation.

It was quite difficult in finding out how to use my mouse pen with fedora. There are lots of links for Ubuntu though but very few for Fedora. Well this is how I got it working.

You can either download the rpm or compile the driver from source.

Download the rpm here and install it as follows:

su -
rpm -ivh wizardpen*.rpm

To download the dirver source and compile it:

http://specificcrap.arbitrarycrap.com/wizardpen-0.6.0.2.tar.gz

Extract it:

tar -xvzf wizardpen-0.6.0.2.tar.gz

cd wizardpen-0.6.0.2

Compile and Install it*:

./configure --with-xorg-modules-dir=/usr/lib/xorg/modules/input/
 make
 strip src/.libs/wizardpen_drv.so
 cp src/.libs/wizardpen_drv.so /usr/lib/xorg/modules/input
For 64 bit systems:
./configure --with-xorg-modules-dir=/usr/lib64/xorg/modules/input/
 make
 strip src/.libs/wizardpen_drv.so
 cp src/.libs/wizardpen_drv.so /usr/lib64/xorg/modules/input

Dependencies Issues

If you have any problem with dependencies yum should solve it. All the library files and necessary packages are available in the fedora repository itself. It would be advisable to install these packages:

yum groupinstall "Development Tools" "X Software Development"
 yum install xorg-x11-server-devel

After Installing the Driver

One thing I have learned is to always take a backup of any file you are editing. We will be editing the xorg.conf file so:

cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig

Now lets edit the file.

su -
gedit /etc/X11/xorg.conf

(or for the experts)

vi /etc/X11/xorg.conf

Add the following to the section “ServerLayout”

InputDevice     "WizardPen Tablet"      "SendCoreEvents"

Now add a new section

Section "InputDevice"
 Identifier      "WizardPen Tablet"
 Driver          "wizardpen"
 Option          "Name"          "UC-LOGIC Tablet WP5540U"
 #Option         "Device"        "/dev/tablet-event"
 Option          "SendCoreEvents"        "true"
 Option "TopX" "0"
 Option "TopY" "0"
 Option "BottomX" "32739"
 Option "BottomY" "32745"
 Option "MaxX" "32739"
 Option "MaxY" "32745"
 EndSection

You might have noticed I have commented the

Option         "Device"        "/dev/tablet-event"

This is necessary, as X will automatically detect the device,now this is in Fedora 9 but you might have to add it for earlier versions. So try uncommenting (remove the #) if it does not work in your system. And do remember that you would have to write the actual device name. Most probably its /dev/input/eventx (replace x with the actual number).

You might have other Mouse pens so for that type

cat /proc/bus/usb/devices

look for something similar:

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
 D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
 P:  Vendor=5543 ProdID=0004 Rev= 0.00
 S:  Manufacturer=UC-LOGIC
 S:  Product=Tablet WP5540U
 C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
 I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
 E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms

That’s what you would type in

Option          “Name”          “UC-LOGIC Tablet WP5540U

Well now that you have done it save it and restart you X server.To restart your X server log out or use Ctrl+Alt+Backspace.

If things don’t work even after restarting your X server mail me. You can find my email in the contact page.

Reference

I must thank all the folks who had posted guides that enabled me to write this:

http://www.not404.com/node/56

https://help.ubuntu.com/community/TabletSetupWizardpen

If not for these guys, I wouldn’t have got my Mouse Pen working.

Advertisements
Genius Mouse pen on Fedora

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s