maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 7 / Leste (https://talk.maemo.org/forumdisplay.php?f=66)
-   -   Maemo Leste Playground (https://talk.maemo.org/showthread.php?t=101089)

clort 2020-08-15 20:26

Maemo Leste Playground
 
Hi!

Thought we could use a fun-and-games with Leste on Droid4 thread here.

We don't have IVA acceleration for video but we don't really need it! Well, if we transcode reasonably.

Here is 960x540 full-resolution 25fps H264 mkv running with headroom to spare!
http://0x0.st/iYWa.png
:)
actual device recording: http://0x0.st/iYV3.mp4
trick is to use -vo sdl for low xorg overhead

The real happyness for h264 at least would be using TI's hardware accelerated decoders. It's difficult to even begin to understand what's needed. Maybe someone who knows could chime-in? We may be able to use gstreamer-omap for this:
https://gitlab.com/gstreamer-omap

clort 2020-08-15 21:30

Re: Maemo Leste Playground
 
Quote:

Originally Posted by clort (Post 1568772)
Hi!

Thought we could use a fun-and-games with Leste on Droid4 thread here.

We don't have IVA acceleration for video but we don't really need it! Well, if we transcode reasonably.

Here is 960x540 full-resolution 25fps H264 mkv running with headroom to spare!
http://0x0.st/iYWa.png
:)
actual device recording: http://0x0.st/iYV3.mp4
trick is to use -vo sdl for low (~15% vs 34%) Xorg overhead

I also use -hardframedrop and -nocorrect-pts and -quiet.

for selecting media, smplayer is quite usable. You'll need to set the playback device to your bestest mplayer binary, and set the appropriate output options. I can actually operate it with thumb screen and keyboard. Ctrl-F gets you a file-open dialog.

The 'tablet' ui isn't hildonized but it's serviceable.
http://0x0.st/iYWv.jpg

Old dvd rips (720x576) are running fine here.

wganis 2020-08-16 00:34

Re: Maemo Leste Playground
 
wauw , can u hint me i try to install smplayer but not free enough space in /var/cache/apt/archives , Can u hint me Thanks, i use droid 4 maemo leste lastest image

clort 2020-08-16 03:24

Re: Maemo Leste Playground
 
There are more than a few ways to get more space to install more software on your system partition, but your choices are basically to:

*) delete some things you don't need to keep

OR

*) increase the size of your system partition

Since maemo-leste installs to the microSD card, we have easy partition management and can increase the system partition size! I have grown my system partition size twice, first to 8 and now 16 gB. The basic procedure was as follows.

1) Take microSD card out of phone and using the PC, I backup (clone) the current SD card to an image on a reliable drive. Then i restore that new backup to a new microSD and test-boot it in the Droid4, to be sure it works.

2) I use gParted on my PC to increase the partition size of the system partition on the microSD card. I find 16GB gives me enough space, for the time being. The system partition is the second partition on the microSD card.

It is very helpful to make regular duplicates or backups of your Maemo-Leste microSD card, so you can revert to a working system in case you break something while experimenting.

Hope this helps.

[EDIT] Here is a screencap of my installed 'fun and games' on leste. I'll be working on getting as many as I can to usable (tablet-optimized) status:
http://0x0.st/iYJh.png

wganis 2020-08-16 04:02

Re: Maemo Leste Playground
 
wauw its amazing ok thanks for hint

clort 2020-08-16 08:15

Re: Maemo Leste Playground
 
Ok sorry I made a mistake, the 960x540 playable h264 isn't high profile, it's baseline profile.

I made two sample video clips (2.6MB) to illustrate the difference. One can be handled by Droid4, the other not.

* playable http://0x0.st/iYyY.mkv
EDIT * not-playable http://0x0.st/iYvK.mkv

nonsuch 2020-08-16 12:43

Re: Maemo Leste Playground
 
^ "Russian road" :D
Full respect to those dinosaurs though. One of them rescued my feeble Mercedes from a bog once.
... You linked to the same file twice.

Anyhow...
Quote:

Originally Posted by clort (Post 1568772)
actual device recording: http://0x0.st/iYV3.mp4
trick is to use -vo sdl for low xorg overhead

Very nice!
I wouldn't say room to spare - mplayer + Xorg usage adds up to 95+%.
But it plays!
Questions:
  • would it consume less resources if the video resolution is smaller?
  • is Leste still based on Devuan? Doesn't it have a fairly recent version of mpv? Would that be better or worse in terms of resources?

clort 2020-08-16 14:36

Re: Maemo Leste Playground
 
Thanks for catching my link error. Slow (high profile) video is http://0x0.st/iYvK.mkv

Quote:

Originally Posted by nonsuch (Post 1568780)
I wouldn't say room to spare - mplayer + Xorg usage adds up to 95+%.

Droid4 has Omap4 whish has a Dual core CPU. As top reports CPU use, one thread can be max ~100% cpu. All threads together can sum to max ~200% cpu.

Quote:

Originally Posted by nonsuch (Post 1568780)
  • would it consume less resources if the video resolution is smaller?

Yes, but I am trying to get best (native resolution) visual quality at reasonable filesize.

Quote:

Originally Posted by nonsuch (Post 1568780)
  • is Leste still based on Devuan? Doesn't it have a fairly recent version of mpv? Would that be better or worse in terms of resources?

- I hope it will be always based on Devuan.
- No, it does have a recent version of mpv 0.29.1-1.
- With mpv, I get much worse performance. mpv on the same files uses 170-180% cpu and cannot play back full framerate. The difference in performance on this device with my h264 encodes - is more than 2:1 in favor of mplayer.

clort 2020-08-17 04:56

Re: Maemo Leste Playground
 
Got Arx Fatalis (a PC openGL game from 2002) running nicely a couple weeks ago!

https://user-images.githubuserconten...9673291df9.jpg
http://0x0.st/i3qs.webm

That's the current git master version. dscharrer is making many changes so it's a big moving target.

There's a lot of UI work to do to make it playable though. But it WILL be playable :D

clort 2020-08-17 22:14

Re: Maemo Leste Playground
 
Well it took a couple days of tinkering with the build, and I can't get clean fullscreen while hildon-desktop is running. But we can get 27-33 fps in Neverball!

http://0x0.st/iYGe.jpg

5.5MB brief video
http://0x0.st/iYGQ.webm

What i'd like to have is tilt sensor bound to joystick/level tilt, along with a keybinding that lets you re-tare the current orientation to 'level'.
:)

clort 2020-08-18 22:46

Re: Maemo Leste Playground
 
The gl4es is giving problems with LIBGL_ES=2 for me. Black screen most of the time. Working on that.
Meanwhile, a dream has come true, for me at least - seeing a linux handheld with REAL OpenGL hat outperforms the HP and SGI workstations of my youth :)

This is the original glmatrix by Jamie Z.
http://0x0.st/iYhc.png
http://0x0.st/iYhi.webm
Music by my old IRC pal: Caeks - Eukleides

clort 2020-08-24 05:12

Re: Maemo Leste Playground
 
Been mucking with the Playstation Emulator since march, and it's really close.
Barrier, PC and mouse sharing is also close, but I don't have SSL encryption working yet. It sure is a treat to use the PC keyboard + mouse on phone though!
http://0x0.st/igxT.jpg
(notice cpu use around 30-40% and xorg at ~14-15%. Yeah, that rules... )
http://0x0.st/igxb.webm

Testing today went well. Only one game had some sound glitches occasionally while playing CD audio.
GPU Renderer is Exophase's NEON optimized, which emulates the PS1 gpu in software, amazingly well. Peops also is working, and some textures look sharper with it. The gles-native renderer is just yielding black screen.
http://0x0.st/ig3k.jpg
The standard pcsxr available from the devuan repo is unplayably slow, unsurprisingly. There's still some usability work - particularly adding diagonal movement, proper locations for config files. Then there's always the 'joy' of debian packaging and ensuring that builds as intended for the autobuilder.

And here's a link to a spreadsheet with compatibility - things might vary a bit with my build.
https://docs.google.com/spreadsheets...yqs/edit#gid=0

In case there's someday interest in the newer CHD image format support, this is the commit from the retroarch guys.
https://github.com/libretro/pcsx_rea...cd0aab5c00248d

clort 2020-08-25 00:09

Re: Maemo Leste Playground
 
http://0x0.st/igIv.png
the latest mupen64plus builds and runs. Mario Kart 64 runs in the 15-30fps range depending on many variables. Sound with rice GPU and 1/2 resolution, low parameters is mostly stutter-free in Mario Kart 64 with disabled compositing (killed Hildon-Desktop).

Top is reporting CPU use for mupen and Xorg in the sub-50% range for both rice and glide64mk2, yet framerates are low. I don't know how to profile the powervr GPU to see what it's spending its time doing.

