Author Topic: OpenDingux: first end-user release  (Read 65053 times)

mth (OP)

  • Posts: 317
Re: OpenDingux: first end-user release
« Reply #100 on: June 27, 2012, 09:33:23 am »
I'm trying to add sound to OpenBOR, but I'm getting the following error:
Code: [Select]
ALSA lib pcm.c:7316:(snd_pcm_recover)underrun occurred
/media/mmcblk0p1/local/games/OpenBOR/OpenBOR.dge Aborted
Any idea?
Usually "Aborted" means that a process was killed and if you didn't kill it, maybe the kernel did (out-of-memory killer). Does it say anything in the kernel log (dmesg)?

Quote from: Shin-NiL
I have one more question: I used to read "/proc/meminfo" to know how much memory was free and used in the system, but I realized that it no longer works. How could I get this information on OpenDingux?
Why doesn't it work anymore? The "/proc/meminfo" pseudo-file is still there in OpenDingux. Maybe the format changed?

Why do you want to know free memory? OpenDingux uses zram (compressed RAM) swap by default and can optionally swap to SD card, so it is not straightforward to determine how much memory is available. Also note that Linux in general caches as much as possible, so the amount of unused memory will approach zero as a system runs longer, but the cached data will be discarded if a program needs more memory.

DiegoSLTS

  • Posts: 365
Re: OpenDingux: first end-user release
« Reply #101 on: June 27, 2012, 01:36:06 pm »
I'm trying to add sound to OpenBOR, but I'm getting the following error:
Code: [Select]
ALSA lib pcm.c:7316:(snd_pcm_recover)underrun occurred
/media/mmcblk0p1/local/games/OpenBOR/OpenBOR.dge Aborted
Any idea?
I think you have 2 different errors there. From what I understand, underrun occurred is related to the audio buffer and the audio data your app puts in there, it means you send some data but ALSA expected more.

And I said that there are 2 different errors because I'm testing an emulator and I get that message a lot, but it keeps running after those messages, it doesn't make it crash. Maybe your "Aborted" is caused by something else.

Shin-NiL

  • Posts: 355
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: OpenDingux: first end-user release
« Reply #102 on: June 28, 2012, 04:40:25 am »
Thank you very much mth & DiegoSLTS, I think you two are right. These was actually two different errors. Playing some small pak files I only got the ALSA one, but it keeps running. The program only aborts with bigger paks.

Using telnet I got the full log:
Code: [Select]
opendingux:/boot/local/games/OpenBOR # ./OpenBOR.dge
ALSA lib pcm.c:7316:(snd_pcm_recover) underrun occurred
./OpenBOR.dge: libc/misc/ctype/ctype.c: 281: tolower: Assertion `((((unsigned int)((c) - 0)) <= ((127 * 2 + 1) - 0)) || ((c) == (-1)))' failed.
Aborted

About meminfo, it still works, like mth said, just changed the layout :-[

Thank you guys!

mth (OP)

  • Posts: 317
Re: OpenDingux: first end-user release
« Reply #103 on: June 28, 2012, 06:01:03 pm »
Using telnet I got the full log:
Code: [Select]
opendingux:/boot/local/games/OpenBOR # ./OpenBOR.dge
ALSA lib pcm.c:7316:(snd_pcm_recover) underrun occurred
./OpenBOR.dge: libc/misc/ctype/ctype.c: 281: tolower: Assertion `((((unsigned int)((c) - 0)) <= ((127 * 2 + 1) - 0)) || ((c) == (-1)))' failed.
Aborted

This means you passed an out-of-range character value to the tolower() function. The man page of tolower() states:
Quote from: POSIX
The tolower() function has as a domain a type int, the value of which is representable as an unsigned char or the value of EOF. If the argument has any other value, the behavior is undefined.

Jutleys

  • Posts: 1793
Re: OpenDingux: first end-user release
« Reply #104 on: June 29, 2012, 10:22:05 am »
I have noticed something in the open dingux release when you shutdown from gmenu and leave the dingoo for long periods like a week the battery drains bad and most of the time find its totally dead.But if you press restart to native firmware from gmenu and switch off then it seems fine is something draining battery in the code when shutdown in dinglux?

pcercuei

  • Posts: 1675
    • My devblog
Re: OpenDingux: first end-user release
« Reply #105 on: June 29, 2012, 02:49:49 pm »
When powering off, from OD or native, the full hardware is shut down. So what you describe must be a coincidence.

K-77

  • * Former Staff
  • Posts: 343
Re: OpenDingux: first end-user release
« Reply #106 on: June 29, 2012, 03:09:28 pm »
Yes, there's a virus in OD code which is destroying your battery when you sleep <evil_laugh.mp3>

mth (OP)

  • Posts: 317
Re: OpenDingux: first end-user release
« Reply #107 on: June 29, 2012, 04:49:56 pm »
When powering off, from OD or native, the full hardware is shut down. So what you describe must be a coincidence.
The full JZ4740 SoC is shut down. Maybe something else (ILI?) could still be consuming power though. Can anyone reproduce this issue?

Did you have TV-out enabled when you shut down by any chance? Because the TV-out is not properly integrated into the kernel yet and therefore the TV encoder chip is not powered down on suspend or power off if TV-out is active.

Jutleys

  • Posts: 1793
Re: OpenDingux: first end-user release
« Reply #108 on: June 29, 2012, 10:31:25 pm »
When powering off, from OD or native, the full hardware is shut down. So what you describe must be a coincidence.
The full JZ4740 SoC is shut down. Maybe something else (ILI?) could still be consuming power though. Can anyone reproduce this issue?

Did you have TV-out enabled when you shut down by any chance? Because the TV-out is not properly integrated into the kernel yet and therefore the TV encoder chip is not powered down on suspend or power off if TV-out is active.

No I don't use tv out its happened to me twice now normally power keeps well whilst device is off for long periods before but now it's noticeable draining more power whilst shut down.

Great Crippler

  • Posts: 167
Re: OpenDingux: first end-user release
« Reply #109 on: June 30, 2012, 04:36:28 am »
Not sure if I should post this here, or on the PocketSNES page, but everytime I launch a game now with Open Dingux, and PocketSNES, I don't get any in-game noise, just a painful static sound. Any thoughts?

HercTNT

  • Posts: 697
Re: OpenDingux: first end-user release
« Reply #110 on: June 30, 2012, 06:09:21 am »
In the Pocketsnes post above this one, Denny79 explains the fix.  Thanks Denny :)  Now Denny, if your reading this, can you tell me how to add and change wallpaper in opendingux. I posted in the Help section, but i guess no one wanted to help :p

pcercuei

  • Posts: 1675
    • My devblog
Re: OpenDingux: first end-user release
« Reply #111 on: June 30, 2012, 12:17:23 pm »
You can add your wallpapers, in PNG format, in local/home/.gmenu2x/skins/Default/wallpapers on the SD (or the corresponding folder if you don't use the default skin), and they'll be shown on the wallpaper selection menu.

HercTNT

  • Posts: 697
Re: OpenDingux: first end-user release
« Reply #112 on: June 30, 2012, 07:30:37 pm »
Ayla, thank you for the reply. I knew how to do it on regular dingux, and figured opendingux would be the same. When I formatted my card and installed OD from scratch, those directories disappeared and i got confused.

Shin-NiL

  • Posts: 355
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: OpenDingux: first end-user release
« Reply #113 on: July 07, 2012, 03:56:07 am »
openbor has no sound but works and zdoom works but no sound am i doing something wrong or is there a sound issue here picodrive works fine with sound.

Ok what about openbor

Zdoom has no sound, even in legacy dingux.

Here's OpenBOR compiled for OpenDingux: http://www.mediafire.com/?dlch8r8dmbys958
I think it is much faster now ;)

Thank you guys for the tips!

More info here: http://www.shinnil.co.cc/2012/07/openbor-otimizado-para-opendingux.html

samir

  • Posts: 344
Re: OpenDingux: first end-user release
« Reply #114 on: July 07, 2012, 09:24:41 pm »
Thanks!!!

Gman

  • Posts: 80
.
« Reply #115 on: July 07, 2012, 10:28:19 pm »
.
« Last Edit: September 21, 2018, 12:04:37 am by Gman »

Coccijoe

  • Posts: 366
    • Underground Portables
Re: OpenDingux: first end-user release
« Reply #116 on: July 08, 2012, 04:17:17 pm »
Thanks shin-nil!

samir

  • Posts: 344
Re: OpenDingux: first end-user release
« Reply #117 on: July 09, 2012, 06:01:32 am »
I have a question.. How to use swap for 64 mb or more in OD?

K-77

  • * Former Staff
  • Posts: 343
Re: OpenDingux: first end-user release
« Reply #118 on: July 10, 2012, 12:59:13 pm »
Shin-NiL

Respect sir. Thank you.
« Last Edit: July 10, 2012, 01:20:08 pm by kowkar77 »

pcercuei

  • Posts: 1675
    • My devblog
Re: OpenDingux: first end-user release
« Reply #119 on: July 10, 2012, 02:28:59 pm »

 

Post a new topic