Oki DZ wrote:

On Thu, Sep 11, 2003 at 08:09:07AM +0100, David selby wrote:


Its quite possible I have misunderstood how to do this, I have a lot od "Doh !" moments.



I had an aha moment.


I set the gdm config to have two X server settings, one with 24 and the other with 16bpp, and the Screen section is in the following:
SubSection "Display"
Depth 16
Modes "1024x768" "1152x864"
EndSubsection
SubSection "Display"
Depth 24
Modes "1024x768" #"1152x864"
EndSubSection
When the 16bpp was selected, the mode went to 1024x768; then I pressed ctl-alt-+, the resolution changed to the second one. But, the image on the screen became smaller (I had wide blank sections on the edges of the screen). And after I pressed ctl-alt--, I had what you had had before (ie: the screen went into virtual mode, even I hadn't set it to be so.)


It seems that you have to live with it; I mean, in the X world, changing the screen resolution would need you to relogin (and tinker with the monitor's setting; ie: the image width, position, etc.)

I guess this has something to do with the modelines; ie: having
a different modeline for each resolution would have you the right image
on the screen. But, that would be beyond me.

We are on the same boat.

Oki


Thanks for getting back to me .... I errr ... kind of worked out a bodge .... & it IS a bodge ....
Here goes ....



X 800x600, 1024x768 change via KDM


To allow you to swap between 800x600 + 1024x768 from KDM.
This is a bodge but it works ....

Modify /etc/X11/XF86Config-4 .....

Section "Screen"
Identifier "screen1"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "800x600"
EndSubSection
EndSection

Section "Screen"
Identifier "screen2"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "800x600"
Screen "screen1"
InputDevice "Generic Keyboard"
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Configured Mouse"
EndSection

Section "ServerLayout"
Identifier "1024x768"
Screen "screen2"
InputDevice "Generic Keyboard"
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Configured Mouse"
EndSection

Then create files in /etc/kde2/kdm/

Xsessions800x600 ... containing ...
:0 [EMAIL PROTECTED] /usr/X11R6/bin/X -dpi 100 -nolisten tcp vt7 -layout 800x600
Xsessions1024x768 ... containing ...
:0 [EMAIL PROTECTED] /usr/X11R6/bin/X -dpi 100 -nolisten tcp vt7 -layout 1024x768

Then create files in /usr/local/bin/ ...

Setup_800x600 ... containing ...
#!/bin/sh
cp /etc/kde2/kdm/Xservers800x600 /etc/kde2/kdm/Xservers

Setup_1024x768 ... containing ...
#!/bin/sh
cp /etc/kde2/kdm/Xservers1024x768 /etc/kde2/kdm/Xservers

Finally remove "generate-sessiontypes" from /etc/kde2/kdm/kdm.options

And add session Setup_800x600 + Setup_1024x768 to KDM.

To change screen format via KDM click root user, click required resolution, GO, click re-start X.


I did say it was a bodge !


Dave


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to