Tag Info

Hot answers tagged

1

In the past you could enable this behavior under lxde with various combinations of xscreensaver-command -lock and/or xss-lock, but these options apparently no longer work under systemd. Assuming you are using lightdm (which you should be on Ubuntu), you can use light-locker to re-enable screenlocking on suspend/resume with xscreensaver: sudo apt-get ...


1

Anacron can you what you are asking and is available in the Ubuntu repo's. From the man page: Anacron is used to execute commands periodically, with a frequency specified in days. Unlike cron(8), it does not assume that the machine is running continuously. Hence, it can be used on machines that aren't running 24 hours a day, to control regular jobs as ...


1

Update: Found a nicer solution using systemd with no external scripts. Create and enable the following service: [Unit] Description=Save brightness on suspend DefaultDependencies=no RequiresMountsFor=/var/lib/systemd/backlight Before=sleep.target StopWhenUnneeded=yes [Service] Type=oneshot RemainAfterExit=yes ExecStart=/lib/systemd/systemd-backlight save ...


1

Inactive No user interaction happened for the period of time specified. A user interaction is a mouse movement, a button click, or a keyboard key pressed/released. The settings allows for multiple levels of inactivity. First the screen saver is shown, a little later you can suspend/hibernate or minimize electricity use (i.e. make a PCI board go to a sleep ...


1

Not a direct answer to your question, but to prevent going into suspend (e.g. while running your backup script) there are inhibitors which can be set by gnome-session-inhibit or by directly calling the dbus method org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Inhibit $ gnome-session-inhibit --help gnome-session-inhibit ...


1

See if running the command dpkg-reconfigure xserver-xorg will help you any. There are a couple other posts about people having similar issues when upgrading to 15.04.


1

I have also experienced this problem. Basically, when we close the lid of the PC, it somehow reduces the brightness to 0 and you see black screen when opening lid again. But if you increase brightness from function keys of your laptop, you will be able to see the login screen. That works for me smoothly


1

While I don' t know much about remapping keys, I suggest a workaround by binding pm-suspend to a keyboard shortcut. Make pm-suspend executable without password by placing something like %yourusername ALL = NOPASSWD: /usr/sbin/pm-suspend into your /etc/sudoers file and then bind gksu pm-suspend to a shortcut in System Preferences -> keyboard -> Shortcuts -> ...


1

Go to the menu, type in startup. Select "Session and Startup" Select the "Application Autostart" tab and click the add button. Enter some details and paste in the command from your question. Click OK, close the remaining dialogs, log out, log back in, and see if it worked.



Only top voted, non community-wiki answers of a minimum length are eligible