-   Mandriva (
-   -   xscreensaver in KDE uses wrong screen size (

EdoardoC 03-22-2004 11:30 AM

xscreensaver in KDE uses wrong screen size
On my laptop with Mdk 10.0 CE, when I run with the laptop panel I use a screen res of 1280x1024, when I use an external monitor I set it to 1600x1200 and switch off the internal panel (by closing the lid).

I change res using Xdrakres followed by a logout - not using kde's screen resize and rotate.

I have set KDE not to use a screensaver, and in my autostart folder I launch xscreensaver

well, xscreensaver runs using the "small" resolution - so covering just a rectangluare portion of the whole screen.

any clues ?


MunterMan 03-23-2004 07:14 AM

xscreensaver runs as a daemon in the back ground, it starts when you start the x server, which is before you log on.
Logging out/in wont restart the saver. To do that you are going to have to stop the xserver and restart it again.

Make your changes with Xdrakres.
log in a text terminal with su
init 3
init 5

which is a lot of messing just to get a screen saver working.
Personally I would just live with 1280 X 1024. works fine for my on my 20" monitor.

EdoardoC 03-23-2004 07:38 AM

thanks MunterMan
the problem is the problem happens even if I (change res and) log out and do a ctrl-alt-bkspc which restarts X
and even if I (change res and) shut down the pc and restart !!!

basically, my xscreensaver NEVER ran at 1600x1200
so somewhere it reads a different screensize and uses that.

this is my /etc/X11/XF86Config-4 ... if that may help.
I notice that there is no mention of the defined modes in the screen section, just that 'virtual' ....


# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering

Section "DRI"
Mode 0666

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "XkbOptions" ""

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "6 7"

Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "Dell 2001FP (Analog)"
HorizSync 31-80
VertRefresh 56-76

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

Section "Device"
Identifier "device1"
VendorName "ATI"
BoardName "ATI Radeon (fglrx)"
Driver "radeon"
Option "DPMS"

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 16

Subsection "Display"
Depth 8
Virtual 1600 1200

Subsection "Display"
Depth 15
Virtual 1600 1200

Subsection "Display"
Depth 16
Virtual 1600 1200

Subsection "Display"
Depth 24
Virtual 1600 1200

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"

MunterMan 03-23-2004 08:07 AM

Got this from the xscreensaver site

On my laptop, XScreenSaver doesn't fill the whole screen!

This is a bug in the X server, not xscreensaver: the XF86VidModeGetViewPort() function is full of lies, and I don't see any way to work around it.

I believe this only happens on certain laptops, and possibly only on systems that have a docking station or external monitor that runs in a different resolution than the laptop's screen.

There is discussion of this bug in the Red Hat and Debian bug systems; the buck was finally passed upstream to XFree86, where it is bug 421.

The XFree86 developers have closed the bug. As far as I can tell, their reason for this was, "this is an X server bug, but it's pretty hard to fix. Therefore, we are closing it."

So how about that. If you'd like them to actually fix this, you'll have to convince them that it matters, I guess...
End Quote:

Sorry I couldn't help

EdoardoC 03-23-2004 08:15 AM

well, it does help instead

you have been most helpful - I have nothing to configure ...

it's just soo sad that "OS/X is my favorite Linux distro" [Blake Stone]
driving to laptopia

All times are GMT -5. The time now is 07:16 PM.