PS2 PS2Eject 0.6

A simple homebrew to eject the disc tray of a PS2

  1. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    TnA, Algol, jolek and 2 others like this.
  2. 5,910
    2,943
    497
    atreyu187

    atreyu187 Old Hunter Moderator

    Joined:
    Sep 29, 2014
    Messages:
    5,910
    Likes Received:
    2,943
    Trophy Points:
    497
    Gender:
    Male
    Occupation:
    Scholar of Byrgenwerth
    Location:
    Cainhurst Castle
    Home Page:
    Thanks I always wanted something like this!!
     
    VTSTech likes this.
  3. 2
    0
    5
    BenjaQ

    BenjaQ Forum Noob

    Joined:
    Nov 3, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    What is this?, how I make it work?
     
  4. 1,388
    747
    222
    TnA

    TnA Senior Member

    Joined:
    Jul 1, 2018
    Messages:
    1,388
    Likes Received:
    747
    Trophy Points:
    222
    Gender:
    Male
    Location:
    Germany --> Saxony
    Well, sadly it doesn't support 'closing', but interesting nonetheless, because this version/variant seems to be working everywhere.
     
  5. 1,756
    1,397
    347
    jolek

    jolek Senior Member

    Joined:
    Dec 29, 2017
    Messages:
    1,756
    Likes Received:
    1,397
    Trophy Points:
    347
    Gender:
    Male
    Thanks for this app.
    I've tried it on SCPH-50004, works like a charm.

    Can you reduce the time needed to restart?
    30 s is quite a bit...
    What about e.g. 10s or give a notification\prompt "Press "X" to exit".
     
  6. 1,388
    747
    222
    TnA

    TnA Senior Member

    Joined:
    Jul 1, 2018
    Messages:
    1,388
    Likes Received:
    747
    Trophy Points:
    222
    Gender:
    Male
    Location:
    Germany --> Saxony
    Yes a choice for Eject, Close and Exit would be nice!
     
  7. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    Didn't know how to parse input when I wrote this :P I can add that in a bit.
     
    TnA and jolek like this.
  8. 1,388
    747
    222
    TnA

    TnA Senior Member

    Joined:
    Jul 1, 2018
    Messages:
    1,388
    Likes Received:
    747
    Trophy Points:
    222
    Gender:
    Male
    Location:
    Germany --> Saxony
    If you would implement these things, it would be quite cool:
    • Selection/Choice for Ejecting, Closing and Exiting
    • Probably argument-support, to call a function from an external/another ELF-Launcher. That would be useful, if FMCB's or wLE's ELF-Launcher ever supports arguments!
    • A real intermediate ELF-Loader, which clears everything, is loaded at a better adress and runs more apps!
     
    VTSTech and jolek like this.
  9. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    Last edited by a moderator: Dec 6, 2019
    jolek and TnA like this.
  10. 1,388
    747
    222
    TnA

    TnA Senior Member

    Joined:
    Jul 1, 2018
    Messages:
    1,388
    Likes Received:
    747
    Trophy Points:
    222
    Gender:
    Male
    Location:
    Germany --> Saxony
    Great! That's much smaller! That will start a little bit faster and spare some more storage-space!
     
  11. 1,756
    1,397
    347
    jolek

    jolek Senior Member

    Joined:
    Dec 29, 2017
    Messages:
    1,756
    Likes Received:
    1,397
    Trophy Points:
    347
    Gender:
    Male
    This can come in handy.
    E.g. :but x: to open tray, :but tri: for close, :but start: for reboot.
     
    VTSTech and TnA like this.
  12. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    VTSTech updated PS2Eject with a new update entry:

    PS2Eject v0.4

    Read the rest of this update entry...
     
    Last edited by a moderator: Dec 20, 2019
    TnA and jolek like this.
  13. 1,756
    1,397
    347
    jolek

    jolek Senior Member

    Joined:
    Dec 29, 2017
    Messages:
    1,756
    Likes Received:
    1,397
    Trophy Points:
    347
    Gender:
    Male
    Thanks for new version.
    Currently I can eject tray with :but x:, close it with :but cir:.
    I'm not entirely sure what for are sceCdTrayReq(2) and sceCdTrayReq(3).

    I don't know if it meant to be that way, but if I press :but square: or :but tri: couple times I'll get:
    [​IMG]
    So the screen will be "overwrite" with new logs, but the initial commands will be lost.
    It'll looks a bit messy.
     
    TnA likes this.
  14. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    I'll add a check for scr_GetY() and if it's beyond a certain value scr_clear();

    That should keep screen from getting too messy.

    Don't have a FAT myself so wasn't sure which command was 'Insert', I can make those titles more descriptive now.

    Next version will have SEL for DriveState()

    Also support Seek/Read states detection, should those ever occur.

    Looks like I need to add a \n on the failed msg too. Never had a cmd fail before.
     
    TnA and jolek like this.
  15. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    VTSTech updated PS2Eject with a new update entry:

    PS2Eject v0.5
    Read the rest of this update entry...
     
    Last edited by a moderator: Dec 20, 2019
    TnA, RivalK93, Algol and 1 other person like this.
  16. 1,756
    1,397
    347
    jolek

    jolek Senior Member

    Joined:
    Dec 29, 2017
    Messages:
    1,756
    Likes Received:
    1,397
    Trophy Points:
    347
    Gender:
    Male
    It might be a cosmetic change, but the reason why I wanted to have :but x: for open tray, :but tri: for close...
    Is because of a button layout on DS2:
    [​IMG]

    I've notice while closing tray with PS2 game (18) Unknown call when I pressed :but select::
    [​IMG]

    scr_clear seems to work, so thanks for updates.
     
    TnA and VTSTech like this.
  17. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    These are the drive states defined in PS2SDK
    --
    //Drive states
    enum SCECdvdDriveState{
    SCECdStatStop = 0x00,
    SCECdStatShellOpen,
    SCECdStatSpin,
    SCECdStatRead = 0x06,
    SCECdStatPause = 0x0A,
    SCECdStatSeek = 0x12,
    SCECdStatEmg = 0x20,
    };

    https://github.com/ps2dev/ps2sdk/blob/master/common/include/libcdvd-common.h

    So not sure what 18 is...Maybe 18 is 'Inserting' or some sort of Tray Open to Tray Closed transition state.
     
    jolek likes this.
  18. 346
    445
    97
    VTSTech

    VTSTech Developer

    Joined:
    Apr 8, 2019
    Messages:
    346
    Likes Received:
    445
    Trophy Points:
    97
    Gender:
    Male
    Home Page:
    Algol, jolek and TnA like this.
  19. 1,756
    1,397
    347
    jolek

    jolek Senior Member

    Joined:
    Dec 29, 2017
    Messages:
    1,756
    Likes Received:
    1,397
    Trophy Points:
    347
    Gender:
    Male
    One last thing that I forgot to mention, is a position of the screen\text.
    No matter if I'll set 4:3 or widescreen in my LCD TV I"ll get:
    [​IMG] (Widescreen)

    [​IMG] (4:3)

    Top of text is cut.

    In other projects everything seems to be fine.
    [​IMG] (Fortuna launcher)

    [​IMG] (Component test)

    [​IMG] (TESTMODE Launcher)
     
    TnA likes this.
  20. 40
    8
    37
    Impaler

    Impaler Member

    Joined:
    Nov 24, 2016
    Messages:
    40
    Likes Received:
    8
    Trophy Points:
    37
    Gender:
    Male
    Can anybody tell me what exactly is the point of this program? I mean I can push a button and open the tray. What am I missing here??
     

Share This Page