Re: [DIGImend-users] Huion H610 and Gimp: sometimes strange behaviour
Brought to you by:
spb_nick
From: Vince H. <Vi...@Pl...> - 2015-02-14 21:27:14
|
when it fails for me usually because X didn't restart. first be sure the driver is installed [vince@desk2 ~]$ modinfo hid-huion filename: /lib/modules/3.18.6-200.fc21.i686+PAE/extra/hid-huion.ko version: 5 license: GPL description: Huion HID driver author: Nikolai Kondrashov author: Martin Rusko srcversion: 29344D5C58BC9ECAAA4F28A alias: hid:b0003g*v00005543p0000004D alias: hid:b0003g*v00005543p0000006E alias: hid:b0003g*v0000256Cp0000006E depends: vermagic: 3.18.6-200.fc21.i686+PAE SMP mod_unload 686 [vince@desk2 ~]$ Then check /var/log/Xorg.0.log assuming X was restarted you should find something like: 249.920] (II) XINPUT: Adding extended input device "HUION PenTablet stylus" (type: STYLUS, i d 8) [ 249.920] (**) HUION PenTablet stylus: (accel) keeping acceleration scheme 1 [ 249.920] (**) HUION PenTablet stylus: (accel) acceleration profile 0 [ 249.920] (**) HUION PenTablet stylus: (accel) acceleration factor: 2.000 [ 249.920] (**) HUION PenTablet stylus: (accel) acceleration threshold: 4 [ 249.921] (**) HUION PenTablet pad: Applying InputClass "evdev tablet catchall" [ 249.921] (**) HUION PenTablet pad: Applying InputClass "digimend2 version" [ 249.921] (II) Using input driver 'wacom' for 'HUION PenTablet pad' [ 249.921] (**) HUION PenTablet pad: always reports core events [ 249.921] (**) Option "Device" "/dev/input/event2" [ 249.921] (**) Option "Type" "pad" [ 249.921] (**) Option "Rotate" "half" [ 249.941] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1 /4-1.1:1.0/0003:256C:006E.000F/input/input38/event2" [ 249.941] (II) XINPUT: Adding extended input device "HUION PenTablet pad" (type: PAD, id 9) [ 249.941] (**) HUION PenTablet pad: (accel) keeping acceleration scheme 1 [ 249.941] (**) HUION PenTablet pad: (accel) acceleration profile 0 [ 249.941] (**) HUION PenTablet pad: (accel) acceleration factor: 2.000 [ 249.941] (**) HUION PenTablet pad: (accel) acceleration threshold: 4 [vince@desk2 ~]$ xsetwacom --list HUION PenTablet stylus id: 8 type: STYLUS HUION PenTablet pad id: 9 type: PAD [vince@desk2 ~]$ Your list makes me think the driver is not installed. a recent change from Nick consolidated the devices and [vince@desk2 ~]$ xsetwacom -V 0.28.0 [vince@desk2 ~]$ I don't think the problem is with your version of xsetwacom. But that is a guess on my part. Gimp gave me lots of issues. Some times I would $ rm .gimp-2.8/devicerc I noticed that some times the stylus would move the mouse pointer but that it could only select some things and not others. Say file but not the pencil icon in gimp. Then noticed that it had same issues outside of gimp. I got no idea what was going on. btw I have to re-execute the huion.sh script every time the tablet gets plugged in. Which is why I tried to get it to run of the udev script. The udev trigger works but to set the xsetwacom it has to have a X11 DISPLAY. The I tried various delays in the udev trigger to wait till X was up. Also put in the log statements to help me determine what it was runing vs when X started. The udev is # to restart udev after changes issue # # udevadm control --reload # SUBSYSTEM=="usb", ATTRS{idVendor}=="256c", SYMLINK+="input/H610N", RUN+="/home/vince/bin/udevHuion" and [vince@desk2 ~]$ cat bin/udevHuion #!/bin/bash #Mon Jan 19 16:49:06 EST 2015 # called by udev rule #set -x WHO=vince WHAT="/home/vince/bin/huion.sh" Display=`who | grep -m1 ^$WHO.*\( | awk '{print $5}' | sed 's/[(|)]//g'` export DISPLAY="$Display" su vince -c "DISPLAY=$Display $WHAT udev"& [vince@desk2 ~]$ fails every time. ---------- good luck On Sat, Feb 14, 2015 at 5:12 AM, Sergey 'Jin' Bostandzhyan <ji...@me...> wrote: > Hi Vince, > > thanks for your reply. > > The xorg config worked, the Wacom driver is now loaded. > > xsetwacom --list devices does indeed list: > > HUION PenTablet stylus id: 15 type: STYLUS > HUION PenTablet stylus id: 17 type: STYLUS > HUION PenTablet eraser id: 18 type: ERASER > HUION PenTablet pad id: 19 type: PAD > > In gimp I also see those devices as well (although there I have only one > "stylus", the other one is just called "HUION PenTablet" > > The huion.sh script does not work however, it prints the following > message 7 times: > > Invalid offset into Wacom Button Actions property. > > I can confirm that the script is not faulty, i.e. it's trying to set things > like: > ++ xsetwacom set 19 button 11 key '[' > Invalid offset into Wacom Button Actions property. > > So it's some problem with the wacom driver or xsetwacom tool? > Setting the keys does not seem to work :( > > Also, in Gimp, I do not really know how to select the other devices (or if > it even makes sesnes to select other devices? It's always using the > "HUION PenTablet stylus". > > Question is... why does xsetwacom work for you? > > xsetwacom -V gives me: > 0.23.0 > > What version do you have? > > Kind regards, > Jin > > > On Fri, Feb 13, 2015 at 11:03:22PM -0500, Vince Herried wrote: >> to set up the buttons you need to do several things. >> first create this file.... >> [vince@desk2 ~]$ cat /etc/X11/xorg.conf.d/50-huion.conf >> Section "InputClass" >> Identifier "digimend2 version" >> MatchIsTablet "on" >> MatchDevicePath "/dev/input/event*" >> # use for wacom driver >> MatchProduct "PenTablet" >> Driver "wacom" >> Option "rotate" "half" >> #Option "Button1" "key +Control_L +z -z " # undo >> #Option "Button2" "key +Shift_L +e -e " # eraser >> #Option "Button3" "key +n -n " # pencil >> #Option "Button8" "key +Shift_L +equal -equal " # zoom in >> #Option "Button9" "key +minus -minus " # zoom out >> #Option "Button10" "key +bracketright -bracketright " >> # + pencil >> #Option "Button11" "key +bracketleft -bracketleft " >> # - pencil >> # Option "Button12" # hand >> # >> # end GIMP settings >> # >> >> # use for evdev >> # Driver "evdev" >> # Option "InvertX" "on" >> # Option "InvertY" "on" >> EndSection >> --------------------------------------------------------ends above >> this line-------------------------------------------------- >> note the commented out settings they don't work. >> I have the line >> Option "rotate" "half" >> because I'm left handed, if you are not left handed, leave that out. >> >> >> Then re-start X. There is a setting in the system settings that will >> enable the key combination of ctrl alt backspace to cause X to >> restart. >> I can't find the kde settings at moment where I enabled that key >> combination. There are several ways to re-start X, search google. >> >> Then copy the attached shell script some place and mark it executable...;. >> chmod u+x huion.sh >> >> the script is kind of messy, but it works to set up the buttons on my H610. >> >> good luck. >> ------------------ >> Vince >> >> On Fri, Feb 13, 2015 at 5:49 PM, Sergey 'Jin' Bostandzhyan >> <ji...@me...> wrote: >> > Hi, >> > >> > first of all: thanks a lot for the driver! I'm on Fedora 20 with >> > 3.18.5-101.fc20.x86_64 kernel, just plugged it in and it worked :) >> > >> > I do however experience some glitches now and then and I am not sure if its >> > a problem with the driver or with Gimp. >> > >> > Sometimes when I start Gimp I can not paint using the tablet, i.e. the input >> > devices does not switch to Huion when I'm trying to paint. I can still >> > navigate all menus and clicks on menus and toolboxes work, but painting on >> > the canvas is impossible. When this happens, painting with the mouse is also >> > impossible, while clicks on menus etc. work fine. >> > >> > When this happens I have to quite Gimp, disconnect and reconnect the tablet >> > and start Gimp again and chances are high that it will just start working >> > again. >> > >> > Any ideas how to debug this? >> > >> > Second thing that I noticed is that it's sometimes recognized differently >> > in Gimp. When selecting the tablet in the input devices dialog >> > I will see no keys at all, sometimes I will see >200 keys which is really >> > weird. >> > >> > And one last question: is there also a utility, similar to the one that is >> > supplied with the windows drivers, to tell the tablet to send other key >> > combos? In default mode it sends weird combinations with ctrl- and shift- >> > and I somehow failed to remap that. >> > >> > Kind regards, >> > Jin >> > >> > >> > ------------------------------------------------------------------------------ >> > Dive into the World of Parallel Programming. The Go Parallel Website, >> > sponsored by Intel and developed in partnership with Slashdot Media, is your >> > hub for all things parallel software development, from weekly thought >> > leadership blogs to news, videos, case studies, tutorials and more. Take a >> > look and join the conversation now. http://goparallel.sourceforge.net/ >> > _______________________________________________ >> > DIGImend-users mailing list >> > DIG...@li... >> > https://lists.sourceforge.net/lists/listinfo/digimend-users > > |