Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
display turns on by itself after slock & xset dpms force off
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zhak
n00b
n00b


Joined: 04 May 2015
Posts: 21

PostPosted: Tue Oct 06, 2015 7:33 pm    Post subject: display turns on by itself after slock & xset dpms force Reply with quote

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
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue Oct 06, 2015 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum