NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: touch screen support



On Sun, 2023-05-28 at 23:22 +0000, Taylor R Campbell wrote:
> > Date: Sun, 28 May 2023 23:57:38 +0100
> > From: Dave Tyson <dtyson%anduin.org.uk@localhost>
> > 
> > [    60.731037] uhidev0 at uhub0 port 1 configuration 1 interface 0
> > [    60.731037] uhidev0: wch.cn (0x1a86) USB2IIC_CTP_CONTROL
> > (0xe5e3),
> > rev 0.01/0.00, addr 2, iclass 3/0
> > [    60.751042] uhidev0: 3 report ids
> > [    60.751042] uts0 at uhidev0 reportid 1
> > [    60.751042] uts0: autoconfiguration error: touchscreen has no
> > range
> > report
> > [    60.761045] uhid0 at uhidev0 reportid 2: input=0, output=0,
> > feature=1
> > [    60.771044] uhid1 at uhidev0 reportid 3: input=0, output=0,
> > feature=256
> 
> Can you:
> 
> 1. drop into the bootloader prompt,
> 2. do `userconf disable uts' at the bootloader prompt,
> 3. boot,
> 4. confirm the device shows up as uhid(4) instead of uts(4) now, and
> 5. share `usbhidctl -f /dev/uhidN -v -r' output?
> 
> Also maybe:
> 
> 6. file a PR to track this?

Hi, thanks for the quick response. There isn't a bootloader for the rpi
zero 2 W as it directly boots the netbsd.img file on the MSDOS
partition. I compiled a custom kernel without uts*:

[     2.232302] uhidev0: wch.cn (0x1a86) USB2IIC_CTP_CONTROL (0xe5e3),
rev 0.01/0.00, addr 2, iclass 3/0
[     2.242305] uhidev0: 3 report ids
[     2.252305] uhid0 at uhidev0 reportid 1: input=51, output=0,
feature=0
[     2.252305] uhid1 at uhidev0 reportid 2: input=0, output=0,
feature=1
[     2.262308] uhid2 at uhidev0 reportid 3: input=0, output=0,
feature=256
armv7# usbhidctl -f /dev/uhid0 -v -r
Report descriptor:
Collection page=Digitizer usage=Touch_Screen
Collection page=Digitizer usage=Finger
Input   size=1 count=1 page=Digitizer usage=Tip_Switch, logical range
0..1
Input   size=1 count=7 Const page=0x0000 usage=0x0000, logical range
0..1
Input   size=8 count=1 page=Digitizer usage=Contact_Identifier, logical
range 0..1
Input   size=16 count=1 page=Generic_Desktop usage=X, logical range
0..2048, physical range 0..2169, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=Y, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Digitizer usage=Width, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
End collection
Collection page=Digitizer usage=Finger
Input   size=1 count=1 page=Digitizer usage=Tip_Switch, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=1 count=7 Const page=0x0000 usage=0x0000, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=8 count=1 page=Digitizer usage=Contact_Identifier, logical
range 0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=X, logical range
0..2048, physical range 0..2169, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=Y, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Digitizer usage=Width, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
End collection
Collection page=Digitizer usage=Finger
Input   size=1 count=1 page=Digitizer usage=Tip_Switch, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=1 count=7 Const page=0x0000 usage=0x0000, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=8 count=1 page=Digitizer usage=Contact_Identifier, logical
range 0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=X, logical range
0..2048, physical range 0..2169, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=Y, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Digitizer usage=Width, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
End collection
Collection page=Digitizer usage=Finger
Input   size=1 count=1 page=Digitizer usage=Tip_Switch, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=1 count=7 Const page=0x0000 usage=0x0000, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=8 count=1 page=Digitizer usage=Contact_Identifier, logical
range 0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=X, logical range
0..2048, physical range 0..2169, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=Y, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Digitizer usage=Width, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
End collection
Collection page=Digitizer usage=Finger
Input   size=1 count=1 page=Digitizer usage=Tip_Switch, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=1 count=7 Const page=0x0000 usage=0x0000, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=8 count=1 page=Digitizer usage=Contact_Identifier, logical
range 0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=X, logical range
0..2048, physical range 0..2169, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=Y, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Digitizer usage=Width, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
End collection
Collection page=Digitizer usage=Finger
Input   size=1 count=1 page=Digitizer usage=Tip_Switch, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=1 count=7 Const page=0x0000 usage=0x0000, logical range
0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=8 count=1 page=Digitizer usage=Contact_Identifier, logical
range 0..1, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=X, logical range
0..2048, physical range 0..2169, unit=0x11 exp=-2
Input   size=16 count=1 page=Generic_Desktop usage=Y, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
Input   size=16 count=1 page=Digitizer usage=Width, logical range
0..2048, physical range 0..1356, unit=0x11 exp=-2
End collection
Input   size=16 count=1 page=Digitizer usage=0x0056, logical range
0..65535, physical range 0..1356, unit=0x11 exp=-2
Input   size=8 count=1 page=Digitizer usage=Contact_Count, logical
range 0..127, physical range 0..1356, unit=0x11 exp=-2
Total   input size 51 bytes
Total  output size 0 bytes
Total feature size 0 bytes
armv7# usbhidctl -f /dev/uhid1 -v -r 
Report descriptor:
Feature size=8 count=1 page=Digitizer usage=Contact_Count_Maximum,
logical range 0..10, physical range 0..1356, unit=0x11 exp=-2
Total   input size 0 bytes
Total  output size 0 bytes
Total feature size 1 bytes
armv7# usbhidctl -f /dev/uhid2 -v -r 
Report descriptor:
Feature size=8 count=1 page=Microsoft usage=0x00c5, logical range
0..255, physical range 0..1356, unit=0x11 exp=-2
Feature size=8 count=1 page=Microsoft usage=0x00c5, logical range
0..255, physical range 0..1356, unit=0x11 exp=-2
Feature size=8 count=1 page=Microsoft usage=0x00c5, logical range
0..255, physical range 0..1356, unit=0x11 exp=-2
---- lots of identical lines deleted ----
Feature size=8 count=1 page=Microsoft usage=0x00c5, logical range
0..255, physical range 0..1356, unit=0x11 exp=-2
Feature size=8 count=1 page=Microsoft usage=0x00c5, logical range
0..255, physical range 0..1356, unit=0x11 exp=-2
Feature size=8 count=1 page=Microsoft usage=0x00c5, logical range
0..255, physical range 0..1356, unit=0x11 exp=-2
usbhidctl: Excessive collection ends

I'll get the corresponding info for the Samsung PC and file a couple of
pr's. I will also look at RVP's suggestion and try a corresponding
patch.

Cheers,
Dave


Home | Main Index | Thread Index | Old Index