On Aug 12, 2015, at 09:56 AM, Hans Petter Selasky <h...@selasky.org> wrote:

On 08/12/15 09:28, Anders Bolt-Evensen wrote:


On Aug 11, 2015, at 05:03 PM, Hans Petter Selasky <h...@selasky.org> wrote:

On 08/11/15 16:40, Anthony Jenkins via freebsd-usb wrote:

hid_is_mouse() is failing to tell that your Synaptics USB HID device is
a mouse, but /only/ when there's no other USB (HID) device on that USB
bus (usbus0). I suspect it has to do with the hid_get_item() warnings
about chopping stuff off. I can't tell from the source code for
hid_get_item() (a 313-line function) why it's behaving that way, or why
a totally different HID device (Logitech mouse) causes it to behave
differently for this HID device (Synaptics touchpad). I've added
freebsd-usb@ to see if they know what's going on.

ajenkins@kubuntu-ajenkins:~/Downloads$ grep usbus0
dmesg_with_external_usb.txt
usbus0: waiting for BIOS to give up control
usbus0 on xhci0
random: harvesting attach, 8 bytes (4 bits) from usbus0
usbus0: 5.0Gbps Super Speed USB v3.0
ugen0.1: <0x8086> at usbus0
uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on
usbus0
Root mount waiting for: usbus2 usbus1 usbus0
ugen0.2: <Logitech> at usbus0
ukbd0: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 1> on
usbus0
Root mount waiting for: usbus0
ugen0.3: <Generic> at usbus0
Root mount waiting for: usbus0
ugen0.4: <vendor 0x06cb> at usbus0
ugen0.5: <Chicony Electronics Co.,Ltd.> at usbus0
Root mount waiting for: usbus0
Root mount waiting for: usbus0
[snip]
Root mount waiting for: usbus0
Root mount waiting for: usbus0
ugen0.6: <Unknown> at usbus0 (disconnected)
ums0: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 1> on
usbus0
ums1: <vendor 0x06cb product 0x2970, class 0/0, rev 2.00/0.08, addr
3> on usbus0
uhid0: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 1> on
usbus0

What possessed the laptop manufacturer to hang the Synaptics touchpad
device off a USB 3.0 controller is beyond me... I have problems booting
FreeBSD off USB 3.0 mass storage devices.


Hi,

Does your mouse only fail to work in X-org, or also the console?

Run "usbdump -i usbusX -f Y -s 65536 -vvv" to catch USB events for
ugenX.Y. That might give some further clues.

If using X.org, do you use hald or devd backend?

--HPS

It fails in both X-org and console.
In X, recently I've only been using devd.
When trying to use the command usbdump -i usbus0 -f 3 -s 65536 -vvv on
my touchpad (without any external usb receiver connected), nothing
happens at all. No left-click, no right-click, nothing.
However, if I insert an external USB receiver and then reboot the
computer, the touchpad works just fine in both console and in X-org.
If I now do the command above, since I've connected the receiver and
done the reboot, I get the following output (just note that during the
reboot, the address of the touchpad was changed from ugen0.3 to ugen0.4):
https://www.dropbox.com/s/ktj757okcq61ljc/usbdump_i_usbusX_f_Y_s_65536_vvv.txt?dl=0

On Aug 11, 2015, at 05:46 PM, Zoran Kolic <zko...@sbb.rs> wrote:

What do you have in device.hints?

Zoran


When you don't see any activity, can you issue a reset of the touchpad:

usbconfig -d X.Y reset

while "usbdump" is running on the same device?

--HPS

Sure. 
usbconfig -d 0.3 reset results in the following output from the usbdump command:
11:24:32.121246 usbus0.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  00 09 00 00 00 00 00 00  -- -- -- -- -- -- -- --  |........        |
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.121619 usbus0.3 
DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.499707 usbus0.3 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  80 06 00 01 00 00 08 00  -- -- -- -- -- -- -- --  |........        |
frame[1] READ 8 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.501363 usbus0.3 
DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 8 bytes
0000  12 01 00 02 00 00 00 08  -- -- -- -- -- -- -- --  |........        |
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.501467 usbus0.3 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  80 06 00 01 00 00 12 00  -- -- -- -- -- -- -- --  |........        |
frame[1] READ 18 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.502123 usbus0.3 
DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 18 bytes
0000  12 01 00 02 00 00 00 08  CB 06 70 29 08 00 01 02  |..........p)....|
0010  00 01 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |..              |
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.502231 usbus0.3 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  80 06 00 02 00 00 09 00  -- -- -- -- -- -- -- --  |........        |
frame[1] READ 9 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.502630 usbus0.3 
DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=12,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 9 bytes
0000  09 02 29 00 01 01 00 A0  32 -- -- -- -- -- -- --  |..).....2       |
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.502735 usbus0.3 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  80 06 00 02 00 00 29 00  -- -- -- -- -- -- -- --  |......).        |
frame[1] READ 41 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.503373 usbus0.3 
DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=44,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 41 bytes
0000  09 02 29 00 01 01 00 A0  32 09 04 00 00 02 03 00  |..).....2.......|
0010  00 00 09 21 11 01 00 01  22 A1 01 07 05 81 03 40  |...!...."......@|
0020  00 01 07 05 02 03 40 00  0A -- -- -- -- -- -- --  |......@..       |
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.503618 usbus0.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  00 09 01 00 00 00 00 00  -- -- -- -- -- -- -- --  |........        |
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.604460 usbus0.3 
DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.604968 usbus0.3 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  81 06 00 22 00 00 A1 01  -- -- -- -- -- -- -- --  |..."....        |
frame[1] READ 417 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.627494 usbus0.3 
DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=420,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 417 bytes
0000  05 01 09 02 A1 01 85 02  09 01 A1 00 05 09 19 01  |................|
0010  29 02 15 00 25 01 75 01  95 02 81 02 95 06 81 01  |)...%.u.........|
0020  05 01 09 30 09 31 15 81  25 7F 75 08 95 02 81 06  |...0.1..%.u.....|
0030  C0 C0 05 0D 09 05 A1 01  85 03 09 22 A1 02 15 00  |..........."....|
0040  25 01 09 47 09 42 95 02  75 01 81 02 95 01 75 03  |%..G.B..u.....u.|
0050  25 05 09 51 81 02 75 01  95 03 81 03 05 01 15 00  |%..Q..u.........|
0060  26 D4 04 75 10 55 0E 65  11 09 30 35 00 46 06 04  |&..u.U.e..05.F..|
0070  95 01 81 02 46 EC 02 26  82 03 09 31 81 02 05 0D  |....F..&...1....|
0080  C0 55 0C 66 01 10 47 FF  FF 00 00 27 FF FF 00 00  |.U.f..G....'....|
0090  75 10 95 01 09 56 81 02  09 54 25 7F 95 01 75 08  |u....V...T%...u.|
00A0  81 02 05 09 09 01 25 01  75 01 95 01 81 02 95 07  |......%.u.......|
00B0  81 03 05 0D 85 08 09 55  09 59 75 04 95 02 25 0F  |.......U.Yu...%.|
00C0  B1 02 85 0D 09 60 75 01  95 01 15 00 25 01 B1 02  |.....`u.....%...|
00D0  95 07 B1 03 85 07 06 00  FF 09 C5 15 00 26 FF 00  |.............&..|
00E0  75 08 96 00 01 B1 02 C0  05 0D 09 0E A1 01 85 04  |u...............|
00F0  09 22 A1 02 09 52 15 00  25 0A 75 08 95 01 B1 02  |."...R..%.u.....|
0100  C0 09 22 A1 00 85 06 09  57 09 58 75 01 95 02 25  |..".....W.Xu...%|
0110  01 B1 02 95 06 B1 03 C0  C0 06 00 FF 09 01 A1 01  |................|
0120  85 09 09 02 15 00 26 FF  00 75 08 95 14 91 02 85  |......&..u......|
0130  0A 09 03 15 00 26 FF 00  75 08 95 14 91 02 85 0B  |.....&..u.......|
0140  09 04 15 00 26 FF 00 75  08 95 23 81 02 85 0C 09  |....&..u..#.....|
0150  05 15 00 26 FF 00 75 08  95 23 81 02 85 0F 09 06  |...&..u..#......|
0160  15 00 26 FF 00 75 08 95  01 B1 02 85 0E 09 07 15  |..&..u..........|
0170  00 26 FF 00 75 08 95 01  B1 02 C0 06 EE FF 09 01  |.&..u...........|
0180  A1 01 85 EE 09 02 15 00  26 FF 00 75 08 95 04 91  |........&..u....|
0190  02 85 EF 09 02 15 00 26  FF 00 75 08 95 10 B1 02  |.......&..u.....|
01A0  C0 -- -- -- -- -- -- --  -- -- -- -- -- -- -- --  |.               |
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.627762 usbus0.3 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  81 06 00 22 00 00 A1 01  -- -- -- -- -- -- -- --  |..."....        |
frame[1] READ 417 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.650229 usbus0.3 
DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=420,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 417 bytes
0000  05 01 09 02 A1 01 85 02  09 01 A1 00 05 09 19 01  |................|
0010  29 02 15 00 25 01 75 01  95 02 81 02 95 06 81 01  |)...%.u.........|
0020  05 01 09 30 09 31 15 81  25 7F 75 08 95 02 81 06  |...0.1..%.u.....|
0030  C0 C0 05 0D 09 05 A1 01  85 03 09 22 A1 02 15 00  |..........."....|
0040  25 01 09 47 09 42 95 02  75 01 81 02 95 01 75 03  |%..G.B..u.....u.|
0050  25 05 09 51 81 02 75 01  95 03 81 03 05 01 15 00  |%..Q..u.........|
0060  26 D4 04 75 10 55 0E 65  11 09 30 35 00 46 06 04  |&..u.U.e..05.F..|
0070  95 01 81 02 46 EC 02 26  82 03 09 31 81 02 05 0D  |....F..&...1....|
0080  C0 55 0C 66 01 10 47 FF  FF 00 00 27 FF FF 00 00  |.U.f..G....'....|
0090  75 10 95 01 09 56 81 02  09 54 25 7F 95 01 75 08  |u....V...T%...u.|
00A0  81 02 05 09 09 01 25 01  75 01 95 01 81 02 95 07  |......%.u.......|
00B0  81 03 05 0D 85 08 09 55  09 59 75 04 95 02 25 0F  |.......U.Yu...%.|
00C0  B1 02 85 0D 09 60 75 01  95 01 15 00 25 01 B1 02  |.....`u.....%...|
00D0  95 07 B1 03 85 07 06 00  FF 09 C5 15 00 26 FF 00  |.............&..|
00E0  75 08 96 00 01 B1 02 C0  05 0D 09 0E A1 01 85 04  |u...............|
00F0  09 22 A1 02 09 52 15 00  25 0A 75 08 95 01 B1 02  |."...R..%.u.....|
0100  C0 09 22 A1 00 85 06 09  57 09 58 75 01 95 02 25  |..".....W.Xu...%|
0110  01 B1 02 95 06 B1 03 C0  C0 06 00 FF 09 01 A1 01  |................|
0120  85 09 09 02 15 00 26 FF  00 75 08 95 14 91 02 85  |......&..u......|
0130  0A 09 03 15 00 26 FF 00  75 08 95 14 91 02 85 0B  |.....&..u.......|
0140  09 04 15 00 26 FF 00 75  08 95 23 81 02 85 0C 09  |....&..u..#.....|
0150  05 15 00 26 FF 00 75 08  95 23 81 02 85 0F 09 06  |...&..u..#......|
0160  15 00 26 FF 00 75 08 95  01 B1 02 85 0E 09 07 15  |..&..u..........|
0170  00 26 FF 00 75 08 95 01  B1 02 C0 06 EE FF 09 01  |.&..u...........|
0180  A1 01 85 EE 09 02 15 00  26 FF 00 75 08 95 04 91  |........&..u....|
0190  02 85 EF 09 02 15 00 26  FF 00 75 08 95 10 B1 02  |.......&..u.....|
01A0  C0 -- -- -- -- -- -- --  -- -- -- -- -- -- -- --  |.               |
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.650336 usbus0.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  21 0A 00 00 00 00 00 00  -- -- -- -- -- -- -- --  |!.......        |
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:24:32.652030 usbus0.3 
DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=STALLED
frame[0] WRITE 8 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0x8a1a5 
<OPEN|DID_DMA_DELAY|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|DOING_CALLBACK|0>
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to