[SOLVED] Brightness & Lock

[SOLVED] Brightness & Lock

Postby freetibet » Jun 7th, '12, 00:08

want to turn this to Turn screen off when inactive for "Never"
as I'm using it for CCTV…
or will it come back on if there is movement ?
Rather have it on all the time…
Thanks.
Last edited by freetibet on Jul 5th, '12, 21:03, edited 3 times in total.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby ah7013 » Jun 7th, '12, 03:05

What DE and Mageia version are you using?
Mageia 2 x86_64, KDE 4.8.5 on a Thinkpad Edge E520 - Intel Core i7-2640M 2.8GHZ, 16GB DDR3 RAM 1333MHz
Mageia 2 x86_64, KDE 4.8.5 on a Dell Studio 1555 - Intel Core 2 Duo T6600 2.2GHz, 8GB DDR2 RAM 800MHz
User avatar
ah7013
 
Posts: 74
Joined: Apr 9th, '11, 05:02
Location: Adelaide, Australia

Re: Brightness & Lock

Postby freetibet » Jun 7th, '12, 10:39

ah7013 wrote:What DE and Mageia version are you using?


Gnome + version 2
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby ah7013 » Jun 7th, '12, 12:06

Are you using GNOME shell? Because if you are you could try this GNOME shell extension (haven't tried it myself to test though because I don't use GNOME) -
https://extensions.gnome.org/extension/233/inhibit-applet/

The description says it can prevent the screensaver from activating.
Mageia 2 x86_64, KDE 4.8.5 on a Thinkpad Edge E520 - Intel Core i7-2640M 2.8GHZ, 16GB DDR3 RAM 1333MHz
Mageia 2 x86_64, KDE 4.8.5 on a Dell Studio 1555 - Intel Core 2 Duo T6600 2.2GHz, 8GB DDR2 RAM 800MHz
User avatar
ah7013
 
Posts: 74
Joined: Apr 9th, '11, 05:02
Location: Adelaide, Australia

Re: Brightness & Lock

Postby freetibet » Jun 11th, '12, 20:32

How do I install this ?
Is this the only way to stop the screen timing out ?
Surely you can stop it another way ?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby ah7013 » Jun 11th, '12, 21:41

freetibet wrote:How do I install this ?

AFAIK on that website they have an install extension button which should install it for you.

freetibet wrote:Is this the only way to stop the screen timing out ?
Surely you can stop it another way ?

Possibly. First could you post the output of:
Code: Select all
gsettings get org.gnome.desktop.screensaver idle-activation-enabled

If that returns true we may be able to set it to false with
Code: Select all
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
Mageia 2 x86_64, KDE 4.8.5 on a Thinkpad Edge E520 - Intel Core i7-2640M 2.8GHZ, 16GB DDR3 RAM 1333MHz
Mageia 2 x86_64, KDE 4.8.5 on a Dell Studio 1555 - Intel Core 2 Duo T6600 2.2GHz, 8GB DDR2 RAM 800MHz
User avatar
ah7013
 
Posts: 74
Joined: Apr 9th, '11, 05:02
Location: Adelaide, Australia

Re: Brightness & Lock

Postby freetibet » Jun 11th, '12, 22:18

oh thanks,
tried that…
should i su it ?

password:
[cctvadmin@dhcppc7 ~]$ gsettings get org.gnome.desktop.screensaver idle-activation-enabled
true
[cctvadmin@dhcppc7 ~]$ gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

** (process:24785): WARNING **: Command line `dbus-launch --autolaunch=90386580b0542eeb8f17514000000197 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

** (process:24785): WARNING **: Command line `dbus-launch --autolaunch=90386580b0542eeb8f17514000000197 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
[cctvadmin@dhcppc7 ~]$
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby ah7013 » Jun 12th, '12, 03:18

No you shouldn't need to use su. Does running
Code: Select all
gsettings get org.gnome.desktop.screensaver idle-activation-enabled

as the normal user still say true? I just created a test Mageia 2 virtual machine with GNOME and ran the commands to test and once I had set it, the value became "false". Didn't get any of those warning messages though.
Code: Select all
[user@localhost ~]$ gsettings get org.gnome.desktop.screensaver idle-activation-enabled
true
[user@localhost ~]$ gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
[user@localhost ~]$ gsettings get org.gnome.desktop.screensaver idle-activation-enabled
false

If it still says true then maybe you could try setting it in dconf-editor by installing the dconf-editor package and running dconf-editor as the normal user (not root) and go to org -> gnome -> desktop -> screensaver and unticking the "idle-activation-enabled" checkbox.
Mageia 2 x86_64, KDE 4.8.5 on a Thinkpad Edge E520 - Intel Core i7-2640M 2.8GHZ, 16GB DDR3 RAM 1333MHz
Mageia 2 x86_64, KDE 4.8.5 on a Dell Studio 1555 - Intel Core 2 Duo T6600 2.2GHz, 8GB DDR2 RAM 800MHz
User avatar
ah7013
 
Posts: 74
Joined: Apr 9th, '11, 05:02
Location: Adelaide, Australia

Re: Brightness & Lock

Postby freetibet » Jun 15th, '12, 00:12

thanks that did it.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby doktor5000 » Jun 15th, '12, 00:38

Then please mark the thread as [SOLVED].
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Brightness & Lock

Postby freetibet » Jul 2nd, '12, 22:57

This didn't work it goes to sleep after about 5 minutes, I did not realise because I was not on site..
It doesn't lock now however which is a bonus.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby doktor5000 » Jul 3rd, '12, 18:50

What about simply using gnome-control-center or System Settings as it is called under Gnome3?
Brightness & Lock, as it should be called in english, offers what you want.

But don't ask me how to reach it from the menu, as it was easily accessible under gnome2.
Just fired gnome3 up for the first time, and didn't find it in the few minutes i could stand it.
Somebody then told me it's available from the user menu / right top bit of the screen ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Brightness & Lock

Postby freetibet » Jul 3rd, '12, 19:06

I have looked for ever not found yet…
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby freetibet » Jul 3rd, '12, 19:32

doktor5000 wrote:What about simply using gnome-control-center or System Settings as it is called under Gnome3?
Brightness & Lock, as it should be called in english, offers what you want.

But don't ask me how to reach it from the menu, as it was easily accessible under gnome2.
Just fired gnome3 up for the first time, and didn't find it in the few minutes i could stand it.
Somebody then told me it's available from the user menu / right top bit of the screen ...


Actually I have found that but the highest it goes to is one hour…
I need "Never"
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby doktor5000 » Jul 3rd, '12, 19:50

Can you try if
Code: Select all
xset -dpms
in a terminal is effective?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Brightness & Lock

Postby freetibet » Jul 5th, '12, 21:03

doktor5000 wrote:Can you try if
Code: Select all
xset -dpms
in a terminal is effective?

Thanks that did it…
But Why ?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock [SOLVED]

Postby doktor5000 » Jul 5th, '12, 22:32

What do you mean why? This disables DPMS (dynamic power management settings) which is the same basic mechanic which is used by GNOME or other programs to control the monitor standby or things like that. But it will only be effective for that session, and needs to be redone after a reboot. For this purpose you can also put that command in /etc/rc.d/rc.local
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Brightness & Lock [SOLVED]

Postby freetibet » Jul 8th, '12, 10:27

I mean "Why" because I want to understand how it works… which you have told me… Thanks…
So do I just put the line

xset -dpms

in

/etc/rc.d/rc.local

or is there any other code that is needed at all ?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock [SOLVED]

Postby doktor5000 » Jul 8th, '12, 14:26

freetibet wrote:So do I just put the line

xset -dpms

in

/etc/rc.d/rc.local

Yep, exactly. But it would be nice to have a "never" option as you originally requested. Seems *buntu has a patch for that one in their Gnome 3.5.3, or at least someone told me that. So you may want to report a bug/enhancement request for that: https://wiki.mageia.org/en/How_to_report_a_bug_properly

BTW: If you want explanations, you say so. Normally i'm just too busy to explain every information that is written by me per-se.
But i've got no problems and actually it's welcome if someone asks for an explanation what this does and why and some context informations ... ;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Brightness & Lock

Postby freetibet » Jul 8th, '12, 14:31

Thanks so now my rc.local looks like this…


Code: Select all
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: rc.local
# X-Mandriva-Compat-Mode
# Default-Start: 2 3 4 5
# Short-Description: Local initialization script
# Description: This script will be executed at the end of the boot process.
#              You can put your own initialization stuff in here if you don't
#              want to do the full Sys V style init stuff.
### END INIT INFO

touch /var/lock/subsys/local
xset -dpms

freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: Brightness & Lock

Postby freetibet » Jul 26th, '12, 00:21

Now getting this….


Code: Select all
[cctvadmin@localhost ~]$ xset -dpms
xset:  unable to open display ""
[cctvadmin@localhost ~]$
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: [SOLVED] Brightness & Lock

Postby doktor5000 » Jul 26th, '12, 18:04

You are doing this inside an X session right? And why do you run it manually, when it is in rc.local? Can you please provide some details what you did in the meantime after your last post?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Brightness & Lock

Postby alf » Jul 26th, '12, 18:57

freetibet wrote:Now getting this….


Code: Select all
[cctvadmin@localhost ~]$ xset -dpms
xset:  unable to open display ""
[cctvadmin@localhost ~]$


you have to add the display's name.
Code: Select all
xset -display :0 -dpms
for windows problems reboot; for linux problems be root
alf
 
Posts: 326
Joined: Apr 1st, '11, 23:07
Location: DE Paderborn

Re: Brightness & Lock

Postby doktor5000 » Jul 26th, '12, 23:28

alf wrote:
freetibet wrote:you have to add the display's name.
Code: Select all
xset -display :0 -dpms

Which is normally already defined via DISPLAY env var, which gets set by the desktop session ...
The question is, why isn't this set in his installation?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Brightness & Lock

Postby alf » Jul 26th, '12, 23:36

When the command is executed in rc.local the Xserver is not yet running thus the display name must be specified. (try the command on a tty).
for windows problems reboot; for linux problems be root
alf
 
Posts: 326
Joined: Apr 1st, '11, 23:07
Location: DE Paderborn

Next

Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest