OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> How Do I Export Characters From Python To Opie?, My IR keyboard driver needs wheels!
post Jun 4 2007, 03:34 PM
Post #1

Group: Members
Posts: 32
Joined: 29-October 04
Member No.: 5,265

A few months ago, I purchased a Think Outside Universal IR Keyboard to replace my Targus IR keyboard. It was so compact, I couldn't help but want to keep it, even though I couldn't get it to work! I couldn't get kbdd or zkbdd working, so that meant I had to write my own driver.

And I did! sort-of. I wrote it in Python, and it nicely reads all the scancodes. It requires python-pyserial to work (which, in turn, requires python-fcntl). Unfortunately, all it can do is print output to the screen, because I don't know how to "push" data to the operating system.

Is there a python module that will allow me to do this?

In kbdd and zkbdd, the method used is "uinput", but I suspect that one of the reasons it doesn't work on Collie is because it's my understanding that "uinput" doesn't work well under the 2.4 kernel.

My preference, however, would be to emit a Qt signal, as done in opie-jumpx and irk (the one that allows me to use Targus from OPIE's input devices); to do this, however, I would have to load a python script as an input method.

My greatest concern is that, to use either method, I would have to use C or C++. Besides liking Python (it's especially easy to work with!), I don't have the time to figure out why I can't get BitBake to work. (I've already spent a couple of weeks trying to figure that out! blink.gif )

I have attached my source code (you will need to remove the ".txt" extensions after downloading it); it will need to be drastically rewritten once I can use it as an input method. It's designed to be flexible, too, so that I could easily convert it to Dvorak when it's convenient to do so. laugh.gif

Additionally, this information can be used for those who want to extend kbdd or zkbdd to this keyboard, assuming, of course, that these programs work for you wink.gif
Attached File(s)
Attached File  pykbd4.py.txt ( 2.56K ) Number of downloads: 14
Attached File  stowaway4.py.txt ( 7.5K ) Number of downloads: 14
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th August 2017 - 03:33 AM