maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   xkbd for X11 on screen input (https://talk.maemo.org/showthread.php?t=8114)

fakebanana 2007-12-28 19:41

Re: xkbd for X11 on screen input
 
I can get xkbd to install on OS2008, but it won't output the right keys. The character output when I press any key seems to vary between launches. I also get an error on launch: "Sorry - server Keyboard map doesn't contain either 2 or 4 KeySyms per Keycode - unsupported!"

I also installed xvkbd from the deb which was posted, and while it works better than xkbd, I can't seem to input any lower case characters. Could the two problems be related?

Answer:

It seems like having xmodmap installed threw things off. After I removed it and and rebooted, everything works fine.

L0cutus 2007-12-28 22:55

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by dblank (Post 116876)
I'll post some packages soon.
Edit: Here's xvkbd http://daveblank.com/N800/xvkbd_2.8-1_armel.deb
and matchbox-keyboard
http://daveblank.com/N800/matchbox-k....1-1_armel.deb

unfortunately installer say me 'not compatible' :(

dblank 2007-12-28 23:06

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by L0cutus (Post 116970)
unfortunately installer say me 'not compatible' :(

Try installing from the command line:
sudo gainroot (after installing becomeroot)
dpkg -i archive.deb

L0cutus 2007-12-28 23:40

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by dblank (Post 116978)
Try installing from the command line:
sudo gainroot (after installing becomeroot)
dpkg -i archive.deb

thanks,solved :)

linuxrebel 2007-12-29 20:49

Re: xkbd for X11 on screen input
 
having similar fun here with xkbd. Random character on keypress. Funny part is that it worked in the "beta" of OS2008. Along with a number of other things that worked better. I'm seriously thinking about dropping back to the beta all around.

That not withstanding, thanks to CME and others for the builds.

linuxrebel 2007-12-29 21:15

Re: xkbd for X11 on screen input
 
Got the shift function working with xvkbd. I edited /usr/share/applications/hildon/xvkbd.desktop (also remove the one with the ~ extension hildon hates that) Can't get the size working right since hildon lacks a full window manager, but if you modify the exec line to

Exec=/usr/bin/xvkbd -geometry 180x100 -compact -always-on-top -minimizable

Close and then start the xvkbd you'll find that although the characters on the keyboard don't change (they always show uppercase) they do change in function. The problem with the only uppercase seems to be that Nokia has removed the standard X fonts (they ones that normally no one uses and so there is a need to put something in it's place working on the correct usage of the -font switch now to see if I can get Sans or Monospace to work instead.

bluesubaru 2008-02-10 23:23

Re: xkbd for X11 on screen input
 
I tried installing xvkbd from the command line but got:

Nokia-N800-50-2:/media/mmc1/Folder/Installs# dpkg -i xvkbd_2.8-1_armel.deb
Selecting previously deselected package xvkbd.
(Reading database ... 18702 files and directories currently installed.)
Unpacking xvkbd (from xvkbd_2.8-1_armel.deb) ...
dpkg: dependency problems prevent configuration of xvkbd:
xvkbd depends on libxaw7; however:
Package libxaw7 is not installed.
xvkbd depends on libxmu6; however:
Package libxmu6 is not installed.
xvkbd depends on libxpm4; however:
Package libxpm4 is not installed.
dpkg: error processing xvkbd (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
xvkbd

Update:
entered red-pill mode
installed libxaw7 which looked to also install libxmu6 and libxpm4
reinstalled as above and it worked

OSEmuTech 2008-02-10 23:30

Re: xkbd for X11 on screen input
 
Make sure you install these debs first or you will get those dependency errors.

http://repository.maemo.org/pool/mae..._6.5.4_all.deb

http://repository.maemo.org/pool/mae....2-3_armel.deb

tobiasj 2008-02-21 01:07

Re: xkbd for X11 on screen input
 
Did we ever come up with a virtual keyboard that works with full screen SDL apps yet? I see a lot of these keyboards listed here XKDB XVKBD and Matchbox but I didnt see anyone mention one that DID work with full screen SDL's.

I did have XVKBD installed and working, but it was inaccessable from inside the app.

Is there one yet?

-John

Benson 2008-02-21 18:15

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by tobiasj (Post 145537)
Did we ever come up with a virtual keyboard that works with full screen SDL apps yet? I see a lot of these keyboards listed here XKDB XVKBD and Matchbox but I didnt see anyone mention one that DID work with full screen SDL's.

I did have XVKBD installed and working, but it was inaccessable from inside the app.

Is there one yet?

-John

I have used xkbd fine from within Tyrian. I leave it running most of the time anyway, but I can launch it via powerlaunch.

Addison 2008-02-22 21:31

Re: xkbd for X11 on screen input
 
Would anyone be willing to recompile Xkbd so that it would accept the argument
xkbd -geometry +0+0

For some reason it won't allow one to locate the keyboard on the very top left side of the screen, only one over and one down from there is the best that can be done unless you type in
xkbd -geometry -1-1 (from a full screen X terminal, which unfortunately breaks the minimize/maximize feature)

Even better yet, any chance there's a way to have it automatically launch for the top left side of the screen instead of the bottom right?

Thanks ahead if anyone will take on this challenge! :)

ArnimS 2008-03-04 14:56

Re: xkbd for X11 on screen input
 
New version of XKBD built for OS2008! Includes Addison/OSEmuTech's vertical keyboard and my single-row bottom keyboard (in /usr/share/xkbd directory)

Seems to run a bit more reliably (here) though i do still get some glitches.

http://pupnik.de/xkbd.html

Also new '08 dosbox release which launches the great vertical left-hand-side keyboard by default (and closes it when dosbox exits).

http://pupnik.de/dosbox.html

tobiasj 2008-03-04 19:49

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by ArnimS (Post 150739)
New version of XKBD built for OS2008! Includes Addison/OSEmuTech's vertical keyboard and my single-row bottom keyboard (in /usr/share/xkbd directory)

Seems to run a bit more reliably (here) though i do still get some glitches.

http://pupnik.de/xkbd.html

Also new '08 dosbox release which launches the great vertical left-hand-side keyboard by default (and closes it when dosbox exits).

http://pupnik.de/dosbox.html

New version of DosBox is great, launching the keyboard automatically is a BIG help.

As I posted in the other thread however, the keyboard still doesn't work very well in 2008 (at least for me). It repeats the same key over and over no matter what your actually clicking on and tends to crash and close often.

I can not find the configuration file for the normal xkbd install (not the one in dosbox) so that I can change that layout to one of the others, Where is it stored? Thanks!

-John

desht 2008-03-06 15:27

Re: xkbd for X11 on screen input
 
Not really working at all for me on N800/OS2008 :( I'm seeing a mixture of problems:

1) Pressing virtuals keys results in the shifted version being sent, regardless of whether the virtual shift is pressed.

2) Often, pressing a key just sends a random shifted letter (e.g. I pressed '1', and 'W' was sent)

3) Frequent crashes with X BadValue error in XTEST/X_XTestFakeInput X11 op. (major=132, minor=2).

4) Sometimes seems to break the built-in virtual keyboard, leaving nothing but a white bar with the letters 'abc' at the right-hand end. Rebooting the device is the only way I've found to get the keyboard back.

