Hot answers tagged

3

If your system is running systemd, you could create a unit which would trigger when the network interface goes down which would lock your screen in the simple case where the machine is physically unplugged from the network. But you want your work computer to verify that you are still connected to your work computer, not merely that your work computer can ...


2

You can use xrandr. For example if your display is HDMI1 you can do xrandr --output HDMI1 --off sleep 2 xrandr --output HDMI1 --auto You can find the name with xrandr|grep ' connected'


2

You could just disable your keyboard and mouse for the duration. First, get your keyboard and mouse IDs: $ xinput --list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Logitech M325 id=14 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ ...


2

Found an answer which works for me here. The problems seems to be: Apparently xfce4-power-manager and systemd were both creating suspend events at the same time, causing problems loading modules like keyboard drivers upon resuming. If the xfce-power-manager is used to handle suspend, it is suggested to edit /etc/systemd/logind.conf and add: ...


1

I'm guessing: sudo sh -c 'vbetool dpms off; read ans; vbetool dpms on' As the following thread suggests.


1

I am not familiar with Openbox but in general, the password prompt you see when you come back is not a login prompt. It is for unlocking a screen lock more than likely. You may disable this screen lock. According to a suggestion I found in THIS PAGE, you can Add "xset -dpms s off" to your .xinitrc or your openbox autostart script? EDIT : Providing this as ...


1

if you want to use lightdm screenlock, you can add it on the following list on the file located in /usr/local/bin/xflock4 by adding dm-tool lock command. for lock_cmd in \ "xscreensaver-command -lock" \ "gnome-screensaver-command --lock" \ "dm-tool lock"


1

A work around I successfully used in debian, ubuntu and rhel7 is creating a short python script that's started automatically when you log into the gnome session. Note that in rhel7 the key combination to lock is super + l. Create /etc/xdg/autostart/gscreenlock.py like this: #!/usr/bin/python import dbus import dbus.service import dbus.glib import gobject ...



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