<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 4, 2016 at 12:43 PM, Ran Shalit <span dir="ltr"><<a href="mailto:ranshalit@gmail.com" target="_blank">ranshalit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Dec 4, 2016 at 12:33 PM, Greg KH <span dir="ltr"><<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="m_-8024156049246857673gmail-">On Sat, Dec 03, 2016 at 07:18:50PM +0200, Ran Shalit wrote:<br>
><br>
><br>
> On Sat, Dec 3, 2016 at 3:15 PM, Greg KH <<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>> wrote:<br>
><br>
> On Sat, Dec 03, 2016 at 02:43:30PM +0200, Ran Shalit wrote:<br>
> > Hello,<br>
> ><br>
> > Is there some way to disable input event device ?<br>
> > Maybe a way to disable its irq usage ?<br>
> ><br>
> > I actually rather do that from shell, not from kernel, because the kernel<br>
> > source is not available, and I thought that issue is also relevant in the<br>
> > forum.<br>
><br>
> But the Linux kernel source is available, why not just not load the<br>
> driver for the device you are wanting to not be "connected"?<br>
><br>
><br>
> Hi Greg,<br>
><br>
> I am trying to do that from android, in a device where the kernel source is not<br>
> available :( .....<br>
> By the way, I think the company (No.1 for D6 smartwatch) should supply the<br>
> source because kernel is GPL , Right ?<br>
<br>
</span>Yes it is, please contact the company about this to get the source code<br>
for your device. If you have problems with this, please try the Linux<br>
Foundation's form for this type of thing at:<br>
<a href="https://www.linuxsources.org/content/open-compliance-directory-request-contact-information" rel="noreferrer" target="_blank">https://www.linuxsources.org/c<wbr>ontent/open-compliance-directo<wbr>ry-request-contact-information</a><br>
as it works really well.<br>
<span class="m_-8024156049246857673gmail-"><br>
> Therefore I try to achieve it by doing some actions in shell.<br>
<br>
</span>Disconnect the device from the driver by writing the device id to the<br>
"unbind" sysfs file for the driver that is controling the device.<br>
Examples of how to do this in detail should be on the web somewhere, I<br>
think I wrote a <a href="http://lwn.net" rel="noreferrer" target="_blank">lwn.net</a> article about this a long time ago...<br>
<br></blockquote><div><br></div></div></div><div>Hi,</div><div><br></div><div>Thanks for the good suggestions. I'll try both.</div><div><br></div><div>I found your article here:</div><div><a href="https://lwn.net/Articles/143397/" target="_blank">https://lwn.net/Articles/<wbr>143397/</a></div><div><br></div><div>Regards,</div><div>Ran</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
good luck!<br>
<br>
greg k-h<br>
</blockquote></div><br></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>Just wanted to update the the unbind method (for disabling device such as touch screen) works perfectly with linux in general, and in android Linux too !</div><div><br></div><div>Many Thanks,</div><div>Ran </div></div><br></div></div>