Thread: [DIGImend-devel] tinkering with HUION tablet and the hidrd-convert tool to generate a HID report.
Brought to you by:
spb_nick
|
From: Vince H. <Vi...@Pl...> - 2014-12-13 18:15:30
|
the info file gives example of converting the hex input into xml
I get invalid output format.
the output from your dump program is:
$ cat HID-descriptor2.native
05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44
09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 06
81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 30
75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 40
9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 B4
05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 75
10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 A1
00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81
02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 00
46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 08
81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 81
B2 C0 C0
$ cat HID-descriptor2.native | hidrd-convert -i hex -o spec
produces
what appears to be correct
Usage Page (Digitizer), ; Digitizer (0Dh)
Usage (Pen), ; Pen
(02h, application collection)
Collection (Application),
Report ID (7),
Usage (Stylus), ; Stylus
(20h, logical collection)
Collection (Physical),
Usage (Tip Switch), ; Tip
switch (42h, momentary control)
Usage (Barrel Switch), ; Barrel
switch (44h, momentary control)
Usage (Eraser), ; Eraser
(45h, momentary control)
Usage (Invert), ; Invert
(3Ch, momentary control)
Usage (Secondary Tip Switch), ;
Secondary tip switch (43h, momentary control)
Usage (Barrel Switch), ; Barrel
switch (44h, momentary control)
Logical Minimum (0),
Logical Maximum (1),
Report Size (1),
Report Count (6),
Input (Variable),
Usage (In Range), ; In range
(32h, momentary control)
Report Size (1),
Report Count (1),
Input (Variable),
Input (Constant, Variable),
Usage Page (Desktop), ; Generic
desktop controls (01h)
Usage (X), ; X (30h,
dynamic value)
Report Size (16),
Report Count (1),
Push,
Unit Exponent (13),
Unit (Inch),
Physical Minimum (0),
Physical Maximum (10000),
Logical Maximum (40000),
Input (Variable),
Usage (Y), ; Y (31h,
dynamic value)
Physical Maximum (6250),
Logical Maximum (25000),
Input (Variable),
Pop,
Usage Page (Digitizer), ; Digitizer (0Dh)
Usage (Tip Pressure), ; Tip
pressure (30h, dynamic value)
Logical Maximum (2047),
Physical Maximum (2047),
Unit Exponent (0),
Unit (Centimeter * Gram * Seconds^-2),
Report Size (16),
Input (Variable),
End Collection,
End Collection,
Usage Page (Desktop), ; Generic
desktop controls (01h)
Usage (Mouse), ; Mouse
(02h, application collection)
Collection (Application),
Report ID (9),
Usage (Pointer), ; Pointer
(01h, physical collection)
Collection (Physical),
Usage Page (Button), ; Button (09h)
Usage Minimum (01h),
Usage Maximum (03h),
Logical Minimum (0),
Logical Maximum (1),
Report Count (3),
Report Size (1),
Input (Variable),
Report Count (5),
Input (Constant),
Usage Page (Desktop), ; Generic
desktop controls (01h)
Usage (X), ; X (30h,
dynamic value)
Report Size (16),
Report Count (1),
Push,
Physical Minimum (0),
Physical Maximum (2048),
Logical Maximum (2048),
Input (Variable),
Usage (Y), ; Y (31h,
dynamic value)
Physical Maximum (2048),
Logical Maximum (2048),
Input (Variable),
Pop,
Usage Page (Digitizer), ; Digitizer (0Dh)
Usage (Tip Pressure), ; Tip
pressure (30h, dynamic value)
Logical Maximum (2047),
Physical Maximum (2047),
Report Size (16),
Input (Variable, Non Linear, No Preferred, Bit7),
End Collection,
End Collection
but attempt to use -o xml generates error
appears the built in help says no xml output available while the
info output example shows using -o xml
Did I built it wrong?
------------
Vince
|
|
From: Nikolai K. <sp...@gm...> - 2014-12-13 18:23:46
|
On 12/13/2014 08:15 PM, Vince Herried wrote: > the info file gives example of converting the hex input into xml > I get invalid output format. > the output from your dump program is: > $ cat HID-descriptor2.native > 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44 > 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 06 > 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 30 > 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 40 > 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 B4 > 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 75 > 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 A1 > 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81 > 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 00 > 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 08 > 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 81 > B2 C0 C0 > > $ cat HID-descriptor2.native | hidrd-convert -i hex -o spec > produces > > but attempt to use -o xml generates error > > appears the built in help says no xml output available while the > info output example shows using -o xml > > Did I built it wrong? Yes, most likely libxml development package wasn't installed. Check "./configure" output. Also, if you use a Debian-based distro, hidrd should be in the package repositories (although without "hex" format support). Nick |
|
From: Nikolai K. <sp...@gm...> - 2014-12-13 20:02:12
|
On 12/13/2014 08:27 PM, Vince Herried wrote: > I'm on Fedora F20 Then you need libxml2-devel package installed when configuring and building hidrd. Nick > On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov <sp...@gm...> wrote: >> On 12/13/2014 08:15 PM, Vince Herried wrote: >>> >>> the info file gives example of converting the hex input into xml >>> I get invalid output format. >>> the output from your dump program is: >>> $ cat HID-descriptor2.native >>> 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44 >>> 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 06 >>> 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 30 >>> 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 40 >>> 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 B4 >>> 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 75 >>> 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 A1 >>> 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81 >>> 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 00 >>> 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 08 >>> 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 81 >>> B2 C0 C0 >>> >>> $ cat HID-descriptor2.native | hidrd-convert -i hex -o spec >>> produces >>> >>> but attempt to use -o xml generates error >>> >>> appears the built in help says no xml output available while the >>> info output example shows using -o xml >>> >>> Did I built it wrong? >> >> >> Yes, most likely libxml development package wasn't installed. Check >> "./configure" output. Also, if you use a Debian-based distro, hidrd should >> be >> in the package repositories (although without "hex" format support). >> >> Nick |
|
From: Vince H. <Vi...@Pl...> - 2014-12-14 17:13:11
|
[vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o xml Unknown output format "xml". Formats supported by hidrd-convert: natv [IO] - native format . . . where this works [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o code --- Vince On Sun, Dec 14, 2014 at 11:07 AM, Nikolai Kondrashov <sp...@gm...> wrote: > > Hi Vince, > > Please keep the maillist in CC so others can benefit from our discussion. > Thank you. > > On 12/13/2014 10:55 PM, Vince Herried wrote: > >> Hmmm that wasn't it. it was already installed. >> I don't see any thing missing in the config.log >> $ cat config.log >> > > Please just attach files to messages directly (this time it might make > sense > to compress it). This way they will be preserved in the archive and it > will be > easier to access them. Unless you want to keep them secret, of course. > Thank > you. > > Yes, config.log looks OK. > > What was the exact hidrd-convert invocation that failed for you and what > was > the output? > > Nick > > On 12/13/2014 10:55 PM, Vince Herried wrote: > >> Hmmm that wasn't it. it was already installed. >> I don't see any thing missing in the config.log >> $ cat config.log >> >> >> config.log <https://docs.google.com/file/d/0BwgN_ >> uWIl5AdVENmX3dvZllOV00/edit?usp=drive_web> >> >> >> On Sat, Dec 13, 2014 at 3:02 PM, Nikolai Kondrashov <sp...@gm... >> <mailto:sp...@gm...>> wrote: >> >> On 12/13/2014 08:27 PM, Vince Herried wrote: >> >> I'm on Fedora F20 >> >> >> Then you need libxml2-devel package installed when configuring and >> building >> hidrd. >> >> Nick >> >> >> On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov < >> sp...@gm... <mailto:sp...@gm...>> wrote: >> >> On 12/13/2014 08:15 PM, Vince Herried wrote: >> >> >> the info file gives example of converting the hex input >> into xml >> I get invalid output format. >> the output from your dump program is: >> $ cat HID-descriptor2.native >> 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44 >> 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 06 >> 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 30 >> 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 40 >> 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 B4 >> 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 75 >> 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 A1 >> 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81 >> 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 00 >> 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 08 >> 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 81 >> B2 C0 C0 >> >> $ cat HID-descriptor2.native | hidrd-convert -i hex -o >> spec >> produces >> >> but attempt to use -o xml generates error >> >> appears the built in help says no xml output available >> while the >> info output example shows using -o xml >> >> Did I built it wrong? >> >> >> >> Yes, most likely libxml development package wasn't installed. >> Check >> "./configure" output. Also, if you use a Debian-based distro, >> hidrd should >> be >> in the package repositories (although without "hex" format >> support). >> >> Nick >> >> >> > |
|
From: Nikolai K. <sp...@gm...> - 2014-12-14 17:16:31
|
On 12/14/2014 07:13 PM, Vince Herried wrote: > [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o xml > Unknown output format "xml". Alright, could you please show the output of "ldd `which hidrd-convert`"? Nick On 12/14/2014 07:13 PM, Vince Herried wrote: > [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o xml > Unknown output format "xml". > > Formats supported by hidrd-convert: > > natv [IO] - native format > > . > . > . > where > this works > [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o code > > > --- > Vince > > > On Sun, Dec 14, 2014 at 11:07 AM, Nikolai Kondrashov <sp...@gm... <mailto:sp...@gm...>> wrote: > > Hi Vince, > > Please keep the maillist in CC so others can benefit from our discussion. > Thank you. > > On 12/13/2014 10:55 PM, Vince Herried wrote: > > Hmmm that wasn't it. it was already installed. > I don't see any thing missing in the config.log > $ cat config.log > > > Please just attach files to messages directly (this time it might make sense > to compress it). This way they will be preserved in the archive and it will be > easier to access them. Unless you want to keep them secret, of course. Thank > you. > > Yes, config.log looks OK. > > What was the exact hidrd-convert invocation that failed for you and what was > the output? > > Nick > > On 12/13/2014 10:55 PM, Vince Herried wrote: > > Hmmm that wasn't it. it was already installed. > I don't see any thing missing in the config.log > $ cat config.log > > > config.log <https://docs.google.com/file/__d/0BwgN___uWIl5AdVENmX3dvZllOV00/edit?__usp=drive_web <https://docs.google.com/file/d/0BwgN_uWIl5AdVENmX3dvZllOV00/edit?usp=drive_web>> > > > On Sat, Dec 13, 2014 at 3:02 PM, Nikolai Kondrashov <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm... <mailto:sp...@gm...>>> wrote: > > On 12/13/2014 08:27 PM, Vince Herried wrote: > > I'm on Fedora F20 > > > Then you need libxml2-devel package installed when configuring and building > hidrd. > > Nick > > > On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm... <mailto:sp...@gm...>>> wrote: > > On 12/13/2014 08:15 PM, Vince Herried wrote: > > > the info file gives example of converting the hex input into xml > I get invalid output format. > the output from your dump program is: > $ cat HID-descriptor2.native > 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44 > 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 06 > 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 30 > 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 40 > 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 B4 > 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 75 > 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 A1 > 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81 > 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 00 > 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 08 > 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 81 > B2 C0 C0 > > $ cat HID-descriptor2.native | hidrd-convert -i hex -o spec > produces > > but attempt to use -o xml generates error > > appears the built in help says no xml output available while the > info output example shows using -o xml > > Did I built it wrong? > > > > Yes, most likely libxml development package wasn't installed. Check > "./configure" output. Also, if you use a Debian-based distro, hidrd should > be > in the package repositories (although without "hex" format support). > > Nick > > > |
|
From: Vince H. <Vi...@Pl...> - 2014-12-14 18:52:31
|
[vince@desk2 Huion]$ ldd `which hidrd-convert`
linux-gate.so.1 => (0xb779f000)
libhidrd_util.so.0 => /usr/local/lib/libhidrd_util.so.0 (0xb7795000)
libhidrd_opt.so.0 => /usr/local/lib/libhidrd_opt.so.0 (0xb778f000)
libhidrd_strm.so.0 => /usr/local/lib/libhidrd_strm.so.0 (0xb778b000)
libhidrd_fmt.so.0 => /usr/local/lib/libhidrd_fmt.so.0 (0xb777b000)
libxml2.so.2 => /lib/libxml2.so.2 (0xb75f7000)
libz.so.1 => /lib/libz.so.1 (0x460fc000)
libm.so.6 => /lib/libm.so.6 (0x460b3000)
libdl.so.2 => /lib/libdl.so.2 (0x4608f000)
libhidrd_item.so.0 => /usr/local/lib/libhidrd_item.so.0 (0xb75ef000)
libhidrd_usage.so.0 => /usr/local/lib/libhidrd_usage.so.0 (0xb75df000)
libc.so.6 => /lib/libc.so.6 (0x45ecf000)
liblzma.so.5 => /lib/liblzma.so.5 (0x46134000)
/lib/ld-linux.so.2 (0x45eac000)
libpthread.so.0 => /lib/libpthread.so.0 (0x46096000)
[vince@desk2 Huion]$
On Sun, Dec 14, 2014 at 12:16 PM, Nikolai Kondrashov <sp...@gm...> wrote:
> On 12/14/2014 07:13 PM, Vince Herried wrote:
>>
>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o
>> xml
>> Unknown output format "xml".
>
>
> Alright, could you please show the output of "ldd `which hidrd-convert`"?
>
> Nick
>
> On 12/14/2014 07:13 PM, Vince Herried wrote:
>>
>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o
>> xml
>> Unknown output format "xml".
>>
>> Formats supported by hidrd-convert:
>>
>> natv [IO] - native format
>>
>> .
>> .
>> .
>> where
>> this works
>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o
>> code
>>
>>
>> ---
>> Vince
>>
>>
>> On Sun, Dec 14, 2014 at 11:07 AM, Nikolai Kondrashov <sp...@gm...
>> <mailto:sp...@gm...>> wrote:
>>
>> Hi Vince,
>>
>> Please keep the maillist in CC so others can benefit from our
>> discussion.
>> Thank you.
>>
>> On 12/13/2014 10:55 PM, Vince Herried wrote:
>>
>> Hmmm that wasn't it. it was already installed.
>> I don't see any thing missing in the config.log
>> $ cat config.log
>>
>>
>> Please just attach files to messages directly (this time it might make
>> sense
>> to compress it). This way they will be preserved in the archive and it
>> will be
>> easier to access them. Unless you want to keep them secret, of course.
>> Thank
>> you.
>>
>> Yes, config.log looks OK.
>>
>> What was the exact hidrd-convert invocation that failed for you and
>> what was
>> the output?
>>
>> Nick
>>
>> On 12/13/2014 10:55 PM, Vince Herried wrote:
>>
>> Hmmm that wasn't it. it was already installed.
>> I don't see any thing missing in the config.log
>> $ cat config.log
>>
>>
>> config.log
>> <https://docs.google.com/file/__d/0BwgN___uWIl5AdVENmX3dvZllOV00/edit?__usp=drive_web
>> <https://docs.google.com/file/d/0BwgN_uWIl5AdVENmX3dvZllOV00/edit?usp=drive_web>>
>>
>>
>> On Sat, Dec 13, 2014 at 3:02 PM, Nikolai Kondrashov
>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm...
>> <mailto:sp...@gm...>>> wrote:
>>
>> On 12/13/2014 08:27 PM, Vince Herried wrote:
>>
>> I'm on Fedora F20
>>
>>
>> Then you need libxml2-devel package installed when
>> configuring and building
>> hidrd.
>>
>> Nick
>>
>>
>> On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov
>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm...
>> <mailto:sp...@gm...>>> wrote:
>>
>> On 12/13/2014 08:15 PM, Vince Herried wrote:
>>
>>
>> the info file gives example of converting the hex
>> input into xml
>> I get invalid output format.
>> the output from your dump program is:
>> $ cat HID-descriptor2.native
>> 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09
>> 44
>> 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95
>> 06
>> 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09
>> 30
>> 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27
>> 40
>> 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02
>> B4
>> 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1
>> 75
>> 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01
>> A1
>> 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01
>> 81
>> 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35
>> 00
>> 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00
>> 08
>> 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10
>> 81
>> B2 C0 C0
>>
>> $ cat HID-descriptor2.native | hidrd-convert -i
>> hex -o spec
>> produces
>>
>> but attempt to use -o xml generates error
>>
>> appears the built in help says no xml output
>> available while the
>> info output example shows using -o xml
>>
>> Did I built it wrong?
>>
>>
>>
>> Yes, most likely libxml development package wasn't
>> installed. Check
>> "./configure" output. Also, if you use a Debian-based
>> distro, hidrd should
>> be
>> in the package repositories (although without "hex"
>> format support).
>>
>> Nick
>>
>>
>>
>
|
|
From: Nikolai K. <sp...@gm...> - 2015-01-02 12:55:51
|
Hi Vince, On 12/14/2014 08:52 PM, Vince Herried wrote: > [vince@desk2 Huion]$ ldd `which hidrd-convert` > linux-gate.so.1 => (0xb779f000) > libhidrd_util.so.0 => /usr/local/lib/libhidrd_util.so.0 (0xb7795000) > libhidrd_opt.so.0 => /usr/local/lib/libhidrd_opt.so.0 (0xb778f000) > libhidrd_strm.so.0 => /usr/local/lib/libhidrd_strm.so.0 (0xb778b000) > libhidrd_fmt.so.0 => /usr/local/lib/libhidrd_fmt.so.0 (0xb777b000) > libxml2.so.2 => /lib/libxml2.so.2 (0xb75f7000) > libz.so.1 => /lib/libz.so.1 (0x460fc000) > libm.so.6 => /lib/libm.so.6 (0x460b3000) > libdl.so.2 => /lib/libdl.so.2 (0x4608f000) > libhidrd_item.so.0 => /usr/local/lib/libhidrd_item.so.0 (0xb75ef000) > libhidrd_usage.so.0 => /usr/local/lib/libhidrd_usage.so.0 (0xb75df000) > libc.so.6 => /lib/libc.so.6 (0x45ecf000) > liblzma.so.5 => /lib/liblzma.so.5 (0x46134000) > /lib/ld-linux.so.2 (0x45eac000) > libpthread.so.0 => /lib/libpthread.so.0 (0x46096000) I tried fresh hidrd package both on 64 and 32-bit Fedora 20 hosts and it builds and runs without a problem, including the XML format support. I suggest making a fresh build and seeing if it works. Perhaps some bits from previous configure run got stuck. Nick On 12/14/2014 08:52 PM, Vince Herried wrote: > [vince@desk2 Huion]$ ldd `which hidrd-convert` > linux-gate.so.1 => (0xb779f000) > libhidrd_util.so.0 => /usr/local/lib/libhidrd_util.so.0 (0xb7795000) > libhidrd_opt.so.0 => /usr/local/lib/libhidrd_opt.so.0 (0xb778f000) > libhidrd_strm.so.0 => /usr/local/lib/libhidrd_strm.so.0 (0xb778b000) > libhidrd_fmt.so.0 => /usr/local/lib/libhidrd_fmt.so.0 (0xb777b000) > libxml2.so.2 => /lib/libxml2.so.2 (0xb75f7000) > libz.so.1 => /lib/libz.so.1 (0x460fc000) > libm.so.6 => /lib/libm.so.6 (0x460b3000) > libdl.so.2 => /lib/libdl.so.2 (0x4608f000) > libhidrd_item.so.0 => /usr/local/lib/libhidrd_item.so.0 (0xb75ef000) > libhidrd_usage.so.0 => /usr/local/lib/libhidrd_usage.so.0 (0xb75df000) > libc.so.6 => /lib/libc.so.6 (0x45ecf000) > liblzma.so.5 => /lib/liblzma.so.5 (0x46134000) > /lib/ld-linux.so.2 (0x45eac000) > libpthread.so.0 => /lib/libpthread.so.0 (0x46096000) > [vince@desk2 Huion]$ > > On Sun, Dec 14, 2014 at 12:16 PM, Nikolai Kondrashov <sp...@gm...> wrote: >> On 12/14/2014 07:13 PM, Vince Herried wrote: >>> >>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o >>> xml >>> Unknown output format "xml". >> >> >> Alright, could you please show the output of "ldd `which hidrd-convert`"? >> >> Nick >> >> On 12/14/2014 07:13 PM, Vince Herried wrote: >>> >>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o >>> xml >>> Unknown output format "xml". >>> >>> Formats supported by hidrd-convert: >>> >>> natv [IO] - native format >>> >>> . >>> . >>> . >>> where >>> this works >>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o >>> code >>> >>> >>> --- >>> Vince >>> >>> >>> On Sun, Dec 14, 2014 at 11:07 AM, Nikolai Kondrashov <sp...@gm... >>> <mailto:sp...@gm...>> wrote: >>> >>> Hi Vince, >>> >>> Please keep the maillist in CC so others can benefit from our >>> discussion. >>> Thank you. >>> >>> On 12/13/2014 10:55 PM, Vince Herried wrote: >>> >>> Hmmm that wasn't it. it was already installed. >>> I don't see any thing missing in the config.log >>> $ cat config.log >>> >>> >>> Please just attach files to messages directly (this time it might make >>> sense >>> to compress it). This way they will be preserved in the archive and it >>> will be >>> easier to access them. Unless you want to keep them secret, of course. >>> Thank >>> you. >>> >>> Yes, config.log looks OK. >>> >>> What was the exact hidrd-convert invocation that failed for you and >>> what was >>> the output? >>> >>> Nick >>> >>> On 12/13/2014 10:55 PM, Vince Herried wrote: >>> >>> Hmmm that wasn't it. it was already installed. >>> I don't see any thing missing in the config.log >>> $ cat config.log >>> >>> >>> config.log >>> <https://docs.google.com/file/__d/0BwgN___uWIl5AdVENmX3dvZllOV00/edit?__usp=drive_web >>> <https://docs.google.com/file/d/0BwgN_uWIl5AdVENmX3dvZllOV00/edit?usp=drive_web>> >>> >>> >>> On Sat, Dec 13, 2014 at 3:02 PM, Nikolai Kondrashov >>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm... >>> <mailto:sp...@gm...>>> wrote: >>> >>> On 12/13/2014 08:27 PM, Vince Herried wrote: >>> >>> I'm on Fedora F20 >>> >>> >>> Then you need libxml2-devel package installed when >>> configuring and building >>> hidrd. >>> >>> Nick >>> >>> >>> On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov >>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm... >>> <mailto:sp...@gm...>>> wrote: >>> >>> On 12/13/2014 08:15 PM, Vince Herried wrote: >>> >>> >>> the info file gives example of converting the hex >>> input into xml >>> I get invalid output format. >>> the output from your dump program is: >>> $ cat HID-descriptor2.native >>> 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 >>> 44 >>> 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 >>> 06 >>> 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 >>> 30 >>> 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 >>> 40 >>> 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 >>> B4 >>> 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 >>> 75 >>> 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 >>> A1 >>> 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 >>> 81 >>> 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 >>> 00 >>> 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 >>> 08 >>> 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 >>> 81 >>> B2 C0 C0 >>> >>> $ cat HID-descriptor2.native | hidrd-convert -i >>> hex -o spec >>> produces >>> >>> but attempt to use -o xml generates error >>> >>> appears the built in help says no xml output >>> available while the >>> info output example shows using -o xml >>> >>> Did I built it wrong? >>> >>> >>> >>> Yes, most likely libxml development package wasn't >>> installed. Check >>> "./configure" output. Also, if you use a Debian-based >>> distro, hidrd should >>> be >>> in the package repositories (although without "hex" >>> format support). >>> >>> Nick >>> >>> >>> >> |
|
From: Vince H. <Vi...@Pl...> - 2015-01-02 23:01:18
|
RE: hidrd-convert not working deleted ./configure. that didn't help. then did a make clean. That fixed it. --------------- I don't understand why I can't set my buttons on Huion. evtest reports on the buttons. Testing ... (interrupt to exit) Event: time 1420239552.909817, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90008 Event: time 1420239552.909817, type 1 (EV_KEY), code 263 (BTN_7), value 1 On Fri, Jan 2, 2015 at 7:55 AM, Nikolai Kondrashov <sp...@gm...> wrote: > Hi Vince, > > On 12/14/2014 08:52 PM, Vince Herried wrote: >> >> [vince@desk2 Huion]$ ldd `which hidrd-convert` >> linux-gate.so.1 => (0xb779f000) >> libhidrd_util.so.0 => /usr/local/lib/libhidrd_util.so.0 >> (0xb7795000) >> libhidrd_opt.so.0 => /usr/local/lib/libhidrd_opt.so.0 >> (0xb778f000) >> libhidrd_strm.so.0 => /usr/local/lib/libhidrd_strm.so.0 >> (0xb778b000) >> libhidrd_fmt.so.0 => /usr/local/lib/libhidrd_fmt.so.0 >> (0xb777b000) >> libxml2.so.2 => /lib/libxml2.so.2 (0xb75f7000) >> libz.so.1 => /lib/libz.so.1 (0x460fc000) >> libm.so.6 => /lib/libm.so.6 (0x460b3000) >> libdl.so.2 => /lib/libdl.so.2 (0x4608f000) >> libhidrd_item.so.0 => /usr/local/lib/libhidrd_item.so.0 >> (0xb75ef000) >> libhidrd_usage.so.0 => /usr/local/lib/libhidrd_usage.so.0 >> (0xb75df000) >> libc.so.6 => /lib/libc.so.6 (0x45ecf000) >> liblzma.so.5 => /lib/liblzma.so.5 (0x46134000) >> /lib/ld-linux.so.2 (0x45eac000) >> libpthread.so.0 => /lib/libpthread.so.0 (0x46096000) > > > I tried fresh hidrd package both on 64 and 32-bit Fedora 20 hosts and it > builds and runs without a problem, including the XML format support. > > I suggest making a fresh build and seeing if it works. Perhaps some bits > from > previous configure run got stuck. > > Nick > > On 12/14/2014 08:52 PM, Vince Herried wrote: >> >> [vince@desk2 Huion]$ ldd `which hidrd-convert` >> linux-gate.so.1 => (0xb779f000) >> libhidrd_util.so.0 => /usr/local/lib/libhidrd_util.so.0 >> (0xb7795000) >> libhidrd_opt.so.0 => /usr/local/lib/libhidrd_opt.so.0 >> (0xb778f000) >> libhidrd_strm.so.0 => /usr/local/lib/libhidrd_strm.so.0 >> (0xb778b000) >> libhidrd_fmt.so.0 => /usr/local/lib/libhidrd_fmt.so.0 >> (0xb777b000) >> libxml2.so.2 => /lib/libxml2.so.2 (0xb75f7000) >> libz.so.1 => /lib/libz.so.1 (0x460fc000) >> libm.so.6 => /lib/libm.so.6 (0x460b3000) >> libdl.so.2 => /lib/libdl.so.2 (0x4608f000) >> libhidrd_item.so.0 => /usr/local/lib/libhidrd_item.so.0 >> (0xb75ef000) >> libhidrd_usage.so.0 => /usr/local/lib/libhidrd_usage.so.0 >> (0xb75df000) >> libc.so.6 => /lib/libc.so.6 (0x45ecf000) >> liblzma.so.5 => /lib/liblzma.so.5 (0x46134000) >> /lib/ld-linux.so.2 (0x45eac000) >> libpthread.so.0 => /lib/libpthread.so.0 (0x46096000) >> [vince@desk2 Huion]$ >> >> On Sun, Dec 14, 2014 at 12:16 PM, Nikolai Kondrashov <sp...@gm...> >> wrote: >>> >>> On 12/14/2014 07:13 PM, Vince Herried wrote: >>>> >>>> >>>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex >>>> -o >>>> xml >>>> Unknown output format "xml". >>> >>> >>> >>> Alright, could you please show the output of "ldd `which hidrd-convert`"? >>> >>> Nick >>> >>> On 12/14/2014 07:13 PM, Vince Herried wrote: >>>> >>>> >>>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex >>>> -o >>>> xml >>>> Unknown output format "xml". >>>> >>>> Formats supported by hidrd-convert: >>>> >>>> natv [IO] - native format >>>> >>>> . >>>> . >>>> . >>>> where >>>> this works >>>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex >>>> -o >>>> code >>>> >>>> >>>> --- >>>> Vince >>>> >>>> >>>> On Sun, Dec 14, 2014 at 11:07 AM, Nikolai Kondrashov <sp...@gm... >>>> <mailto:sp...@gm...>> wrote: >>>> >>>> Hi Vince, >>>> >>>> Please keep the maillist in CC so others can benefit from our >>>> discussion. >>>> Thank you. >>>> >>>> On 12/13/2014 10:55 PM, Vince Herried wrote: >>>> >>>> Hmmm that wasn't it. it was already installed. >>>> I don't see any thing missing in the config.log >>>> $ cat config.log >>>> >>>> >>>> Please just attach files to messages directly (this time it might >>>> make >>>> sense >>>> to compress it). This way they will be preserved in the archive and >>>> it >>>> will be >>>> easier to access them. Unless you want to keep them secret, of >>>> course. >>>> Thank >>>> you. >>>> >>>> Yes, config.log looks OK. >>>> >>>> What was the exact hidrd-convert invocation that failed for you and >>>> what was >>>> the output? >>>> >>>> Nick >>>> >>>> On 12/13/2014 10:55 PM, Vince Herried wrote: >>>> >>>> Hmmm that wasn't it. it was already installed. >>>> I don't see any thing missing in the config.log >>>> $ cat config.log >>>> >>>> >>>> config.log >>>> >>>> <https://docs.google.com/file/__d/0BwgN___uWIl5AdVENmX3dvZllOV00/edit?__usp=drive_web >>>> >>>> <https://docs.google.com/file/d/0BwgN_uWIl5AdVENmX3dvZllOV00/edit?usp=drive_web>> >>>> >>>> >>>> On Sat, Dec 13, 2014 at 3:02 PM, Nikolai Kondrashov >>>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm... >>>> <mailto:sp...@gm...>>> wrote: >>>> >>>> On 12/13/2014 08:27 PM, Vince Herried wrote: >>>> >>>> I'm on Fedora F20 >>>> >>>> >>>> Then you need libxml2-devel package installed when >>>> configuring and building >>>> hidrd. >>>> >>>> Nick >>>> >>>> >>>> On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov >>>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm... >>>> <mailto:sp...@gm...>>> wrote: >>>> >>>> On 12/13/2014 08:15 PM, Vince Herried wrote: >>>> >>>> >>>> the info file gives example of converting the >>>> hex >>>> input into xml >>>> I get invalid output format. >>>> the output from your dump program is: >>>> $ cat HID-descriptor2.native >>>> 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 >>>> 09 >>>> 44 >>>> 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 >>>> 95 >>>> 06 >>>> 81 02 09 32 75 01 95 01 81 02 81 03 05 01 >>>> 09 >>>> 30 >>>> 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 >>>> 27 >>>> 40 >>>> 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 >>>> 02 >>>> B4 >>>> 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 >>>> E1 >>>> 75 >>>> 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 >>>> 01 >>>> A1 >>>> 00 05 09 19 01 29 03 15 00 25 01 95 03 75 >>>> 01 >>>> 81 >>>> 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 >>>> 35 >>>> 00 >>>> 46 00 08 26 00 08 81 02 09 31 46 00 08 26 >>>> 00 >>>> 08 >>>> 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 >>>> 10 >>>> 81 >>>> B2 C0 C0 >>>> >>>> $ cat HID-descriptor2.native | hidrd-convert >>>> -i >>>> hex -o spec >>>> produces >>>> >>>> but attempt to use -o xml generates error >>>> >>>> appears the built in help says no xml output >>>> available while the >>>> info output example shows using -o xml >>>> >>>> Did I built it wrong? >>>> >>>> >>>> >>>> Yes, most likely libxml development package wasn't >>>> installed. Check >>>> "./configure" output. Also, if you use a >>>> Debian-based >>>> distro, hidrd should >>>> be >>>> in the package repositories (although without >>>> "hex" >>>> format support). >>>> >>>> Nick >>>> >>>> >>>> >>> > |
|
From: Nikolai K. <sp...@gm...> - 2015-01-03 11:59:20
|
On 01/03/2015 01:01 AM, Vince Herried wrote:
> RE: hidrd-convert not working
>
> deleted ./configure. that didn't help.
> then did a make clean.
> That fixed it.
Ah, good.
> I don't understand why I can't set my buttons on Huion.
>
> evtest reports on the buttons.
>
> Testing ... (interrupt to exit)
> Event: time 1420239552.909817, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90008
> Event: time 1420239552.909817, type 1 (EV_KEY), code 263 (BTN_7), value 1
I tried using the modified hid-huion driver with xf86-input-wacom yesterday
and was able to assign key combinations to the frame buttons with xsetwacom.
Like this:
xsetwacom --set 14 button 3 key c
This would make button 3 report key "c" for Wacom pad device belonging to the
Huion H610, with ID 14.
See man xsetwacom.
Nick
|
|
From: Vince H. <Vi...@Pl...> - 2015-01-03 15:51:26
|
How did you get it to use wacom? X config driver parameter, or more? ------------ Vince |