Skip to content

Commit 71d83dc

Browse files
committed
Revert "prevent screen from blanking"
This reverts commit 44e3dcf. Power usage increased by quite a lot due to the screen not blanking, so we're reverting. Screensaver support will have to go.
1 parent 42b8fd2 commit 71d83dc

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

files/etc/lightdm/web-greeter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ branding:
2626
greeter:
2727
debug_mode: False
2828
detect_theme_errors: True
29-
screensaver_timeout: -1
29+
screensaver_timeout: 300
3030
secure_mode: True
3131
theme: codam
3232
icon_theme:

tasks/setup.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,19 @@
6666
- 'greeter-hide-users=true'
6767
- 'greeter-show-manual-login=true'
6868

69-
- name: Copy display-setup hook script
70-
tags: [codam.webgreeter, codam.webgreeter.setup, hooks.d]
69+
- name: Delete display-setup hook script
70+
tags: [never, codam.webgreeter.revertdisplaysetup] # this task is only needed when you want to revert the display-setup hook changes made by version v1.2.0 - v1.2.1
7171
become: true
72-
template:
73-
src: usr/share/42/scripts/hook-display-setup.sh.j2
74-
dest: /usr/share/42/scripts/hook-display-setup.sh
75-
owner: root
76-
group: root
77-
mode: '0500'
72+
file:
73+
path: /usr/share/42/scripts/hook-display-setup.sh
74+
state: absent
7875

79-
- name: Enable display-setup hook in lightdm
80-
tags: [codam.webgreeter, codam.webgreeter.setup, hooks.d]
76+
- name: Disable display-setup hook in lightdm
77+
tags: [never, codam.webgreeter.revertdisplaysetup] # this task is only needed when you want to revert the display-setup hook changes made by version v1.2.0 - v1.2.1
8178
become: true
8279
lineinfile:
8380
path: /etc/lightdm/lightdm.conf
84-
line: display-setup-script=/usr/share/42/scripts/hook-display-setup.sh
81+
line: display-setup-script=
8582
insertbefore: 'session-setup-script='
8683
state: present
8784
regexp: '^#?display-setup-script='

templates/usr/share/42/scripts/hook-display-setup.sh.j2

Lines changed: 0 additions & 7 deletions
This file was deleted.

templates/usr/share/42/scripts/hook-greeter-setup.sh.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if [ -f "$(dirname $0)/brightness-default.sh" ]; then
1111
fi
1212
{% endif %}
1313

14+
# Prevent screen from blanking
15+
/usr/bin/xset s off
16+
1417
# Turn on Num Lock on the keyboard
1518
/usr/bin/numlockx on
1619

0 commit comments

Comments
 (0)