View previous topic :: View next topic |
Author |
Message |
zhak n00b
Joined: 04 May 2015 Posts: 21
|
Posted: Tue Oct 06, 2015 7:33 pm Post subject: display turns on by itself after slock & xset dpms force |
|
|
Xfce4 desktop on an Asus laptop.
I've modified the default /usr/bin/xflock4 script to the following:
Code: |
#!/bin/bash
slock >/dev/null 2>&1 & xset dpms force off
exit $?
|
It works well when I run 'xflock4' from command line - screen is locked and display is turned off. It gets turned on only when I move mouse or start typing password.
But when I use Ctrl+Alt+L shortcut, the screen gets locked and display turns off only for one second. After a second (or two) it turns on automatically.
Maybe anyone knows why can this be happening and how to resolve it? |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Oct 06, 2015 9:17 pm Post subject: |
|
|
Code: | But when I use Ctrl+Alt+L shortcut, the screen gets locked and display turns off only for one second. After a second (or two) it turns on automatically. |
You need to figure out the difference. How this shortcut is interpreted by your desctop environment in the background. |
|
Back to top |
|
|
|