Update new firmware update (future SZ v1.74) - please help testing

Discussion in 'Pandora OS (SuperZaxxon GNU/Linux)' started by notaz, Feb 28, 2016.

  1. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,904
    Location:
    Lithuania
    • kernel: updated to 3.2.78
    • kernel: the vsync code has been rewritten: multiple programs can now wait for vsync, it now works correctly when LCD is off and TV-out is on
    • kernel: added a new custom adaptive vsync ioctl
    • kernel: added a new custom ioctl to read the line counter
    • kernel: changed the LCD timings to reduce the VFP<->vsync window. Possibly reduced flicker in 50Hz mode too.
    • kernel: enabled the xpad (xbox/xinput compatible gamepad) driver (no idea why it was off...)
    • kernel: it's now possible to map memory at virtual address 0 (might be useful for some emulators)
    • kernel: fixed a SD card read corruption (reported by dgame)
    • kernel: the default SGX driver should no longer crash when display is turned off (usually when lid is closed) and 3D program is running
    • SDL: now uses the new adaptive vsync when SDL_OMAP_VSYNC is enabled
    • bluez: /etc/bluetooth/audio.conf defaults changed to enable the socket API. Note that this disables the dbus API, so you may need to edit the file if you need it. See http://www.lightofdawn.org/blog/?viewDetailed=00031 for more info.
    • fixed bluetooth suspend (patch by urjaman)

    It all started when TomB contacted me about issues with vsync that he has been having (it's hard to do vsync when pandora is barely fast enough for the game without trashing performance) and I realized I often have trouble with that too. So I've thought of and implemented some kernel hacks to deal with it, after that collected some other fixes and here is the update.

    I'm a bit worried about the new LCD timings because I think there are at least 3 different LCD types in various pandora batches. I'm also not sure about the 50Hz mode flicker, it sometimes doesn't show for me even with the old timings, I hope some Amiga fans can report if it helps or not.

    So far it's a "System -> Upgrade pandora OS" update only, but if someone wants a full reflash I can build that too.
     
    Last edited: Feb 28, 2016
    Tags:
    ingoreis, Michoko, _jr_ and 3 others like this.
  2. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,042
    Location:
    France, near Lyon
    Nice fix/improvement list! :)

    I'll try to update my 3 Pandoras and do some testing...
     
  3. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,047
    Location:
    Innsmouth, MA
    Hi all :)

    @notaz : I have just updated my Rebirth unit, and no issues so far.

    Thanks again for your hard work !

    Cheers, Magic Sam
     
  4. Farox

    Farox Certified Guru

    Joined:
    Jan 8, 2009
    Messages:
    1,959
    Location:
    Italy
    Just updated to SZ 1.73 Update 7 on my CC Pandora and (without other test) all is fine.

    Thanks notaz:cool:
     
  5. EvilDragon

    EvilDragon Administrator Staff Member

    Joined:
    Mar 4, 2003
    Messages:
    19,401
    Location:
    Ingolstadt
    Oh, that sounds interesting!
    I'll test it!

    I hope nxengine will work a bit better, scrolling is anything but smooth right now :)
     
  6. PowerGod

    PowerGod Advanced Member

    Joined:
    Jun 20, 2011
    Messages:
    2,746
    good stuff !
     
  7. FBnil

    FBnil What is laugh? Baby don't hurt me....

    Joined:
    Dec 14, 2012
    Messages:
    2,364
    Location:
    Yurp
    successfully upgraded. Nothing exploded so far.
     
  8. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,042
    Location:
    France, near Lyon
    I updated my CC. Tested a bit a few game (including F1-Spirit that swith LCD to 50Hz mode) and had no issue so far.
     
  9. SNESFAN

    SNESFAN Retro game fanatic

    Joined:
    Oct 3, 2008
    Messages:
    3,378
    Location:
    Fort Knox, KY. USA
    Just updated, first issue I seen is with Snes9x EX. Loaded a game and it shows a little white box in the upper right corner, going back into menu has all the menu textures corrupted (white boxes) exiting fixes it temporarily, reloading reproduces it. Started happening after I updated this morning.

    GC pandora, haven't done any troubleshoot on it yet. Will try clearing app data and trying agian.

    EDIT: nope that made it worse, unplayable video corrupted
    EDIT2: had to kill all my save states, working now. Don't know if there's any correlation
    EDIT3: nope something is definately corrupting my save states
     
    Last edited: Feb 28, 2016
  10. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,904
    Location:
    Lithuania
    Which version is that? There are several on the repo.

    Sounds more like SGX driver, maybe you changed it recently?
    SGX driver problems are pretty much unfixable, the only thing you can do is try a different one.
     
  11. SNESFAN

    SNESFAN Retro game fanatic

    Joined:
    Oct 3, 2008
    Messages:
    3,378
    Location:
    Fort Knox, KY. USA
    I think it's his build 15, whatever was updated earlier this month. Was playing just fine up until I updated system software.

    https://repo.openpandora.org/includes/download.php?app=snes9xex_ptitseb

    The video corruption appears to just be a side effect of data written to SD getting corrupted. Will test some more things.
    EDIT: deleted the app, redownloaded, cleared app data, cleared save states, problem returns.

    The other SNES emulators i've tried so far remain unaffected.
     
    Last edited: Feb 28, 2016
  12. edgex004

    edgex004 Advanced Member

    Joined:
    Jan 5, 2008
    Messages:
    1,158
    Have you tried both versions of SNES EX that come in the PND? I have found the older version to be highly unstable in the latest release. While I am suspicious of my save states, it sounded like others were having issues as well. I have not yet tested with deleting my save states to see if the issue is corrected.

    This could be OS related, but I have noticed issues with SNES EX on a unit that is still running SZ 1.72, so I am wary of blaming the OS here.

    I'll try to test tonight if I can to see if deleting save states fixes things for me.
     
  13. ekianjo

    ekianjo Hardcore Member

    Joined:
    May 7, 2012
    Messages:
    8,261
    Location:
    神戸市、日本 (Japan)
    how did you achieve that?
    --- Double Post Merged, Feb 29, 2016, Original Post Date: Feb 29, 2016 ---
    Just tested in new firmware, no change. NXengine's problem is with the way the engine deals with scrolling, not with the Pandora :)
    --- Double Post Merged, Feb 29, 2016 ---
    Does it mean that all PNDs have to be updated to take advantage of this if they use SDL ?
     
  14. TrashyMG

    TrashyMG Sarcasm Dispenser Staff Member

    Joined:
    Jan 18, 2010
    Messages:
    10,192
    That environment variable is already in use on some PNDs to fix tearing. I believe all this is implying is it will now use an adaptive vsync method if using it.
     
  15. ekianjo

    ekianjo Hardcore Member

    Joined:
    May 7, 2012
    Messages:
    8,261
    Location:
    神戸市、日本 (Japan)
    any example of PND using this flag? I don't remember seeing it before.
     
  16. TrashyMG

    TrashyMG Sarcasm Dispenser Staff Member

    Joined:
    Jan 18, 2010
    Messages:
    10,192
    Honestly though that is what I used opentyrian to fix some tearing issues, But looking at my start up script that may have been just "SDL_OMAP_FORCE_DOUBLE_BUF".
     
  17. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,904
    Location:
    Lithuania
    I've tried it and it worked fine like 8 times in a row. Then did a reboot and got the symptoms you reported on first try. Booted the old kernel, it then worked a few times but crashed the SGX driver on third try.

    By the looks of it it's the app's fault. Probably some random memory corruption which either hits critical parts of the program or not based on luck. When it hits the SGX driver (the driver blob lives inside of the program as a .so file, not kernel) it either breaks graphics or causes SGX hang, after which all hell breaks loose. The fact that 1.53 version of the same emu is unaffected supports this guess.

    The driver blob comes with some open source glue code (the kernel part). That particular problem was in the glue code (TI's adaptation layer by the look of it).

    Only if you want to use vsync. Note that it's only useful in limited number of cases, similar like on the PC.

    It's been implemented and documented for many years:
    http://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=sdl_omap.git;a=blob;f=README.OMAP;hb=HEAD#l65

    An example PND is Giana's Return. There are plenty more.
     
    _jr_ likes this.
  18. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    9,645
    Location:
    Somewhere off the coast of the EU
    Just reflashed to 1.73 (to get the SD card goodness) and then upgraded to 1.74. Tested SNES9x-EX before and after, and the newer build worked fine in both.

    I also happened to test Snes9x4P and noticed that it takes a lot longer after you exit the emulator to get back to picklelauncher since 1.73, compared to 1.72. 1.74 is no slower though.

    I also tested Kroniax, which I had trouble with tearing before on my TV out only GHz unit. This is now much improved and almost silky smooth, thanks!
     
  19. SNESFAN

    SNESFAN Retro game fanatic

    Joined:
    Oct 3, 2008
    Messages:
    3,378
    Location:
    Fort Knox, KY. USA
    Thanks for looking into this, if ptitseb doesn't see this I'll pass him a note.

    In the mean time I'll use 1.53 or a different emu
     
    Last edited: Mar 1, 2016
  20. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,904
    Location:
    Lithuania
    It's also the app's fault. When you are in the menu, it keeps writing to the sound buffer while keeping the audio paused. When you exit it waits for the sound buffer drain out (play) and that's what causes the delay. If you enter the menu and quickly exit you won't get the delay.

    Well at least that worked.

    Can anyone who had the LCD flicker in 50Hz mode check if it improved?
     

Share This Page

Loading...