Menu

#337 Xorg hangs for about 20 seconds when I turn off Cintiq 22HD.

closed-fixed
None
xf86-input-wacom
2018-01-24
2017-06-23
crocket
No

If I turn off Cintiq 22HD, xorg hangs for about 20 seconds.
After xorg becomes responsive again, ~59MB of two error messages fill /var/log/Xorg.0.log.

[ 46.197] (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No such device
....
[ 67.525] (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No such device

Thus, if I turn Cintiq on and off several times, /var/log/Xorg.0.log can occupy ~500MB.

While tail -f /var/log/Xorg.0.log is running, Xorg doesn't hang, but I still see those error messages. I don't know why.

I surmise Xorg hung for ~20 seconds because it had to write ~59MB of error messages at once.

dev-libs/libwacom-0.24:0
x11-drivers/xf86-input-wacom-0.34.0:0
linux kernel 4.9.16-gentoo

Related

Bugs: #337

Discussion

1 2 > >> (Page 1 of 2)
  • crocket

    crocket - 2017-06-23

    "Device Drivers -> HID support -> Special HID drivers -> Wacom Intuos/Graphire tablet support (USB)" was compiled as a kernel module.

     

    Last edit: crocket 2017-06-23
  • Ping Cheng

    Ping Cheng - 2017-06-23

    The error message isn't the root cause. When we disconnect/turn off a device, it would be inaccessible by the driver. That's what the messages are telling us. But, you are right. Driver should not overwhelm the log with duplicated messages. We'll take a look and figure out what's going on.

     
  • Ping Cheng

    Ping Cheng - 2017-06-26

    I tested a few models. I got about 10 lines of "(EE) Wacom Cintiq 22HD" before "removing device Wacom Cintiq 22HD" showed up, which is less than 10k. How many lines of "(EE)" do you get? Maybe you have a faster system?

     
  • crocket

    crocket - 2017-06-27

    Before turning off Cintiq 22HD, the size of /var/log/Xorg.0.log was ~48KB.
    After turning it off, its size became ~58MB.

    $ grep '(EE)' Xorg.0.log | wc -l
    655792
    

    655,792 errors caused by turning it off once.

    The error messages span 20~22 seconds in /var/log/Xorg.0.log. Xorg hangs for 20~22 seconds.
    It is obvious that Xorg hangs while error messages are emitted in a huge burst.

    CPU : AMD Athlon(tm) II X4 640
    GPU : AMD Radeon HD6450
    RAM : 32GB

     

    Last edit: crocket 2017-06-27
  • Ping Cheng

    Ping Cheng - 2017-06-27

    That's a lot of output. Are those EE all from Wacom Cintiq? Do you have another Linux system to test with?

     
  • crocket

    crocket - 2017-06-30
    $ grep '(EE)' Xorg.0.log | sed -e 's/.*\((EE).*\)$/\1/' | sort | uniq --count
          1 (EE) error, (NI) not implemented, (??) unknown.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'touch' for this device.
       3930 (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'touch' for this device.
     651850 (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'pad' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'touch' for this device.
    

    According to the output, two errors account for the vast majority of lines. In the next comment, I'll report the result of testing Cintiq 22HD with a laptop.

    If you add up the counts in the output above, you get 655792 errors.

     

    Last edit: crocket 2017-06-30
  • crocket

    crocket - 2017-06-30

    My laptop's specifications:

    GPU : Radeon R4
    CPU : AMD A6-7310 APU with AMD Radeon R4 Graphics
    RAM : 4GB
    OS : Manjaro Linux
    Linux Kernel : 4.9.33-1-MANJARO

    $ pacman -Qs wacom                                       
    local/libwacom-nosystemd 0.24-1
    

    libwacom 0.24 is installed, but xf86-input-wacom is not installed on my laptop.

    When I plugged Cintiq 22HD's USB cable in my laptop without connecting the display to the laptop and turned Cintiq 22HD on and off, I got the following output in /var/log/Xorg.0.log

    [    81.933] (II) config/udev: Adding input device Wacom Cintiq 22HD Pad (/dev/input/js0)
    [    81.933] (**) Wacom Cintiq 22HD Pad: Applying InputClass "system-keyboard"
    [    81.933] (**) Wacom Cintiq 22HD Pad: Applying InputClass "Keyboard Defaults"
    [    81.933] (II) No input driver specified, ignoring this device.
    [    81.933] (II) This device may have been added with another device file.
    [    81.935] (II) config/udev: Adding input device Wacom Cintiq 22HD Pen (/dev/input/mouse1)
    [    81.935] (II) No input driver specified, ignoring this device.
    [    81.935] (II) This device may have been added with another device file.
    [    82.020] (II) config/udev: Adding input device Wacom Cintiq 22HD Pen (/dev/input/event14)
    [    82.020] (**) Wacom Cintiq 22HD Pen: Applying InputClass "evdev tablet catchall"
    [    82.020] (**) Wacom Cintiq 22HD Pen: Applying InputClass "libinput tablet catchall"
    [    82.020] (II) Using input driver 'libinput' for 'Wacom Cintiq 22HD Pen'
    [    82.020] (**) Wacom Cintiq 22HD Pen: always reports core events
    [    82.020] (**) Option "Device" "/dev/input/event14"
    [    82.020] (**) Option "_source" "server/udev"
    [    82.020] (II) event14 - (II) Wacom Cintiq 22HD Pen: (II) is tagged by udev as: Tablet
    [    82.035] (II) event14 - (II) Wacom Cintiq 22HD Pen: (II) device is a tablet
    [    82.035] (II) event14 - (II) Wacom Cintiq 22HD Pen: (II) device removed
    [    82.070] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1.1/3-1.1.1/3-1.1.1:1.0/0003:056A:00FA.0001/input/input15/event14"
    [    82.070] (II) XINPUT: Adding extended input device "Wacom Cintiq 22HD Pen" (type: TABLET, id 14)
    [    82.071] (II) event14 - (II) Wacom Cintiq 22HD Pen: (II) is tagged by udev as: Tablet
    [    82.096] (II) event14 - (II) Wacom Cintiq 22HD Pen: (II) device is a tablet
    [    82.098] (II) config/udev: Adding input device Wacom Cintiq 22HD Pad (/dev/input/event15)
    [    82.098] (**) Wacom Cintiq 22HD Pad: Applying InputClass "evdev keyboard catchall"
    [    82.098] (**) Wacom Cintiq 22HD Pad: Applying InputClass "evdev tablet catchall"
    [    82.098] (**) Wacom Cintiq 22HD Pad: Applying InputClass "libinput keyboard catchall"
    [    82.098] (**) Wacom Cintiq 22HD Pad: Applying InputClass "libinput tablet catchall"
    [    82.098] (**) Wacom Cintiq 22HD Pad: Applying InputClass "system-keyboard"
    [    82.098] (**) Wacom Cintiq 22HD Pad: Applying InputClass "Keyboard Defaults"
    [    82.098] (II) Using input driver 'libinput' for 'Wacom Cintiq 22HD Pad'
    [    82.098] (**) Wacom Cintiq 22HD Pad: always reports core events
    [    82.098] (**) Option "Device" "/dev/input/event15"
    [    82.098] (**) Option "_source" "server/udev"
    [    82.099] (II) event15 - (II) Wacom Cintiq 22HD Pad: (II) is tagged by udev as: Keyboard Tablet TabletPad
    [    82.143] (II) event15 - (II) Wacom Cintiq 22HD Pad: (II) device is a tablet pad
    [    82.143] (II) event15 - (II) Wacom Cintiq 22HD Pad: (II) device removed
    [    82.170] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1.1/3-1.1.1/3-1.1.1:1.0/0003:056A:00FA.0001/input/input17/event15"
    [    82.170] (II) XINPUT: Adding extended input device "Wacom Cintiq 22HD Pad" (type: PAD, id 15)
    [    82.171] (**) Option "AccelerationScheme" "none"
    [    82.172] (**) Wacom Cintiq 22HD Pad: (accel) selected scheme none/0
    [    82.172] (**) Wacom Cintiq 22HD Pad: (accel) acceleration factor: 2.000
    [    82.172] (**) Wacom Cintiq 22HD Pad: (accel) acceleration threshold: 4
    [    82.172] (II) event15 - (II) Wacom Cintiq 22HD Pad: (II) is tagged by udev as: Keyboard Tablet TabletPad
    [    82.218] (II) event15 - (II) Wacom Cintiq 22HD Pad: (II) device is a tablet pad
    [   106.412] (II) config/udev: removing device Wacom Cintiq 22HD Pad
    [   106.412] (II) event15 - (II) Wacom Cintiq 22HD Pad: (II) device removed
    [   106.435] (II) UnloadModule: "libinput"
    [   106.456] (II) config/udev: removing device Wacom Cintiq 22HD Pen
    [   106.456] (II) event14 - (II) Wacom Cintiq 22HD Pen: (II) device removed
    [   106.475] (II) UnloadModule: "libinput"
    

    Without xf86-input-wacom, there was no error. There was no freeze.
    After installing xf86-input-wacom 0.34.2 on my laptop, the issue was reproduced for a shorter duration than 20 seconds.

    $ grep '(EE)' Xorg.0.log | sed -e 's/.*\((EE).*\)$/\1/' | sort | uniq --count
        680 (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'touch' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'touch' for this device.
     193350 (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'pad' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'touch' for this device.
          1 (EE) error, (NI) not implemented, (??) unknown.
    
     

    Last edit: crocket 2017-06-30
  • Ping Cheng

    Ping Cheng - 2017-06-30

    Werid! I want to make sure we are not dealing with a hardware issue. When the tablet is connected and Wacom driver is installed, does the tablet work? That is, can you move the cursor by your Wacom pen?

     
  • crocket

    crocket - 2017-07-01

    Yes, it's weird.

    When the tablet connected and the driver installed, I can move the mouse cursor with my wacom pen.
    If I couldn't draw properly, the issue would have been differently reported.

    Today, my laptop froze for ~55 seconds when I turned off Cintiq 22HD. There were more of the same errors in Xorg.0.log

    To be absolutely sure that it's not a hardware problem, I'd have to have access to another Cintiq 22HD device.

     

    Last edit: crocket 2017-07-01
  • Ping Cheng

    Ping Cheng - 2017-07-05

    It helps to troubleshoot the issue if we have the same driver versions. Is it possible to update your drivers, wacom.ko from input-wacom and wacom_drv.so from xf86-input-wacom, to the lastest? If you can not update the X driver, updating the kernel driver itself may help...

     
  • crocket

    crocket - 2017-07-07

    How do I obtain the latest of input-wacom and xf86-input-wacom?

     
    • Aaron Skomra

      Aaron Skomra - 2017-07-07

      Links to installation instructions can be found here:
      http://linuxwacom.sourceforge.net/wiki/index.php/Downloads

      On Fri, Jul 7, 2017 at 4:40 AM, crocket crochery@users.sf.net wrote:

      How do I obtain the latest of input-wacom and xf86-input-wacom?


      [bugs:#337] Xorg hangs for about 20 seconds when I turn off Cintiq 22HD.

      Status: new
      Created: Fri Jun 23, 2017 11:48 AM UTC by crocket
      Last Updated: Wed Jul 05, 2017 10:03 PM UTC
      Owner: nobody

      If I turn off Cintiq 22HD, xorg hangs for about 20 seconds.
      After xorg becomes responsive again, ~59MB of two error messages fill
      /var/log/Xorg.0.log.

      [ 46.197] (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No
      such device
      ....
      [ 67.525] (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No
      such device

      Thus, if I turn Cintiq on and off several times, /var/log/Xorg.0.log can
      occupy ~500MB.

      While tail -f /var/log/Xorg.0.log is running, Xorg doesn't hang, but I still
      see those error messages. I don't know why.

      I surmise Xorg hung for ~20 seconds because it had to write ~59MB of error
      messages at once.

      dev-libs/libwacom-0.24:0
      x11-drivers/xf86-input-wacom-0.34.0:0
      linux kernel 4.9.16-gentoo


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/linuxwacom/bugs/337/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • crocket

    crocket - 2017-07-08

    Should I compile the latest commit or the latest stable version?

     
    • Aaron Skomra

      Aaron Skomra - 2017-07-10

      For troubleshooting the latest commit will be probably the most helpful here.

      On Fri, Jul 7, 2017 at 6:10 PM, crocket crochery@users.sf.net wrote:

      Should I compile the latest commit or the latest stable version?


      [bugs:#337] Xorg hangs for about 20 seconds when I turn off Cintiq 22HD.

      Status: new
      Created: Fri Jun 23, 2017 11:48 AM UTC by crocket
      Last Updated: Fri Jul 07, 2017 11:40 AM UTC
      Owner: nobody

      If I turn off Cintiq 22HD, xorg hangs for about 20 seconds.
      After xorg becomes responsive again, ~59MB of two error messages fill
      /var/log/Xorg.0.log.

      [ 46.197] (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No
      such device
      ....
      [ 67.525] (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No
      such device

      Thus, if I turn Cintiq on and off several times, /var/log/Xorg.0.log can
      occupy ~500MB.

      While tail -f /var/log/Xorg.0.log is running, Xorg doesn't hang, but I still
      see those error messages. I don't know why.

      I surmise Xorg hung for ~20 seconds because it had to write ~59MB of error
      messages at once.

      dev-libs/libwacom-0.24:0
      x11-drivers/xf86-input-wacom-0.34.0:0
      linux kernel 4.9.16-gentoo


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/linuxwacom/bugs/337/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #337

  • crocket

    crocket - 2017-07-12

    Today, I compiled and installed the latest commits of input-wacom and xf86-input-wacom.
    The issue is still reproduced.

    $ grep '(EE)' /var/log/Xorg.0.log | sed -e 's/.*\((EE).*\)$/\1/' | sort | uniq --count
          1 (EE) error, (NI) not implemented, (??) unknown.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'touch' for this device.
        740 (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'touch' for this device.
     655440 (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'pad' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'touch' for this device.
    
     
  • Ping Cheng

    Ping Cheng - 2017-07-13

    Please check the version of wacom.ko and wacom_drv.so that are running on your system. "modinfo wacom | grep version" should give you wacom.ko's; check your Xorg.0.log to see the X driver version. Sometime the newly built driver won't get loaded...

     
  • crocket

    crocket - 2017-07-13
    $ modinfo wacom | grep version
    version:        v2.00-0.35.0.14.gbbc2e3c
    srcversion:     CEE958D841B661A36AB0E00
    

    ..

    [   262.801] (II) Loading /usr/lib64/xorg/modules/input/wacom_drv.so
    [   262.802] (II) Module wacom: vendor="X.Org Foundation"
    [   262.802]    compiled for 1.19.3, module version = 0.35.0
    [   262.802]    Module class: X.Org XInput Driver
    [   262.802]    ABI class: X.Org XInput driver, version 24.1
    

    ..

    $ equery b /usr/lib64/xorg/modules/input/wacom_drv.so
     * Searching for /usr/lib64/xorg/modules/input/wacom_drv.so ...
    x11-drivers/xf86-input-wacom-9999 (/usr/lib64/xorg/modules/input/wacom_drv.so)
    

    -9999 means xf86-input-wacom was built from git.

     

    Last edit: crocket 2017-07-13
  • Ping Cheng

    Ping Cheng - 2017-07-13

    OK, you are running with the latest drivers. I have two more questions.

    I revisited your previous messages. I see you didn't have issues when xf86-input-wacom was not instslled. At that time, did your pen work?

    The other question is: is the Cintiq 22HD a new device? By new I mean if it has been run on other platforms or version of Linux before you try it on your system?

     
  • crocket

    crocket - 2017-07-15

    The pen works without xf86-input-wacom. But, without xf86-input-wacom, I can't feed the calibration data into Cintiq 22HD via xsetweacom. I set various tablet parameters via a shell script that invokes a list of xsetwacom commands.

    Cintiq 22HD had the same issue on ArchLinux, too. By the way, Manjaro Linux is a derivative of ArchLinux. The choice of the desktop environment(XFCE, GNOME, XMonad, ...) doesn't change the outcome.

     
  • Ping Cheng

    Ping Cheng - 2017-07-17

    From your log file, I see your device is driven by x86-input-lininput. So, you can set parameters through "xinput set-prop". Meanwhile, Peter Hutterer, our input device driver expert in Xorg is working on a patch to fix the issue in x86-input-wacom. He may need your help to test the patch when he is ready.

     
  • Ping Cheng

    Ping Cheng - 2017-07-19

    Please apply the attached patch and test it. Let us know your result so we can merge it upstream. I emailed the patch to you at crochery@users.sf.net. It failed with "Address not found"...

     
  • crocket

    crocket - 2017-07-22

    It turns out that
    "Only SourceForge can send to crochery@users.sourceforge.net. This includes the Send Message web form on your profile page."

    I tested the patch. It worked fantastically.

    Here's the result.

    $ grep '(EE)' Xorg.0.log | sed -e 's/.*\((EE).*\)$/\1/' | sort | uniq --count
          1 (EE) error, (NI) not implemented, (??) unknown.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad: Invalid type 'touch' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'eraser' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'stylus' for this device.
          1 (EE) Wacom Cintiq 22HD Pad pad: Invalid type 'touch' for this device.
          1 (EE) Wacom Cintiq 22HD Pen eraser: Error reading wacom device : No such device
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'cursor' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'pad' for this device.
          1 (EE) Wacom Cintiq 22HD Pen stylus: Invalid type 'touch' for this device.
    
     

    Last edit: crocket 2017-07-22
  • Ping Cheng

    Ping Cheng - 2017-07-22

    That's great! Can we use your name as Tested-by? If yes, I need your name and email. Something: Tested-by: first, last email@address.com

     
  • crocket

    crocket - 2017-07-22

    Tested-by: crocket crockabiscuit@gmail.com

     
  • Jason Gerecke

    Jason Gerecke - 2017-09-15
    • status: new --> pending-fixed
    • assigned_to: Ping Cheng
     
1 2 > >> (Page 1 of 2)