XScreenSaver is a large collection of screen savers and it is also the framework for blanking and locking the screen. So here is a new how to install post for Xscreensaver and the BSOD Xscreensaver packages. Puedes reemplazar 1h por lo que desees: h para horas, m para minutos, s para segundos, d para días.I wanted to install the Xscreensaver and the bsod screensaver packages on Ubuntu 20.04 and noticed that my old post about installing them was a bit out of date. Cuando despiertes, allí habrán quedado abiertas tus imágenes y todas tus cosas. Y tu computadora se quedará dormida en 1 hora. Si quieres suspender tu computadora en una hora porque quieres ir a dormir escuchando tu estación de radio favorita, tan solo abre el terminal y escribe: sudo bash -c "sleep 1h pm-suspend" Vous pouvez remplacer 1h par ce que vous voulez: h pour les heures, m pour les minutes, s pour les secondes, d pour les jours. Quand vous vous réveillerez, il aura conservé en mémoire vos applications ouvertes. Si vous voulez juste que votre ordinateur se mette en veille dans une heure parce que vous voulez vous endormir en ecoutant votre radio préférée, ouvrez Terminal et tapez : sudo bash -c "sleep 1h pm-suspend"Įt votre ordinateur s'endormira dans une heure. You can replace 1h by what you want: h for hours, m for minutes, s for seconds, d for days. When you awake, it will have kept your open images and all your stuff. If you want your computer to suspend in one hour because you want to go to bed listening to your favorite radio station, open terminal and type: sudo bash -c "sleep 1h pm-suspend"Īnd your computer will fall asleep in 1 hour. Note: This is basically the same as qbi's answer, but updated to work for newer versions of Ubuntu as well as including hibernate. Edit or create /etc/polkit-1/localauthority/50-local.d/ so it contains the following section: (source) If the hibernation throws Error : not authorized your user might not be allowed to hibernate. It does not require root privilege, so it is easy to add it as a keyboard shortcut, for example.Īs mentioned in the comments exchanging the Suspend in the last line to Hibernate creates a hibernate command: dbus-send -system -print-reply \ It will lock your screen (upon resume) if you have that option selected in gnome. There are two advantages to this command over pm-suspend. I have also found the commands sudo pm-suspend and sudo pm-hibernate to work on my netbook. Sudo apt-get install powermanagement-interface This requires that you install the powermanagement-interface package (not tested). Mørch Old MethodĪccording to the Ubuntu Forum you can use the following commands: pmi action suspend Ideally you would create a ~/bin/suspend shortcut/script that makes the use of this action easy.įor use over ssh, you should modify policykit rules as outlined by Peter V. See the answer here on this page from Adam Paetznick regarding the use of dbus. Obsolete circa Ubuntu 16.04 use systemctl instead, as above. Starting with Ubuntu 16.04, systemctl call must be used (See Suspend command in Ubuntu 16.04) systemctl suspend This new method doesn't require root and notifies all applications listening for power events. Neither would integrate well with other apps and sometimes not even work on some machines. Traditionally ubuntu supported a fairly blunt method of suspend and hibernate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |