Announcement

Collapse
No announcement yet.

force screen resolution?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    force screen resolution?

    comp too old to mention, dualboot XP/kubuntu 9.10, 1GB ram, nVidia 6200 (185 driver) with generic screen.

    ever since the upgrade to 9.10 kubuntu changes my resolution upon system start just about every time i start up the computer. it chooses between two resolutions: 1280x1024 (the one i want) and 1024x768 (without any higher res available). when i get the lower resolution i have to restart the whole computer a few times until it recognises the higher resolution.
    how can i force a screen resolution? is there any parameter i can put into one of the configuration files or into grub? any way i can force screen resolution and refresh rates per program? (can't run Diablo 2 on kubuntu, screen shuts down).

    #2
    Re: force screen resolution?

    If you have an Nvidia driver do you have Nvidia XServer Settings in your menu? Does that not have the change of size you require? If you go >Xserver Display Configuration>(Display) Resolution.

    You make it "stick" by opening the Nvidia Xserver Settings from a Terminal with the instruction:
    kdesudo nvidia-settings
    "A problem well stated is a problem half solved." --Charles F. Kettering
    "Sometimes the questions are complicated and the answers are simple."--Dr. Seuss

    Comment


      #3
      Re: force screen resolution?

      THIS might be of help.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Re: force screen resolution?

        thanks! why haven't i thought about that? i'll leave this thread open for a couple of days and see if it works or not. if it works i'll [SOLVED] it.
        still, something weird happened. as i clicked on "write configuration to xorg.conf" i got this message after which nvidia settings window crashed:
        Code:
        Failed to parse existing X config file '/etc/X11/xorg.conf'!

        Comment


          #5
          Re: force screen resolution?

          if its a newer install there in not always an /etc/X11/xorg.conf file by default , if you create one (even blank) when you save w/ the nvidia-settings program it will save your config (kdesudo before the command)
          Mark Your Solved Issues [SOLVED]
          (top of thread: thread tools)

          Comment


            #6
            Re: force screen resolution?

            well, after one startup the resolution is still 1280x1024 but it doesn't say anything actually. i just checked nvidia x server settings and it went back to "defult", so the setting wasn't saved after the reboot. plus, i checked and there IS xorg.conf. this is all that is in the file:
            Code:
            Section "Screen"
            	Identifier	"Default Screen"
            	DefaultDepth	24
            EndSection
            
            Section "Module"
            	Load	"glx"
            EndSection
            
            Section "Device"
            	Identifier	"Default Device"
            	Driver	"nvidia"
            	Option	"NoLogo"	"True"
            EndSection
            maybe it's a premission problem? maybe i should load the nvidia x server settings window through kdesudo? if so, what's the command / file name?

            Comment


              #7
              Re: force screen resolution?

              yes you must run nvidia-settings as root if you plan to save it
              [code=run in konsole /run box] kdesudo nvidia-settings [/code]
              Mark Your Solved Issues [SOLVED]
              (top of thread: thread tools)

              Comment


                #8
                Re: force screen resolution?

                tried it, got the same error message.

                Comment


                  #9
                  Re: force screen resolution?

                  Code:
                  have you created (as root) the xorg.conf file? that should remove your error. even if its blank (just be sure to open nvidia-setting first. then create the file and adjust then save)
                  
                  [code = run in konsole /run box]kdesudo kate /etc/X11/xorg.conf
                  Mark Your Solved Issues [SOLVED]
                  (top of thread: thread tools)

                  Comment


                    #10
                    Re: force screen resolution?

                    i haven't created the file, the system created it when i installed it a few weeks ago. should i REALLY delete it and create it as root??

                    Comment


                      #11
                      Re: force screen resolution?

                      not if its already there...
                      perhaps this page will help you manually add the display res.
                      http://www.x.org/archive/X11R6.8.0/d....5.html#sect12
                      Mark Your Solved Issues [SOLVED]
                      (top of thread: thread tools)

                      Comment


                        #12
                        Re: force screen resolution?

                        So far you have not posted an xorg.conf file that's going to force the resolution. It's always a pain to create xorg.conf files but not that difficult. You need to create a Monitor section in your xorg.conf file with a modeline for 1280x1024. These problems occur with old video cards or obscure monitors that don't report their capabilities properly to HAL. I had to hack mine again in 9.10 to get dual monitors working correctly.
                        linux && bash = "the future"

                        Comment


                          #13
                          Re: force screen resolution?

                          this might be a bit more useful , its xorg.conf from my server, that does not have a monitor, so i had to manually add mode lines for resolution since after i upgraded to KK it doesn't want to display in 1024x768. Since i prefer a res of 1024x768 for my VNC use i had to manually set it,

                          [code=/etc/X11/xorg.conf]
                          # nvidia-settings: X configuration file generated by nvidia-settings
                          # nvidia-settings: version 1.0 (buildd@crested) Sun Feb 1 20:25:37 UTC 2009

                          # xorg.conf (X.Org X Window System server configuration file)
                          #
                          # This file was generated by dexconf, the Debian X Configuration tool, using
                          # values from the debconf database.
                          #
                          # Edit this file with caution, and see the xorg.conf manual page.
                          # (Type "man xorg.conf" at the shell prompt.)
                          #
                          # This file is automatically updated on xserver-xorg package upgrades *only*
                          # if it has not been modified since the last upgrade of the xserver-xorg
                          # package.
                          #
                          # Note that some configuration settings that could be done previously
                          # in this file, now are automatically configured by the server and settings
                          # here are ignored.
                          #
                          # If you have edited this file but would like it to be automatically updated
                          # again, run the following command:
                          # sudo dpkg-reconfigure -phigh xserver-xorg

                          Section "ServerLayout"
                          Identifier "Default Layout"
                          Screen 0 "Screen0" 0 0
                          InputDevice "Keyboard0" "CoreKeyboard"
                          InputDevice "Mouse0" "CorePointer"
                          EndSection

                          Section "Module"
                          Load "glx"
                          EndSection

                          Section "ServerFlags"
                          Option "Xinerama" "0"
                          EndSection

                          Section "InputDevice"
                          # generated from default
                          Identifier "Keyboard0"
                          Driver "kbd"
                          EndSection

                          Section "InputDevice"
                          # generated from default
                          Identifier "Mouse0"
                          Driver "mouse"
                          Option "Protocol" "auto"
                          Option "Device" "/dev/psaux"
                          Option "Emulate3Buttons" "no"
                          Option "ZAxisMapping" "4 5"
                          EndSection

                          Section "Monitor"
                          Identifier "Configured Monitor"
                          VendorName "Dell"
                          ModelName "Dell 1701FP (Analog)"
                          HorizSync 31.0 - 80.0
                          VertRefresh 56.0 - 76.0
                          Gamma 1
                          ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
                          ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
                          EndSection

                          Section "Monitor"
                          Identifier "Monitor0"
                          VendorName "Unknown"
                          ModelName "CRT-0"
                          HorizSync 31.0 - 80.0
                          VertRefresh 56.0 - 76.0
                          EndSection

                          Section "Device"

                          # Driver "nv"
                          Identifier "Configured Video Device"
                          Driver "nvidia"
                          Option "NoLogo" "True"
                          EndSection

                          Section "Device"
                          Identifier "Device0"
                          Driver "nvidia"
                          VendorName "NVIDIA Corporation"
                          BoardName "GeForce2 MX/MX 400"
                          EndSection

                          Section "Screen"
                          Identifier "Default Screen"
                          Device "Configured Video Device"
                          Monitor "Configured Monitor"
                          DefaultDepth 24
                          Option "AddARGBGLXVisuals" "True"
                          SubSection "Display"
                          Virtual 1024 768
                          Depth 24
                          Modes "800x600@60" "1024x768@60"
                          EndSubSection
                          EndSection

                          Section "Screen"
                          Identifier "Screen0"
                          Device "Device0"
                          Monitor "Monitor0"
                          DefaultDepth 24
                          Option "TwinView" "0"
                          Option "TwinViewXineramaInfoOrder" "CRT-0"
                          Option "metamodes" "1024x768 +0+0; 800x600@60 +0+0; 1024x768@60 +0+0; 800x600 +0+0"
                          SubSection "Display"
                          Depth 24
                          EndSubSection
                          EndSection
                          [/code]

                          sorry it does not contain a mode line for 1280x1024, but you would just have to add one to use it,

                          NOTE: this machine's video card is a Geforce2 MX (32mb ram i think) using the NVidia 96 driver.
                          Mark Your Solved Issues [SOLVED]
                          (top of thread: thread tools)

                          Comment


                            #14
                            Re: force screen resolution?

                            That's a lot more than you need and will probably cause you more grief if you don't know what you are doing. I'll start with the xorg.conf you pasted. To create a mode line use the command-line program cvt (/usr/bin/cvt). Look at the man page (very short) for a description. To create a mode line, you need the horizontal and vertical resolution plus the refresh rate. Typically for an LCD the value is 60hz. To create a mode line for an LCD panel capable of 1280x1024@60hz...

                            Code:
                            cvt -r 1280 1024 60
                            ...you need to copy the mode line to your xorg.conf file. You will need a few additional lines in your Monitor section in addition to the mode line. Look to sithlord's post or the man page for the additional lines. Add a Display subsection to the Screen section, add your mode line name (what is between the double quotes) and it should work.

                            Code:
                            Section "Monitor"
                              ...
                              Modeline "1280x1024"  <paste the output of the cvt command>
                              ...
                            EndSection
                            
                            Section "Screen"
                            	Identifier	"Default Screen"
                            	DefaultDepth	24
                                
                                Subsection "Display"
                                    Modes "1280x1024"
                                EndSubsection
                            EndSection
                            
                            Section "Module"
                            	Load	"glx"
                            EndSection
                            
                            Section "Device"
                            	Identifier	"Default Device"
                            	Driver	"nvidia"
                            	Option	"NoLogo"	"True"
                            EndSection
                            linux &amp;&amp; bash = &quot;the future&quot;

                            Comment

                            Working...
                            X