goglprogressive.blogg.se

Xscreensaver suspend lock
Xscreensaver suspend lock









xscreensaver suspend lock
  1. Xscreensaver suspend lock how to#
  2. Xscreensaver suspend lock code#

You'll probably have to use xscreensaver-command -lock in your script before suspending if you want make sure the screen is locked when the system is restored.

Xscreensaver suspend lock how to#

See How to suspend and hibernate a laptop under Linux You may need to write a shell script to be called from /etc/acpi/events/powerbtn to handle this correctly. So we know that these keys from xkb are not being grabbed.Įxcerpt of output of grep -r "XF86_Switch" /usr/share/X11/xkb/ shows: /usr/share/X11/xkb/compat/xfree86: interpret XF86_Switch_VT_1 Įdit 3: Try configuring ACPI to suspend directly instead of using xfce4-power-manager, if that is the case. The shortcut Ctrl-Alt-FX will switch the virtual terminal via XF86_Switch_VT_X, where X is the number of the F key 1-12, while the screen is locked. If you are successful in suspending the machine at this point, then at least we know there is some level of keymapping with actions that control the server's behavior without getting caught by XGrabkeyboard. This of course renders the lock useless to anyone with physical access to your keyboard, but you should be able to at least test your power button to see if it suspends the machine after using the AllowClosedownGrabs or AllowDeactivateGrabs shortcut. You can disable it by turning off AllowClosedownGrabs in nf.Īs it is, you can configure Xorg to AllowClosedownGrabs to close the Xscreensaver process holding the lock or AllowDeactivateGrabs to deactivate and active keyboard grabs 2. Of 2011, some vendors are shipping it turned on by default. This "feature" showed up in the X server in 2008, and as That holds a lock, so typing this will kill xscreensaver and unlock It globally with: sudo 'echo 176 > /proc/sys/kernel/sysrq'īackdoor #4: Ctrl-Alt-KP_Multiply. No way for xscreensaver to protect itself from that.

xscreensaver suspend lock

It shoots down random long-running programs of itsĬhoosing, and so might might target and kill xscreensaver, and there's Permanently by setting DontVTSwitch in your nf, but that mightīackdoor #3: Alt-SysRq-F. You can disable VT switching globally and Switch to a different virtual console, while leaving the console that XF86Config (or variant) for more details.īackdoor #2: Ctrl-Alt-F1, Ctrl-Alt-F2, etc. (whichever name is in use on your system). Toĭisable this keystroke globally and permanently, you need to set theĭontZap flag in your nf or XF86Config or XF86Config-4 file Launched X11 manually, that text console will still be logged in. This keystroke kills the X server,Īnd on some systems, leaves you at a text console. There are only a few exceptions for bypassing the Xscreensaver lock, all of which rely on the use of lower level keyboard shortcuts 1.īackdoor #1: Ctrl-Alt-Backspace.

Xscreensaver suspend lock code#

The short answer is that you can't normally use the power button on the locked screen, but I did look through a lot of documentation and some code to figure out why this is and what possible solutions may exist. From what I understand, XGrabKeyboard is used by Xscreensaver which is grabbing the keys while the login window is displayed.











Xscreensaver suspend lock