LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-14-2010, 09:26 PM   #1
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,878

Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
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.
 
Old 09-14-2010, 09:58 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,279

Rep: Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801
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

Last edited by allend; 09-14-2010 at 10:02 PM.
 
Old 09-15-2010, 02:07 AM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,215

Rep: Reputation: 176Reputation: 176
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.
 
Old 09-17-2010, 09:42 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,878

Original Poster
Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
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.
 
Old 09-18-2010, 01:03 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,279

Rep: Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801
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'.

Last edited by allend; 09-18-2010 at 01:05 AM.
 
Old 09-18-2010, 04:44 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
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.
 
Old 09-18-2010, 06:13 AM   #7
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware 14.0 64-bit
Posts: 228

Rep: Reputation: 41
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the default resolution of tty jaakkop Linux - Hardware 5 08-06-2009 09:11 AM
Default Resolution keep changing in KDE! megaprog Debian 4 10-17-2008 01:37 PM
changing the default resolution CD_TOASTER Linux - Newbie 6 12-11-2007 08:35 PM
Monitor problems -- changing resolution back w/o monitor Jiawen Linux - Hardware 5 03-17-2004 10:06 PM
Monitor Resolution Changing andynewbie99 Linux - Newbie 4 03-24-2003 10:06 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration