maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   The Other Half (https://talk.maemo.org/forumdisplay.php?f=59)
-   -   Producing Qwerty OtherHalf --order counter: 75/75 --ordering closed (https://talk.maemo.org/showthread.php?t=91535)

Vlad_on_the_road 2014-01-13 12:13

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by dirkvl (Post 1404344)
my faculty has three 3d-printers, so will probably try that first when I have a design made

You could also try a nearby hackerspace (http://hackerspaces.org/wiki/Netherlands) if you are lucky enough to have one close to where you live. Who knows, you might meet interesting people there, skilled enough to help you :)

dirkvl 2014-01-13 12:20

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by Vlad_on_the_road (Post 1406080)
You could also try a nearby hackerspace (http://hackerspaces.org/wiki/Netherlands) if you are lucky enough to have one close to where you live. Who knows, you might meet interesting people there, skilled enough to help you :)

Thanks! I have already confirmed that I can print on my faculty! I can just hand of an usb-stick and they do the rest :)

kimmoli 2014-01-13 12:52

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by dirkvl (Post 1406078)
On the software side there is a lot of progress, but still a lot to be done. Kimmo, can you perhaps elaborate on this? Maybe there a parts of the software other people can help with!

I did work on this during weekend, but it seems that i have to wait official support (next SDK release?) from Jolla to get the interrupt line working. I tried to write my own kernel module driver for it, but i wasn't able to get the kernel compiled (needed to create correct Module.symvers -file). Otherwise the module builds, and modinfo shows correct (afaik) vermagic etc., but even modprobe --force does not start it. :confused:

I need this also for my other project to get interrupt from proximity sensor.

dirkvl 2014-01-13 13:40

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by kimmoli (Post 1406090)
I did work on this during weekend, but it seems that i have to wait official support (next SDK release?) from Jolla to get the interrupt line working. I tried to write my own kernel module driver for it, but i wasn't able to get the kernel compiled (needed to create correct Module.symvers -file). Otherwise the module builds, and modinfo shows correct (afaik) vermagic etc., but even modprobe --force does not start it. :confused:

I need this also for my other project to get interrupt from proximity sensor.

Okay! And the keyboard library with all the keys and combo's with modifiers? Is that something that can be developed separately?

rainisto 2014-01-13 15:34

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by kimmoli (Post 1406090)
I did work on this during weekend, but it seems that i have to wait official support (next SDK release?) from Jolla to get the interrupt line working. I tried to write my own kernel module driver for it, but i wasn't able to get the kernel compiled (needed to create correct Module.symvers -file). Otherwise the module builds, and modinfo shows correct (afaik) vermagic etc., but even modprobe --force does not start it. :confused:

I need this also for my other project to get interrupt from proximity sensor.

I might have working kernel compilation env (disclaimer: havent tested it for a while), so if you need some module to be compiled, then you could try pinging me.

kimmoli 2014-01-13 15:43

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by rainisto (Post 1406116)
I might have working kernel compilation env (disclaimer: havent tested it for a while), so if you need some module to be compiled, then you could try pinging me.

ooOo... My first attempt is just a Hello module. But i was "so close" with my own environment... (Tried to consult my friends about it and they just wondered why i have sb2 in another vm ...?)

Raim 2014-01-13 16:12

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by kimmoli (Post 1406090)
I did work on this during weekend, but it seems that i have to wait official support (next SDK release?) from Jolla to get the interrupt line working.

Following the previous posts, there is a toh-event input driver in the kernel source.

However, from reading in the source it seems like the toh-event driver only handles gpio_cover/irq_cover for attaching/detaching TOH at the moment. The cover_irq/irq_int is not registered to an interrupt handler...

I guess they did not do it yet as you probably want some way to control whether you want to get a falling or rising edge or both as an interrupt.

rainisto 2014-01-13 16:51

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by kimmoli (Post 1406121)
ooOo... My first attempt is just a Hello module. But i was "so close" with my own environment... (Tried to consult my friends about it and they just wondered why i have sb2 in another vm ...?)

Just tested building kernel in MerSDK, and seems to work, mb script didnt complain and it generated kernel rpm packages. But yes my compile env is a bit different than normal users would use, I havent tried compiling yet inside vm.

kjokinie 2014-01-13 17:03

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by kimmoli (Post 1406090)
I did work on this during weekend, but it seems that i have to wait official support (next SDK release?) from Jolla to get the interrupt line working. I tried to write my own kernel

You can get INT line interrupts to userspace via the kernel gpio sysfs. Something along the lines of:

# Export INT gpio 67 to the sysfs
echo 67 > /sys/class/gpio/export
# Configure INT gpio67 to generate events on falling edge.
echo falling > /sys/class/gpio/gpio67/edge
# Check current value
cat /sys/class/gpio/gpio67/value

Then you can use poll() to get notified of events. Use POLLPRI event type.

Hope this helps.

kimmoli 2014-01-13 17:13

Re: Building OtherHalf keyboard prototype --exciting times! last call to jump in and help!
 
Quote:

Originally Posted by kjokinie (Post 1406139)
Hope this helps.

It will !! thanks for this. I was thinking that there must be such method to do this. 67 was the magic.

@dirkvl - i will code later, i'll send you updated daemon and app.


All times are GMT. The time now is 00:55.

vBulletin® Version 3.8.8