[Sugar-devel] Disable the XO keyboard

Paul Fox pgf at laptop.org
Mon Mar 12 09:21:01 EDT 2012


danny wrote:
 > I'm thinking one solution for Augustin could be a small activity that had
 > two buttons.  One button would "Disable Keyboard" when clicked, which would
 > execute the commands you gave. The other would "Enable Keyboard".  Each
 > would just trigger the appropriate commands via os.system() .
 > 
 > Can a sugar activity being run off a thumbdrive make the changes required
 > in /sys/devices/platform/i8042/serio0? If so, this seems like a reasonable

well, writing to those sysfs nodes require root.  your Activity
could work if the commands run from os.system() were prefaced with
"sudo".  that would work for many, but not all, XO owners.

i think:
     # echo -n auto > bind_mode
     # echo -n reconnect > drvctl
might work.  the first one might be all that's necessary.

paul

 > solution. We could create and send the activity, he could load it on via
 > USB, copy and run it all using the touchpad. Won't have to type a thing!
 > 
 > Before I go experimenting with this though, I was hoping someone could let
 > me know what commands should be run to re-enable the keyboard!
 > 
 > Danny Iland
 > 
 > On Sun, Mar 11, 2012 at 11:20 AM, Paul Fox <pgf at laptop.org> wrote:
 > 
 > > walter wrote:
 > >  > On Sun, Mar 11, 2012 at 12:59 PM, Agustin Zubiaga Sanchez
 > >  > <aguz at sugarlabs.org> wrote:
 > >  > > Hello,
 > >  > > I've a XO with a broken keyboard (writes: ]]]]] steadily)
 > >  > > I have to wait a week to send to fix, and I thought I could connect an
 > >  > > external
 > >  > > keyboard so I have to disable the internal keyboard...
 > >  > >
 > >  > > ¿Somebody can help me to disable the XO keyboard?
 > >  >
 > >  > You don't need to disable the XO keyboard in order to use an external
 > >  > keyboard, but if the key is stuck, then you will probably have to
 > >  > disconnect the ribbon cable, which will also disable the touch pad. Do
 > >  > you have a USB mouse?
 > >
 > >
 > > hmm.  normally i would say to do this, to disable the keyboard:
 > >    # cd /sys/devices/platform/i8042/serio0
 > >    # echo -n manual > bind_mode
 > >    # echo -n none > drvctl
 > >
 > > but i think walter is right -- if there's a stuck key, you won't
 > > be able to run those commands.   unless you can ssh to the machine,
 > > of course.  :-)
 > >
 > > paul
 > >
 > >  >
 > >  > -walter
 > >  > >
 > >  > > Thanks!
 > >  > >
 > >  > > Sorry, my English isn't good...
 > >  > >
 > >  > > _______________________________________________
 > >  > > Sugar-devel mailing list
 > >  > > Sugar-devel at lists.sugarlabs.org
 > >  > > http://lists.sugarlabs.org/listinfo/sugar-devel
 > >  > >
 > >  >
 > >  >
 > >  >
 > >  > --
 > >  > Walter Bender
 > >  > Sugar Labs
 > >  > http://www.sugarlabs.org
 > >  > _______________________________________________
 > >  > Sugar-devel mailing list
 > >  > Sugar-devel at lists.sugarlabs.org
 > >  > http://lists.sugarlabs.org/listinfo/sugar-devel
 > >
 > > =---------------------
 > >  paul fox, pgf at laptop.org
 > >
 > > _______________________________________________
 > > Sugar-devel mailing list
 > > Sugar-devel at lists.sugarlabs.org
 > > http://lists.sugarlabs.org/listinfo/sugar-devel
 > >
 > >

=---------------------
 paul fox, pgf at laptop.org


More information about the Sugar-devel mailing list