Results 1 to 3 of 3

Thread: Automatic shutdown and sudo shutdown not working

  1. #1
    Join Date
    Oct 2010
    Location
    Dublin, Ireland
    Beans
    288
    Distro
    Ubuntu 20.04 Focal Fossa

    Question Automatic shutdown and sudo shutdown not working

    Automatic shutdown and sudo shutdown are not working as they should.

    Automatic shutdown seems to work some of the time, and other times it does not. Is it affected by VLC playing videos?

    Sudo shutdown used to work perfectly, but now the system goes on past the specified shutdown time apparently oblivious.

    The command I am using is:

    Code:
    sudo shutdown -g hh:mm
    Any ideas?

    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Automatic shutdown and sudo shutdown not working

    I saw the command you entered and thought, "-g isn't a valid parameter". I did a man shutdown, and sure enough, there is no g parameter listed. On a hunch, I ran the same command and got sort of a shutdown. Not a complete shutdown, but apparently -g is a valid parameter.

    I would suggest trying:
    Code:
    sudo shutdown -h <hh:mm>
    And hh:mm needs to be in 24-hour format.

  3. #3
    Join Date
    Oct 2010
    Location
    Dublin, Ireland
    Beans
    288
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Automatic shutdown and sudo shutdown not working

    Quote Originally Posted by Toz View Post
    I saw the command you entered and thought, "-g isn't a valid parameter". I did a man shutdown, and sure enough, there is no g parameter listed. On a hunch, I ran the same command and got sort of a shutdown. Not a complete shutdown, but apparently -g is a valid parameter.

    I would suggest trying:
    Code:
    sudo shutdown -h <hh:mm>
    And hh:mm needs to be in 24-hour format.
    That's seems to do it, thanks.

    I was using the 24 hour format before, so it must have been the -g argument that was stalling it.

Bookmarks

Posting Permissions

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