[Announce] Squeezelite-X

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmendiuk
    Member
    • Jan 2014
    • 84

    Material Skin default Player after coming out sleep W10

    I've noticed that the default player after coming out of sleep is the first player in the drop down list instead of the player that was selected before sleep. Is it possible to retain the current selected player coming out sleep?

    Comment

    • rgdawson
      Senior Member
      • Jan 2016
      • 1241

      Originally posted by pmendiuk
      I've noticed that the default player after coming out of sleep is the first player in the drop down list instead of the player that was selected before sleep. Is it possible to retain the current selected player coming out sleep?
      Well, that is already the intent and the way it is supposed to work. What is your device? The reason I ask is that I suspect it has Modern Standby, which is different as I don't get messages from the OS saying it is entering sleep/ waking up and I cannot control the order of events. I believe what might be happening is the browser wakes up before the player and thinks the player is gone, so automatically reselects a player. I'm betting this does not happen for other players, just the local player, right? I'll take another look at this issue. Hopefully, there is a way for my app to register for Modern Standby events and react.

      R Greg Dawson
      Squeezelite-X

      Comment

      • pmendiuk
        Member
        • Jan 2014
        • 84

        Yes the local player is not remembered on a W10 desktop machine. powercfg /a returns:

        The following sleep states are available on this system:
        Standby (S3)
        Hibernate
        Hybrid Sleep

        The following sleep states are not available on this system:
        Standby (S1)
        The system firmware does not support this standby state.

        Standby (S2)
        The system firmware does not support this standby state.

        Standby (S0 Low Power Idle)
        The system firmware does not support this standby state.

        Fast Startup
        This action is disabled in the current system policy.

        Comment

        • bernid
          Senior Member
          • Apr 2010
          • 122

          Thanks for the software.
          I just installed Squeezelite-X on my Win11 laptop and entered my LMS address: 10.10.10.1
          Unfortunately can't reach LMS. I receive:
          Code:
          INFO   09:01:21.251  ----------------------------------------------------------------------------------------------------
                               Program Start / Main Form Create (10.04.2022)
                               ----------------------------------------------------------------------------------------------------
          INFO   09:01:21.282  Squeezelite-X, Version: 2.11.7
                               Windows Version: Windows 11 21H2 Update (Version 21H2, OS Build 22000.556, 64-bit Edition)
                               Squeezlite Version: 1.9.9.1401
          INFO   09:01:21.376  Servers Discovered: [Center] [44 ms]
          INFO   09:01:21.519  WebView2 Version 100.0.1185.36, CreateBrowser... 
          INFO   09:01:22.237  Webview2 CreateBrowser complete. (UserDataFolder: C:\Users\berni\AppData\Local\Squeezelite-X)
          INFO   09:01:22.237  ----------------------------------------------------------------------------------------------------
                               Start InitProgram [987 ms]
                               ----------------------------------------------------------------------------------------------------
          INFO   09:01:22.390  Setting Lms.Host (HostName=10.10.10.1, HostIP=10.10.10.1)
          INFO   09:01:22.446  ----------------------------------------------------------------------------------------------------
                               Connecting to Logitech Media Server
                               ----------------------------------------------------------------------------------------------------
          INFO   09:01:22.510  Telnet.Status: Connecting to 10.10.10.1.
          ERROR  09:01:24.572  Exception in ConnectTelnet: Connect timed out.[2068] 
          INFO   09:01:24.572  EIdConnectTimeout
          INFO   09:01:24.572  ConnectAll Complete
          ERROR  09:01:24.572  Connect timed out. Logitech Media Server is not responding.
          INFO   09:01:25.303  ----------------------------------------------------------------------------------------------------
                               End InitProgram [InitProgram: 3066 ms, Total: 4054 ms]
                               ----------------------------------------------------------------------------------------------------
          At the came time I can play music on several Linux based sueeezelie players in my WLAN/wifi and LAN subnets. LMS is installed on my home Ubuntu server machine.
          I can browse LMS on my Win11 laptop using address:
          Code:
          http://10.10.10.1:9000/
          What should I do?


          ------------------------------------------------
          UPDATE1: 11.04.2022
          I installed Squeezelite-X also on my desktop Win10 machine (conected to the LAN subnet). Results are the same. It seems like there is an issue in windows clients'-LMS communication...
          Code:
          INFO   16:17:35.263  ----------------------------------------------------------------------------------------------------
                               Program Start / Main Form Create (11.04.2022)
                               ----------------------------------------------------------------------------------------------------
          INFO   16:17:35.277  Squeezelite-X, Version: 2.11.7
                               Windows Version: Windows 10 May 2021 Update (Version 21H1, OS Build 19043.1586, 64-bit Edition)
                               Squeezlite Version: 1.9.9.1401
          INFO   16:17:35.365  Servers Discovered: [Center] [45 ms]
          INFO   16:17:35.424  WebView2 Version 100.0.1185.36, CreateBrowser... 
          INFO   16:17:35.993  Webview2 CreateBrowser complete. (UserDataFolder: C:\Users\ela\AppData\Local\Squeezelite-X)
          INFO   16:17:36.006  ----------------------------------------------------------------------------------------------------
                               Start InitProgram [745 ms]
                               ----------------------------------------------------------------------------------------------------
          INFO   16:17:36.159  Setting Lms.Host (HostName=10.10.10.1, HostIP=10.10.10.1)
          INFO   16:17:36.570  ----------------------------------------------------------------------------------------------------
                               Connecting to Logitech Media Server
                               ----------------------------------------------------------------------------------------------------
          INFO   16:17:36.579  Telnet.Status: Connecting to 10.10.10.1.
          ERROR  16:17:38.614  Exception in ConnectTelnet: Connect timed out.[2035] 
          INFO   16:17:38.614  EIdConnectTimeout
          INFO   16:17:38.614  ConnectAll Complete
          ERROR  16:17:38.615  Connect timed out. Logitech Media Server is not responding.
          INFO   16:17:38.819  ----------------------------------------------------------------------------------------------------
                               End InitProgram [InitProgram: 2812 ms, Total: 3557 ms]
                               ----------------------------------------------------------------------------------------------------
          Last edited by bernid; 2022-04-11, 20:43.

          Comment

          • bernid
            Senior Member
            • Apr 2010
            • 122

            ------------------------------------------------
            UPDATE2: 11.04.2022

            See my server ports. Maybe 9090 is blocked by KODI app?
            If so how to change default 9090 port in LMS?
            squeezelite-x86 process is a LMS server local player plugin
            Code:
            Netid State     Recv-Q Send-Q  Local Address:Port  Peer Address:Port Process
            udp   UNCONN    0      0           127.0.0.1:9777       0.0.0.0:*     users:(("kodi.bin",pid=25369,fd=27))
            udp   UNCONN    0      0             0.0.0.0:42863      0.0.0.0:*     users:(("avahi-daemon",pid=898,fd=14))
            udp   UNCONN    0      0             0.0.0.0:2049       0.0.0.0:*
            udp   UNCONN    0      0             0.0.0.0:39646      0.0.0.0:*     users:(("rpc.mountd",pid=1025,fd=12))
            udp   UNCONN    0      0             0.0.0.0:3483       0.0.0.0:*     users:(("squeezeboxserve",pid=43144,fd=7))
            udp   UNCONN    0      0             0.0.0.0:3702       0.0.0.0:*     users:(("kodi.bin",pid=25369,fd=32))
            udp   UNCONN    0      0             0.0.0.0:53         0.0.0.0:*     users:(("unbound",pid=1095,fd=3))
            udp   UNCONN    0      0             0.0.0.0:67         0.0.0.0:*     users:(("dhcpd",pid=2005,fd=10))
            udp   UNCONN    0      0             0.0.0.0:111        0.0.0.0:*     users:(("rpcbind",pid=888,fd=5),("systemd",pid=1,fd=59))
            udp   UNCONN    0      0             0.0.0.0:41077      0.0.0.0:*     users:(("squeezeboxserve",pid=43144,fd=20))
            udp   UNCONN    0      0        10.10.11.255:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=25))
            udp   UNCONN    0      0          10.10.11.1:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=24))
            udp   UNCONN    0      0      192.168.15.255:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=20))
            udp   UNCONN    0      0      192.168.15.244:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=19))
            udp   UNCONN    0      0        10.10.10.255:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=16))
            udp   UNCONN    0      0          10.10.10.1:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=15))
            udp   UNCONN    0      0             0.0.0.0:137        0.0.0.0:*     users:(("nmbd",pid=1017,fd=13))
            udp   UNCONN    0      0        10.10.11.255:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=27))
            udp   UNCONN    0      0          10.10.11.1:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=26))
            udp   UNCONN    0      0      192.168.15.255:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=22))
            udp   UNCONN    0      0      192.168.15.244:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=21))
            udp   UNCONN    0      0        10.10.10.255:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=18))
            udp   UNCONN    0      0          10.10.10.1:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=17))
            udp   UNCONN    0      0             0.0.0.0:138        0.0.0.0:*     users:(("nmbd",pid=1017,fd=14))
            udp   UNCONN    0      0             0.0.0.0:37234      0.0.0.0:*     users:(("rpc.mountd",pid=1025,fd=8))
            udp   UNCONN    0      0             0.0.0.0:631        0.0.0.0:*     users:(("cups-browsed",pid=47213,fd=7))
            udp   UNCONN    0      0             0.0.0.0:1194       0.0.0.0:*     users:(("openvpn",pid=1026,fd=6))
            udp   UNCONN    0      0             0.0.0.0:33988      0.0.0.0:*     users:(("rpc.mountd",pid=1025,fd=16))
            udp   UNCONN    0      0             0.0.0.0:54476      0.0.0.0:*
            udp   UNCONN    0      0             0.0.0.0:5353       0.0.0.0:*     users:(("avahi-daemon",pid=898,fd=12))
            tcp   LISTEN    0      4096          0.0.0.0:9000       0.0.0.0:*     users:(("squeezeboxserve",pid=43144,fd=22))
            tcp   LISTEN    0      4096          0.0.0.0:43081      0.0.0.0:*     users:(("rpc.mountd",pid=1025,fd=17))
            tcp   LISTEN    0      50            0.0.0.0:139        0.0.0.0:*     users:(("smbd",pid=1229,fd=50))
            tcp   LISTEN    0      4096          0.0.0.0:111        0.0.0.0:*     users:(("rpcbind",pid=888,fd=4),("systemd",pid=1,fd=58))
            tcp   LISTEN    0      128           0.0.0.0:2225       0.0.0.0:*     users:(("sshd",pid=1070,fd=3))
            tcp   LISTEN    0      256           0.0.0.0:53         0.0.0.0:*     users:(("unbound",pid=1095,fd=4))
            tcp   LISTEN    0      4096          0.0.0.0:42773      0.0.0.0:*     users:(("rpc.mountd",pid=1025,fd=9))
            tcp   LISTEN    0      128         127.0.0.1:631        0.0.0.0:*     users:(("cupsd",pid=47211,fd=7))
            tcp   LISTEN    0      256         127.0.0.1:8953       0.0.0.0:*     users:(("unbound",pid=1095,fd=5))
            tcp   LISTEN    0      4096          0.0.0.0:3483       0.0.0.0:*     users:(("squeezeboxserve",pid=43144,fd=8))
            tcp   LISTEN    0      4096          0.0.0.0:36251      0.0.0.0:*     users:(("rpc.mountd",pid=1025,fd=13))
            tcp   LISTEN    0      50            0.0.0.0:445        0.0.0.0:*     users:(("smbd",pid=1229,fd=49))
            tcp   LISTEN    0      64            0.0.0.0:2049       0.0.0.0:*
            tcp   LISTEN    0      10          127.0.0.1:9090       0.0.0.0:*     users:(("kodi.bin",pid=25369,fd=36))
            tcp   LISTEN    0      64            0.0.0.0:43685      0.0.0.0:*
            tcp   ESTAB     0      0          10.10.10.1:445    10.10.10.10:62541 users:(("smbd",pid=77098,fd=53))
            tcp   TIME-WAIT 0      0      192.168.15.244:33460 104.26.1.122:443
            tcp   ESTAB     0      0          10.10.10.1:60496   10.10.10.1:3483  users:(("squeezelite-x86",pid=43182,fd=4))
            tcp   ESTAB     0      4592       10.10.10.1:2225   10.10.11.17:50062 users:(("sshd",pid=77621,fd=4),("sshd",pid=77554,fd=4))
            tcp   ESTAB     0      0          10.10.10.1:2225   10.10.11.17:49846 users:(("sshd",pid=76417,fd=4),("sshd",pid=76212,fd=4))
            tcp   ESTAB     0      0          10.10.10.1:445    10.10.11.17:49670 users:(("smbd",pid=76077,fd=53))
            tcp   TIME-WAIT 0      0      192.168.15.244:33458 104.26.1.122:443
            tcp   ESTAB     0      0          10.10.10.1:3483    10.10.10.1:60496 users:(("squeezeboxserve",pid=43144,fd=23))

            Comment

            • bernid
              Senior Member
              • Apr 2010
              • 122

              Managed to solve it
              Kodi blocked 9090 port so I've changed LMS's CLI port to 9091 (LMS Settings/Advanced/Command Line Interface (CLI)) and after restart 'logitechmediaserver' process I have got:
              Code:
              Netid State     Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process
              tcp   LISTEN    0      4096          0.0.0.0:9091        0.0.0.0:*     users:(("squeezeboxserve",pid=80113,fd=19))
              and Squeezelite-X works.
              Last edited by bernid; 2022-04-12, 04:45.

              Comment

              • pmendiuk
                Member
                • Jan 2014
                • 84

                Originally posted by rgdawson
                Well, that is already the intent and the way it is supposed to work. What is your device? The reason I ask is that I suspect it has Modern Standby, which is different as I don't get messages from the OS saying it is entering sleep/ waking up and I cannot control the order of events. I believe what might be happening is the browser wakes up before the player and thinks the player is gone, so automatically reselects a player. I'm betting this does not happen for other players, just the local player, right? I'll take another look at this issue. Hopefully, there is a way for my app to register for Modern Standby events and react.

                R Greg Dawson
                Hi Greg,
                If there is no way to register to those wakeup events would it possible to set a default player in settings?

                The player that pops up for me after standby is deck not desk. I hit the play button thinking it's the desk and instinctively if I don't hear anything I turn it up...

                Comment

                • cpd73
                  Senior Member
                  • Mar 2017
                  • 5130

                  Originally posted by pmendiuk
                  Hi Greg,
                  If there is no way to register to those wakeup events would it possible to set a default player in settings?

                  The player that pops up for me after standby is deck not desk. I hit the play button thinking it's the desk and instinctively if I don't hear anything I turn it up...
                  If you are using Material Skin, you can set a default player in the 'Manage players' dialog. After standby a non-default player could be selected if the default is not yet attached to LMS, but when the default is subsequently attached to LMS material will automatically switch to it.
                  Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

                  Comment

                  • rgdawson
                    Senior Member
                    • Jan 2016
                    • 1241

                    Originally posted by cpd73
                    If you are using Material Skin, you can set a default player in the 'Manage players' dialog. After standby a non-default player could be selected if the default is not yet attached to LMS, but when the default is subsequently attached to LMS material will automatically switch to it.
                    I may have that disabled in SLX, I'll have to check.

                    RGD
                    Squeezelite-X

                    Comment

                    • pmendiuk
                      Member
                      • Jan 2014
                      • 84

                      Originally posted by cpd73
                      If you are using Material Skin, you can set a default player in the 'Manage players' dialog. After standby a non-default player could be selected if the default is not yet attached to LMS, but when the default is subsequently attached to LMS material will automatically switch to it.
                      I am using Material Skin but I don't see anything about default player under manage players. The three dots in the upper right: Set time for all players. The three dots on right of each player: Player settings, Switch off, Sleep, Synchronize. I looked in player settings and didn't see anything about setting default player.

                      Comment

                      • cpd73
                        Senior Member
                        • Mar 2017
                        • 5130

                        Originally posted by pmendiuk
                        The three dots on right of each player: Player settings, Switch off, Sleep, Synchronize.
                        Should be here, but I guess Squeezelite-X is hiding this option.
                        Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

                        Comment

                        • rgdawson
                          Senior Member
                          • Jan 2016
                          • 1241

                          Originally posted by cpd73
                          Should be here, but I guess Squeezelite-X is hiding this option.
                          Correct, SLX hides that option. Squeezelite-X, predated Material Skin and already had its own way of doing this for both skins. So I thought it was confusing to have both in play.

                          I think the problem is related to Modern Standby, where the LMS server eventually believes the squeezelite player is gone because it stopped communicating. When the system leaves Modern Standby and "wakes up", Material Skin then believes the player is no longer there and chooses another, before the previously dormant squeezelite player is re-established on the LMS server. With the regular Standby, I handle all this because I get notified of all the Power events. But in Modern Standby, I don't. I think I need to do some special registration calls to get these notifications, so I need to research that and see if I can solve. It is hard to figure out since I don't have a development machine that does Modern Standby.

                          RGD
                          Squeezelite-X

                          Comment

                          • pmendiuk
                            Member
                            • Jan 2014
                            • 84

                            While I was looking for default player setting I noticed that the volume for the individual players is a couple of menu layers down. Would it possible to combine volume, play, power and sync into one manage player menu? Squeeze Commander had it combined into one menu.

                            Comment

                            • rgdawson
                              Senior Member
                              • Jan 2016
                              • 1241

                              Originally posted by pmendiuk
                              While I was looking for default player setting I noticed that the volume for the individual players is a couple of menu layers down. Would it possible to combine volume, play, power and sync into one manage player menu? Squeeze Commander had it combined into one menu.
                              That's a question for Craig over in Material Skin Forum.

                              R Greg Dawson
                              Squeezelite-X

                              Comment

                              • slartibartfast
                                Senior Member
                                • Jan 2010
                                • 13855

                                Originally posted by pmendiuk
                                While I was looking for default player setting I noticed that the volume for the individual players is a couple of menu layers down. Would it possible to combine volume, play, power and sync into one manage player menu? Squeeze Commander had it combined into one menu.
                                "Manage Players" in Material skin does have volume, play, power and sync.

                                Sent from my Pixel 3a using Tapatalk
                                Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                                Bedroom: Radio
                                Bathroom: Radio

                                Comment

                                Working...