Quantcast

Wacom tablet Intuos GD-0608-R on Ubuntu 16.04

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Wacom tablet Intuos GD-0608-R on Ubuntu 16.04

Marjan Savli
Hello!

But Wacom is still not working...



[CODE]pc@pc:~/wacom_serial5-master$ uname -a
Linux pc 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux[/CODE]

From https://github.com/RoaldFre/wacom_serial5 I got zip file.

[CODE]unzip wacom_serial5-master.zip
cd wacom_serial5-master
pico Makefile           # in first line I added :   CONFIG_MODULE_SIG=n
make all
[/CODE]

This gives me first error:

[CODE]pc@pc:~/wacom_serial5-master$ make all
make -C /lib/modules/4.4.0-45-generic/build M=/home/pc/wacom_serial5-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-45-generic'
  CC [M]  /home/pc/wacom_serial5-master/wacom_serial5.o
/home/pc/wacom_serial5-master/wacom_serial5.c: In function ‘wacom_connect’:
/home/pc/wacom_serial5-master/wacom_serial5.c:802:9: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  return err;
         ^
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/pc/wacom_serial5-master/wacom_serial5.mod.o
  LD [M]  /home/pc/wacom_serial5-master/wacom_serial5.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-45-generic'[/CODE]

But it produce .ko file

[CODE]pc@pc:~/wacom_serial5-master$ ls -al *.ko
-rw-rw-r-- 1 pc pc 21592 nov  6 03:46 wacom_serial5.ko
pc@pc:~/wacom_serial5-master$ sudo insmod ./wacom_serial5.ko
pc@pc:~/wacom_serial5-master$ ls -al /lib/modules/4.4.0-45-generic/kernel/drivers/input/tablet/w*
-rw-r--r--  1 root root 16014 okt 19 18:35 wacom_serial4.ko
pc@pc:~/wacom_serial5-master$ sudo cp wacom_serial5.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet
pc@pc:~/wacom_serial5-master$ ls -al /lib/modules/4.4.0-45-generic/kernel/drivers/input/tablet/w*
-rw-r--r-- 1 root root 16014 okt 19 18:35 /lib/modules/4.4.0-45-generic/kernel/drivers/input/tablet/wacom_serial4.ko
-rw-r--r-- 1 root root 21592 nov  6 03:54 /lib/modules/4.4.0-45-generic/kernel/drivers/input/tablet/wacom_serial5.ko
[/CODE]

Then Joystick...

[CODE]pc@pc:~/wacom_serial5-master$ apt-get source joystick
pc@pc:~/wacom_serial5-master$ cd joystick-1.4.9/
[/CODE]

And first problem...

[CODE]
pc@pc:~/wacom_serial5-master/joystick-1.4.9$ patch -p1 < ~/wacom_serial5-master/inputattach.patch
patching file inputattach.patch
patching file utils/inputattach.c
Hunk #1 succeeded at 701 with fuzz 2 (offset 242 lines).
Hunk #2 FAILED at 599.
1 out of 2 hunks FAILED -- saving rejects to file utils/inputattach.c.rej
patching file utils/serio-ids.h
Hunk #1 succeeded at 131 with fuzz 2 (offset 6 lines).
[/CODE]

[CODE]
pc@pc:~/wacom_serial5-master/joystick-1.4.9$ cat utils/inputattach.c.rej
--- utils/inputattach.c    2011-06-25 15:16:58.000000000 +0200
+++ utils/inputattach.c    2011-07-13 13:15:37.231000078 +0200
@@ -599,6 +610,12 @@ static struct input_types input_types[]
 { "--w8001",        "-w8001",    "Wacom W8001",
     B38400, CS8,
     SERIO_W8001,        0x00,    0x00,    0,    NULL },
+{ "--wacom_iv",        "-wacom_iv",    "Wacom protocol 4 tablet",
+    B9600, CS8,
+    SERIO_WACOM_IV,        0x00,    0x00,    0,    NULL },
+{ "--wacom_v",        "-wacom_v",    "Wacom protocol 5 tablet",
+    B9600, CS8,
+    SERIO_WACOM_V,        0x00,    0x00,    0,    wacom_v_init },
 { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL }
 };

[/CODE]

Then I deleted from file utils/inputattach.c this part

[CODE]
{ "--wacom_iv",         "-wacom_iv",    "Wacom protocol 4 tablet",
        B9600, CS8,
        SERIO_WACOM_IV,         0x00,   0x00,   0,      NULL },[/CODE]

This time patch goes OK.

[CODE]pc@pc:~/wacom_serial5-master/joystick-1.4.9$ patch -p1 < ~/wacom_serial5-master/inputattach.patch
patching file inputattach.patch
patching file utils/inputattach.c
Hunk #1 succeeded at 701 with fuzz 2 (offset 242 lines).
Hunk #2 succeeded at 869 (offset 270 lines).
patching file utils/serio-ids.h
Hunk #1 succeeded at 131 with fuzz 2 (offset 6 lines).[/CODE]

Then I try to make package

[CODE]pc@pc:~/wacom_serial5-master/joystick-1.4.9$ dpkg-buildpackage
dpkg-buildpackage: source package joystick
dpkg-buildpackage: source version 1:1.4.9-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Stephen Kitt <[hidden email]>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build joystick-1.4.9
 fakeroot debian/rules clean
PREFIX=/usr dh clean
   dh_testdir
   dh_auto_clean
    make -j1 distclean
make[1]: Entering directory '/home/pc/wacom_serial5-master/joystick-1.4.9'
make -C utils distclean
make[2]: Entering directory '/home/pc/wacom_serial5-master/joystick-1.4.9/utils'
rm -f *.o *.swp inputattach jstest jscal fftest ffmvforce ffset ffcfstress jscal-restore jscal-store *.orig *.rej map *~
make[2]: Leaving directory '/home/pc/wacom_serial5-master/joystick-1.4.9/utils'
make[1]: Leaving directory '/home/pc/wacom_serial5-master/joystick-1.4.9'
   dh_clean
 dpkg-source -b joystick-1.4.9
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building joystick using existing ./joystick_1.4.9.orig.tar.bz2
dpkg-source: info: local changes detected, the modified files are:
 joystick-1.4.9/inputattach.patch
 joystick-1.4.9/inputattach.patch.old
 joystick-1.4.9/utils/inputattach.c
 joystick-1.4.9/utils/serio-ids.h
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/joystick_1.4.9-1.diff.64f9co
dpkg-buildpackage: error: dpkg-source -b joystick-1.4.9 gave error exit status 2[/CODE]

[CODE]pc@pc:~/wacom_serial5-master/joystick-1.4.9$ dpkg-source --commit
dpkg-source: info: local changes detected, the modified files are:
 joystick-1.4.9/inputattach.patch
 joystick-1.4.9/inputattach.patch.old
 joystick-1.4.9/utils/inputattach.c
 joystick-1.4.9/utils/serio-ids.h
Enter the desired patch name: joystick_1.4.9-1_wacom_serial5-master

Select an editor.  To change later, run 'select-editor'.
  1. /bin/ed
  2. /bin/nano        <---- easiest
  3. /usr/bin/mcedit
  4. /usr/bin/vim.tiny

Choose 1-4 [2]:
dpkg-source: info: local changes have been recorded in a new patch: joystick-1.4.9/debian/patches/joystick_1.4.9-1_wacom_serial5-master
pc@pc:~/wacom_serial5-master/joystick-1.4.9$ dpkg-buildpackage -uc -us
...
...
dpkg-buildpackage: full upload (original source is included)
pc@pc:~/wacom_serial5-master/joystick-1.4.9$ sudo dpkg -i ../inputattach-1.4.9-1_amd64.deb
dpkg: error processing archive ../inputattach-1.4.9-1_amd64.deb (--install):
 cannot access archive: Datoteka ali imenik s tem imenom ne obstaja
Errors were encountered while processing:
 ../inputattach-1.4.9-1_amd64.deb
pc@pc:~/wacom_serial5-master/joystick-1.4.9$ sudo dpkg -i ../inputattach_1.4.9-1_amd64.deb
(Reading database ... 245738 files and directories currently installed.)
Preparing to unpack .../inputattach_1.4.9-1_amd64.deb ...
Unpacking inputattach (1:1.4.9-1) over (1:1.4.9-1) ...
Setting up inputattach (1:1.4.9-1) ...
Processing triggers for man-db (2.7.5-1) ...
pc@pc:~/wacom_serial5-master$ ls in*
inputattach_1.4.9-1_amd64.deb  inputattach.patch
pc@pc:~/wacom_serial5-master$ cat /etc/udev/rules.d/70-serial-wacom.rules
ACTION=="add|change", SUBSYSTEM=="pnp", ATTRS{id}=="PNP0501", ENV{NAME}=="Wacom protocol V serial tablet", SYMLINK="input/wacom", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"
[/CODE]

Then I run

[CODE]pc@pc:~/wacom_serial5-master$ sudo inputattach --wacom_v /dev/ttyS0
pc@pc:~/wacom_serial5-master$[/CODE]

This time gives no error.

[CODE]
pc@pc:~/wacom_serial5-master$ dmesg
...
...
[ 5299.857689] serio: Serial port ttyS0
[ 5299.872540] input input17: Unsupported Wacom model ~#GD-0608-R00,V1.1-7
[ 5299.888838] input input18: Model string: ~#GD-0608-R00,V1.1-7
[ 5299.888842] input input18: Wacom tablet: Intuos, version 1.1
[ 5299.900516] input input18: Coordinates string: ~C20320,16240
[ 5299.900606] input: Wacom protocol 5 serial tablet as /devices/pnp0/00:03/tty/ttyS0/serio7/input/input18
[/CODE]

