Re: [9fans] Re: 9phone
ron minnich <[email protected]> Mon, 24 Mar 2025 09:13:33 -0700
| Newsgroups | gmane.os.9front.general,gmane.os.plan9.general |
|---|---|
| Message-ID | <CAP6exYK+U4aRkDfWit-wiu_p8+B708i-53CkgvDhGKOSpnaWvA@mail.gmail.com> |
--0000000000007a8c0d063118e3b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I like your raw data from kernel idea, putting interesting processing in user spaces makes bug fixes ever so much easier :-) On Mon, Mar 24, 2025 at 7:09=E2=80=AFAM Dave MacFarlane via 9fans <9fans@9f= ans.net> wrote: > Quoth Dan Cross <[email protected]>: > > The Bitsy kernel (for the Compaq iPaq) supported the touch screen on > > that device. I don't recall that it worked very well, but it did > > work. You may look at using that as a starting point for the touch > > panel part. > > > > The touchscreen is the easiest part, since mousein can already take > absolute coordinates. I've already written that part and use the > volume keys as button 2&3. It works okay. > > I've been using bitsy/keyboard -n with the touch screen and it works > fine for bootstrapping but not well by modern standards. It's easy to > fat-finger things because there's too many keys on screen and swipe > input would be nice. It also won't disable itself when the proximity > sensor detects something close once that's exposed. > > > > > For many of the sensors you may be in more or less uncharted > > territory; the touch screen may look something like the Bitsy. My > > sense is that as long as you emit some reasonable data from those > > devices you're ok, as presumably most of the interesting processing > > would happen in userspace. If it were me, I'd start prototyping with > > what you have above, and then fine tune your data formats as you get a > > sense for what you really need. > > > > - Dan C. > > The "most of the interesting processing would happen in userspace" bit > is why I'm considering returning the raw sensor values rather than > doing the work of converting to metric/real world values from the > driver but I could be convinced that's a bad idea. > > - Dave > > ------------------------------------------ > 9fans: 9fans > Permalink: > https://9fans.topicbox.com/groups/9fans/Tdba6baeaeca1f668-M4c6ed87258794c= 2eb6f7e993 > Delivery options: https://9fans.topicbox.com/groups/9fans/subscription > --0000000000007a8c0d063118e3b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I like your raw data from kernel idea, putting interesting= processing in user spaces makes bug fixes ever so much easier :-)</div><br= ><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D= "gmail_attr">On Mon, Mar 24, 2025 at 7:09=E2=80=AFAM Dave MacFarlane via 9f= ans <<a href=3D"mailto:[email protected]">[email protected]</a>> wrote:<b= r></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex= ;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,20= 4,204);padding-left:1ex">Quoth Dan Cross <<a href=3D"mailto:crossd@gmail= .com" target=3D"_blank">[email protected]</a>>:<br> > The Bitsy kernel (for the Compaq iPaq) supported the touch screen on<b= r> > that device.=C2=A0 I don't recall that it worked very well, but it= did<br> > work.=C2=A0 You may look at using that as a starting point for the tou= ch<br> > panel part.<br> ><br> <br> The touchscreen is the easiest part, since mousein can already take<br> absolute coordinates.=C2=A0 I've already written that part and use the<= br> volume keys as button 2&3.=C2=A0 It works okay.<br> <br> I've been using bitsy/keyboard -n with the touch screen and it works<br= > fine for bootstrapping but not well by modern standards.=C2=A0 It's eas= y to<br> fat-finger things because there's too many keys on screen and swipe<br> input would be nice.=C2=A0 It also won't disable itself when the proxim= ity<br> sensor detects something close once that's exposed.<br> <br> > <br> > For many of the sensors you may be in more or less uncharted<br> > territory; the touch screen may look something like the Bitsy.=C2=A0 M= y<br> > sense is that as long as you emit some reasonable data from those<br> > devices you're ok, as presumably most of the interesting processin= g<br> > would happen in userspace.=C2=A0 If it were me, I'd start prototyp= ing with<br> > what you have above, and then fine tune your data formats as you get a= <br> > sense for what you really need.<br> > <br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0- Dan C.<br> <br> The "most of the interesting processing would happen in userspace"= ; bit<br> is why I'm considering returning the raw sensor values rather than<br> doing the work of converting to metric/real world values from the<br> driver but I could be convinced that's a bad idea.<br> <br> - Dave<br> <br> ------------------------------------------<br> 9fans: 9fans<br> Permalink: <a href=3D"https://9fans.topicbox.com/groups/9fans/Tdba6baeaeca1= f668-M4c6ed87258794c2eb6f7e993" rel=3D"noreferrer" target=3D"_blank">https:= //9fans.topicbox.com/groups/9fans/Tdba6baeaeca1f668-M4c6ed87258794c2eb6f7e9= 93</a><br> Delivery options: <a href=3D"https://9fans.topicbox.com/groups/9fans/subscr= iption" rel=3D"noreferrer" target=3D"_blank">https://9fans.topicbox.com/gro= ups/9fans/subscription</a><br> </blockquote></div> --0000000000007a8c0d063118e3b2--