VOGONS


First post, by elvarg

User metadata
Rank Newbie
Rank
Newbie

I am running Debian. In the linux shell itself, my keyboard works fine. But when I run dosbox, in the dosbox shell my keys are mapped totally wrong. Pressing "j" results in a newline like an enter key would do, "a" becomes "u", "s" becomes "i", "d" becomes "o", etc. It seems there is some kind of weird pattern where the keys are shifted down and to the right (because "a" "s" and "d" are next to each other, as are "u" "i" and "o"). Other keys behave in a similar manner. Certain keys like "2" actually lock up the shell and I need to reboot.

How can I fix the problem? Thanks for help.

Reply 1 of 12, by general_vagueness

User metadata
Rank Member
Rank
Member

It would help knowing exactly what happens, so how about you type "The very quick brown fox jumped over the lazy dogs," and send in what it looks like in DOSBox because of the problem. You can press Ctrl-F1 to manually remap keys, but there might be an underlying problem. Also which version of Debian is it, and which version of DOSBox?

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 2 of 12, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

try usescancodes=false, along with disabling any foreign keyboard layout for testing

Reply 3 of 12, by elvarg

User metadata
Rank Newbie
Rank
Newbie

When I typed "the quick brown fox jumped over the lazy dog", I got the following input:

http://img23.imagevenue.com/img.php?image=th_ … x_122_705lo.jpg

(when I pressed "j" it resulted in a newline), and certain other letters didn't do anything when pressed.

usescancodes=false didn't help unfortunately.

Also, I was able to start the kb mapper. The interesting thing is that the mapper added the correct key when so configured, but typed the original wrong key before it.

So for example, if pressing "q" output a "7", then after I configured the mapper to output "q" when "q" is pressed, it output "7q"

I am using Debian-based "Finnix". I know it's not a very popular distro, but I have to use it because I need a minilinux distro which Finnix is.

Reply 4 of 12, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

Try removing the mapper.txt file, which seems to contain some very odd values for your system. That should reset to the normal bindings.

My site: Ramblings on mostly tech stuff.

Reply 5 of 12, by elvarg

User metadata
Rank Newbie
Rank
Newbie

Where would I find the mapper.txt? (I just used apt-get to install dosbox, all defaults)

Reply 6 of 12, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

$ find / -type f -name mapper.txt -ls

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 7 of 12, by elvarg

User metadata
Rank Newbie
Rank
Newbie

No files found

Reply 8 of 12, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Be happy then. Means you don't have a DOSBox key mapping file at all, so everything should be default.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 9 of 12, by elvarg

User metadata
Rank Newbie
Rank
Newbie

Thanks, but that doesn't quite solve my problem. As I said, everything outside Dosbox types fine.

Reply 10 of 12, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

There is a recent thread here somewhere, with a solution for some weird keyboard problems (in Windows). Something about a 109 key layout.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 11 of 12, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Does a different distro work? Like checking what knoppix or some other
live cd does if you can install dosbox there.

Reply 12 of 12, by elvarg

User metadata
Rank Newbie
Rank
Newbie

I don't have another distro. Of course I could get one and try, and I'm sure some (esp. more popular distros like Ubuntu) work fine (since obviously a lot of linux people use dosbox), but I need it working for *this* distro. 😀

It could well be distro-specific issue like some wierd keyboard config that doesn't manifest itself until you are in dosbox, or it could be incompatibility between dosbox and my particular distro. I'm not sure. I was just wondering if anyone heard of such a problem before