[CODE]pc@pc:~/wacom_serial5-master$ tail /var/log/kern.log
Nov  6 04:52:35 pc kernel: [ 5299.857689] serio: Serial port ttyS0
Nov  6 04:52:35 pc kernel: [ 5299.872540] input input17: Unsupported Wacom model ~#GD-0608-R00,V1.1-7
Nov  6 04:52:35 pc kernel: [ 5299.888838] input input18: Model string: ~#GD-0608-R00,V1.1-7
Nov  6 04:52:35 pc kernel: [ 5299.888842] input input18: Wacom tablet: Intuos, version 1.1
Nov  6 04:52:35 pc kernel: [ 5299.900516] input input18: Coordinates string: ~C20320,16240
Nov  6 04:52:35 pc kernel: [ 5299.900606] input: Wacom protocol 5 serial tablet as /devices/pnp0/00:03/tty/ttyS0/serio7/input/input18
[/CODE]

[CODE]root@pc:/home/pc# pico /usr/share/X11/xorg.conf.d/50-wacom.conf
Section "InputClass"
        Identifier "Wacom USB device class"
        MatchUSBID "056a:*"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom PnP device class"
        MatchPnPID "WACf*|WCOM*|WACM*|FUJ02e5|FUJ02e7|FUJ02e9"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom class"
        MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom serial class"
        MatchProduct "Serial Wacom Tablet"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom serial class identifiers"
        MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
        Driver "wacom"
EndSection

# Hanwang tablets
Section "InputClass"
        Identifier "Hanwang class"
        MatchProduct "Hanwang"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

# Waltop tablets
Section "InputClass"
        Identifier "Waltop class"
        MatchProduct "WALTOP"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

# N-Trig Duosense Electromagnetic Digitizer
Section "InputClass"
        Identifier "Wacom N-Trig class"
        MatchProduct "HID 1b96:0001|N-Trig Pen|N-Trig DuoSense"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
        Option "Button2" "3"
EndSection[/CODE]


In file /usr/share/X11/xorg.conf.d/70-wacom.conf I added this code:

pc@pc:~/wacom_serial5-master$ pico /usr/share/X11/xorg.conf.d/70-wacom.conf

[CODE]Section "InputDevice"
    Driver        "wacom"
    Identifier    "stylus"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "stylus"
    Option        "ForceDevice"    "Serial"
EndSection

Section "InputDevice"
    Driver        "wacom"
    Identifier    "eraser"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "eraser"
    Option        "ForceDevice"    "Serial"
EndSection

Section "InputDevice"
    Driver        "wacom"
    Identifier    "cursor"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "cursor"
    Option        "ForceDevice"    "Serial"
EndSection

Section "ServerLayout"
    Identifier    "X.org Configured"
    InputDevice   "stylus"
    InputDevice   "eraser"
    InputDevice   "cursor"
EndSection[/CODE]

[CODE]
pc@pc:~$ cat /etc/udev/rules.d/70-serial-wacom.rules
ACTION=="add|change", SUBSYSTEM=="pnp", ATTRS{id}=="PNP0501", ENV{NAME}=="Wacom protocol V serial tablet", SYMLINK="input/wacom", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"[/CODE]

And after reboot

[/CODE]
pc@pc:~$ tail /var/log/kern.log
Nov  6 05:16:09 pc kernel: [  206.414263] wacom_serial5: module verification failed: signature and/or required key missing - tainting kernel
Nov  6 05:16:09 pc kernel: [  206.431045] input input12: Model string: ~#GD-0608-R00,V1.1-7
Nov  6 05:16:09 pc kernel: [  206.431051] input input12: Wacom tablet: Intuos, version 1.1
Nov  6 05:16:09 pc kernel: [  206.442768] input input12: Coordinates string: ~C20320,16240
Nov  6 05:16:09 pc kernel: [  206.442888] input: Wacom protocol 5 serial tablet as /devices/pnp0/00:03/tty/ttyS0/serio2/input/input12
pc@pc:~$ sudo insmod wacom_serial5-master/wacom_serial5.ko
[sudo] password for pc:
insmod: ERROR: could not insert module wacom_serial5-master/wacom_serial5.ko: File exists
pc@pc:~$ sudo rmmod wacom_serial5-master/wacom_serial5.ko
pc@pc:~$ sudo insmod wacom_serial5-master/wacom_serial5.ko
pc@pc:~$ [/CODE]

-wacom_v is not working, but --wacom_iv is at least do something. But tablet in X is not working.

[CODE]pc@pc:~$ sudo inputattach --wacom_v /dev/ttyS0
^C
pc@pc:~$ sudo inputattach --wacom_iv /dev/ttyS0
pc@pc:~$ [/CODE]


This line gives a lot of characters on a screen when I move stylus closer to the wacom tablet. So, the tablet - harware is working...

[CODE]pc@pc:~$ sudo cat /dev/ttyS0[/CODE]

I also installed xserver-xorg-input-wacom

[CODE]root@pc:/home/pc# apt-get update && apt-get install xserver-xorg-input-wacom
...
...
xserver-xorg-input-wacom is already the newest version (1:0.32.0-0ubuntu3).
0 nadgrajenih, 0 na novo nameščenih, 0 bo odstranjenih in 0 ne nadgrajenih.
root@pc:/home/pc# [/CODE]




       ------------   Marjan   ----------
        tel:    +386 (0)4 5121 377
       --------------------------------------

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Loading...