LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sleep (https://www.linuxquestions.org/questions/linux-newbie-8/sleep-184033/)

TroelsSmit 05-21-2004 04:50 AM

sleep
 
Hi,

when running X, after not having touched my computer for a while the computer enters somekind of sleep mode, and later it cuts the power to the screen.

Which program controls this ?
What is the command for entering sleep mode ?

Im using XF86, Debian, 2.6.5, Blackbox

Thanks

comprookie2000 05-21-2004 05:23 AM

Could be Xscreensaver,david

TroelsSmit 05-21-2004 05:33 AM

When running a 'ps -e' I get the following which, I think, rules Xscreensaver out.

PID TTY TIME CMD
1 ? 00:00:03 init
2 ? 00:00:24 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:40 kblockd/0
5 ? 00:00:00 khubd
7 ? 00:00:06 pdflush
9 ? 00:00:00 aio/0
8 ? 00:00:00 kswapd0
10 ? 00:00:00 saa7134[0]
11 ? 00:00:00 kseriod
12 ? 00:00:00 i2oevtd
13 ? 00:00:17 kjournald
332 ? 00:00:00 dhclient3
336 ? 00:00:00 portmap
427 ? 00:00:04 syslogd
430 ? 00:00:02 klogd
443 ? 00:00:00 cupsd
486 ? 00:00:00 exim4
491 ? 00:00:00 famd
496 ? 00:00:00 inetd
507 ? 00:00:00 mysqld_safe
542 ? 00:00:00 mysqld
578 ? 00:00:01 nmbd
580 ? 00:00:00 smbd
588 ? 00:00:00 sshd
600 ? 00:00:00 xfs
668 ? 00:00:00 ksh
669 ? 00:00:00 ksh
670 ? 00:00:00 Xprt
673 ? 00:00:00 ksh
703 ? 00:00:00 rpc.statd
730 ? 00:00:00 ntpd
734 ? 00:00:00 atd
737 ? 00:00:00 miniserv.pl
738 ? 00:00:00 cron
744 ? 00:00:00 apache
752 tty1 00:00:00 tcsh
753 tty2 00:00:00 getty
754 tty3 00:00:00 getty
755 tty4 00:00:00 getty
756 tty5 00:00:00 getty 757 tty6 00:00:00 getty
758 ? 00:00:04 apache
759 ? 00:00:01 apache
760 ? 00:00:05 apache
761 ? 00:00:01 apache
762 ? 00:00:01 apache
765 ? 00:00:00 fetchmail
773 tty1 00:00:00 startx
784 tty1 00:00:00 xinit
785 ? 00:02:29 XFree86
790 tty1 00:00:01 blackbox
791 tty1 00:00:05 bbpager
792 tty1 00:00:01 xbuffy
793 tty1 00:00:31 gaim
794 tty1 00:00:00 bbkeys
795 tty1 00:00:02 wmtime
796 tty1 00:00:01 wmmemload
797 tty1 00:00:03 wmweather
798 tty1 00:00:02 wmix
799 tty1 00:00:06 ipac
862 ? 00:00:00 ssh-agent
863 tty1 00:00:00 lineakd
1617 ? 00:00:01 apache
1731 ? 00:00:06 pdflush
1984 ? 00:03:04 amule
2024 tty1 00:00:00 aterm
2029 pts/12 00:00:00 tcsh
2490 ? 00:00:00 sh <defunct>
2543 pts/12 00:00:00 move
2883 ? 00:00:01 apache
3236 ? 00:00:00 apache
3237 ? 00:00:00 apache
3238 ? 00:00:00 apache
3350 tty1 00:00:00 gconfd-2
3478 ? 00:00:00 identd
3490 tty1 00:00:00 led
3510 tty1 00:00:00 xterm
3511 pts/22 00:00:00 mutt
3518 pts/22 00:00:00 urlview
3519 pts/22 00:00:04 mozilla-bin
3546 tty1 00:00:00 aterm
3547 pts/23 00:00:00 tcsh
3552 pts/12 00:00:00 sleep

TroelsSmit 05-21-2004 05:34 AM

(the 'sleep' is a simple script currently using that command)

anandj 05-21-2004 06:59 AM

Its probably 'dpms' settings in your XF86config
check
http://reviewed.homelinux.org/quicktips/screenblanking/

marghorp 05-21-2004 08:32 AM

Check the KDE control center under Power management. There is an option for Monitor power saving.

TroelsSmit 05-21-2004 02:38 PM

I don't have KDE installed :-S

anandj 05-21-2004 03:45 PM

Its immaterial if you are running KDE or not.
Its a setting in XF86Config

check the website I mentioned earlier.

or search for 'dpms' on google if you feel its not clear.

anandj 05-21-2004 03:47 PM

As a user you can turn on dpms by
xset +dpms
command.

or disable it by
xset -dpms

check xset manpages for more info.

TroelsSmit 05-21-2004 05:08 PM

Perfect, gonna try it in the morning!

marghorp 05-22-2004 01:17 AM

Or you can try

xset dpms force off

This should blank your monitor until you press a key or move the mouse.

Just a simple test to see if you have dpms


All times are GMT -5. The time now is 09:47 PM.