LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   wacom volito2 not working (https://www.linuxquestions.org/questions/slackware-14/wacom-volito2-not-working-491537/)

Steve50 10-11-2006 03:43 PM

wacom volito2 not working
 
I've recently bought a volito2 graphics tablet and I'm trying to get it working with Slackware 11, without success so far. The wacom module comes with the 2.6.18 kernel and lsmod shows that it is loaded. I've created a udev rule to map the event to /dev/input/wacom and that also seems to be working:

Quote:

steve@slack:~$ ls /dev/input
event0 event1 event2 event3 mice mouse0 mouse1 wacom@
I've made the following changes to my xorg.conf:

Quote:

Section "ServerLayout"

Identifier "Simple Layout"
Screen "Screen 1" 0 0
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"

EndSection
and

Quote:

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "USB" "on"
Option "Mode" "Relative"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "USB" "on"
Option "Mode" "Relative"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "USB" "on"
Option "Mode" "Relative"
EndSection
Note: I've tried relative and absolute modes, but no difference.

After looking to see if the device is using the right driver I can't see a problem:

Quote:

steve@slack:~$ more /proc/bus/usb/devices

T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=056a ProdID=0062 Rev= 2.00
S: Manufacturer=WACOM
S: Product=CTF-420 V2.0-0
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 40mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=wacom
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
Quote:

steve@slack:~$ more /proc/bus/input/devices

I: Bus=0003 Vendor=056a Product=0062 Version=0200
N: Name="Wacom Volito2 4x5"
P: Phys=
S: Sysfs=/class/input/input2
H: Handlers=mouse0 event2
B: EV=f
B: KEY=1c43 0 70000 0 0 0 0 0 0 0 0
B: REL=100
B: ABS=100 3000003
Quote:

steve@slack:~$ cat /etc/udev/rules.d/10-wacom.rules
# udev rule to create /dev/input/wacom for wacom tablets

KERNEL=="event*", SYSFS{idVendor}=="056a", NAME="input/%k",
SYMLINK="input/wacom"
Anybody have any ideas?

Andrew Benton 10-11-2006 05:06 PM

I couldn't get it to work properly with the driver in the vanilla kernel. What worked for me was to download http://prdownloads.sourceforge.net/l....7.4-3.tar.bz2 , untar it and copy the wacom.c file from linuxwacom-0.7.4-3/src/2.6.16/wacom.c into the kernel source, use it to replace the file linux-2.6.18/drivers/usb/input/wacom.c then recompile the kernel.
For X windows, copy the file linuxwacom-0.7.4-3/prebuilt/wacom_drv.so to /usr/X11R6/lib/modules/input/wacom_drv.so then reboot into your new kernel and see if it's helped

Steve50 10-11-2006 05:16 PM

Quote:

Originally Posted by Andrew Benton
I couldn't get it to work properly with the driver in the vanilla kernel. What worked for me was to download http://prdownloads.sourceforge.net/l....7.4-3.tar.bz2 , untar it and copy the wacom.c file from linuxwacom-0.7.4-3/src/2.6.16/wacom.c into the kernel source, use it to replace the file linux-2.6.18/drivers/usb/input/wacom.c then recompile the kernel.
For X windows, copy the file linuxwacom-0.7.4-3/prebuilt/wacom_drv.so to /usr/X11R6/lib/modules/input/wacom_drv.so then reboot into your new kernel and see if it's helped

Thanks Andrew, I'll give it a try.

Steve50 10-12-2006 11:54 AM

OK, I tried the instructions you gave Andrew. I compiled a new 2.6.18-ck1 and when running make I got this error and the kernel refused to build:
Quote:

drivers/usb/input/wacom.c:80:29: linux/usb_input.h: No such file or directory
drivers/usb/input/wacom.c: In function `wacom_probe':
drivers/usb/input/wacom.c:907: warning: implicit declaration of function `usb_to_input_id'
make[3]: *** [drivers/usb/input/wacom.o] Error 1
make[2]: *** [drivers/usb/input] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

I double-checked that the new driver was in the source and it was. Looks like I might have to build teh driver from the linux wacom pages. Thanks anyway.

Andrew Benton 10-12-2006 12:13 PM

Sorry, change the _ to a / so it reads linux/usb/input.h
Code:

sed -i 's:usb_input:usb/input:' drivers/usb/input/wacom.c

Steve50 10-12-2006 12:22 PM

Quote:

Originally Posted by Andrew Benton
Sorry, change the _ to a / so it reads linux/usb/input.h
Code:

sed -i 's:usb_input:usb/input:' drivers/usb/input/wacom.c


Sorry, but you've lost me here. Can you just go over that again?

Steve50 10-12-2006 04:21 PM

OK, figured it out. Just run that command in the kernel directory before running make. I did that and this time the kernel built cleanly. But the best news is my wacom now works perfectly! Many thanks for this, I would never have guessed that was the solution. However, it seems strange that the kernel developers haven't addressed this issue.


All times are GMT -5. The time now is 10:54 AM.