Update: sorry, should have mentioned: this is with http://pupnik.de/xkbd_0.8.15m-2_armel.deb.

dennylee 2008-03-07 20:00

Re: xkbd for X11 on screen input
 
I am trying to use xkbd with KeePass. Whenever I bring up xkbd, I get

[2] Done /usr/bin/xkbd
~ $ Sorry - server Keyboard map doesn't contain either 2 or 4 KeySyms per Keycode - unsupported!
~ $ X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 132 (XTEST)
Minor opcode of failed request: 2 (X_XTestFakeInput)
Value in failed request: 0x5
Serial number of failed request: 1758
Current serial number in output stream: 1762

Eventually xkbd crashes. Any suggestions?

Thanks.

Denny

Pellervo Kässi 2008-04-11 12:49

Re: xkbd for X11 on screen input
 
Has anyone got xkbd working with any other languages besides english.
While having my n800 using the finnish localization the xkbd behaved quite alike what desht described. Changing maemo system language to english solved the problem, but I'm quite keen a and o with dots used in finnish. Rebooting tablet everytime i want to play dos-games doesn't sound tempting.

codeMonkey 2008-06-23 09:12

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by dennylee (Post 152048)
I am trying to use xkbd with KeePass. Whenever I bring up xkbd, I get

[2] Done /usr/bin/xkbd
~ $ Sorry - server Keyboard map doesn't contain either 2 or 4 KeySyms per Keycode - unsupported!
~ $ X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 132 (XTEST)
Minor opcode of failed request: 2 (X_XTestFakeInput)
Value in failed request: 0x5
Serial number of failed request: 1758
Current serial number in output stream: 1762

Eventually xkbd crashes. Any suggestions?

Thanks.

Denny

I had a very similar problem just recently, but have re-installed and it seems to be working better now - I'm keeping an eye on it.

jungwolf 2008-06-24 05:09

Re: xkbd for X11 on screen input
 
Is this still the best way to get a virtual keyboard for things like dosbox and the atari800 emulator? I've been having the same problems as desht. Anyone been able to get it to work well?
Thanks.

Creamy Goodness 2008-08-18 16:16

Re: xkbd for X11 on screen input
 
Do any of these keyboards or keyboard layouts include support for arrow keys or the numeric keypad? none of the included ones for xkbd seem to have it... and you need those for some games.

Benson 2008-08-18 16:19

Re: xkbd for X11 on screen input
 
The arrow keys are the d-pad; while that's not the greatest in the world, it's mostly better than on-screen.

Creamy Goodness 2008-08-18 16:28

Re: xkbd for X11 on screen input
 
really? well how come pushing 'up' in sam & max pauses the game then? i am stuck at the part where you're in the rotating restraunt on top of the twine ball and you're supposed to use the arrow keys to aim the binoculars, no matter how many times i hit the d-pad right it keeps rotating left at the same speed.

Creamy Goodness 2008-08-18 16:35

Re: xkbd for X11 on screen input
 
never mind, i read two more walkthroughs and the 3rd one says right clicking (tab) on the switch, dunno why the first one was flat-out wrong, maybe different versions of the game or something. thanks anyways.

branitar 2008-12-10 22:08

Re: xkbd for X11 on screen input
 
hmmm i tried xkbd as well as xvkbd and both have the same problem in dosbox: when i click "1" I get a "q", when i click "2" i get "w" etc.
does anyone have the same problem? or a solution for it maybe?

Pushwall 2008-12-11 02:33

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by branitar (Post 248575)
hmmm i tried xkbd as well as xvkbd and both have the same problem in dosbox: when i click "1" I get a "q", when i click "2" i get "w" etc.
does anyone have the same problem? or a solution for it maybe?

I'm assuming you are using Addison's version of the xkbd keyboard? That seems to work for me. If Addison is still hanging around these forums I'm sure he has a solution for your problem.

branitar 2008-12-11 16:12

Re: xkbd for X11 on screen input
 
Im using the version from http://pupnik.de/xkbd.html without a mapping file. but as i said, its the same with xkbd as well as with xvkbd: they both produce exactly the same results, so i guess it's a problem with dosbox as it works as expected in a normal shell.

Addison 2008-12-12 04:21

Re: xkbd for X11 on screen input
 
Hey Pushwall! Long time, heh? :)

Well, I posted this some time ago.

So far, I've never had a problem with any of them.

Just remember to install Bash2. Don't know why but it helps.

Keyboard Collection

Pushwall 2008-12-12 13:38

Re: xkbd for X11 on screen input
 
Wow Addison I missed your updated keyboard collection. Very nice indeed! :cool: Good to see you're still alive and kicking. :D

branitar 2008-12-12 16:01

Re: xkbd for X11 on screen input
 
Well, actually I do have bash2 installed. And xkbd works correctl in bash, it just doesn't in dosbox.
I forgot to mention that I'm using an N810 with a german keyboard layout. I also tried switching to an american locale, but to no avail. The problem remains the same, no matter which locale im using.

Addison 2008-12-12 20:42

Re: xkbd for X11 on screen input
 
Heya Pushwall! Yep, still kicking it. :D

I've got the next two weeks off where I'll be abusing my drinking privileges daily then I'll be gone again until June.

As for branitar, could you post a quick screenshot of Dosbox for me?

I think I might know what your problem is.

Thanks!

branitar 2008-12-13 13:41

Re: xkbd for X11 on screen input
 
1 Attachment(s)
no, i dont run dosbox in fullscreen mode ;)

skatebiker 2008-12-13 17:30

Re: xkbd for X11 on screen input
 
The app works not completely: clicking digit keys result in letters.

Addison 2008-12-13 23:16

Re: xkbd for X11 on screen input
 
1 Attachment(s)
Hey Branitar. Yeah, that keyboard you're using is crud. :)

Grab this, unzip, and put the folder on your internal memory card.
[ATTACH]Keyboards[/ATTACH]

You'll need to edit the file
/usr/share/Dosboxxkbd (I think)

To do so you'll need root privileges (easyroot) and emelfm2 if you don't have them already.

Change the file to one of the keyboards that best suits you, there's a notes file inside that folder to help you.

Since you're not using Dosbox in full screen, your best choice would be the one that says:
*Left side keyboard with no minimize feature*

So just edit that file and change it to:
xkbd -geometry +65536+65536 -k /media/mmc2/Keyboards/Leftfull.xkbd

If you're having problems doing so, I guess I can go into more detail or perhaps Pushwall can take it from here.

Cheers. :)

branitar 2008-12-14 18:39

Re: xkbd for X11 on screen input
 
Thank you very much! I'll have a try at it :) Does the file already exist? Or do i have to create it?

branitar 2008-12-14 19:50

Re: xkbd for X11 on screen input
 
Ok, i created the file as a shell-script (i guess that's what you intended).
I get a nice keyboard, but my problem remains: instead of "123456789" i get "qwertyuio" in dosbox although it works well in a shell.

skatebiker 2008-12-15 12:45

Re: xkbd for X11 on screen input
 
Same with me when I edit a 'Personal menu' item.

Addison 2008-12-18 01:19

Re: xkbd for X11 on screen input
 
Quote:

Ok, i created the file as a shell-script (i guess that's what you intended).
That file should have already been there, you simply need to overwrite what's inside of it.

Well, I have yet to do a single update with Diablo.

I'm going to reflash either tonight or tomorrow along with all of the upgrades and post back here in a day or so to see if there's anything that might be causing your troubles.

Worse case would be that you will have to go through the entire mapper.txt file and change the keys to your settings.

It would be really nice though if Pushwall posted back here since he clearly knows his junk more than me. :)

branitar 2008-12-18 11:33

Re: xkbd for X11 on screen input
 
Nope, it wasn't there. Actually I didn't find anything Dosbox-ish apart from the Dosbox executable binary in /usr/bin/ and my own .dosboxrc in my home dir. I wonder whether the binary is the only thing that's installed apart from some standard libs (SDL?).
Nevertherless, unless there has been other stuff in the file (like, setting environment variables or something like that) apart from calling xkbd with some options it doesn't matter whether the file was there or not, as the only purpose of the script is to make a long-ish command somewhat shorter ;)
I actually played a bit with the mapper.txt but to no avail. I dont really know what codes to set in there as the codes I got from xev didn't do anything... but perhaps I'm just too thick to "get" it ;)

Pushwall 2008-12-18 17:47

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by Addison (Post 250467)
It would be really nice though if Pushwall posted back here since he clearly knows his junk more than me. :)

Oh yeah sure, Addison, like I remember any of this. :)

Branitar, looking back through this thread I see a picture you posted of DosBox. It shows version 0.71. I believe what you need for all this to work is version 0.72, found here. It's the one shown in the Update 08_03_0 heading. Once installed, that version puts the file 'dosboxkbd' in the '/usr/bin' directory. That is the file Addison was talking about that you'll need to edit. FWIW, there's more DosBox file stuff you can look at in the directory '/usr/share/dosbox'. And if you do plan on using DosBox, I highly recommend installing Rubybox that is found on the same link page above.

Pushwall 2008-12-18 19:05

Re: xkbd for X11 on screen input
 
Branitar, if you don't want to use the latest DosBox to run xkbd with Addison's keyboards, then just run xkbd from XTerm with similar syntax mentioned in Addison's post here. If you need further help let me know.

ukki 2008-12-18 19:22

Re: xkbd for X11 on screen input
 
Quote:

Originally Posted by Pushwall (Post 250668)
And if you do plan on using DosBox, I highly recommend installing Rubybox that is found on the same link page above.

I wouldn't install fishy debs from random websites.


All times are GMT. The time now is 10:48.

vBulletin® Version 3.8.8