Announcement

Collapse
No announcement yet.

Screen resolution defaults after every reboot. [Solved]

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

    Screen resolution defaults after every reboot. [Solved]

    Screen resolution defaults after every reboot.

    I was running kde4 with compiz fusion when things went wrong. I was playing around with some different settings in the taskbar (the tooltips and whether or not to show programs on other desktops) when the taskbar mysteriously left me. As did the desktop background. Fortunately, I had already been signed in to irc and asked for help in #kubuntu-kde4. The nice folks there informed me that I needed to hit alt+f2 and run Plasma.

    Unforunately for me, alt+f2 stopped bringing up the run prompt for me some few months ago when I installed compiz fusion. So I did what any sane person would do, and hopped on over to the #compiz-fusion channel. There, they informed me that alt+f2 should still work, and that something compiz fusion needs in order to handle that keyboard shortcut doesn't ship by default with kubuntu 8.04. Fine.

    I don't see an easy way to restart plasma, and neither do they. I hit ctrl+alt+f2, login, and do a sudo reboot. After kubuntu finished restarting, I got a prompt informing me that kde4-window-decorator crashed. So I restarted again. And again. It kept on crashing. I went ahead and asked for help, and folks told me to do a "compiz --replace" (or something to that effect). So I did. It stopped crashing after a reboot.

    But now I noticed that the OS defaulted to 800x600 no matter how many times I told it to stay at 1280x1024. Nobody on irc can decide what's the root cause, so I leave. I uninstall compiz-fusion (eliminating it as a potential culprit). I go so far as to start using kde3 again. Still no luck.

    Thinking that perhaps my xorg.conf go hosed somewhere along the way, I do a "sudo dpkg-reconfigure-phigh xserver-xorg". This seems to reset xorg.conf to a sort of default setting. Unfortunately, I'd like to bump up my screen resolution and run compiz fusion again, so I reinstall the nvidia drivers using "sudo envyng-qt". I select nvidia, and let it automatically detect my card (this has worked very well in the past for my 6200). The program runs just fine, and recommends I restart. I do so.

    So now we're here: I cannot get kubuntu to hold any resolution through a reboot. It reverts to 800x600 no matter what I seem to do. I've tried resetting the screen resolution using "sudo nvidia-settings", making sure to write the changes to file. I've tried using the display option in the system settings (both in kde3 and in kde4).

    I'd rather not have to do something as drastic as reinstall the OS (I'm an old windows fanboy, this is what I'd do if it were m$ acting up), but I'm at my wits end. Hopefully the information I've provided is helpful. If you need anything else, I'll do my best to provide it. I know how to do a handful of things at the command line, but not much, so concise instructions should make everything move more smoothly.

    #2
    Re: Screen resolution defaults after every reboot.

    i don't know anything about kde4/plasma/compiz.
    i'm still on plain kde3.5.8 on kubuntu 7.10.

    nobody's picked up this thread, so...no harm in trying a few things.

    a) you could try and find out if your problem is user config dependent.
    that is: you could create yourself a new account, log in and see what happens.

    b) see if you have the old (in)famous displayconfigrc file amongst your current user's config files.
    it used to be a source of troubles a long time ago.
    i don't know if it still is.
    start a konsole and enter:
    Code:
    cd
    find . -name \*displayconfigrc\* -exec ls -l {} \;
    if the find command doesn't output anything, it means it didn't find anything.
    if it prints out something, then please post it here.

    c) i could attach a streamlined xorg.conf file, with nvidia driver and all the acceleration stuff
    but i need to know:
    if you have a laptop or a desktop (to see if a touchpad needs to be included)
    what keyboard layout you have

    hth
    gnu/linux is not windoze

    Comment


      #3
      Re: Screen resolution defaults after every reboot.

      1) I'm not sure how add/create another user.



      2) The file you were wondering about was found. Here it is:

      cat ./.kde/share/config/displayconfigrc
      [General]
      targetgamma=2.0

      [Screen0]
      bluegamma=1.0
      dpmsEnabled=on
      dpmsSeconds=2700
      greengamma=1.0
      height=600
      redgamma=1.0
      reflectX=0
      reflectY=0
      refresh=56
      rotate=0
      width=800



      3) Here's my xorg.conf as it stands:

      cat /etc/X11/xorg.conf
      # nvidia-settings: X configuration file generated by nvidia-settings
      # nvidia-settings: version 1.0 (buildd@vernadsky) Thu Jun 5 09:26:53 UTC 2008

      # 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.
      #
      # 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
      EndSection

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

      Section "InputDevice"
      Identifier "Generic Keyboard"
      Driver "kbd"
      Option "XkbRules" "xorg"
      Option "XkbModel" "pc105"
      Option "XkbLayout" "us"
      EndSection

      Section "InputDevice"
      Identifier "Configured Mouse"
      Driver "mouse"
      Option "CorePointer"
      Option "Emulate3Buttons" "true"
      EndSection

      Section "Monitor"
      Identifier "Configured Monitor"
      EndSection

      Section "Monitor"
      Identifier "Monitor0"
      VendorName "Unknown"
      ModelName "DELL M991"
      HorizSync 30.0 - 96.0
      VertRefresh 50.0 - 160.0
      EndSection

      Section "Device"
      Identifier "Configured Video Device"
      Driver "nvidia"
      EndSection

      Section "Device"
      Identifier "Videocard0"
      Driver "nvidia"
      VendorName "NVIDIA Corporation"
      BoardName "GeForce 6200"
      EndSection

      Section "Screen"
      Identifier "Default Screen"
      Device "Configured Video Device"
      Monitor "Configured Monitor"
      DefaultDepth 24
      Option "AddARGBGLXVisuals" "True"
      EndSection

      Section "Screen"
      Identifier "Screen0"
      Device "Videocard0"
      Monitor "Monitor0"
      DefaultDepth 24
      Option "TwinView" "0"
      Option "metamodes" "1280x1024 +0+0; nvidia-auto-select +0+0"
      EndSection

      Section "Extensions"
      Option "Composite" "Enable"
      EndSection



      Further suggestions/requests/advice?

      Comment


        #4
        Re: Screen resolution defaults after every reboot.

        Looking at the settings in your posted displayconfigrc file I'd suggest the following course of action:

        1) Make a backup of your displayconfigrc file:
        Open a console and type:
        Code:
        cp ~/.kde/share/config/displayconfigrc ~/.kde/share/config/displayconfigrc_BAK
        2) Edit the displayconfigrc file and change:
        height=600 to height=1024
        and
        width=800 to width=1280

        3) Save and close the file

        4) Perform a normal logout/shutdown/restart

        Does the monitor resolution now 'stick' with the desired screen size?
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Screen resolution defaults after every reboot.

          Leaps and bounds! My resolution sticks. Now, as long as you're reading this, is there any chance I can get you to do something about the refresh rate? I set the refresh field of the displayconfigrc to 75, but that's not helping. I have to go into nvidia-settings to get it to actually change.

          More excellent ideas?

          Comment


            #6
            Re: Screen resolution defaults after every reboot.

            Glad I was able to help.

            I'm not an Nvidia guru, but I'm sure that there is a specific configuration file for it. Sorry, but I can't help you on this, but keep watching, as there are many Forum members who do have Nvidia cards and can probably assist you further.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: Screen resolution defaults after every reboot.

              Originally posted by gs3user007
              More excellent ideas?
              yeah.
              remove that bloody displayconfigrc file.
              and don't ever use system setting's display configuration ever again.


              i've attached an xorg.conf file for you to try.
              it's called xorg.conf.txt 'cause you can't attach it here otherwise.
              but it should be xorg.conf (but you know that).
              anyway...
              it's got the usual acceleration stuff, plus a DPMS directive for your monitor.
              it doesn't have any resolutions in it.
              which should cause your x server to settle for the highest for your monitor.

              as for the refresh rate of your monitor...
              nvidia-settings has probably added a directive to your xorg.conf (can you confirm that, pls?).
              which is where it should be.
              ttbomk, with a range of rates available, the x server will aim for the highest.
              i think the target rate directive is "TargetRefresh" .
              i think.

              again, forget about displayconfigrc.

              hth

              POST SCRIPTUM:
              pls, mark this thread as "solved".
              cheers
              Attached Files
              gnu/linux is not windoze

              Comment


                #8
                Re: Screen resolution defaults after every reboot.

                Almost had it... I rm'd the displayconfigrc file, and put in your xorg.conf, then restarted. Monitor defaulted to 1024x768 (with a refresh above what i can detect, so something above 70).

                I kdesudo'd nvidia-settings, bumped up the resolution and put in a static refresh rate (as opposed to "auto"), and now it'd running like a charm again.

                Thanks a ton!

                EDIT:
                Do I mark it as solved, or will someone else? If I need to, how do I do it?

                Comment


                  #9
                  Re: Screen resolution defaults after every reboot.

                  Just go back to your initial post in this thread, click on the modify button and add SOLVED to the subject.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Screen resolution defaults after every reboot.

                    Originally posted by gs3user007
                    Thanks a ton!
                    cheers
                    gnu/linux is not windoze

                    Comment

                    Working...
                    X