Tuesday, April 23, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4893  / 3 Years ago, sat, october 30, 2021, 4:22:19

I'm looking for a way to disable screen dimming and desktop locking timeout from a bash script on Ubuntu 13.10. The script should be run when user logs in (configured in Startup Applications window) or as a service before lightdm (from init.d).



I have found this answer and tried the command:



gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool false


It has actually changed that setting (I've checked with gconftool-2 -g and gconf-editor), but it doesn't seem to work like expected. Settings window still states that screen will turn off, and in fact, after 5 minutes screen turns off and I'm prompted to enter my password when I wake it up.



I've also tried looking around in gconf-editor, but I haven't found any settings that looked relevant.



So, how can I disable desktop locking and screen off timeout from a script?


More From » scripts

 Answers
1

Partial answer (I didn't try to change configuration)



I think that new Ubuntu(s) use dconf and not gconf --- try to look for parameters in dconf-editor (settable via command line with the confusing-named gsettings).



I think that the relevant schemas are around org.gnome.desktop.screensaver, at least for gnome. I do not have Unity installed so I think you need to research a bit around to adapt...


[#28324] Monday, November 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pheter

Total Points: 223
Total Questions: 111
Total Answers: 119

Location: Guadeloupe
Member since Sat, Aug 22, 2020
4 Years ago
;