Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Senior Member agbagb's Avatar
    Join Date
    Aug 2006
    Location
    France
    Posts
    574

    Timer on a Laptop for Sllep Function

    I'm a big user of Alarms and Sleep on LMS and assorted Devices. I also like to have a BBC Radio stream running when I go to bed, and I set the device (Radio) to turn off after 90 minutes.

    I'm away from homes for a few days, and am trying to replicate this on my PC laptop. I go to the Beeb website, and runa live stream. But how to get it to turn itself off after 90 mins is defeating me. I'm sure I've done it before, and that it was easy....

    But, the various power opetions in Win10 are - unless I'm being a mug - defeated by the fact that the radio stream is running. Win10 thinks the machine is active, and all the Auto OFF functions seem to kick in only when the machine is juged inactive.. And there's no timer I can find withing the BBC stream player, or the browser (F'Fox or Chrome).

    Ideas, including staring-me-in-the-face ones?
    LMS 8.2.1 - 1628023316
    Win10
    Control: Web GUI; sometimes OrangeSqueeze on Android phones / pads

    Machines / devices are in France, in two locations.
    a) Livebox 4
    Internal HDD (FLAC music; mp3 voice), LAN Desktop
    3 x Touch - 1 wireless, 2 LAN. (8.0.1-r16855)
    2 x SB Radios [wireless] (8.0.1-r16855)
    2 x SqueezeAmps

    b) Freebox
    External SSD, WiFi Laptop
    1 x Touch LAN (Firmware:7.8.0-r16754)
    2 x SB Radios, Wireless (7.7.3-r16676)

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    Quote Originally Posted by agbagb View Post
    I'm a big user of Alarms and Sleep on LMS and assorted Devices. I also like to have a BBC Radio stream running when I go to bed, and I set the device (Radio) to turn off after 90 minutes.

    I'm away from homes for a few days, and am trying to replicate this on my PC laptop. I go to the Beeb website, and runa live stream. But how to get it to turn itself off after 90 mins is defeating me. I'm sure I've done it before, and that it was easy....

    But, the various power opetions in Win10 are - unless I'm being a mug - defeated by the fact that the radio stream is running. Win10 thinks the machine is active, and all the Auto OFF functions seem to kick in only when the machine is juged inactive.. And there's no timer I can find withing the BBC stream player, or the browser (F'Fox or Chrome).

    Ideas, including staring-me-in-the-face ones?
    The Android app for BBC Sounds has a sleep timer but I can't find one in a web browser.

    Sent from my Pixel 3a using Tapatalk

  3. #3
    Senior Member Apesbrain's Avatar
    Join Date
    Jun 2005
    Location
    East Coast, USA
    Posts
    1,792
    Use the "shutdown" command:
    https://www.cnet.com/tech/computing/...-this-command/

    Code:
    Usage: shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/fw] [/f]
        [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
    
        No args    Display help. This is the same as typing /?.
        /?         Display help. This is the same as not typing any options.
        /i         Display the graphical user interface (GUI).
                   This must be the first option.
        /l         Log off. This cannot be used with /m or /d options.
        /s         Shutdown the computer.
        /sg        Shutdown the computer. On the next boot, if Automatic Restart Sign-On
                   is enabled, automatically sign in and lock last interactive user.
                   After sign in, restart any registered applications.
        /r         Full shutdown and restart the computer.
        /g         Full shutdown and restart the computer. After the system is rebooted,
                   if Automatic Restart Sign-On is enabled, automatically sign in and
                   lock last interactive user.
                   After sign in, restart any registered applications.
        /a         Abort a system shutdown.
                   This can only be used during the time-out period.
                   Combine with /fw to clear any pending boots to firmware.
        /p         Turn off the local computer with no time-out or warning.
                   Can be used with /d and /f options.
        /h         Hibernate the local computer.
                   Can be used with the /f option.
        /hybrid    Performs a shutdown of the computer and prepares it for fast startup.
                   Must be used with /s option.
        /fw        Combine with a shutdown option to cause the next boot to go to the
                   firmware user interface.
        /e         Document the reason for an unexpected shutdown of a computer.
        /o         Go to the advanced boot options menu and restart the computer.
                   Must be used with /r option.
        /m \\computer Specify the target computer.
        /t xxx     Set the time-out period before shutdown to xxx seconds.
                   The valid range is 0-315360000 (10 years), with a default of 30.
                   If the timeout period is greater than 0, the /f parameter is
                   implied.
        /c "comment" Comment on the reason for the restart or shutdown.
                   Maximum of 512 characters allowed.
        /f         Force running applications to close without forewarning users.
                   The /f parameter is implied when a value greater than 0 is
                   specified for the /t parameter.
        /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
                   p indicates that the restart or shutdown is planned.
                   u indicates that the reason is user defined.
                   If neither p nor u is specified the restart or shutdown is
                   unplanned.
                   xx is the major reason number (positive integer less than 256).
                   yy is the minor reason number (positive integer less than 65536).

  4. #4
    Senior Member agbagb's Avatar
    Join Date
    Aug 2006
    Location
    France
    Posts
    574
    Thanks - a long time since I used command line stuff! Odd that there isn't an easier way to do this - but maybe it's just an odd thing to need / want !
    LMS 8.2.1 - 1628023316
    Win10
    Control: Web GUI; sometimes OrangeSqueeze on Android phones / pads

    Machines / devices are in France, in two locations.
    a) Livebox 4
    Internal HDD (FLAC music; mp3 voice), LAN Desktop
    3 x Touch - 1 wireless, 2 LAN. (8.0.1-r16855)
    2 x SB Radios [wireless] (8.0.1-r16855)
    2 x SqueezeAmps

    b) Freebox
    External SSD, WiFi Laptop
    1 x Touch LAN (Firmware:7.8.0-r16754)
    2 x SB Radios, Wireless (7.7.3-r16676)

  5. #5
    Senior Member Apesbrain's Avatar
    Join Date
    Jun 2005
    Location
    East Coast, USA
    Posts
    1,792
    Quote Originally Posted by agbagb View Post
    Thanks - a long time since I used command line stuff! Odd that there isn't an easier way to do this - but maybe it's just an odd thing to need / want !
    You can make a shortcut on your desktop:



    Just edit as you see fit.

  6. #6
    Senior Member agbagb's Avatar
    Join Date
    Aug 2006
    Location
    France
    Posts
    574
    And of course a quick google revealed plenty of litle Windows apps that do just that routine, but with an easier interface.... "Shutdown Timer Classic" does the trick, with all sorts of options available. Thanks to all.
    LMS 8.2.1 - 1628023316
    Win10
    Control: Web GUI; sometimes OrangeSqueeze on Android phones / pads

    Machines / devices are in France, in two locations.
    a) Livebox 4
    Internal HDD (FLAC music; mp3 voice), LAN Desktop
    3 x Touch - 1 wireless, 2 LAN. (8.0.1-r16855)
    2 x SB Radios [wireless] (8.0.1-r16855)
    2 x SqueezeAmps

    b) Freebox
    External SSD, WiFi Laptop
    1 x Touch LAN (Firmware:7.8.0-r16754)
    2 x SB Radios, Wireless (7.7.3-r16676)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •