OESF Portables Forum
Model Specific Forums => Gemini PDA => Gemini PDA - Sailfish OS => Topic started by: vader on August 09, 2018, 07:47:45 pm
-
After playing around for a while, I have managed to get dosbox compiling on the gemini. I modified the renderer so that it is landscape inverted, and it worked. I haven't tested sound yet, and there are some scaling and keyboard (layout) issues, but it is basically functional. I'll see what I can get done this weekend, and maybe write a small qml front end. I'm sure there are lots of issues, like touch screen that I haven't seen yet, but the good news is that it is running on the gemini!
When it is in a stable state, I can post it for people to test if anyone is interested. I'm sure there are lots of things that will need to be tweaked. As a matter of interest, I did all the compiling/editing on the gemini under sailfish. Same with ffmpeg.
-
Ok, so with a bit of help from the sailfish forum (thanks coderus), I have got sound working in dosbox. It is now fully functional and works quite well on the Gemini. I am going to write a nice qml front end so you can rotate and change the settings. I installed doom (shareware version) and it runs well. There are a very large number of abandonware dos titles out there, so if you like retro games, dosbox is for you
-
Ok, so with a bit of help from the sailfish forum (thanks coderus), I have got sound working in dosbox. It is now fully functional and works quite well on the Gemini. I am going to write a nice qml front end so you can rotate and change the settings. I installed doom (shareware version) and it runs well. There are a very large number of abandonware dos titles out there, so if you like retro games, dosbox is for you
No interest in games, but I'd like to try it out for a few old dos utilites when you thinks its ready for an audience.
-
Hey Vader! I am definitely interested in this project. Out of curiousity I would like to run and old version of Windows.
-
Hey Vader! I am definitely interested in this project. Out of curiousity I would like to run and old version of Windows.
Dosbox should be able to run windows 3.1 if you can find a copy There are many howtos online. I should have the package ready by the end of the weekend. The hardest part will be working out which dependent libraries aren't installed by default, as I have installed a bucket load. The jolla store doesn't like SDL rotated apps as they mess with the GUI (volume bar goes vertical on the right hand side). I'll make rotation an option, but this will probably only be useful for geminis.
Good news is that I can now compile pretty much any SDL2 app and have fully working video and sound now that I worked out how to rotate the video and get sound working through pulse audio (yuck).
-
Hey, Vader . . .
Glad to see it's moving along. I tried the compiled binaries in the distro a while back: https://www.oesf.org/forum/index.php?showtopic=35015 (https://www.oesf.org/forum/index.php?showtopic=35015)
The biggest problem I found, besides scaling, was keymapping.
-
Hey, Vader . . .
Glad to see it's moving along. I tried the compiled binaries in the distro a while back: https://www.oesf.org/forum/index.php?showtopic=35015 (https://www.oesf.org/forum/index.php?showtopic=35015)
The biggest problem I found, besides scaling, was keymapping.
Scaling was easy - we use gl for the renderer, so I just rotated and scaled using gl (single function call). For key mapping, you would normally use the dosbox mapper, but that has proven problematic. I manually created the keymap file by adding some printfs in the code to give me the SDL codes, then made dosbox create a template mapper file which I edited with the discovered codes. I should have probably written a nice util to do this (maybe in the qml frontend), but this took all of 5 minutes. I have Fn keys, and all the normally required things. I added a mod_3 which picks up the gemini's fn key. I installed Elder scrolls last night, but it needed a mouse. Dosbox isn't normally touchscreen friendly, so I might add something to get it to work.
Any keyboard games (eg. doom etc) work really well. You get a 4x3 sceen at full height (ie 1440x1080 - black bars either side). It is getting close to being packagable and it receiving a good amount of testing Scumm games work well on the original DOS installations, so I probably won't bother fixing scummvm.
-
Scaling was easy - we use gl for the renderer, so I just rotated and scaled using gl (single function call). For key mapping, you would normally use the dosbox mapper, but that has proven problematic. I manually created the keymap file by adding some printfs in the code to give me the SDL codes, then made dosbox create a template mapper file which I edited with the discovered codes. I should have probably written a nice util to do this (maybe in the qml frontend), but this took all of 5 minutes. I have Fn keys, and all the normally required things. I added a mod_3 which picks up the gemini's fn key. I installed Elder scrolls last night, but it needed a mouse. Dosbox isn't normally touchscreen friendly, so I might add something to get it to work.
Any keyboard games (eg. doom etc) work really well. You get a 4x3 sceen at full height (ie 1440x1080 - black bars either side). It is getting close to being packagable and it receiving a good amount of testing Scumm games work well on the original DOS installations, so I probably won't bother fixing scummvm.
That's really cool -- especially under Sailfish. Because when you get it all happily packaged, I'll install it instantly and will run the old (and now, free) Word for DOS in it and save as .rtf. There being no Sailfish-native word processor and at this screen size terminal fonts are nicer and more readable than GUI ones, anyway. Good job!
-
So I got the touchscreen working last night, however for DOS games to successfully use the mouse, it listens to movement, rather than absolute position. I have implemented it like a touchpad but want to see if people like the way I have done it, or can suggest a better way. For simplicity, touching the screen doesn't activate a mouse button, but enables mouse move mode. When you touch and move, the cursor moves like a touchpad ie. the cursor moves. To generate a mouse button, you double tap. If two taps occur within a fast timeframe (ie. 300ms), it activates a left mouse down. If the taps are within a slower timeframe (600ms), it activates the right button. To click and drag, double tap but don't lift your finger. To get an actual double click, you tripple tap. I can't find an SDL routing to detect multiple touches. So:
1) press and release screen (tap): nothing
2) press and drag: mouse move in trackpad style mode
3) tap then press less than 300ms apart: left mouse button down
4) tap then press more than 300ms, but less than 600ms: right mouse button down
5) release after either 3 or 4: mouse button up
You can do 3 or 4, and move your finger to do a "click and drag".
Works well in all the games I have tried so far.
I have also installed word 5.5 (the now free version), and it works. The mouse functionality works, as do the Fn keys etc.
-
I have also installed word 5.5 (the now free version), and it works. The mouse functionality works, as do the Fn keys etc.
Do you have it RPMified?
Made a trip to town a few hours ago and was delighted that the phone stuff all works. This without having selected the SIM card in an Android boot, on an X27 device, so perhaps that bug got squashed. I need to experiment a little with getting it to connect to the VPN over the mobile network, but that will involve sitting in a park with a cup of coffee and playing with configuration for awhile.
Having a useful word processor will make my life pleasanter. You have done a service.
Am I right in thinking you've upgraded your Sailfish from 2.14.14? Notice any differences? (Sailfish's one real weakness, I think, is in documentation -- there isn't any I can find.)
-
Do you have it RPMified?
No, that is tonight's job. I'll call it an early beta just for gemini. I need to work out the dependencies - I have installed quite a few libraries.
Having a useful word processor will make my life pleasanter. You have done a service.
Welcome. I had a play and it looks usable.
Am I right in thinking you've upgraded your Sailfish from 2.14.14? Notice any differences? (Sailfish's one real weakness, I think, is in documentation -- there isn't any I can find.)
Nope, still the standard 2.1.4.14! I've beaten it into submission now, which is why I am starting to go and compile up apps which are missing. There are a few good docs out there. This is a good start:
https://github.com/sailfishos-community/awesome-sailfishos (https://github.com/sailfishos-community/awesome-sailfishos)
-
So I think I have an RPM which has the correct dependencies. It is still in an early state, but pretty much everything works. The mouse is as discussed earlier, and the keyboard has most keys mapped out for the US keyboard. One annoying thing is that to get the colon ":" character, you need to press shift-FN-K as dosbox "knows" that : is above ;
There are still a lot of FN key combinations not set up, but I haven't needed them yet so......To get function keys, press FN-Alt-1 to FN-Alt-0 (Fn1 -> Fn10). The RPM creates a ~/dos directory and sets dosbox to mount it as c:. You can change you setup by editing the map or config files in ~/.dosbox . I will add the ability to the qml page later.
The only annoying thing at the moment, is that when no sound or input is detected for a while, sailfish thinks the app has died and brings up a popup asking you to wait or close the app. I am looking into this and will fix it soon. This is a gemini only port, as I have set the rotations etc for the gemini - another thing to add to the qml front end. This is really a pre-release so people can test/make suggestions.
Enjoy!
PS. if you can't install due to dependency problems, give me a yell and I'll add them. I checked against the original sailfish image mounted on my linux box.
Before installing, unzip the attached file (gunzip Dosbox-0.1-1.armv7hl.rpm.gz). As usual, you install at your own risk.
-
So I think I have an RPM which has the correct dependencies. It is still in an early state, but pretty much everything works. The mouse is as discussed earlier, and the keyboard has most keys mapped out for the US keyboard. One annoying thing is that to get the colon ":" character, you need to press shift-FN-K as dosbox "knows" that : is above ;
There are still a lot of FN key combinations not set up, but I haven't needed them yet so......To get function keys, press FN-Alt-1 to FN-Alt-0 (Fn1 -> Fn10). The RPM creates a ~/dos directory and sets dosbox to mount it as c:. You can change you setup by editing the map or config files in ~/.dosbox . I will add the ability to the qml page later.
The only annoying thing at the moment, is that when no sound or input is detected for a while, sailfish thinks the app has died and brings up a popup asking you to wait or close the app. I am looking into this and will fix it soon. This is a gemini only port, as I have set the rotations etc for the gemini - another thing to add to the qml front end. This is really a pre-release so people can test/make suggestions.
Enjoy!
PS. if you can't install due to dependency problems, give me a yell and I'll add them. I checked against the original sailfish image mounted on my linux box.
Before installing, unzip the attached file (gunzip Dosbox-0.1-1.armv7hl.rpm.gz). As usual, you install at your own risk.
Way cool! I've d/led it but probably won't install it until the morning and coffee -- we're at about the hour when I make foolish, basic, hard-to-find-later mistakes. I'm hoping that dosbox treats autoexec.bat as dos itself did. Dosemu did, but your setup sounds far better than dosemu ever was.
Many thanks!
-
Way cool! I've d/led it but probably won't install it until the morning and coffee -- we're at about the hour when I make foolish, basic, hard-to-find-later mistakes. I'm hoping that dosbox treats autoexec.bat as dos itself did. Dosemu did, but your setup sounds far better than dosemu ever was.
It doesn't automatically run autoexec.bat, *however* the dosbox configuration file has an autoexec section at the bottom which runs the given commands. You will see I added the mount and change to c drive
eg. (from dosbox-SVN.conf)
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c ~/dos -freesize 1024
c:
PS. I think I am on the other side of the planet, so sometimes the response time is a bit slow
-
PS. I think I am on the other side of the planet, so sometimes the response time is a bit slow
Yup -- I'm in the middle of the U.S., so I couldn't be much farther from you.
Slightly OT: are there any Fn key mappings generally in SFOS for Gemini? I have some terminal mode utilities that don't much work without them, but I cannot find any combination of keys that profuces a function key.
Back on topic: Your Dosbox package installed easily and perfectly. Great work! I have Word for DOS running well. It *seems* to run a bit more nicely in one of the graphics modes allowed in the Edit>Preferences settings. And you're entirely right that the "Application not responding" sideways pop-up is really, really irritating.
A probably stupid question: are we limited to the various SFOS repositories, or might we harvest RPMs from elsewhere? Do we know the distribution and version on which Sailfish is based and therefore know where we might resolve dependencies?
-
Slightly OT: are there any Fn key mappings generally in SFOS for Gemini? I have some terminal mode utilities that don't much work without them, but I cannot find any combination of keys that profuces a function key.
There are probably key mappings somewhere - in the X11 days, it would be easy to fix - but I'm not a wayland guru....
Back on topic: Your Dosbox package installed easily and perfectly. Great work! I have Word for DOS running well. It *seems* to run a bit more nicely in one of the graphics modes allowed in the Edit>Preferences settings. And you're entirely right that the "Application not responding" sideways pop-up is really, really irritating.
Good news! Thanks for trying it. I think I know what is happening with the "not responding" popup - there are no graphics updates from dosbox, and the system thinks the app is broken. As soon as there are any updates, the popup goes away. I was testing using day of the tentacle, and when the scene was still, the popup would trigger. As soon as something happened in the game (ie. the a character moved), the popup would disappear. Dosbox probably only updates the screen when it changes. Games like doom are always updating, and so never generate the popup. The initial screen has a blinking cursor, so also doesn't trigger the popup.
A probably stupid question: are we limited to the various SFOS repositories, or might we harvest RPMs from elsewhere? Do we know the distribution and version on which Sailfish is based and therefore know where we might resolve dependencies?
Openrepos is actually a collection of repositories. You add the repository, then install files. If you haven't got openrepos yet, install "storeman" from the jolla store. There are also other locations - the previous link I posted has a downloads section I think.
-
Good news! Thanks for trying it. I think I know what is happening with the "not responding" popup - there are no graphics updates from dosbox, and the system thinks the app is broken. As soon as there are any updates, the popup goes away. I was testing using day of the tentacle, and when the scene was still, the popup would trigger. As soon as something happened in the game (ie. the a character moved), the popup would disappear. Dosbox probably only updates the screen when it changes. Games like doom are always updating, and so never generate the popup. The initial screen has a blinking cursor, so also doesn't trigger the popup.
Word has a blinking cursor, and it does blink. I'll see if my running it in its graphical mode -- also with blinking cursor -- makes the popup stop.
Openrepos is actually a collection of repositories. You add the repository, then install files. If you haven't got openrepos yet, install "storeman" from the jolla store. There are also other locations - the previous link I posted has a downloads section I think.
Right, and I've been to all of them. I was thinking of Linux repositories, ideally the RPM-packaged distros that use Wayland. There's probably a reason why those packages wouldn't work, but I can't guess what it would be.
-
I Think I have fixed the annoying "not responding" problem. I force a redraw if there has been none in the last second (normally 25 per second). This seems to work. I have attached version 0.2 with this little fix. gunzip it first (cant upload an rpm)
Enjoy.
PS. If you have made changed to the config files in .dosbox, keep a copy as the installer will copy the original files over the top.
-
I Think I have fixed the annoying "not responding" problem. I force a redraw if there has been none in the last second (normally 25 per second). This seems to work. I have attached version 0.2 with this little fix. gunzip it first (cant upload an rpm)
Enjoy.
PS. If you have made changed to the config files in .dosbox, keep a copy as the installer will copy the original files over the top.
I just installed and used it. An important tip -- uninstall the previous version first (it won't delete the ~/dos directory or its contents), or else when you install the new version atop it and start it you'll just get a white screen.
But wow! This is simply perfect for my use, which for now is to run Word 5.5 for DOS as a word processor on Gemini. What's especially cool is running Word in graphical mode -- graphical, 80 columns and 25 lines. What makes it so good is that in addition to the text cursor there's an actual mouse pointer, which follows finger movement (in a way that I really wish the mouse would work in a Gemini Linux install, because this one is useful) and then, when it's where you want it, double-tap to click. Additionally, the text is actually readable -- it's a useful word processor, and there's no word processor for SFOS so it's worth doing. It does suffer from keyboard colon disease, but in due course I'll remember how to produce a colon, which I'll write down after scrolling up in this thread. Even the tutorial in the help menu works. Anyway the graphis mode really opened my eyes to just how useful this might be on the Gemini.
This all is really an order of magnitude better than I imagined it world be, and with the pop-up thing gone it's just great. (Of course, people who have other favorite word processors or such could do the same thing with doxbox and those applications. The hard part will be getting Word Perfect and Wordstar and Lotus 1-2-3 off those 5.25-inch floppies and onto the Gemini! I'd install the wonderful note/address/information manager Info Select for DOS, but it sadly doesn't seem to have survived Y2K. (Though I might, some snowy and boring day this winter, install GeoWorks, not that it would be good for anything except the satisfaction.
(I do these stunts. I wrote a book almost 20 years ago for Que called "Practical KDE" and in one of the illustrations I showed how you could run Windows 3.1 in a VMWare virtual machine. But I wasn't content with plain old Windows, so I dug up an old copy of Microsoft Bob, the worst user interface in the history of computing, and ran that atop Win 3.1, thereby becoming the first and I'm confident in saying only person ever to do that. For those who do not know Microsoft Bob: https://en.wikipedia.org/wiki/Microsoft_Bob (https://en.wikipedia.org/wiki/Microsoft_Bob) )
[ You are not allowed to view attachments ]
Caption: As threatened, here are, back to front: KDE-1.1, A VMware DOS window running the great Textra word processor, a VMware Windows 95 boot running eBid '98, a construction estimating program, and front and right, a VMware Windows 3.1 boot running Microsoft Bob. The little hand was the mouse pointer -- click on things and stuff would happen corresponding to what was clicked upon. It really, really sucked. But, hey, I had 16 megs of RAM!
Hell if it's a whole snowy weekend maybe I'll install Win 3.1 and Microsoft Bob on the Gemini, and achieve the pinnacle of meaningless activities!
All that having been said, great work, and thanks.
-
Ok, this is a bit silly, but here is windows 3.11 running under dosbox. It is actually quite quick. You might be able to run an old version of winword or your favourite old game.
-
Ok, this is a bit silly, but here is windows 3.11 running under dosbox. It is actually quite quick. You might be able to run an old version of winword or your favourite old game.
In my estimation, not at all silly -- there are applications that have no analogue in SFOS, and this is a way to get there. And Windows 3.11 has a really good solitaire game.
Out of curiosity, did you happen to notice the size of the Windows install? And another question, added later: Did touch work with it at all. the way Word 5.5 for DOS does?
-
Out of curiosity, did you happen to notice the size of the Windows install? And another question, added later: Did touch work with it at all. the way Word 5.5 for DOS does?
Windows takes about 35M (around 20M if zipped). The mouse behaves exactly the same as word - the screen becomes a touchpad, with the double and tripple click actions. You can change the graphics resolution in the normal windows 3 way (run setup from the command line). I put it up to 800x600, any smaller and you can't read anything
On another note, after a lot of searching, I found out how to make the overlays work correctly in dosbox. By this I mean that the volume bar is at the top, and the swipes to close/switch app are the same as any other app. I've attached version 0.3, and as usual I have gzipped it so it can be attached. Just gunzip it to install. I also rename my .dosbox directory to .dosbox.old, uninstall the old dosbox, reinstall the new, then delete .dosbox and rename .dosbox.old back to .dosbox . Probably don't need to do this, but it means nothing is overwritten. You don't have to worry about the dos directory.
-
Windows takes about 35M (around 20M if zipped). The mouse behaves exactly the same as word - the screen becomes a touchpad, with the double and tripple click actions. You can change the graphics resolution in the normal windows 3 way (run setup from the command line). I put it up to 800x600, any smaller and you can't read anything
On another note, after a lot of searching, I found out how to make the overlays work correctly in dosbox. By this I mean that the volume bar is at the top, and the swipes to close/switch app are the same as any other app. I've attached version 0.3, and as usual I have gzipped it so it can be attached. Just gunzip it to install. I also rename my .dosbox directory to .dosbox.old, uninstall the old dosbox, reinstall the new, then delete .dosbox and rename .dosbox.old back to .dosbox . Probably don't need to do this, but it means nothing is overwritten. You don't have to worry about the dos directory.
Works a treat! And yes, nemo/.dosbox needs to be nuked (after backup if customized), or else the initial dosbox screen will be plain white, no text.
It's fast and so far as I've been able to determine, reliable. This is probably great for running games, but it's great for running other stuff, too. It really should be in OpenRepos or the Jolla Shop or both. (And they ought to give you a free upgrade to Sailfish 3, too.) What a good and useful utility.
Speaking of utilities, I've fallen in love with File Browser, too. At every turn I'm discovering more to love about SFOS. It's so good it's almost certain to fail.
-
Out of curiosity, did you happen to notice the size of the Windows install? And another question, added later: Did touch work with it at all. the way Word 5.5 for DOS does?
Windows takes about 35M (around 20M if zipped). The mouse behaves exactly the same as word - the screen becomes a touchpad, with the double and tripple click actions. You can change the graphics resolution in the normal windows 3 way (run setup from the command line). I put it up to 800x600, any smaller and you can't read anything
On another note, after a lot of searching, I found out how to make the overlays work correctly in dosbox. By this I mean that the volume bar is at the top, and the swipes to close/switch app are the same as any other app. I've attached version 0.3, and as usual I have gzipped it so it can be attached. Just gunzip it to install. I also rename my .dosbox directory to .dosbox.old, uninstall the old dosbox, reinstall the new, then delete .dosbox and rename .dosbox.old back to .dosbox . Probably don't need to do this, but it means nothing is overwritten. You don't have to worry about the dos directory.
Trying to install attached version on my Gemini but got error installing.. any clues where to look for log/reason for error?
-
Trying to install attached version on my Gemini but got error installing.. any clues where to look for log/reason for error?
Just checking, you gunzipped the attached file (because you can't attach rpm files here) first? You can use an app, or the terminal. That will give you an rpm file which you can install with file manager or the command line. Eg.
1) Download Dosbox_0.3_1.armv7hl.rpm.gz from this thread.
2) Run fingerTerm or whichever terminal program you use:
3) gunzip the downloaded file with:
gunzip Dosbox_0.3_1.armv7hl.rpm.gz
4) This creates the file Dosbox_0.3_1.armv7hl.rpm
5) Either run file manager, find the rpm, and use the pulley menu to install it, or run:
pkcon install-local Dosbox_0.3_1.armv7hl.rpm
This should install dosbox.
-
A few tips and tricks. The default key mapping (~/.dosbox/mapper-SVN.map) has the Fn keys mapped to:
FN+Alt+number (for F1 to F10)
FN+Alt+q for F11
FN+Alt+w for F12
In some games (eg old scumm games), you need to press and hold FN+Alt, then press '1', then release FN+Alt, and only last release '1'. This causes the popup menu to activate. I believe this is an F1 release rather than an F1 press. In things like doom, just pressing the FN+Alt+1 combination brings up the menu.
A : character (useful in DOS) is reached by FN+Shift+K
A ; character is the usual FN+K
This is due to how dosbox handles the shift character. I will probably change this for the gemini build when I finish the qml character mapper.
The performance of dosbox is good enough for games of the doom era (eg. dark forces, doom, heretic etc). Quake is a little slow, as is duke nukem 3d. You can lower the quality and get reasonable performance in those ones. The old scumm games run a treat (discworld, dott etc).
PS. I've got qemu running with SDL2 (ie not using vnc), just getting the rotation code all set up. Took ages to compile. Pretty slow though.
-
Trying to install attached version on my Gemini but got error installing.. any clues where to look for log/reason for error?
Just checking, you gunzipped the attached file (because you can't attach rpm files here) first? You can use an app, or the terminal. That will give you an rpm file which you can install with file manager or the command line. Eg.
1) Download Dosbox_0.3_1.armv7hl.rpm.gz from this thread.
2) Run fingerTerm or whichever terminal program you use:
3) gunzip the downloaded file with:
gunzip Dosbox_0.3_1.armv7hl.rpm.gz
4) This creates the file Dosbox_0.3_1.armv7hl.rpm
5) Either run file manager, find the rpm, and use the pulley menu to install it, or run:
pkcon install-local Dosbox_0.3_1.armv7hl.rpm
This should install dosbox.
The problem was in WebCat that downloded only 40k instead of 800kb of .gz file. Now I have unzipped it but after trying : pkcon install-local Dos...rpm see error:
Failed to obtain authentication (yes I have enabled third party packages)
SOLVED: the solution was to just run pkcon as root (devel-su).
then I had to leave root and run as regular user, it works!
next step is to find some dos files (luckily I have them on my RS97 console DosNavigator and win3.11)
-
Hey Vader! I am definitely interested in this project. Out of curiousity I would like to run and old version of Windows.
Dosbox should be able to run windows 3.1 if you can find a copy There are many howtos online. I should have the package ready by the end of the weekend. The hardest part will be working out which dependent libraries aren't installed by default, as I have installed a bucket load. The jolla store doesn't like SDL rotated apps as they mess with the GUI (volume bar goes vertical on the right hand side). I'll make rotation an option, but this will probably only be useful for geminis.
Good news is that I can now compile pretty much any SDL2 app and have fully working video and sound now that I worked out how to rotate the video and get sound working through pulse audio (yuck).
I still have win 3.1 3.5" floppy disks and a license paper. Have to try to use a 3.5" floppy disk drive over otg. ;-)
-
Just a quick update - I've got the dynamic core working (I think), and it now makes duke3d quite playable. It is perhaps 5-10 times faster. You can even play quake now I'll test it a bit to make sure everything still works, then package it up and post it.
-
OK, here is the latest version. It runs significantly faster than the old one. If you have installed version 0.3, the easiest thing is to rename your ~/dos and ~/.dosbox to ~/dos.good and ~/.dosbox.good, then create dummy .dosbox and dos directories. Uninstall the old dosbox, then install the new one. Delete the new .dosbox and dos directories, and rename your .good directories back to .dosbox and dos. As usual, gunzip the rpm first
-
It isn't worth a new release, but setting your cpu type from auto (use dynamic if available or appropriate), to dynamic gives a large speed boost to certain games. They mustn't detect the need for dynamic correctly. The x25 emulates a reasonable beefy 386 (66+MHz) according to benchmarking apps. That is easily enough to play quake, and duke3d on full quality. I am a bit surprised by the difference between the dynamic and the previous versions. Oh well, Enjoy!
-
OK, here is the latest version. It runs significantly faster than the old one. If you have installed version 0.3, the easiest thing is to rename your ~/dos and ~/.dosbox to ~/dos.good and ~/.dosbox.good, then create dummy .dosbox and dos directories. Uninstall the old dosbox, then install the new one. Delete the new .dosbox and dos directories, and rename your .good directories back to .dosbox and dos. As usual, gunzip the rpm first
Hello vader,
trying to install latest Dosbox version 0.4_1 to my Gemini PDA with Sailfish version 3.0.0.5 (devel version), i got an error about missing libaudioresource.so.1.
Did i missed something that must be installed additionally, or is this a change during upgrade from Sailfish version 2.1.x.x to 3.0.x.x?
There are also no other versions of this lib on the system ..
Many thanks for any hint ..
Gabriel
-
trying to install latest Dosbox version 0.4_1 to my Gemini PDA with Sailfish version 3.0.0.5 (devel version), i got an error about missing libaudioresource.so.1.
Did i missed something that must be installed additionally, or is this a change during upgrade from Sailfish version 2.1.x.x to 3.0.x.x?
I haven't upgraded to 3 yet, but you need libaudioresource. You can manually add the package from the command line. Make sure you are root by running devel-su first (or put devel-su before each command).
pkcon search libaudioresource
look for the package (not the qt version), so for example in my system you have
libaudioresource-1.0.5-1.1.1.armv7hl
You would then type:
pkcon install libaudioresource-1.0.5
This is normally done in the rpm file, so maybe there is something different. If you successfully installed libaudioresource, do the following:
ldd /usr/bin/dosbox | less
This will show what libraries it is trying to load, and if any are missing.
-
trying to install latest Dosbox version 0.4_1 to my Gemini PDA with Sailfish version 3.0.0.5 (devel version), i got an error about missing libaudioresource.so.1.
Did i missed something that must be installed additionally, or is this a change during upgrade from Sailfish version 2.1.x.x to 3.0.x.x?
I haven't upgraded to 3 yet, but you need libaudioresource. You can manually add the package from the command line. Make sure you are root by running devel-su first (or put devel-su before each command).
pkcon search libaudioresource
look for the package (not the qt version), so for example in my system you have
libaudioresource-1.0.5-1.1.1.armv7hl
You would then type:
pkcon install libaudioresource-1.0.5
This is normally done in the rpm file, so maybe there is something different. If you successfully installed libaudioresource, do the following:
ldd /usr/bin/dosbox | less
This will show what libraries it is trying to load, and if any are missing.
Hello vader, many thanks for the hint. Now it works fine (i tryied some old dos games ;-)).
The only problem i have is the wrong mapping of my german keyboard.
The key mapping file i use on my Linux did not work correctly.
Do you know if there is a tool which shows the code of the pressed key?
Many thanks
-
Hello vader, many thanks for the hint. Now it works fine (i tryied some old dos games ;-)).
The only problem i have is the wrong mapping of my german keyboard.
The key mapping file i use on my Linux did not work correctly.
Do you know if there is a tool which shows the code of the pressed key?
The normal keymapper doesn't work properly as it was hard coded for portrait orientation. I was going to rewrite it but haven't yet. Ideally, the qml front end will take care of that. To work out the keys, I actually added print statements to the program They have been removed now. I could always compile up a version for you that printed the key presses and you could run that one to map your keyboard. I added the fn key as alt3 so you can get the extra characters.
Have you enabled dynamic? Auto normally chooses the dynamic cpu, however some games don't - one example is elder scrolls. It was slow until I set the cpu core to always use dynamic in the config file. With dynamic, you can run duke3d at full speed, along with all the doom/doom2 games (eg dark forces). Quake needs a few small tweaks, but after that it runs well.
Let me know if you want the dosbox version with printout so you can configure your keyboard.
-
The normal keymapper doesn't work properly as it was hard coded for portrait orientation. I was going to rewrite it but haven't yet. Ideally, the qml front end will take care of that. To work out the keys, I actually added print statements to the program They have been removed now. I could always compile up a version for you that printed the key presses and you could run that one to map your keyboard. I added the fn key as alt3 so you can get the extra characters.
Have you enabled dynamic? Auto normally chooses the dynamic cpu, however some games don't - one example is elder scrolls. It was slow until I set the cpu core to always use dynamic in the config file. With dynamic, you can run duke3d at full speed, along with all the doom/doom2 games (eg dark forces). Quake needs a few small tweaks, but after that it runs well.
Let me know if you want the dosbox version with printout so you can configure your keyboard.
Yes . It would be fine to get this version.
At the moment i tried low performance games like Agentman and Commander Keen .
But some more modern games (like Space Quest and Monkey Island ) are waiting to be played.
At this point i also have to look on the cpu speed.
And the i have to use the keyboard (especially on the first adventures) ..
Many thanks
-
The normal keymapper doesn't work properly as it was hard coded for portrait orientation. I was going to rewrite it but haven't yet. Ideally, the qml front end will take care of that. To work out the keys, I actually added print statements to the program They have been removed now. I could always compile up a version for you that printed the key presses and you could run that one to map your keyboard. I added the fn key as alt3 so you can get the extra characters.
Have you enabled dynamic? Auto normally chooses the dynamic cpu, however some games don't - one example is elder scrolls. It was slow until I set the cpu core to always use dynamic in the config file. With dynamic, you can run duke3d at full speed, along with all the doom/doom2 games (eg dark forces). Quake needs a few small tweaks, but after that it runs well.
Let me know if you want the dosbox version with printout so you can configure your keyboard.
Yes . It would be fine to get this version.
At the moment i tried low performance games like Agentman and Commander Keen .
But some more modern games (like Space Quest and Monkey Island ) are waiting to be played.
At this point i also have to look on the cpu speed.
And the i have to use the keyboard (especially on the first adventures) ..
Many thanks
I'll compile it up tonight (I'm on the other side of the world ) I just finished playing Discworld - apart from the small screen, it was probably better than when I played it on a PC. Under dosbox, all the hardware is compatible. I played dark forces, and am halfway through duke 3d. Just remember to set the core to dynamic. When I ran checkit (old dos benchmarking tool), the results are (fastest machine comparison checkit had was 486/50):
CPU: 1.45 x faster than 486
NPU 3.38 x faster than 486
So, at least a 66MHz 486 - pretty good for playing old DOS games.
PS. I also upped the memsize to 64M. This helps a lot with quake and duke3d.
-
So I compiled up the version that prints out the key codes. To use it, uncompress the attached dosbox executable and put it in /tmp. Make sure it is executable, then run it redirecting output to a file. Press keys in dosbox, then quit. look at the file. It is really rudimentary, however it does the job (until I write the nice gui wrapper).
cp Downloads/dosbox.gz /tmp
cd /tmp
gunzip dosbox.gz
chmod +x dosbox
./dosbox > keys
look at the file /tmp/keys - as well as general dosbox startup stuff, you will get something like:
Key=37 down
Key=37 up
Key=38 down
Key=38 up
This says that keycode 37 (they 8 key) was pressed, then released, followed by the 9 key. Edit your dosbox config accordingly.
Enjoy.
-
So I compiled up the version that prints out the key codes. To use it, uncompress the attached dosbox executable and put it in /tmp. Make sure it is executable, then run it redirecting output to a file. Press keys in dosbox, then quit. look at the file. It is really rudimentary, however it does the job (until I write the nice gui wrapper).
Enjoy.
Many thanks.
I have the list of the key codes.
Is there a list of the key names for all keys (e.g. key_q, ..)?
For some keys i did not find the key names (the German Umlaute Ä, Ö, Ü, and funnily enough '$', '§', .. .
When i have a full map i can upload it (if some one is interested ).
-
When i have a full map i can upload it (if some one is interested ).
I am.
-
When i have a full map i can upload it (if some one is interested ).
I am.
OK. Here it is. But i did not find any information about the names and used by key.map file :-(.
Not at the internet nor at the dosbox source ..
So some of the keys could not described at the map.
I added the modifier key:- mod1 -> key_lctrl
- mod2 -> key_lalt
- mod3 -> key_fn
I did not know weather it is possible to add key_lshift and key_rshift as additional modifier (mod4) so i comment all keys which need shift.
May be this keys must be described otherwise.
Same problem for '?' which has an unusual position for German keyboards on the gemini keyboard.
Normally it is a shifted 'sz' but i did not find a key name for the 'sz' or the '?' key ..
I attached the created map and a picture of the German gemini keyboard.
Any comment and corrections are welcome :-).
-
trying to install latest Dosbox version 0.4_1 to my Gemini PDA with Sailfish version 3.0.0.5 (devel version), i got an error about missing libaudioresource.so.1.
Did i missed something that must be installed additionally, or is this a change during upgrade from Sailfish version 2.1.x.x to 3.0.x.x?
I haven't upgraded to 3 yet, but you need libaudioresource. You can manually add the package from the command line. Make sure you are root by running devel-su first (or put devel-su before each command).
pkcon search libaudioresource
look for the package (not the qt version), so for example in my system you have
libaudioresource-1.0.5-1.1.1.armv7hl
You would then type:
pkcon install libaudioresource-1.0.5
This is normally done in the rpm file, so maybe there is something different. If you successfully installed libaudioresource, do the following:
ldd /usr/bin/dosbox | less
This will show what libraries it is trying to load, and if any are missing.
Hi,
Am trying to install this (for the first time) having just upgraded to SFOS 3.2.0.12.
pkcon search libaudioresource
shows:
Available libaudioresource-1.0.5-1.2.15.jolla.armv7hl (jolla) Nemo Mobile Audio Resource API
but typing devel-su pkcon install libaudioresource-1.0.5
gives the result:
Resolving [ ] (0%) Package not found: libaudioresource-1.0.5
Command failed: This tool could not find any available package: No packages were found
What is confusing me is that it is telling me the library is 'Available'. But then saying it can't find it.
I presume I am doing something wrong. Any ideas gratefully received.
Thanks in advance.
Ian
-
Replying to myself (in case it is of use to others—or someone wants to let me know that this is the *wrong* way to resolve my problem):
I succeeded in downloading the library with the command: devel-su pkcon download ./Downloads libaudioresource
then: devel-su pkcon install-local libaudioresource-1.0.5-1.2.15.jolla.armv7hl.rpm
Dosbox is now available in the Apps pulley. And clicking on it launches a splash screen with a button marked 'Start Dosbox' and a white box saying: 'Welcome to Gemini Dosbox. This version of Dosbox has been customised for the Gemini PDA. In future releases, the rotation, key mapping and configuration will be editable from here. For now, if you want to customise Dosbox, the configuration files live in /home/nemo/.dosbox.
It's probably obvious what I should do now. But unfortunately not to me ...
double or treble tapping the button appears not to do anything. And Alt-enter appears not to do anything. I've put an .exe of Wd5.5 into the /home/nemo/dos directory. How do I run it?
Thanks for any help you can offer.
Ian
-
Running dosbox from the command line instead of tapping on the icon in the apps pulley gives a long set of errors:
(I'll have to type these in as it doesn't appear to be possible to copy-paste from the SailFish fingerterm app so apologies if there are any typos)
DOSBox version SVN
Copyright notice
---
CONFIG: Loading primary settings from config file ....
WARN:
Assertion failure at SDL_SetWindowIconREAL (/home/abuild/rpmbuild/BUILD/SDL2-2.0.9+git3/SDL2/src/video/SDL_video.c:1772), triggered 1 time: 'window && window->magic == &_this->window_magic'
Abort/Break/Retry/Ignore/AlwaysIgnore? [abriA] : i
library "libwlparser.so" not found
SDL: Current window pixel format: SDL_PIXELFORMAT_RGB888
MIXER: Got different values from SDL: freq 22050, blocksize 512
pause audio off
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI: Opened device:ozz
Can't find matching event for .... there were loads of lines in this vein, ending with ...
MAPPER: Loading mapper settings from /home/nemo/.dosbox/mapper-SVN.map
dosbox: gralloc.c:132: hybris_gralloc_initialize: Assertion 'NULL' failed.
Aborted (core dumped)
Any ideas on what is wrong/how to fix gratefully received.
Ian
-
...
Assertion failure at SDL_SetWindowIconREAL (/home/abuild/rpmbuild/BUILD/SDL2-2.0.9+git3/SDL2/src/video/SDL_video.c:1772), triggered 1 time: 'window && window->magic == &_this->window_magic'
...
Yup, I have the same issue with SFOS 3.2.0.12 and the dosbox. Looks like something in SDL lib changed.
@vader, where can I find your source code, may be a compile on my Gemini with 3.2.0.12 can fix it.
Edit: May I ask again for the source code, I want to try to recomlile dosbox. Same issue with SFOS v3.2.1.19.
-
...
Assertion failure at SDL_SetWindowIconREAL (/home/abuild/rpmbuild/BUILD/SDL2-2.0.9+git3/SDL2/src/video/SDL_video.c:1772), triggered 1 time: 'window && window->magic == &_this->window_magic'
...
Yup, I have the same issue with SFOS 3.2.0.12 and the dosbox. Looks like something in SDL lib changed.
@vader, where can I find your source code, may be a compile on my Gemini with 3.2.0.12 can fix it.
Edit: May I ask again for the source code, I want to try to recomlile dosbox. Same issue with SFOS v3.2.1.19.
Yes same here.
I think recompiling is necessary on the latest Version.
V3.2.1.20 requires a new Sailfish development environment ...
-
Sad to see it's all dead here. :(