Sound stuttering in Mario Kart is much worse during transitions - perhaps this happens while mupen is accessing cartridge memory or setting-up 3d objects.

Anyone interested in working on this should look at ptitseb's OpenPandora port, which may have better arm-optimized GPU plugins. I couldn't get his git to build, yet.

Definitely the heavest emulated console that runs on Droid4 at close-to-playable speed 'out of the box', so to speak.

I don't expect I'll be spending much time with it, since there's UI and packaging to do for games and emulators that run fast, already.

mupen64plus for Droid4 would be nice project though, for someone with a bit more brains than myself!

Cheers :)

preflex 2020-08-29 12:43

Re: Maemo Leste Playground
 
Quote:

Originally Posted by clort (Post 1568776)
Here is a screencap of my installed 'fun and games' on leste. I'll be working on getting as many as I can to usable (tablet-optimized) status:
http://0x0.st/iYJh.png

Holy moley! Please tell me someone has ported Catorize to Leste.

clort 2020-08-30 06:47

Re: Maemo Leste Playground
 
Quote:

Originally Posted by preflex (Post 1568977)
Holy moley! Please tell me someone has ported Catorize to Leste.

Not yet. Looks like few changes would be needed for CatorisePlus, but our QtMaemo5 is still early days. I can't get it to build. Wizzup is doing work on it i think.

More developers (even, um.. real developers) would be very welcome.

biketool 2020-08-30 08:21

Re: Maemo Leste Playground
 
Just curious(and OT) if anyone has gotten their pinephone from the latest batch? After a few weeks I checked back and they had received payment but not sent a receipt so they fixed that, hope it doesn't send me to the back of the queue.
So stoked for Maemo on an inexpensive hacker friendly bit of hardware especially with hardware keyboard forthcoming.

Android_808 2020-08-30 12:48

Re: Maemo Leste Playground
 
I seem to recall catorise had a memory leak, which is why I never used it. Some functionality could I imagine be integrated as an toggle option within Hildon for allowing grouping by application type as is done in other desktops like xfce (Office, Games, System etc).

Have you tried any SDL2 builds yet? I had a partial port for Fremantle but had problems building for GLES1 and GLES2, I had to choose one or the other.

biketool 2020-08-30 18:51

Re: Maemo Leste Playground
 
Is there any talk of including an AlienDalvik like package in Leste to run APKs for services we have been forced to include for work, school, transit, banking etc while doing the best to in a microg fashion sandbox or spoof google services over to local mapping and other spoofed services as well as spoof blocked permissions?

The Muppen64 was one of my favorites on the N900 when I was still playing mobile games. I think the pine will eventually have a choice of a gemepad or the keyboard snap-on.

clort 2020-08-30 21:31

Re: Maemo Leste Playground
 
1 Attachment(s)
Quote:

Originally Posted by Android_808 (Post 1568994)
Have you tried any SDL2 builds yet? I had a partial port for Fremantle but had problems building for GLES1 and GLES2, I had to choose one or the other.

With the libsdl2 from the repo, you need to make a window same height as available to hildon windows (484 pixels on Droid4).

I can only speculate how to patch SDL2 to play nice with hildon-desktop when an application requests smaller/larger windows than what hildon has available.

Running sdl stuff with hildon-desktop killed works as expected.

Sample project attached - window size is specified in src/defs.h

clort 2020-08-30 21:43

Re: Maemo Leste Playground
 
Quote:

Originally Posted by biketool (Post 1568998)
Is there any talk of including an AlienDalvik like package in Leste to run APKs for services we have been forced to include...

I'll just say, I can't share my feelings regarding citizens being forced to use Android/IOS to access needed services in a manner that would be remotely acceptable to this forum.

We have 'anbox' in the repo for android emulation. If someone likes android apps, please do try it out and let us know how it works.

Alien Dalvik is made for SFOS and is not open-source afaik.

linuxunux 2020-09-01 19:41

Re: Maemo Leste Playground
 
1 Attachment(s)
Quote:

Originally Posted by clort (Post 1568776)

[EDIT] Here is a screencap of my installed 'fun and games' on leste. I'll be working on getting as many as I can to usable (tablet-optimized) status:
http://0x0.st/iYJh.png

You got Anbox working? All this is super impressive.

clort 2020-09-02 06:41

Re: Maemo Leste Playground
 
Quote:

Originally Posted by linuxunux (Post 1569028)
You got Anbox working? All this is super impressive.

Nah that's just stuff available from devuan-arm that installs. I don't know how to use anbox.

You can see by the pic that there's a lot of fun to be had, testing, tweaking, fixing-up and making proper ports.

Right now i'm working on packaging my tweaked pcsx-rearmed-mld4. Build is not working as soon as i 'debianize' it. I really don't enjoy this part.

Still, with bad config it's 5 fps. With proper config, 60fps and cpu barely breaks a sweat!
http://0x0.st/iE55.jpg
Remote-controlled with 'barrier' from PC keyboard:
http://0x0.st/iE5n.webm

clort 2020-09-03 09:44

Re: Maemo Leste Playground
 
I think the drop shadows and rescaled menu background make it usable now. Text can be read even if overlapping the controller.
http://0x0.st/i6zu.png
https://0x0.st/i6zm.png
I don't really understand smalltext_out16_'s text drawing algorithm so I can't shade the background around the text.
Moving on...

clort 2020-09-09 10:33

Re: Maemo Leste Playground
 
Hi, news for pcsx-rearmed-mld4 (Maemo Leste Droid4)

* Created icons for various sizes in ./data and ./hicolor. - made a desktop file in ./data, but I don't get a menu entry. I don't understand why.

* Made almost working ./debian (creates a .deb) but apparently you can't use debian rules to make a proper ~/.pcsx ... There might be a way to use /etc/skel to copy-in configuration files to the user's home. For now you can cp -r ./.pcsx to your home dir.

* Created a github repository with changed files but the submodule libpicofe isn't integrated. You need to tar xzf libpicofe.tgz to create the files.

* You should be able to compile a working pcsx binary with ./configure && make

https://github.com/clort81/pcsx_rearmed_mld4


If anyone knows how to get the debianianization and hildon-menu stuff straightened out, that would be needed before integrating into maemo-leste.

Maemish 2020-09-09 10:46

Re: Maemo Leste Playground
 
So these are for droid? Not interested to work with N900? If you don't have one I could send you one.

clort 2020-09-09 13:14

Re: Maemo Leste Playground
 
Quote:

Originally Posted by Maemish (Post 1569194)
So these are for droid? Not interested to work with N900? If you don't have one I could send you one.

Hi Maemish, thanks. I have N900s but am not using them at the moment.
[EDIT] If you want to build it for N900 I can point to changes to make.

Maemish 2020-09-09 16:52

Re: Maemo Leste Playground
 
Check my signature. Not able to do something like that. I am an end user, not a real superuser.

Maemish 2020-09-09 16:53

Re: Maemo Leste Playground
 
And I should probably edit the signature a bit

clort 2020-09-09 17:03

Re: Maemo Leste Playground
 
I think Finnish people are generally super :)

I'll try to fix the deb to launch from maemo menu ( desktop file) and copy the configuration to /home/user next. Are you interested in using pcsx under maemo-leste on N900?

If anyone sees mistakes I made, please tell me. I am an amateur.

linuxunux 2020-09-10 02:02

Re: Maemo Leste Playground
 
Hey Clort,
Thanks for your hard work! Do you have a git hub so we can follow along and perhaps expand?

clort 2020-09-10 02:43

Re: Maemo Leste Playground
 
Quote:

Originally Posted by linuxunux (Post 1569215)
Hey Clort,
Thanks for your hard work! Do you have a git hub so we can follow along and perhaps expand?

https://github.com/clort81/pcsx_rearmed_mld4

Other gits besides Microsofts might be better, but things are discovered more easily by other people on github.

Android_808 2020-09-10 17:45

Re: Maemo Leste Playground
 
Is the desktop file being installed to correct location?
With regards to ~/ pcsx, shouldn't that be created after initial run? If it's too set some config settings, wouldn't that be better done in the source?

clort 2020-09-11 08:27

Re: Maemo Leste Playground
 
Ah, a menu entry appears under the debian files, when the desktop file is placed in /usr/share/applications/debian/pcsxmld4.desktop

No icon yet.

Would prefer it in the main mameo-leste area.

[EDIT] Regarding config files, yeah you're supposed to do it in the program, not with debian tools.

[EDIT2] Did I mention power use is really good for an emulator? Playing rpgs with frameskip2, i get 353 mA power drain. Idle power is currently at a creepily high 117 mA so pcsx-rearmed is using about 236mA

[EDIT3] We has icon! We CAN HAS icon! :)

http://0x0.st/iIHg.jpg

[EDIT4] The most bothersome pcsx-mld4 issues:
  • Not appearing in hildon startup menu. Is osso-games-startup still a sensible thing for leste?
  • Config dir ~/.pcsx not yet created properly
  • Emu not accepting control-backspace hildon minimization for task-switching in game or game-menu.
  • Doesn't pause when screen-blanking triggers and prevents proper blanking.
  • libSDL1.2 in leste repo still has broken fullscreen at least on my Droid4. My patched one seems to work for me. Maybe I can statically link it in?
  • Occasionally an overlaid hildon message results in a garbled pcsx window. Maybe we can disable hildon status messages temporarily? Or maybe I could add a keycombo to pcsx for 'quit' (sigstp or something) in case i can't prevent garbling reliably? Otherwise it needs to be killed from ssh.
Would be nice to have:
  • Add up-diagonal direction controls. I'd like to have diagonal up on '.' and 'ok'. [Down diagonals can be hit by mashing down+left/right.]
  • In-game volume adjustment keys
  • In-game gamma adjustment (easy to do with xgamma)
  • In-game key toggle for slowing down emulation (for difficult games / passages)
  • Fix Toggle keys for FPS Display, Displaymode, Fullscreen

clort 2020-10-07 01:25

Re: Maemo Leste Playground
 
http://0x0.st/i0x4.jpg

Haven't made progress with emus, so I thought i'd share some video of the Maemo Leste Playground
http://0x0.st/i0xf.webm

Maemish 2020-10-07 14:59

Re: Maemo Leste Playground
 
How well this stuff of yours would work on N900? Like is there something that of course and then something like dream on?

clort 2020-10-07 17:03

Re: Maemo Leste Playground
 
Quote:

Originally Posted by Maemish (Post 1569552)
How well this stuff of yours would work on N900? Like is there something that of course and then something like dream on?

PSX and SNES have maemo versions which run fine on omap3. I have to someday fix my USB on the n900s to play with them again.

preflex 2020-10-09 00:58

Re: Maemo Leste Playground
 
Quote:

Originally Posted by clort (Post 1569546)
http://0x0.st/i0x4.jpg

Haven't made progress with emus, so I thought i'd share some video of the Maemo Leste Playground
http://0x0.st/i0xf.webm


Is that a pyra?

clort 2020-10-09 15:12

Re: Maemo Leste Playground
 
Quote:

Originally Posted by preflex (Post 1569593)
Is that a pyra?

OpenPandora, 2nd batch.

clort 2020-10-13 06:11

Re: Maemo Leste Playground
 
https://abload.de/img/diablodgkvz.png

Diablo running nicely - 26-30 fps at 640x480, 32bpp with sdl1.2 :)

DevilutionX is a fairly new engine, should be possible to get widescreen and faster backend rendering. Adaptation to touchscreen isn't done yet.

Not really one I'm keen to work on, but if there are Diablo fans out there, it does run well.

Video, 6MB http://0x0.st/iGp-.webm

Edit. I just realized a small hack would make it a fun roguelike, for me: Only advance game time when player moves or performs an action. This would also let us drop screen updates to zero between moves and make it a battery-sipping game.

[edit] that might be doable without too much work. the UI needs help to be playable on that small screen.
https://abload.de/img/diab3fikdh.jpg
another variant
https://abload.de/img/diab4diagalktw.jpg
No, for thumb haptics, buttons should be down the left side...
https://abload.de/img/diab5diag4gkt8.jpg

Scaling 2x for visibility on 960x540 would yield 23% loss in vertical view area compared too original Diablo1 - would that hinder gameplay too much?
https://abload.de/img/diabloleste1015vlostx5jq7.jpg

clort 2020-10-18 04:37

Re: Maemo Leste Playground
 
https://abload.de/img/cant_have_2_much_lestiajtp.jpg
Sharing the work in progress:

There's a git page for the pcsx-rearmed.
https://github.com/clort81/pcsx_rearmed_mld4


There's a .deb binary
http://0x0.st/iDAt.deb
Should get you a menu entry under 'Debian' menu to launch the emulator.
My patches to libsdl aren't approved yet. I still should figure out the minimal change to get fullscreen working. If you want fullscreen sdl you'll need to untar this and 'make install' (with installed build-dep prerequisites for libsdl).
http://0x0.st/iDAw.tgz


All times are GMT. The time now is 11:47.

vBulletin® Version 3.8.8