Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: Tahoe on January 01, 2010, 11:21:56 PM
-
Happy New Years Folks,
Running the latest 2.7 on a laptop and looking for where the (ten min.) default screen blanking info's kept. I've searched and read through a few threads, notably this vbetool topic http://forum.tinycorelinux.net/index.php?topic=1591.0 I'd be happy to alter the stock setup which I gather is possible, or learn vbetool's use. I'd prefer to stay with Xvesa and would like to know if the *suspend* package is essential for working with vbetool, thanks.
-
The suspend extension was originally used with vbetool to provide a couple of dependencies - these dependencies (libx86, libpci) have been moved to separate extensions, so the suspend extension should not be needed now.
-
The xset utility may be used to change the timeouts. "xset q" to see the current ones.
-
OK, I've got the deps Jaunito listed along with an 845g chipset, 915resolution invoked from bootlocal.sh. For testing purposes I've tried:
xset dpms 0 0 60
... which results in a "server does not have extension for dpms option" before following up with usage. Perhaps my syntax?
xset q results in:
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
auto repeating keys: 00ffffffdffffbbf
fadfffffffedffff
ffffffffffffffff
ffffffffffffff7f
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 600 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
Server does not have the DPMS Extension
Font cache:
Server does not have the FontCache Extension
I'll note the 915res is somewhat sluggish compared to video without and doubt it's doing me much good either. Hopefully you guys can help me achieve nirvana without much ado, thanks again.
PS - Is there a file holding that 600 timeout value or is it generated by an extension?
-
xset dpms 0 0 60
... which results in a "server does not have extension for dpms option" before following up with usage. Perhaps my syntax?
..maybe the syntax is wrong, but I would guess you need the full "X" from the Xorg extension for the dpms option to be enabled? On the bright side, this would mean you wouldn't need 915resolution ;)
-
Yeah maybe, I'm thinking lose the 915. Xorg's worked OK on other distros I've tried but not a few boots ago, she wouldn't go. Since eyeballing related items in appbrowser, I'd say it's time for another shot. In the event she doesn't load, what are my outs? Slip a working xorg.conf in there (I know my refresh rates)?
Then again, about that 600 value? It exist somewhere I could adjust?
-
I've not managed to get the couple of intel graphics chipsets to which I've had access to work confless with xorg, but they do work with a suitable xorg.conf culled from google.
As for the 600 screensaver setting - I don't know, but maybe the xset linux man page might turn something up?
Edit: The default values are built into X, and need not appear anywhere else. That's why, if you grepped for timeouts, you may not have found them.
They can also be set via xset. You can set the blank timeout with:
xset s blank
xset s 300
will tell X to use screen blanking after the system has been idle for 300 seconds (five minutes).
xset dpms 0 360 420
disables DPMS standby and sets the DPMS suspend time to 360 seconds and the off time to 420 seconds. In theory, this combined with the previous xset commands would first blank the screen at five minutes; then at six minutes, the display would go to suspend, turning off another minute later. In practice, this won't work for most people, as we'll see later. (DPMS through xorg seems only to toggle the screen-blanked state -- so if the screen was already blanked, it will actually turn back on! -- rather than going to a power saving state.)
But the timeouts can also be specified in the X configuration file: /etc/X11/xorg.conf. In the "Monitor" section, you need a line like:
Option "DPMS"
Then, in the "ServerLayout" section (for Xorg 7.2 and later, make a separate ServerFlags section instead), include lines like this:
Option "BlankTime" "4"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "5"
Caution: note the numbers are all small. xorg.conf needs times specified in minutes, not seconds as with xset.
If you're seeing a timeout that isn't one of the defaults, but isn't specified in xorg.conf -- as with the two-minute timeout which set me on this quest in the first place -- you may have to hunt around for a place that's calling xset dpms with a different set of timeouts. In my case, it turned out that Ubuntu Breezy sets the dpms timeouts in /etc/acpi/power.sh, which gets called at boot time. So anything you set in xorg.conf may well get overridden.
Hint: when debugging timeouts, try setting them to unusual numbers like 765 or 666 instead of 300 or 600. That makes it easier to be sure whether you're seeing your own numbers or something coming from a system setting somewhere else.
-
So Confless is (partially) responsible for auto-configuring users hardware? In the meantime I'll try and follow along here http://forum.tinycorelinux.net/index.php?topic=4091.0, it's recent.
-
did you see the edit to the post above?
-
Oh sure, thanks Juanito. Think I'll dig around a little and see what turns up.
-
Solution, albeit simple! These two issued one after the other.
They probably won't for monitors not supporting dpms.
xset s blank
Followed by:
xset s [time_in_seconds] 180 for my preference.
Now how to apply before the Xserver's up?
-
This can be used only after X is up. See ~/.xsession
-
Unfortunately I'm still a greenhorn when it comes to appending necessary information.
Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
waitforX
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -n "$THEME" ] && cp /opt/jwmThemes/"$THEME" .jwmrc-theme
if [ -n "$BACKGROUND" ]; then
setbackground image /opt/backgrounds/"$BACKGROUND"
else
[ -x ./.setbackground ] && ./.setbackground
fi
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ -x ./.mouse_config ] && ./.mouse_config &
[ $(which flit) ] && flit &
[ $(which watcher) ] && watcher -g +0-0 &
Will I need to add the options from Xvesa's cli or xset's?
The Xvesa line before the "waitforX" notation, right?
-
Xvesa's! Options v and -s [minutes] somewhere in the line before "waitforX."