Cool! I'm looking forward to trying this when I get back to my XO....<div><br></div><div>I wonder though, is there a reason this has to be a separate daemon, and can't just being part of the HPGK driver with a /sys/... interface for control?<br>
<br></div><div>Best,</div><div>Wade</div><div><br><div class="gmail_quote">On Wed, Mar 4, 2009 at 4:45 PM, <span dir="ltr"><<a href="mailto:pgf@laptop.org">pgf@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
sorry about that. replying to add a subject...<br>
<br>
i wrote:<br>
><br>
> last week i announced a daemon that would activate the grab keys<br>
> on the XO keyboard.<br>
><br>
> a day or two later there was a thread about how it would be nice<br>
> if the action of the touchpad rotated with the screen (in much the<br>
> same way that the dpad keys do).<br>
><br>
> since my daemon was already looking at every input event, it seemed<br>
> a natural place to implement the rotation feature.<br>
><br>
> and after doing that, the name seemed like it should change.<br>
><br>
> so, announcing "olpc-kbdshim".<br>
><br>
> source:<br>
> <a href="http://dev.laptop.org/git?p=users/pgf/olpc-kbdshim" target="_blank">http://dev.laptop.org/git?p=users/pgf/olpc-kbdshim</a><br>
><br>
> rpm:<br>
> <a href="http://dev.laptop.org/~pgf/rpms/olpc-kbdshim-1-1.i386.rpm" target="_blank">http://dev.laptop.org/~pgf/rpms/olpc-kbdshim-1-1.i386.rpm</a><br>
><br>
> after installing the rpm you need to fully reboot your laptop to<br>
> get the plumbing set up properly.<br>
><br>
> the rpm includes a new command "olpc-rotate" which takes care of<br>
> all the mechanics of screen and touchpad rotation. since sugar<br>
> (currently) handles this key binding, the rpm postinstall script<br>
> patches /usr/share/sugar/shell/view/keyhandler.py so that it<br>
> invokes os.system("olpc-rotate") _instead_ of its current builtin<br>
> behavior. separating it out like this makes olpc-kbdshim and<br>
> olpc-rotate more useful for non-sugar UIs. i wrote the sugar<br>
> patch so that it won't break if you uninstall the olpc-kbdshim<br>
> rpm -- sugar will take over the rotate function again. also,<br>
> though i haven't tried it on today's brand-new sugar 0.84 (good<br>
> work everyone!), a look at the current keyhandler.py says the patch<br>
> should still apply correctly.<br>
><br>
> the topic of ebook-mode touchpad usage came up the other day too.<br>
> while i didn't create any visible UI support for it, the daemon<br>
> will put the touchpad in and out of ebook-mode (which means,<br>
> reflecting it on both x and y axes) using "olpc-rotate -e/-n"<br>
><br>
> please let me know what you think...<br>
><br>
> paul<br>
><br>
> p.s. btw, the daemon isn't really very olpc-specific. i've been<br>
> running it on my thinkpad all week, in order to get the use of<br>
> the grab key scrolling. the thinkpad doesn't have Windows keys<br>
> (which is what the XO grab keys are), but it turns out the blue<br>
> Fn key in the corner can be used as a modifier, so that plus my<br>
> trackstick gives 2D scrolling -- it came in very handy for<br>
> looking at the bootchart images this morning.<br>
><br>
<br>
=---------------------<br>
paul fox, <a href="mailto:pgf@laptop.org">pgf@laptop.org</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</blockquote></div><br></div>