Menu

#313 Tablet is invisibe for xsetwacom

closed-invalid
None
libwacom
2016-04-07
2016-03-19
No

I have updated ubuntu 16.04 beta1
Linux home 4.4.0-14-generic
Installed packages from repository:
xserver-xorg-input-wacom 0.32.0-0ubuntu3
libwacom2 0.18-1
libwacom-common 0.18-1

My tablet is working, I can draw. But it invisible for xsetwacom --list devices
and for system settings applet "Wacom"

How I can fix this?

Discussion

  • Jason Gerecke

    Jason Gerecke - 2016-03-21

    Could you let us know what model of tablet you have? It would be helpful to see the output of lsusb, and xinput list if possible.

     
  • Anton Burkun

    Anton Burkun - 2016-03-23

    Intuos Pro S

    After Ubuntu upgrade I removed manually installed drivers input-wacom, libwacom and xf86-input-wacom with 'make uninstall'. And reinstalled packets from repository.

    Outputs:

    Via wireless (both stataes on and off):

    ~$ lsusb
    ...
    Bus 003 Device 010: ID 056a:0084 Wacom Co., Ltd Wireless adapter for Bamboo tablets
    
    ~$ xinput
    ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
    ⎜   ↳ Logitech USB Optical Mouse                id=9    [slave  pointer  (2)]
    ⎜   ↳ Wacom Intuos Pro S (WL) Pad               id=12   [slave  pointer  (2)]
    ⎜   ↳ Wacom Intuos Pro S (WL) Finger            id=13   [slave  pointer  (2)]
    ⎜   ↳ Wacom Intuos Pro S (WL) Pen               id=14   [slave  pointer  (2)]
    ...
    

    Via USB:

    ~$ lsusb
    ...
    Bus 003 Device 033: ID 056a:0314 Wacom Co., Ltd 
    ...
    Bus 003 Device 010: ID 056a:0084 Wacom Co., Ltd Wireless adapter for Bamboo tablets
    
    ~$ xinput
    ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
    ⎜   ↳ Logitech USB Optical Mouse                id=9    [slave  pointer  (2)]
    ⎜   ↳ Wacom Intuos Pro S Pad                    id=12   [slave  pointer  (2)]
    ⎜   ↳ Wacom Intuos Pro S Pen                    id=13   [slave  pointer  (2)]
    ⎜   ↳ Wacom Intuos Pro S Finger                 id=14   [slave  pointer  (2)]
    ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
        ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ...
    
     

    Last edit: Jason Gerecke 2016-03-23
  • Anton Burkun

    Anton Burkun - 2016-03-23
    ~$ xsetwacom -V
    0.32.0
    ~$ xsetwacom --list devices
    ~$
    
    (empty output)
    
     

    Last edit: Jason Gerecke 2016-03-23
  • Jason Gerecke

    Jason Gerecke - 2016-03-23

    My guess would be that the xf86-input-wacom driver wasn't installed correctly for some reason. Could you please attach your Xorg.0.log for review? It can be found in several locations; try looking for /var/log/Xorg.0.log, ~/.local/share/xorg/Xorg.0.log, or the output of the following
    command: journalctl _COMM=Xorg _COMM=Xorg.bin _COMM=gdm-x-session -b0

     
  • Anton Burkun

    Anton Burkun - 2016-03-23

    journalctl _COMM=Xorg _COMM=Xorg.bin _COMM=gdm-x-session -b0
    -- No entries --

     
  • Anton Burkun

    Anton Burkun - 2016-03-23

    Is xserver-xorg-input-wacom (from ubuntu repository) == xf86-input-wacom from sf?

     
  • Anton Burkun

    Anton Burkun - 2016-03-23

    Hmm.. I'm sorry, but fixed.
    I had removed xserver-xorg-input-wacom + its dependent xserver-xorg-input-all (metapackage).
    After that I installed xserver-xorg-input-wacom again (without ...-input-all).
    now:
    ~$ xsetwacom --list devices
    Wacom Intuos Pro S (WL) Pen stylus id: 12 type: STYLUS
    Wacom Intuos Pro S (WL) Pen eraser id: 13 type: ERASER
    Wacom Intuos Pro S (WL) Pen cursor id: 14 type: CURSOR
    Wacom Intuos Pro S (WL) Pad pad id: 15 type: PAD
    Wacom Intuos Pro S (WL) Finger touch id: 16 type: TOUCH

    All ok!

     

    Last edit: Anton Burkun 2016-03-23
  • Anton Burkun

    Anton Burkun - 2016-03-23

    Not all ok. 'Wacom Tablet' page in settings is empty now.

     
  • Anton Burkun

    Anton Burkun - 2016-03-26

    Also now led file path is not:

    /sys/bus/usb/devices/*/wacom_led/status_led0_select

    it became (WL):
    /sys/bus/usb/devices/*/0003:056A:0084.000C/driver/0003:056A:0084.000B/wacom_led/status_led0_select

    or (if via USB)
    /sys/bus/usb/devices/*/0003:056A:0314.????/wacom_led/status_led0_select

    ???? - changed on each reconnect

     

    Last edit: Anton Burkun 2016-03-26
  • Jason Gerecke

    Jason Gerecke - 2016-03-28

    For the 'Wacom Tablet' settings page to work correctly, you will need to ensure that the Ubuntu packages 'libwacom2' and 'libwacom-common' are installed. If they are, you should see /usr/lib/x86_64-linux-gnu/libwacom.so on your system, as well as a /usr/share/libwacom directory filled with ".tablet" files (the "intuos-pro-s.tablet" file describes your particular device to the system).

    As for the sysfs path, I would suggest /sys/bus/hid/devices/*/wacom_led/status_led0_select rather than the "usb" path you're using. There's unfortunately no way to predict the "????" component beforehand, since the kernel generates it whenever the device is plugged in (to support concurrent devices with the same "bus:vid:pid" triple). In theory you could monitor udev for connect events, but that's a little overkill unless you're looking to write your own control panel.

     
  • Anton Burkun

    Anton Burkun - 2016-03-28

    Thank you for path to status_led0_select!

    There are just libwacom.so.2.4.5 and @libwacom.so.2
    I cannot remove libwacom2 package - ubuntu propose to remove too much packages with it. Try to reinstall without result

     

    Last edit: Anton Burkun 2016-03-28
  • Jason Gerecke

    Jason Gerecke - 2016-03-31

    Apologies -- libwacom.so.2.4.5 and libwacom.so.2 are indeed expected to be there (the vanilla libwacom.so file is installed by the 'libwacom-dev' package).

    Do you see a /usr/share/libwacom/intuos-pro-s.tablet file on your system? If not, that indicates the 'libwacom-common' package is missing. If, on the other hand, you do have the file, then something else is going wrong.

    Try opening a terminal and then running the following command: G_MESSAGES_DEBUG=all unity-control-center (or perhaps G_MESSAGES_DEBUG=all gnome-control-center if you aren't using Unity) Afterwards, open the Wacom panel and copy/paste all the terminal output into a reply. Also, after doing that, run the command sudo journalctl -b0 _EXE=/usr/lib/gnome-session/gnome-session-binary | grep settings-daemon and copy/paste the output into a reply as well.

     
  • Anton Burkun

    Anton Burkun - 2016-04-04

    First output is:

    (unity-control-center:18210): wacom-cc-panel-WARNING **: Failed to create fallback wacom device for '/dev/input/event15': db is NULL (3)
    
    (unity-control-center:18210): wacom-cc-panel-WARNING **: Failed to create fallback wacom device for '/dev/input/event13': db is NULL (3)
    
    (unity-control-center:18210): wacom-cc-panel-WARNING **: Failed to create fallback wacom device for '/dev/input/event13': db is NULL (3)
    
    (unity-control-center:18210): wacom-cc-panel-WARNING **: Failed to create fallback wacom device for '/dev/input/event13': db is NULL (3)
    
    (unity-control-center:18210): wacom-cc-panel-WARNING **: Failed to create fallback wacom device for '/dev/input/event14': db is NULL (3)
    

    And second command output is empty.

    And I see file /usr/share/libwacom/intuos-pro-s.tablet

     

    Last edit: Jason Gerecke 2016-04-04
  • Jason Gerecke

    Jason Gerecke - 2016-04-04

    Based on the db is NULL warnings being produced, it looks like libinput is having trouble loading its database. The files clearly exist in the right spot, so that's not the issue. The other possibilities are that (1) libwacom is looking in the wrong folder, (2) that the stylus file is missing/empty, or (3) that the database contains duplicate entries.

    1. Did you try installing libwacom from source (instead of from apt-get) at some point in the past? If so, the build might have been misconfigured -- check if a /usr/local/share/libwacom directory exists.
    2. Let me know if you see a file named /usr/share/libwacom/libwacom.stylus and verify that it contains data.
    3. Run apt-get install libwacom-bin and then (with your tablet plugged in) run libwacom-list-local-devices. Let me know what output is printed out.
     
  • Anton Burkun

    Anton Burkun - 2016-04-06

    Thank you for responses!

    1) yes, I had build them from sources for ubuntu 14.04 and kernel 3.13. Now I have empty dirs: /usr/local/share/libwacom and /usr/local/share/libwacom/layouts

    2) yes, exists with data

    3) $ libwacom-list-local-devices
    Failed to initialize device database

     
  • Jason Gerecke

    Jason Gerecke - 2016-04-07

    The presence of /usr/local/share/libwacom makes me wonder if the libwacom libraries and binaries are still lurking on your system and applications are being tricked into using them.

    1) Please run which libwacom-list-local-devices and let me know the result.
    2) Check if /usr/local/bin/libwacom-list-local-devices or /usr/local/lib/libwacom.so*exists.
    3) Try running libwacom-list-local-devices --database /usr/share/libwacom with your tablet plugged in.

     
  • Anton Burkun

    Anton Burkun - 2016-04-07

    Hello!

    1)~$ which libwacom-list-local-devices
    /usr/bin/libwacom-list-local-devices

    2)~$ cd /usr/local/lib/
    /usr/local/lib$ ls
    libvidstab.so libvidstab.so.1.0 libwacom.so.2 libwacom.so.2.2.1

    ~$ cd /usr/local/bin
    /usr/local/bin$ ls
    (no libwacom-list-local-devices)

    3) $ libwacom-list-local-devices --database /usr/share/libwacom
    **
    libwacom:ERROR:libwacom-database.c:114:bus_to_str: code should not be reached
    Aborted (core dumped)

    Shold I remove /usr/local/lib/libwacom.so* files?

    UPD
    removed files. and now seems ok:
    $ libwacom-list-local-devices --database /usr/share/libwacom
    [Device]
    Name=Wacom Intuos Pro S
    DeviceMatch=usb:056a:0314;
    Class=Intuos5
    Width=6
    ...

    Also Config Panel Applet now displays information. Thank you!

    UPD2
    On-Screen Help and key bindings are not working))

     

    Last edit: Anton Burkun 2016-04-07
  • Anton Burkun

    Anton Burkun - 2016-04-07

    during setting keybinding via control panel I got this log:

    $ G_MESSAGES_DEBUG=all unity-control-center
    (unity-control-center:4770): Gtk-DEBUG: Connecting to session manager

    (unity-control-center:4770): Gdk-CRITICAL **: gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed

     
  • Jason Gerecke

    Jason Gerecke - 2016-04-07
    • status: new --> closed-invalid
    • assigned_to: Jason Gerecke
    • Project: xf86-input-wacom --> libwacom
     
  • Jason Gerecke

    Jason Gerecke - 2016-04-07

    Glad to hear that removing those files seems to have fixed the issue :) As for the on-screen help and key bindings not working properly, could you please open a new bug with the necessary details? It really makes things a lot easier for us to manage.