Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to change the screen resolution in KDE?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Fri Jul 19, 2002 8:22 pm    Post subject: How to change the screen resolution in KDE? Reply with quote

Woohoo! I finally got Gentoo to compile and not spout out error messages at startup. Moreover, I got KDE working!!! After many unsuccessful attempts with xf86config, (the screen would flash a few times and then I'd be back at the prompt with an error message) I used xf86cfg and can at least start KDE. Whew, it's been a long haul, and I'm almost there. Now, if someone could just tell me how to change the screen resolution? I've done some searches here and tweaked my /etc/X11/XF86Config file until it didn't work anymore, so I had to run xf86cfg again, but I still have HUGE icons and a term window that takes up most of the screen. The color is kind of grainy too. Is there a GUI way to do it perhaps? If not, could someone show part of a working XF86Config file please? Thanks :D
Back to top
View user's profile Send private message
therobot
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 256
Location: Canada

PostPosted: Fri Jul 19, 2002 8:57 pm    Post subject: Reply with quote

you should be able to press ctl-alt-+/- to cycle through resolutions.
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Fri Jul 19, 2002 9:13 pm    Post subject: Reply with quote

Aw man, I was SO hoping that would work. Thanks for replying though.
Back to top
View user's profile Send private message
gimp2x
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 112
Location: Atlanta, GA

PostPosted: Fri Jul 19, 2002 9:40 pm    Post subject: Reply with quote

post your XF86Config
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Fri Jul 19, 2002 9:52 pm    Post subject: Here ya go, sorry for the big post Reply with quote

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "extmod"
Load "xie"
Load "pex5"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "speedo"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
EndSection

Section "Monitor"
#DisplaySize 310 230 # mm
Identifier "Monitor0"
VendorName "CTX"
ModelName "1785"
Option "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "PciRetry" # [<bool>]
#Option "rgbbits" # <i>
#Option "NoAccel" # [<bool>]
#Option "TurboQueue" # [<bool>]
#Option "SetMClk" # <freq>
#Option "FastVram" # [<bool>]
#Option "ForceCRT2Type" # [<str>]
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # [<str>]
#Option "NoXvideo" # [<bool>]
#Option "Vesa" # [<bool>]
#Option "MaxXFBMem" # <i>
Identifier "Card0"
Driver "sis"
VendorName "SiS"
BoardName "630"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection
Back to top
View user's profile Send private message
ealfert
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 86
Location: Weston, FL, US

PostPosted: Fri Jul 19, 2002 10:09 pm    Post subject: Reply with quote

your missing some information at the end...take a look at how i have the "screen" and "display" sections configured.

you need to set "default depth" and also provide some resolutions for that depth.

Code:

Section "Screen"
    Identifier  "Screen 1"
    Device      "S3"
    Monitor     "IBM T22"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth        16
        Modes        "1400x1050" "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort     0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection


also, once you get the resolution you want, you can cycle through them using the keys like was previously mentioned... BUT... remember to use the "keypad" + and - keys... NOT the one at the top of the keyboard...those don't work
_________________
Edward Alfert
RootMode, LLC
http://www.rootmode.com/
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Fri Jul 19, 2002 10:35 pm    Post subject: Still no go Reply with quote

Thanks for the responses, and sorry for another largish post. Here're the relevant bits of an XF86Config file that I generated using /usr/X11R6/bin/xf86config, and then modified. Here's the deal; I had Mandrake installed before Gentoo, so I saved my /etc/X11/XF86Config file, and tried copying it over directly...no go. The following is the result of me trying to modify the non-functional XF86Config file with parts of the Mandrake one. Still not working though. What am I missing here? BTW, the resolution-cycling key commands still aren't working even when I use the keypad; maybe that's part of the problem?

Section "Screen"
Identifier "Screen 1"
Device "SiS 630"
Monitor "Generic|High Frequency SVGA 1024x768 at 70 Hz"
DefaultDepth 16
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Back to top
View user's profile Send private message
Spark
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 87

PostPosted: Sat Jul 20, 2002 1:34 pm    Post subject: Reply with quote

You have
Quote:
Device "SiS 630"
there, while in your device section, it's
Quote:
Identifier "Card0"
. Make sure that your identifiers match. Device "Card0" would be more like it.
Same for monitor etc, when you define them, use the identifier names you used in the appropriate sections.
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sat Jul 20, 2002 2:54 pm    Post subject: Reply with quote

Hmm, I'll tinker with that when I get home. Those are 2 different files I posted, though. I mean they're both /etc/X11/XF86Config files, but the first was generated with x86cfg and the second with x86config. I'm also going to try XFree86 -configure.
Back to top
View user's profile Send private message
Spark
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 87

PostPosted: Sat Jul 20, 2002 3:16 pm    Post subject: Reply with quote

Then post the complete second one, otherwise we can't help. =)
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sat Jul 20, 2002 4:33 pm    Post subject: Reply with quote

The first long post is the one generated by running XF86Config. The second long post is one that I generated with xf86cfg, and then modified to try and make it more like the one that was created when I installed Mandrake. This one is the one that currently works for me (generated by xf86cfg) but the resolution is too big. Thanks for the help.

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "extmod"
Load "xie"
Load "pex5"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "speedo"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
EndSection

Section "Monitor"
#DisplaySize 310 230 # mm
Identifier "Monitor0"
VendorName "CTX"
ModelName "1785"
Option "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "PciRetry" # [<bool>]
#Option "rgbbits" # <i>
#Option "NoAccel" # [<bool>]
#Option "TurboQueue" # [<bool>]
#Option "SetMClk" # <freq>
#Option "FastVram" # [<bool>]
#Option "ForceCRT2Type" # [<str>]
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # [<str>]
#Option "NoXvideo" # [<bool>]
#Option "Vesa" # [<bool>]
#Option "MaxXFBMem" # <i>
Identifier "Card0"
Driver "sis"
VendorName "SiS"
BoardName "630"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection
Back to top
View user's profile Send private message
Spark
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 87

PostPosted: Sat Jul 20, 2002 8:47 pm    Post subject: Reply with quote

But this one is the same as the first (probably both those which work for you) and the second post isn't long but only a part. =)
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sat Jul 20, 2002 9:00 pm    Post subject: Reply with quote

Whoops, sorry if I double posted. The most recently posted file is the one that works, meaning XWindows will start, but the resolution of HUGE and the color must be using 16 colors, cause it's grainy. Do you see anything in this file that could be tweaked to give me a better resolution and use more colors? Thanks
Back to top
View user's profile Send private message
Spark
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 87

PostPosted: Sat Jul 20, 2002 9:13 pm    Post subject: Reply with quote

I rather wanted to see your old working Mandrake config. :)
Anyway, try this. It's untested so it might blow up your computer:

Code:

Section "Module"
    Load        "dbe"     # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "freetype"

# This loads the GLX module
    Load       "glx"
EndSection

Section "Files"
    RgbPath   "/usr/X11R6/lib/X11/rgb"

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/URW/"
    FontPath   "/usr/X11R6/lib/X11/fonts/truetype/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "InputDevice"
    Identifier   "Keyboard0"
    Driver   "Keyboard"

    Option "AutoRepeat" "500 30"

    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"   "us"
EndSection

Section "InputDevice"
    Identifier   "Mouse0"
    Driver   "mouse"
    Option "Protocol"   "PS/2"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping" "4 5"
    #Option "Accel" "Off"
EndSection

Section "Monitor"
   Identifier "Monitor0"
   VendorName "CTX"
   ModelName "1785"
   Option "DPMS"
EndSection

Section "Device"
   Identifier "Card0"
   Driver "sis"
   VendorName "SiS"
   BoardName "630"
   BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Card0"
    Monitor     "Monitor0"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1600x1200" "1024x768" "640x480" "320x240"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1600x1200" "1024x768" "640x480" "320x240"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1600x1200" "1024x768" "640x480" "320x240"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
   Identifier "XFree86 Configured"
   Screen 0 "Screen0" 0 0
   InputDevice "Mouse0" "CorePointer"
   InputDevice "Keyboard0" "CoreKeyboard"
EndSection


This should give you a resolution of 1600x1200. If that's too heavy for you, remove the 1600x1200 parts or move them to the end of the list. AFAIK it wil always choose the first in the row that's available.
I'm wondering about your monitor settings, usually you should enter some frequency ranges. I'm not sure if this will cause any problems.
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sat Jul 20, 2002 9:31 pm    Post subject: Reply with quote

Cool, THANKS! I'll try it when I get home. I had tried the file that had worked when using Mandrake, but it didn't work, so I never posted it. :D
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sun Jul 21, 2002 2:01 am    Post subject: Reply with quote

FINALLY!!! Well, the file you posted didn't work, but I really appreciate the help :D What finally did it was running xr86config AGAIN and choosing a different card, ie sis620. Then I picked the resolutions (it started sinking in this time), and after restarting, I felt like I needed glasses since everything had been gnome-for-the-legally-blind for so long. Well, I'm off to tinker some more with other stuff. Thanks to all who responded, and especially for your persistance, Spark!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum