AtmoWakeHelper - 1.00 - Solution for auto COM reconnect on sleep/resume (1 Viewer)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,954
    5,626
    France - IDF
    Home Country
    France France
    ah, because you be removed from gitignore.
    or add it as Zip. i don't know if we can set one folder than without control by gitignore.

    @Sebastiii : est-ce que tu sais si, on peut définir un dossier comme libre, à savoir pouvoir y mettre des extensions qui sont normalement interdit pour commit mais qui peuvent être autorisé dans un dossier précis ?

    I'm sorry guy's to talk in french, but more easy for me for have help.
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Already put up a link in the disclaimer in my first post and added it to the readme on github :) ,USBDeview is made by NirSoft which makes awesome tools.
    Only program I could find that handled COM reconnection correctly via command line.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    OK, first resume :) and i got an AtmoLight error, but it seemed to have recovered nicely. I did have to toggle the LEDs manually though:
    [hide]
    [2014-05-23 22:33:22,868] [Log ] [MPMain ] [INFO ] - g_Player.OnStarted() \\SERVER\Timeshifting\live4-0.ts.tsbuffer media:TV
    [2014-05-23 22:33:22,871] [Log ] [MPMain ] [DEBUG] - AtmoLight: Video detected.
    [2014-05-23 22:33:22,872] [Log ] [MPMain ] [DEBUG] - AtmoLight: LEDs can be activated.
    [2014-05-23 22:33:22,872] [Log ] [MPMain ] [INFO ] - AtmoLight: Changing AtmoLight effect to: MediaPortalLiveMode
    [2014-05-23 22:33:22,872] [Log ] [MPMain ] [DEBUG] - AtmoLight: Changing AtmoWin effect to: cemLivePicture
    [2014-05-23 22:33:22,882] [Error ] [MPMain ] [ERROR] - AtmoLight: Error with SetAtmoEffect!
    [2014-05-23 22:33:22,955] [Error ] [MPMain ] [ERROR] - AtmoLight: Exception: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

    [2014-05-23 22:33:22,956] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Reinitialising.
    [2014-05-23 22:33:22,957] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Disconnecting from AtmoWin.
    [2014-05-23 22:33:22,958] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: Trying to stop AtmoWin.
    [2014-05-23 22:33:22,959] [Log ] [MPMain ] [WARN ] - tvhome:startplay. Phase 2 - 2377 ms - Done starting g_Player.Play()
    [2014-05-23 22:33:22,959] [Log ] [MPMain ] [DEBUG] - g_Player: ShowFullScreenWindow
    [2014-05-23 22:33:22,959] [Log ] [MPMain ] [INFO ] - g_Player: ShowFullScreenWindow switching to fullscreen tv
    [2014-05-23 22:33:22,959] [Log ] [MPMain ] [DEBUG] - Window: TvPlugin.TVGuide deinit
    [2014-05-23 22:33:22,993] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: AtmoWin successfully stopped.
    [2014-05-23 22:33:22,994] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Initialising.
    [2014-05-23 22:33:22,995] [Log ] [MPMain ] [DEBUG] - TextureManager: CleanupThumbs()
    [2014-05-23 22:33:22,995] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Trying to start AtmoWin.
    [2014-05-23 22:33:23,000] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: AtmoWin successfully started.
    ................
    [2014-05-23 22:33:24,002] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Trying to connect to AtmoWin.
    [2014-05-23 22:33:24,002] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Getting AtmoWin Remote Control.
    [2014-05-23 22:33:24,034] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Successfully got AtmoWin Remote Control.
    [2014-05-23 22:33:24,034] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Changing AtmoWin effect to: cemLivePicture
    [2014-05-23 22:33:24,202] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: Successfully changed AtmoWin effect to: cemLivePicture
    [2014-05-23 22:33:24,202] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Getting AtmoWin Live View Control.
    [2014-05-23 22:33:24,204] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Successfully got AtmoWin Live View Control.
    [2014-05-23 22:33:24,204] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Changing AtmoWin Liveview Source to: lvsExternal
    [2014-05-23 22:33:24,277] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: Successfully changed AtmoWin Liveview Source to: lvsExternal
    [2014-05-23 22:33:24,277] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Getting Liveview Resolution.
    [2014-05-23 22:33:24,277] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Liveview capture resolution is 64x48. Screenshot will be resized to this dimensions.
    [2014-05-23 22:33:24,277] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Successfully connected to AtmoWin.
    [2014-05-23 22:33:24,278] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Initialising successfull.
    [2014-05-23 22:33:24,278] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: Changing AtmoLight effect to: Undefined
    [2014-05-23 22:33:24,278] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Changing AtmoWin effect to: cemDisabled
    [2014-05-23 22:33:24,327] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: Successfully changed AtmoWin effect to: cemDisabled
    [2014-05-23 22:33:24,347] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Setting static color to R:0 G:0 B:0.
    [2014-05-23 22:33:24,356] [Log ] [AtmoLight Reinitialise] [INFO ] - AtmoLight: Successfully set static color to R:0 G:0 B:0.
    [2014-05-23 22:33:24,356] [Log ] [AtmoLight Reinitialise] [DEBUG] - AtmoLight: Reinitialising successfull.
    -----------------------
    [2014-05-23 22:57:52,366] [Log ] [MPMain ] [INFO ] - AtmoLight: Opening AtmoLight context menu.

    [2014-05-23 22:57:53,828] [Log ] [MPMain ] [INFO ] - AtmoLight: Changing AtmoLight effect to: MediaPortalLiveMode
    [2014-05-23 22:57:53,829] [Log ] [MPMain ] [DEBUG] - AtmoLight: Changing AtmoWin effect to: cemLivePicture
    [2014-05-23 22:57:53,836] [Log ] [MPMain ] [INFO ] - AtmoLight: Successfully changed AtmoWin effect to: cemLivePicture
    [2014-05-23 22:57:53,837] [Log ] [MPMain ] [DEBUG] - AtmoLight: Changing AtmoWin Liveview Source to: lvsExternal
    [2014-05-23 22:57:53,880] [Log ] [MPMain ] [INFO ] - AtmoLight: Successfully changed AtmoWin Liveview Source to: lvsExternal
    [2014-05-23 22:57:53,881] [Log ] [MPMain ] [DEBUG] - AtmoLight: Adding 25ms delay to the LEDs.
    [2014-05-23 22:57:53,882] [Log ] [AtmoLight SetPixelData] [DEBUG] - AtmoLight: Starting delay thread.
    [2014-05-23 22:57:53,882] [Log ] [MPMain ] [DEBUG] - AtmoLight: Changing delay to 25ms.
    [/hide]
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Yeah,
    if i understand correctly, AtmoWakeHelper stops AtmoWin after resume, so the connection between AtmoLight and AtmoWin is lost. And AtmoLight than restarts this connection. You had to use context menu because AtmoLight saw undefined as last effect. Can you give me the full log so i can check what happend before?

    I think it would be best to include this into either AtmoWin or AtmoLight. Preferable fix the problem in AtmoWin directly. But now we have 2 programs running, that both start and stop AtmoWin, which could result into problems.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Yeah, 2nd resume shows indeed a similar issue. I toggle the LEDs on >> Error with SetAtmoEffect! >> Reconnect is done >> 2nd manual toggle just turned the LEDs on.
    But still, It finds the connection back, and the LEDs are working :D :p
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Yeah,
    if i understand correctly, AtmoWakeHelper stops AtmoWin after resume, so the connection between AtmoLight and AtmoWin is lost. And AtmoLight than restarts this connection. You had to use context menu because AtmoLight saw undefined as last effect. Can you give me the full log so i can check what happend before?

    I think it would be best to include this into either AtmoWin or AtmoLight. Preferable fix the problem in AtmoWin directly. But now we have 2 programs running, that both start and stop AtmoWin, which could result into problems.

    Prefer to solve this in the Atmowin as well but we need something that reconnects a COM port at the lower level as this problem isn't with Atmowin itself but in Windows handling the COM device improperly (lost connect to device on resume), what we could do is built the AtmoWakeHelper function (line 129-174) into AtmoWin and/or AtmoLight.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    what we could do is built the AtmoWakeHelper function (line 129-174) into AtmoWin and/or AtmoLight.
    +1, and then i think i would pick AtmoWin for this.

    And if i have some guts, i ask for moving the delay option from Atmolight to Atmowin also :X3: :D
     

    Users who are viewing this thread

    Top Bottom