LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   New Better Monitor Changing Default Resolution Slackware 13.0 (http://www.linuxquestions.org/questions/slackware-14/new-better-monitor-changing-default-resolution-slackware-13-0-a-832201/)

frankbell 09-14-2010 09:26 PM

New Better Monitor Changing Default Resolution Slackware 13.0
 
I just picked up a new monitor (Viewsonic E70) to replace my old Princeton EO50.

The highest resolution the Princeton could do was 1024x768. The new monitor is capable of up to 1280x960.

I can change to 1280x960 when I'm logged into X, but, so far, X has not remembered that resolution and starts a mew session in 1024x768 for either root or user, regardless of the window manager I'm using (I normally use Fluxbox, but I've also tested in XFCE and KDE).

Once I am logged into X, I can change the resolution to 1280x960 and it will hold that resolution for the duration of the session.

I have changed /etc/X11/xorg.conf-vesa to read as follows:

Code:

    Subsection "Display"
        Depth      8
        Modes "1280x960" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      16
        Modes "1280x960" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      24
        Modes "1280x960" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      32
        Modes "1280x960" "1024x768" "800x600" "640x480"
    EndSubsection

I know I must be overlooking something. Is there something in /etc/rc.d I should look at?

Thanks.

allend 09-14-2010 09:58 PM

The file /etc/X11/xorg.conf-vesa is an example only. The file you want to edit is /etc/X11/xorg.conf

As your Viewsonic E70 is a CRT monitor, you will need to specify the horizontal and vertical refresh frequencies in your /etc/X11/xorg.conf file. The X in Slackware 13.0 should be able to automatically provide the maximum 1280x1024 resolution from this information.
i.e. Add the lines below to /etc/X11/xorg.conf
Code:

Section "Monitor"
    Identifier  "Monitor0"
    VendorName  "Viewsonic"
    ModelName    "E70"
    HorizSync    30-70
    VertRefresh  50-160
EndSection


Daedra 09-15-2010 02:07 AM

You could also try running X without a .conf file or make a new one using
xorgsetup
X -configure

Either of these should automatically pick up your monitors settings.

frankbell 09-17-2010 09:42 PM

I did not have an xorg.conf. I after reading you all's posts, I dimly recalled reading that it had been rendered unnecessary in a default installation, so I tried Daedra's suggestion and created one.

When I restarted X, the resolution was still 1024x768, but the higher resolutions were available and could be selected in system settings.

The Monitor section of xorg.conf seemed within the limits that allend described.

Code:

Section "Monitor"
        #DisplaySize          320  240        # mm
        Identifier  "Monitor0"
        VendorName  "VSC"
        ModelName    "E70-10"
        HorizSync    30.0 - 72.0
        VertRefresh  50.0 - 180.0
        Option            "DPMS"
EndSection

The Screen section was like nothing I had seen before:

Code:

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport  0 0
                Depth    1
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection

Are there any good links that would explain to me how to edit this without causing me to spend hours in vi fixing my mistakes?

One other thing I'll mention as an aside; what I described below was before I'd run xorgsetup.

I frequently turn the monitor off and leave the machine running because it also serves as my file server. A little while ago, I left it in a logged in state and turned off the monitor (I knew I'd be returning in a short while; otherwise I'd have logged out).

I ran startx without turning on the monitor and, when I opened settings to change the display to 1289x960 (which seems to be easiest on the eyes as opposed to the absolute max resolution), X did not realize that a larger display than 1028x764 was available.

I just offer that as a tidbit that might help someone sometime.

allend 09-18-2010 01:03 AM

I suggest you use the 'X -configure' at the command line before starting X, rather than the old 'xorgsetup' script that was written by Pat to help with setting up X in previous versions. This will show the X settings (that were previously supplied in xorg.conf) that will be used by X based on the autodetection results. There is no need to have an xorg.conf unless you specifically want to change any of the autodetection defaults.
From CHANGES_AND_HINTS.TXT FOR Slackware-13.1
Quote:

Speaking of Xorg, the version of Xorg shipped with Slackware 13.1 will not
(in most cases) require an /etc/X11/xorg.conf file at all. Configuration of
input devices and such is handled by HAL, and the X server autoconfigures
everything else. You can still create an xorg.conf file if you wish, or you
can create a minimal xorg.conf with only the specific contents that you wish
to override (as an example, to use a binary-only video driver).
Due to removed drivers and other such changes, it's quite possible that your
old xorg.conf will not work correctly with this version of Xorg.
When X is started, the autodetection includes reading the EDID in your monitor (which may not be available in all monitors, especially older CRT monitors). This provides the information on available display modes. If X does not find this then it will use conservative defaults. This explains why 1024x768 was the highest resolution available when you started X with the monitor turned off.

It is interesting that the X autodetection is finding different values for the horizontal and vertical refresh frequencies as compared to those that I quoted based on information from the ViewSonic website.

The best source of information on xorg.conf? For me, 'man xorg.conf'.

H_TeXMeX_H 09-18-2010 04:44 AM

It's important to know what video card you have, I don't see it listed, as well as the drivers you use for it.

jostber 09-18-2010 06:13 AM

Some related threads here:

http://www.linuxquestions.org/questi...8/#post3946773
http://www.thinkwiki.org/wiki/Instal...Video_Settings
http://help.lockergnome.com/linux/Tr...ict511299.html


All times are GMT -5. The time now is 11:37 PM.