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