How to stop display from shutting off in 30 minutes? (Solved

Using applications, configuring, problems
Message
Author
LordQwerty
Posts: 13
Joined: Thu 29 May 2008, 15:09

How to stop display from shutting off in 30 minutes? (Solved

#1 Post by LordQwerty »

Hi all,

I'm looking for a similar setting tool like the "power options" in Windows XP (sorry to mention "Windows" ;) )
The problem I have with Puppy is that my monitor is turning black after about 30 minutes.

I already tried to turn off the screensaver, and switched the bios setting to turn on the monitor always, but no luck. I guess there must be some power options in Puppy.

Maybe you can help me?

Thanks.

User avatar
erikson
Posts: 735
Joined: Wed 27 Feb 2008, 09:22
Location: Ghent, Belgium
Contact:

Re: How to stop monitor from shutting off in 30 minutes?

#2 Post by erikson »

LordQwerty wrote:The problem I have with Puppy is that my monitor is turning black after about 30 minutes.
DPMS (Energy Star) features can be disabled with

Code: Select all

xset -dpms
In order to make the setting persistent, I guess the command can be included in /etc/rc.d/rc.local (or in /root/.xinitrc ?)

DPMS settings are documented at http://linux.die.net/man/1/xset
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]

LordQwerty
Posts: 13
Joined: Thu 29 May 2008, 15:09

#3 Post by LordQwerty »

Thank you for your help.
Problem solved.

fzimmer
Posts: 52
Joined: Thu 15 Jan 2009, 19:53
Location: Duisburg Germany

#4 Post by fzimmer »

Is there a similar command for hard disks? I want to turn them off when not in use.

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#5 Post by npierce »

fzimmer,

Perhaps you can find an idea in this thread: Laptop & HDD sleep/standby command issue

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#6 Post by Rope »

I have the xset -dpms setting but it is not working.
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#7 Post by CatDude »

[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#8 Post by nic007 »

fzimmer wrote:Is there a similar command for hard disks? I want to turn them off when not in use.
I use hdparm for example: hdparm -S 120 /dev/sda will turn off sda after 10 minutes of inactivity.

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#9 Post by Rope »

CatDude wrote:Hi

Try this: http://www.murga-linux.com/puppy/viewto ... 852#852852

CatDude
.
Thanks but it does not work.
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#10 Post by CatDude »

Hello Rope

I'm also running Slacko-5.7 and after following the advice in the link i provided above,
i end up with a hidden file: /root/.xset.sh
which has the following content:

Code: Select all

xset m 20/10 4 c off r rate 660 25 s off -dpms
With that file in operation, i have NEVER had my screen go blank/off/black,
so i'm not really sure what is happening at your end to make it behave differently.

CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#11 Post by Rope »

I will try your configuration thanks.
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#12 Post by Rope »

CatDude wrote:Hello Rope

I'm also running Slacko-5.7 and after following the advice in the link i provided above,
i end up with a hidden file: /root/.xset.sh
which has the following content:

Code: Select all

xset m 20/10 4 c off r rate 660 25 s off -dpms
With that file in operation, i have NEVER had my screen go blank/off/black,
so i'm not really sure what is happening at your end to make it behave differently.

CatDude
.
Tried it. Does not work :(
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

scientist
Posts: 860
Joined: Sat 23 May 2015, 08:21

#13 Post by scientist »

Try this.
#!/bin/bash
# MAKE SURE CHMOD +X HAS BEEN APPLIED TO SCRIPT !!!!
#
# Blank screen after 10 minutes
# Value is time in seconds
# xset -q shows current settings
xset s 600
Thanks,
Andy


Slacko 6.3.0 FULL INSTALL
JWM
File Manager - Thunar

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#14 Post by Rope »

scientist wrote:Try this.
#!/bin/bash
# MAKE SURE CHMOD +X HAS BEEN APPLIED TO SCRIPT !!!!
#
# Blank screen after 10 minutes
# Value is time in seconds
# xset -q shows current settings
xset s 600
Sorry but where do I put the script and with what filename?
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#15 Post by Rope »

scientist wrote:Try this.
#!/bin/bash
# MAKE SURE CHMOD +X HAS BEEN APPLIED TO SCRIPT !!!!
#
# Blank screen after 10 minutes
# Value is time in seconds
# xset -q shows current settings
xset s 600
I put it in root/startup
does not work
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

Do you even have xset? You should..

CatDude's script may need to go elsewhere.. ala rc.local or ~/Startup. Have you tried these?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#17 Post by Rope »

yes I have xset


# xset q

Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 600 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff
Font Path:
/usr/share/X11/fonts/misc/,/usr/share/X11/fonts/Type1/,/usr/share/X11/fonts/TTF/,built-ins
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 0
DPMS is Disabled
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

scientist
Posts: 860
Joined: Sat 23 May 2015, 08:21

#18 Post by scientist »

Rope wrote:
scientist wrote:Try this.
#!/bin/bash
# MAKE SURE CHMOD +X HAS BEEN APPLIED TO SCRIPT !!!!
#
# Blank screen after 10 minutes
# Value is time in seconds
# xset -q shows current settings
xset s 600
I put it in root/startup
does not work
What does it show when you run it ?
Thanks,
Andy


Slacko 6.3.0 FULL INSTALL
JWM
File Manager - Thunar

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#19 Post by Rope »

How do I run it? If I click on it nothing happens.
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#20 Post by MochiMoppel »

@ Rope: Isn't it time you tell us what you are trying to achieve? This thread is about disabling the screensaver, scientist's script, which you are so desperate to run, enables the screensaver and blanks the screen after 10min. Your settings show that your system is already configured to do exactly that, so what is it that you want?
Rope wrote:If I click on it nothing happens.
Wait 10 minutes...

Script location: Since you are using Slacko 5.7, startup scripts go into /root/.config/autostart, not /root/Startup.

By default Slacko 5.7 sets the screensaver at startup in the script /root/.xinitrc with the command

Code: Select all

xset s 600 600 s blank
So here we have already a script which can be adapted (not by you! Frankly, you shouldn't touch it!)

Why do you need a script at all? Everything you need is already prepared. Go to
Menu > Desktop > pupX set properties of X
This is a GUI for xset. Here you can switch on/off the screensaver as you like. The dialog claims that settings are valid only for the current session, so I'm not sure if they survive a reboot, but they are stored in file /root/.xset.sh. At least you can use them as reference.

Post Reply