touch screen

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
Mikemk
Member
Member
Posts: 409
Joined: Sat Oct 22, 2011 12:27 pm

touch screen

Post by Mikemk »

Since my OS is geared toward tablets, I'd like to implement touch screen functionality. On intel, is there a standard/semistandard method of doing this, or would it vary based on screen/manufacturer/something else?

I have a feeling that it has to do with serial ports or usb, so I may have to get those set up first.
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
User avatar
trinopoty
Member
Member
Posts: 87
Joined: Wed Feb 09, 2011 2:21 am
Location: Raipur, India

Re: touch screen

Post by trinopoty »

Touchscreen is a class of HID (Human Interface Device). More specifically, it is an absolute pointing device that sort of works like the mouse.
It may have a dedicated PCI device or may be connected by USB depending on the manufacturer.
Always give a difficult task to a lazy person. He will find an easy way to do it.
rdos
Member
Member
Posts: 3276
Joined: Wed Oct 01, 2008 1:55 pm

Re: touch screen

Post by rdos »

Touch screens are often different between manufacturers. Some touch-screens based on USB could be HID implementations, but even if they are, the HID specification is extremely complex. Other USB implementations could rely on USB-to serial converters, that in the end uses a proprietary format.

For supporting a specific touch-screen on a specific computer, check an existing OS installation for which driver is used, and try to get the spec. In my experience, several manufacturers will send specifications for serial-based touch screens.
Mikemk
Member
Member
Posts: 409
Joined: Sat Oct 22, 2011 12:27 pm

Re: touch screen

Post by Mikemk »

OK, thank you. About reverse engineering a driver, what legal/licensing stuff would I have to go through for that for my OS to remain closed source?
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: touch screen

Post by bewing »

Always try one of the BSD flavors first -- those have no real licensing issues.
Mikemk
Member
Member
Posts: 409
Joined: Sat Oct 22, 2011 12:27 pm

Re: touch screen

Post by Mikemk »

Which is the public domain one? Is that BSD?
And thank you.
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
DennisCGc
Posts: 11
Joined: Fri Apr 22, 2005 11:00 pm

Re: touch screen

Post by DennisCGc »

m12 wrote:Which is the public domain one? Is that BSD?
Neither are. The BSD style licenses are permissive licenses, allowing you to do almost anything provided you retain their copyright notices in source and binary form. Check http://opensource.org/licenses/BSD-3-Clause for more information on what the license actually says.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: touch screen

Post by Combuster »

m12 wrote:About reverse engineering a driver, what legal/licensing stuff would I have to go through
In practice, very little. Reverse engineering is all about separating the functionality (not copyrightable) from the expression in the form of source code or binary (copyrightable), then discarding the latter.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
AbstractYouShudNow
Member
Member
Posts: 92
Joined: Tue Aug 14, 2012 8:51 am

Re: touch screen

Post by AbstractYouShudNow »

For touch screens, I think you can take a look at how Android does that. It is based on Linux, Open Source (AFAIK), and has to deal much with touch screens :)
Mikemk
Member
Member
Posts: 409
Joined: Sat Oct 22, 2011 12:27 pm

Re: touch screen

Post by Mikemk »

AbstractYouShudNow wrote:For touch screens, I think you can take a look at how Android does that. It is based on Linux, Open Source (AFAIK), and has to deal much with touch screens :)
I've been trying to download the source for a couple months. VERY slow and limited access internet in rural areas
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
Post Reply