Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

GfxTablet and Archlinux #7

Closed
asena opened this issue Feb 8, 2013 · 5 comments
Closed

GfxTablet and Archlinux #7

asena opened this issue Feb 8, 2013 · 5 comments
Labels

Comments

@asena
Copy link

asena commented Feb 8, 2013

Hi guys, I need your help. I want to try GfxTablet (http://rfc2822.github.com/GfxTablet/) on my archlinux pc with gimp.
I compiled and ran this software (as explained on installation guide), but the input device (NetworkTablet) doesn't appear either in xinput list or in gimp input device.
The software starts and receives datas from the android app, but probably it could create the input device on arch. So I tryed to run it with sudo and to use this guide (https://wiki.archlinux.org/index.php/Wiimote#Unable_to_open_uinput) but nothing. Any solutions?

@rfc2822
Copy link
Owner

rfc2822 commented Feb 9, 2013

Is there a /dev/uinput driver and do you have the privileges to access it? Running the driver as root should always work. And there should be an error message if /dev/uinput can't be accessed so I think the problem must be some other thing.

The interface between uinput and Xorg is the xorg-evdev driver. So maybe it's not running? Then the uinput driver would be active but the kernel devices wouldn't be visible for the X server. Can you verify that xorg-evdev is installed or install it?

@asena
Copy link
Author

asena commented Feb 9, 2013

Yes, in fact, gfxtablet can access to /dev/uinput.

About xorg-evdev driver, it is installed and it's automatically loaded by systemd (also because it is required to use mouse and touchpad).

@rfc2822
Copy link
Owner

rfc2822 commented Feb 9, 2013

  1. When the uinput driver starts, it should create a device in /dev/input/. You can check that by looking into that directory before and after starting uinput-networktablet.

  2. To check whether the device is being connected to Xorg, you may have a look into Xorg.0.log. In my case, when I start uinput-networktablet, these lines are printed to my Xorg.0.log:

[ 11338.830] (II) No input driver specified, ignoring this device.
[ 11338.830] (II) This device may have been added with another device file.
[ 11338.830] (II) config/udev: Adding input device Network Tablet (/dev/input/event17)
[ 11338.830] (**) Network Tablet: Applying InputClass "evdev touchscreen catchall"
[ 11338.830] (II) Using input driver 'evdev' for 'Network Tablet'
[ 11338.830] (**) Network Tablet: always reports core events
[ 11338.830] (**) evdev: Network Tablet: Device: "/dev/input/event17"
[ 11338.831] (--) evdev: Network Tablet: Vendor 0x1 Product 0x1
[ 11338.831] (--) evdev: Network Tablet: Found absolute axes
[ 11338.831] (--) evdev: Network Tablet: Found x and y absolute axes
[ 11338.831] (--) evdev: Network Tablet: Found absolute touchscreen
[ 11338.831] (II) evdev: Network Tablet: Configuring as touchscreen
[ 11338.831] (**) evdev: Network Tablet: YAxisMapping: buttons 4 and 5
[ 11338.831] (**) evdev: Network Tablet: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 11338.831] (**) Option "config_info" "udev:/sys/devices/virtual/input/input17/event17"
[ 11338.831] (II) XINPUT: Adding extended input device "Network Tablet" (type: TOUCHSCREEN, id 11)
[ 11338.831] (II) evdev: Network Tablet: initialized for absolute axes.
[ 11338.833] (**) Network Tablet: (accel) keeping acceleration scheme 1
[ 11338.833] (**) Network Tablet: (accel) acceleration profile 0
[ 11338.833] (**) Network Tablet: (accel) acceleration factor: 2.000
[ 11338.833] (**) Network Tablet: (accel) acceleration threshold: 4
[ 11340.557] (II) config/udev: removing device Network Tablet
[ 11340.567] (II) evdev: Network Tablet: Close
[ 11340.567] (II) UnloadModule: "evdev"

@asena
Copy link
Author

asena commented Feb 9, 2013

I have just solved uncommenting touchscreen input device lines in /etc/X11/xorg.conf.d/10-evdev.conf
10-evdev.conf before:

# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
       Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

#Section "InputClass"
#        Identifier "evdev touchpad catchall"
#        MatchIsTouchpad "on"
#        MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#EndSection

#Section "InputClass"
#        Identifier "evdev tablet catchall"
#        MatchIsTablet "on"
#        MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#EndSection

#Section "InputClass"
#      Identifier "evdev touchscreen catchall"
#        MatchIsTouchscreen "on"
#       MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#EndSection


now:

# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
       Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

#Section "InputClass"
#        Identifier "evdev touchpad catchall"
#        MatchIsTouchpad "on"
#        MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#EndSection

#Section "InputClass"
#        Identifier "evdev tablet catchall"
#        MatchIsTablet "on"
#        MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#EndSection

Section "InputClass"
       Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
       MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

I suggest you to add this troubleshooting to the project site.
Anyway, thanks you for your support!

@rfc2822
Copy link
Owner

rfc2822 commented Feb 9, 2013

I tried with another ArchLinux installation but the 10-evdev.conf was correct there. Added it to docs anyway, thx.

@rfc2822 rfc2822 closed this as completed Feb 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants