On Sun, Aug 9, 2020 at 4:19 PM Archimedes Gaviola <
archimedes.gavi...@gmail.com> wrote:

>
>
> On Sun, Aug 9, 2020 at 2:23 PM Archimedes Gaviola <
> archimedes.gavi...@gmail.com> wrote:
>
>> Hi Stuart,
>>>
>>> I am able to re-compile the kernel with this "option USB_DEBUG" however
>>> it's still the same USB dmesg output. I am looking at some knobs in the
>>> sysctl but do not have any tunables pertaining to USB.
>>>
>>> Sharing the behavior of my A4Tech KL-5 mini keyboard (20mA) , the one
>>> that works, I just observe sometimes when switching from the default X
>>> Window to a tty console. It will be disconnected from  wsdisplay0 and
>>> detached from wskbd0,  ukbd0,  uhidev0,  uhid0, uhid1? The same is true
>>> with my USB barcode scanner (though at the moment this device is only
>>> detected and powered-up) when I scan some barcode over an item though it
>>> fails to reflect scanned numeric codes in the tty console but the
>>> observation is the same with the keyboard. Any hint or clue pertaining this
>>> behavior? By the way, the barcode scanner behaves the same with the numeric
>>> keypad extension of a keyboard that when you type series of numbers it will
>>> reflect in the console.
>>>
>>> 1. A4Tech USB keyboard (dmesg output)
>>>
>>> uhidev0 at uhub1 port 3 configuration 1 interface 0 "USB Adapter USB
>>> Device" rev 1.10/0.01 addr 4
>>> uhidev0: iclass 3/1
>>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>>> wskbd0 at ukbd0 mux 1
>>> wskbd0: connecting to wsdisplay0
>>> uhidev1 at uhub1 port 2 configuration 1 interface 0 "SIGMACHIP USB
>>> Keyboard" rev 1.10/1.10 addr 5
>>> uhidev1: iclass 3/1
>>> ukbd1 at uhidev1: 8 variable keys, 6 key codes
>>> wskbd1 at ukbd1 mux 1
>>> wskbd1: connecting to wsdisplay0
>>> uhidev2 at uhub1 port 2 configuration 1 interface 1 "SIGMACHIP USB
>>> Keyboard" rev 1.10/1.10 addr 5
>>> uhidev2: iclass 3/0, 2 report ids
>>> uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
>>> uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
>>> wskbd1: disconnecting from wsdisplay0
>>> wskbd1 detached
>>> ukbd1 detached
>>> uhidev1 detached
>>> uhid0 detached
>>> uhid1 detached
>>> uhidev2 detached
>>> uhidev1 at uhub1 port 2 configuration 1 interface 0 "SIGMACHIP USB
>>> Keyboard" rev 1.10/1.10 addr 5
>>> uhidev1: iclass 3/1
>>> ukbd1 at uhidev1: 8 variable keys, 6 key codes
>>> wskbd1 at ukbd1 mux 1
>>> wskbd1: connecting to wsdisplay0
>>> uhidev2 at uhub1 port 2 configuration 1 interface 1 "SIGMACHIP USB
>>> Keyboard" rev 1.10/1.10 addr 5
>>> uhidev2: iclass 3/0, 2 report ids
>>> uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
>>> uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
>>>
>>> 2. USB barcode scanner (dmesg output)
>>>
>>> uhidev0 at uhub1 port 3 configuration 1 interface 0 "USB Adapter USB
>>> Device" rev 1.10/0.01 addr 4
>>> uhidev0: iclass 3/1
>>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>>> wskbd0 at ukbd0 mux 1
>>> wskbd0: connecting to wsdisplay0
>>> wskbd0: disconnecting from wsdisplay0
>>> wskbd0 detached
>>> ukbd0 detached
>>> uhidev0 detached
>>> uhidev0 at uhub1 port 3 configuration 1 interface 0 "USB Adapter USB
>>> Device" rev 1.10/0.01 addr 4
>>> uhidev0: iclass 3/1
>>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>>> wskbd0 at ukbd0 mux 1
>>> wskbd0: connecting to wsdisplay0
>>>
>>> Thanks  and best regards,
>>> Archimedes
>>>
>>
>> Hi All,
>>
>> Sharing with you a comparison between a 6.7-i386-release and
>> 6.7-arm64-current with USB barcode scanner behavior.
>>
>> /* OpenBSD 6.7-i386-release with USB barcode scanner device */
>>
>> Attaching the USB barcode scanner.
>>
>> uhidev2 at uhub0 port 6 configuration 1 interface 0 "USB Adapter USB
>> Device" rev 1.10/0.01 addr 2
>> uhidev2: iclass 3/1
>> ukbd1 at uhidev2: 8 variable keys, 6 key codes
>> wskbd2 at ukbd1 mux 1
>> wskbd2: connecting to wsdisplay0
>>
>> When scanning a barcode, no disconnection and the scanned barcode will
>> display in the TTY console.
>> Scanning is successful.
>>
>> /* OpenBSD 6.7-current amr64 with USB barcode scanner device */
>>
>> Attaching the USB barcode scanner.
>>
>> uhidev0 at uhub1 port 4 configuration 1 interface 0 "USB Adapter USB
>> Device" rev 1.10/0.01 addr 4
>> uhidev0: iclass 3/1
>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>> wskbd0 at ukbd0 mux 1
>> wskbd0: connecting to wsdisplay0
>>
>> When scanning a barcode, it will be disconnected and no display in the
>> TTY console.
>> Scanning is not successful and the device will initiate connection.
>>
>> wskbd0: disconnecting from wsdisplay0
>> wskbd0 detached
>> ukbd0 detached
>> uhidev0 detached
>>
>> uhidev0 at uhub1 port 4 configuration 1 interface 0 "USB Adapter USB
>> Device" rev 1.10/0.01 addr 4
>> uhidev0: iclass 3/1
>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>> wskbd0 at ukbd0 mux 1
>> wskbd0: connecting to wsdisplay0
>>
>> From here I need to figure-out why wsdiplay triggers disconnection or
>> perhaps any other reasons for this?
>>
>> Thanks and best regards,
>> Archimedes
>>
>>
> Okay here, in the dmesg I found that wsdisplay0 is pointing to simplefb0.
> Do I need to make changes in the config.txt or DTB or add DTBO files? How
> should I properly enable this simplefb0?
>
> simplefb0 at mainbus0: 640x480, 32bpp
> wsdisplay0 at simplefb0 mux 1
> wsdisplay0: screen 0-5 added (std, vt100 emulation)
>
> Thanks and best regards,
> Archimedes
>


Hi,

As I continue digging on this issue I would like to know if there's a way
to disable this uhub1 device Standard Microsystems? Any impact to
other devices as this is a USB Hub device? Just for isolation purposes.

uhub1 at uhub0 port 1 configuration 1 interface 0 "Standard Microsystems
product 0x9514" rev 2.00/2.00 addr 2

I noticed that every time I rebooted this system my USB barcode scanner
would beep for the second time when hitting this particular device as shown
in the dmesg. The beep indicates that the barcode scanner is re-attached
again in the USB port. During reboot beep happens twice. In my Raspberry Pi
4B this behavior doesn't  occur as beep only happens once.

Still the complete dmesg output here
https://marc.info/?l=openbsd-arm&m=159642147427137&q=p3.

Thanks and best regards,
Archimedes

Reply via email to