Reply To: Suspend – Command Line – help?

Forum › Forums › New users › New Users and General Questions › Suspend – Command Line – help? › Reply To: Suspend – Command Line – help?

#11708
rej
Member

    BobC-

    Reinstalled AntiX w/ LXDE so that no previous configurations would interfere (such as ‘systemctl suspend’ or Xfce4 power mngr).
    No success with attempts to resolve listed below. Although it would be nice to know why it doesn’t work, will just use Xfce4 Power Manager and be satisfied.

    Thanks very much for your help – learned more useful information with every suggestion.

    _________________________________________

    re: /var/log/pm-suspend.log – no file before or after installations and editing.
    re: /usr/share/doc/desktop-session-antix – contains only a copyright file. [pkg shown as installed in Synaptic]
    ___________________________
    ___________________________
    command line fail:

    root@antix17:/home/rj# apt-get install –reinstall pm-utils
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package –reinstall
    ————————

    root@antix17:/home/rj# apt-get install –pm-utils
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package –pm-utils
    ___________________________
    ___________________________
    Successfully through Synaptic Pkg Mngr:

    re-installed:

    powermgmt-base

    Common utils and configs for power management

    —————-

    installed:

    pm-utils

    utilities and scripts for power management
    [confirmed in history log file and indicated as installed after]
    ___________________________
    ___________________________

    No suspend after suffient time with each edit:
    ———————–
    fi
    ;;
    -S|–suspend)
    sudo pm-suspend
    echo ‘pm-suspend’ | at now + 360s
    ;;
    -r|–reboot)
    ___________________________
    fi
    ;;
    -S|–suspend)
    sudo sleep 360s && pm-suspend
    ;;
    -r|–reboot)

    ____________________________
    fi
    ;;
    -S|–suspend)
    sudo sleep 6s; sudo pm-suspend
    ;;
    -r|–reboot)