maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Xkbd *Diablo* (https://talk.maemo.org/showthread.php?t=35841)

Addison 2009-12-12 14:12

Re: Xkbd *Diablo*
 
I think I've finally got it! Joy!

Thanks a bunch Nick for basically being the only one who stuck around on this. :)

Turns out when you disable and then reenable the hildon keyboard, it defaults to a different interpretation of the geometry and symbols input it receives.

Quote:

~ $ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us" };
xkb_geometry { include "pc(pc105)" };
};
~ $ gconftool-2 --set -t bool /system/osso/af/keyboard-attached true && sleep 2 && gconftool-2 --set -t bool /system/osso/af/keyboard-attached false
~ $ setxkbmap -print xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "nokia_vndr/su-8w(us)" };
xkb_geometry { include "pc(pc104)" };
};
Quite honestly, all that was needed was a simple change in the rules of that /usr/share/X11/xkb/rules/base file so it wouldn't weird out on us anymore.

So right now, all virtual keys are working along with all of the hardware buttons as well.

I'll test my keyboards over the next day or two, and if there's no issues, I'll post an easy solution along with that new keyboard layout to be used for Garnet VM. :)

JustNick 2009-12-12 20:04

Re: Xkbd *Diablo*
 
Quote:

Originally Posted by Addison (Post 424388)
I think I've finally got it! Joy!

Thanks a bunch Nick for basically being the only one who stuck around on this. :)

Turns out when you disable and then reenable the hildon keyboard, it defaults to a different interpretation of the geometry and symbols input it receives.



Quite honestly, all that was needed was a simple change in the rules of that /usr/share/X11/xkb/rules/base file so it wouldn't weird out on us anymore.

So right now, all virtual keys are working along with all of the hardware buttons as well.

I'll test my keyboards over the next day or two, and if there's no issues, I'll post an easy solution along with that new keyboard layout to be used for Garnet VM. :)

Lol, with Christmas approaching I wasn't able to do much after reflashing my tablet (man, how come there are always more presents to make than money to spend?), anyway I'll check this night your latest theory and give you an update as soon as I wake up tomorrow ;)
Thanks for your patience and all the passion you're putting into this ;)

GeraldKo 2009-12-12 22:03

Re: Xkbd *Diablo*
 
Quote:

Originally Posted by JustNick (Post 424748)
how come there are always more presents to make than money to spend?

When you have a username JustNick, what do you expect?? :)

Addison: for someone who isn't up to speed on this project or xkbd (that is, me), just what do I need to do to try it out and give you feedback? Is there a .deb for starters, and then some commands in xterm, or what?

Addison 2009-12-13 05:24

Re: Xkbd *Diablo*
 
1 Attachment(s)
All right, this is what I have so far.

Download, unzip, and put the Keyboards folder on your external memory card (media/mmc2/).
Attachment 5033

This seems extremely safe to use, so there should be no worries in testing any of it.

Open up the Xkbd install.note file in the folder, edit, select all, copy, open Xterm, edit, then paste.

That's it.

I don't see any reason why you would need to reboot, but if you ever do, run this command in Xterm before launching Xkbd again.

gconftool-2 --set -t bool /system/osso/af/keyboard-attached true && sleep 2 && gconftool-2 --set -t bool /system/osso/af/keyboard-attached false

Only possible issue might be if you try and use a BT keyboard, but I'm not all too sure about this. The other thing is if you want to use a Xkbd layout that's created for a different language.

Anyway, there's a backup of that base file in the keyboards folder.

The feedback I'm most hoping for is the one to be used for Garnet VM.

You need to have screen rotation installed on your tablet.

So rotate the screen and run the Garnet script at the bottom of the Keyboards.note file.

I'm looking for a better layout of the keys on this. The function keys, insert, delete, page up and page down don't do anything in Garnet. Also, the biggest thing for me is to put up, down, left and right directional arrows keys somewhere. Those keys work perfectly in my med apps, just need to figure out where to put them.

Any suggestions would be welcomed.

So test away and post back if you have any ideas on a better layout for that Garnet VM keyboard.

Cheers!

Addison 2009-12-13 05:50

Re: Xkbd *Diablo*
 
Sorry guys, I forgot to include some screen shots so you can get a baseline of what this should look like. :)

http://img683.imageshack.us/img683/6...9121300370.png

http://img209.imageshack.us/img209/2106/flatqz5.png

http://img360.imageshack.us/img360/5018/flat2sr6.png

http://img156.imageshack.us/img156/3...8122401ha4.png

I'll look into installing the newer version found here and see what all can be done with it.
Xkbd 0.8.16

Addison 2009-12-17 09:27

Re: Xkbd *Diablo*
 
Well, after several days of messing around with this alternative solution, I've not experience a single error, loss in hardware key function, no stylus weirdness and certainly no need for a reboot.

Joy!

Okay, simple request. Anyone will do. You can be an ugly dipturd for all I care. :)

Download the source file for this.
Xkbd 0.8.15m

Remove the .deb extension.

Open up the file kb.c in the src folder.

About 200 lines down change this line from
kb->key_delay_repeat = 10;
to
kb->key_delay_repeat = 45;

Then recompile and post the .deb

This will stop the keys being pressed from unnecessarily repeating like they do.

This would be huge for me if someone could get it done.

Here's to hoping. :)

Addison 2009-12-18 04:08

Re: Xkbd *Diablo*
 
ArminS, would you be willing to compile this for us?

You've done it once before so it shouldn't take you much time at all.

Addison 2009-12-18 08:39

Re: Xkbd *Diablo*
 
Ukki, in all of his great glory, did this favor request.

After initial testing, I'd that say we finally have a winner! :D

Right now, this is only meant for N800 users.

There's probably a way to problem solve on how to use it with the other tablets but it might be complicated since I don't own either one of the others.

The only thing I'm really waiting on is Bunanson, who I was hoping to help me configure the layout for the Garnet keyboard.

I'll probably go with invisible scroll bars on both the sides of it.

Anyway, I'll try and post an easy setup for this within a couple of days with an update on it all. :)

JustNick 2009-12-18 09:04

Re: Xkbd *Diablo*
 
Man you're too fast for my standards... I didn't have the time to test a possible solution you proposed two pages ago and BAM I suddenly find you've all fixed by yourself! :D
Great work, really, you're showing to all of us some real commitment!

Addison 2009-12-18 09:14

Re: Xkbd *Diablo*
 
If you have a N800 tablet, I'd say this solution works just as good as a hildon keyboard.

This opens up so many new opportunities that weren't there before.

Scumm, Dosbox, Telnet, SSH, Garnet, etc.

It's all working and no more repeated keys to boot.

Sorry if I seem overexcited. But I've been waiting much too long for this. :D

Addison 2009-12-19 10:47

Re: Xkbd *Diablo*
 
Okay, first post is updated with what I consider to be the "thank God it's finally over" release. :)

Any posts after that which complains of junk not working can be safely ignored since I have yet experienced a single problem over the past several days with this new solution.

I hope everyone here who still has a N800 makes good use of this like I have.

And I truly mean that for both of you. *lol*

GeraldKo 2009-12-19 16:18

Re: Xkbd *Diablo*
 
Addison,

As half the multitude, I'd like to give you my thanks and tell you I've been impressed with your vigor and dedication. I haven't been any help as I don't use any of the programs for which you use Xkbd.

But when I get home to Seattle in January, I'm going to try installing a Macintosh emulator and some old System 7 applications, and I'll be giving Xkbd a workout then. Thanks for making that feasible.

Pushwall 2009-12-22 02:19

Re: Xkbd *Diablo*
 
Addison, this rocks,....totally unbelievable that this finally works! You're my hero and I worship you and your greatness!! :D Seriously, this is truly amazing and I thank you for your patience on figuring this out!

Addison 2009-12-23 04:46

Re: Xkbd *Diablo*
 
Thanks for the compliments Push.

I'm very happy with how it turned out as well.

If you have slide rotate installed, that Garnet keyboard is definitely kicking it. :D

I can type in new entries and search through my various databases in record time now. Also, the invisible arrow keys are a very nice addition as well.

A quick mention, double tapping the shift key makes it turn into Caps Lock.

Sliding the stylus up on a key produces a capital letter as well.

If you can't shake off the keys going all caps, hold the shift key for about one second and then release. That gives about a 50/50 chance of correcting this issue.

JustNick 2010-01-18 21:00

Re: Xkbd *Diablo*
 
Ehi Addison, great work! :D
I'm sorry I haven't updated you for a while, I had a bad Christmas present when my 2 year young battery decided to die on me, and it's been just 4 days since my replacement arrived... d'oh!
I fiddled with your files (btw /media/mmc2 is internal card for me, /media/mmc1 is the external SD slot on N800) and noticed that you are using an older libxpm4, but the libxpm4_3.5.6-2osso1_armel.deb works perfectly too: is there a particular reason you chose the older one?
I tried xkbd 0.8.16 too, works fine, but on GVM the keyboard doesn't take up the full width of the screen, there's some space left blank on the left side that corresponds exactly to the size of the maemo menu while screen is rotated...
Now I just have to check your keyboards in dosbox...
Thanks again dude ;)

Addison 2010-01-19 03:48

Re: Xkbd *Diablo*
 
Heya Nick!

I just got a few batteries myself since I have no intention of letting go of my N800 anytime soon.

The reason for the older version of libxpm4 is because I didn't know any better. :)

Installing xkbd 0.8.16 is a mistake on your part.

It doesn't feature Minimize., Maximize or Exit functions. It also doesn't support the geometry command either hence the weirdness with the Garnet keyboard.

Just open up the Xkbd install notes file, select all, copy then paste it in Xterm and you'll be good.

If you need any help with Dosbox, I'm pretty good with getting great performance and features with that as well.

JustNick 2010-01-19 08:10

Re: Xkbd *Diablo*
 
Quote:

Originally Posted by Addison (Post 481262)
Heya Nick!

I just got a few batteries myself since I have no intention of letting go of my N800 anytime soon.

The reason for the older version of libxpm4 is because I didn't know any better. :)

Installing xkbd 0.8.16 is a mistake on your part.

It doesn't feature Minimize., Maximize or Exit functions. It also doesn't support the geometry command either hence the weirdness with the Garnet keyboard.

Just open up the Xkbd install notes file, select all, copy then paste it in Xterm and you'll be good.

If you need any help with Dosbox, I'm pretty good with getting great performance and features with that as well.

I have the same feelings toward my tablet :)
xkbd 0.8.16 was just an experiment, given the fact that all your procedure takes less than two minutes it would have been a crime not to try it :D
I'm using latest libxpm4, so far so good, if you want to try it by yourself you can find a link a couple of posts after your first one in this thread ;)
Rubybox and Dosbox work both when using the mapper72 file, finally no dead Dpad or missing keypresses :D
Thanks again ;)

Addison 2010-01-20 02:30

Re: Xkbd *Diablo*
 
Hey Nick.

One thing you'll need to do after downloading the xkbd layout files from Rubybox is to replace them with the newer ones otherwise all the letters will be capital.

They go in:
/home/user/.rubybox/.xkbd_layouts/

No need to replace all of them, just the ones you'll be using.

For me, I only copied over Rightfull.xkbd to that directory.

I think I've got another idea about the weirdnes that xkbd produces.

It will probably take a week to test it out but I'll post my results either way.


All times are GMT. The time now is 09:04.

vBulletin® Version 3.8.8