LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-30-2013, 05:13 AM   #1
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Rep: Reputation: Disabled
How to force X11 resolution and refresh on Slackware 14.0


How can one force X11 to use a mode specified in xorg.conf but not detected ?

Since the introduction of KMS, things seem more difficult, for the end-user.

Here is what I have tried:

My xorg.conf is created by the xorgsetup program.
My display adapter is Radeon HD6550. System loads radeon framebuffer driver at boot which sets 1024x768@60 for all consoles.
X11 runs at same resolution and display.
EDID (/Xorg.0.log) reports several modes, up to 1024x768@60

The fact is that my system is connected to a 2 port KVM and I know for a fact that the setup works at 1024x768@75 because this is the other system's configuration (when in windows).

First problem: probably due to the KVM, but not sure, the video driver detects very few resolutions. I know the KVM is limiting here.

Second problem: following all known procedures to set up xorg.conf with a forced resolution, including all tips found on the net, so far I have failed.

Adding a new mode via xrandr and switching to it at runtime works.

Forcing the same mode via xorg.conf does not.

Here is what I have tried so far :

Section "Monitor"
<------>Identifier "Monitor0"
<------>VendorName "Monitor Vendor"
<------>ModelName "Monitor Model"
<------>HorizSync<----->31 - 82
<------>VertRefresh<--->56 - 75
<------># 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
<------>Modeline "1024x768_75" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync
<------>Modeline "1024x768@75" 78.750 1024 1048 1144 1312 768 769 772 800 +hsync +vsync
<------>Option "PreferredMode" "1024x768@75"
<------>Option "DPMS"
<------>Option "NoUseBIOS"
EndSection

Mode "1024x768_75" is generated by gtf
Mode "1024x768@75" is generated by PowerStrip on the other windows machine

Some web hints were to add
<------>Option "DPMS"
<------>Option "NoUseBIOS"

Some web hints were to add these to the Device section:
<------>Option "IgnoreEDID" "true"
<------>Option "NoDDC" "true"
<------>Option "Monitor-VGA-0" "Monitor0"

Some hints from the RADEON driver were to add these to the Device section:
<------>Option "EXAPixmaps" "off"
<------>Option "AccelDFS" "off"

Some hints were to add these to the Screen section:
<------>Option "UseEDID" "false"
<------>Option "UseEDIDDpi" "false"

And of course, this:
<------>SubSection "Display"
<------><------>Viewport 0 0
<------><------>Depth 24
<------><------>Modes<-><------>"1024x768@75"
<------>EndSubSection

=====================================================================

None of these worked. X11 stubbornly starts only at 1024x768@60.

This is from the log:

[ 8681.234] (==) modeset(0): Default visual is TrueColor
[ 8681.234] (II) modeset(0): ShadowFB: preferred YES, enabled YES
[ 8681.238] (II) modeset(0): Output HDMI-0 using monitor section Monitor0
[ 8681.238] (**) modeset(0): Option "PreferredMode" "1024x768@75"
[ 8681.242] (II) modeset(0): Output DVI-0 has no monitor section
[ 8681.260] (II) modeset(0): Output VGA-0 using monitor section Monitor0
[ 8681.264] (II) modeset(0): EDID for output HDMI-0
[ 8681.268] (II) modeset(0): EDID for output DVI-0
[ 8681.285] (II) modeset(0): EDID for output VGA-0
[ 8681.285] (II) modeset(0): Printing probed modes for output VGA-0
[ 8681.285] (II) modeset(0): Modeline "1024x768@75"x75.0 78.75 1024 1048 1144 1312 768 769 772 800 +hsync +vsync (60.0 k
[ 8681.285] (II) modeset(0): Modeline "1024x768_75"x75.0 81.80 1024 1080 1192 1360 768 769 772 802 -hsync +vsync (60.1 k
[ 8681.285] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz
[ 8681.285] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 8681.285] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 8681.285] (II) modeset(0): Modeline "848x480"x60.0 33.75 848 864 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz e)
[ 8681.285] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 489 492 525 -hsync -vsync (31.5 kHz e)
[ 8681.285] (II) modeset(0): Output HDMI-0 disconnected
[ 8681.285] (II) modeset(0): Output DVI-0 disconnected
[ 8681.285] (II) modeset(0): Output VGA-0 connected
[ 8681.285] (II) modeset(0): Using user preference for initial modes
[ 8681.285] (II) modeset(0): Output VGA-0 using initial mode 1024x768@75
[ 8681.285] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 8681.285] (==) modeset(0): DPI set to (96, 96)

=================================================================
However, in fact this still goes to 1024x768@60

and just a bit below:

[ 8681.286] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 8681.286] (==) modeset(0): DPMS enabled
[ 8681.286] (WW) modeset(0): Option "PreferredMode" is not used

==================================================================

I have 3 device sections.
One is with driver radeon
One is with driver modesetting
One is with driver vesa

Only if I add Option "Monitor-VGA-0" "Monitor0" to the card1 device (modesetting), then in the X11 log file I see Output VGA-0 using monitor section Monitor0, otherwise it says it has no monitor section.

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "kmsdev" # <str>
#Option "ShadowFB" # [<bool>]
Identifier "Card1"
Driver "modesetting"
BusID "PCI:1:0:0"
Option "Monitor-VGA-0" "Monitor0"
EndSection

I have tried combinations and combinations, I am probably missing something, but I can't make it start with 1024x768@75, I can only change with xrandr at runtime to that resolution.

Thank you.
 
Old 10-30-2013, 05:15 AM   #2
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
My current xorg.conf
================================================================================

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
EndSection

Section "Module"
Load "record"
Load "dbe"
Load "dri"
Load "glx"
Load "dri2"
Load "extmod"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31 - 82
VertRefresh 56 - 75
# 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
Modeline "1024x768_75" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync
Modeline "1024x768@75" 78.750 1024 1048 1144 1312 768 769 772 800 +hsync +vsync
Option "PreferredMode" "1024x768@75"
# Option "DPMS"
# Option "NoUseBIOS"
# Option "Primary" "true"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "Dac6Bit" # [<bool>]
#Option "Dac8Bit" # [<bool>]
#Option "BusType" # [<str>]
#Option "CPPIOMode" # [<bool>]
#Option "CPusecTimeout" # <i>
#Option "AGPMode" # <i>
#Option "AGPFastWrite" # [<bool>]
#Option "AGPSize" # <i>
#Option "GARTSize" # <i>
#Option "RingSize" # <i>
#Option "BufferSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "NoBackBuffer" # [<bool>]
#Option "DMAForXv" # [<bool>]
#Option "FBTexPercent" # <i>
#Option "DepthBits" # <i>
#Option "PCIAPERSize" # <i>
#Option "AccelDFS" # [<bool>]
#Option "IgnoreEDID" # [<bool>]
#Option "CustomEDID" # [<str>]
#Option "DisplayPriority" # [<str>]
#Option "PanelSize" # [<str>]
#Option "ForceMinDotClock" # <freq>
#Option "ColorTiling" # [<bool>]
#Option "VideoKey" # <i>
#Option "RageTheatreCrystal" # <i>
#Option "RageTheatreTunerPort" # <i>
#Option "RageTheatreCompositePort" # <i>
#Option "RageTheatreSVideoPort" # <i>
#Option "TunerType" # <i>
#Option "RageTheatreMicrocPath" # <str>
#Option "RageTheatreMicrocType" # <str>
#Option "ScalerWidth" # <i>
#Option "RenderAccel" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ClockGating" # [<bool>]
#Option "VGAAccess" # [<bool>]
#Option "ReverseDDC" # [<bool>]
#Option "LVDSProbePLL" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # [<bool>]
#Option "ConnectorTable" # <str>
#Option "DefaultConnectorTable" # [<bool>]
#Option "DefaultTMDSPLL" # [<bool>]
#Option "TVDACLoadDetect" # [<bool>]
#Option "ForceTVOut" # [<bool>]
#Option "TVStandard" # <str>
#Option "IgnoreLidStatus" # [<bool>]
#Option "DefaultTVDACAdj" # [<bool>]
#Option "Int10" # [<bool>]
#Option "EXAVSync" # [<bool>]
#Option "ATOMTVOut" # [<bool>]
#Option "R4xxATOM" # [<bool>]
#Option "ForceLowPowerMode" # [<bool>]
#Option "DynamicPM" # [<bool>]
#Option "NewPLL" # [<bool>]
#Option "ZaphodHeads" # <str>
Identifier "Card0"
Driver "vesa"
# Driver "radeon"
# Option "EXAPixmaps" "off"
# Option "AccelDFS" "off"
BusID "PCI:1:0:0"
# Option "IgnoreEDID" "true"
# Option "NoDDC" "true"
Option "Monitor-VGA-0" "Monitor0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "kmsdev" # <str>
#Option "ShadowFB" # [<bool>]
Identifier "Card1"
Driver "modesetting"
BusID "PCI:1:0:0"
Option "Monitor-VGA-0" "Monitor0"
Option "Monitor-DVI-0" "Monitor1"
Option "Monitor-HDMI-0" "Monitor1"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card2"
Driver "vesa"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card1"
Monitor "Monitor0"
DefaultDepth 24
# Option "UseEDID" "false"
# Option "UseEDIDDpi" "false"
# Option "ModeDebug" "true"
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1024x768@75"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1024x768@75"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1024x768@75"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1024x768@75"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768@75"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768@75"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
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
Modes "1024x768@75"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "Monitor2"
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
 
Old 10-30-2013, 05:51 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
What happens if don't use an xorg.conf?

To check, please get rid of it.

For instance. "mv /etc/X11/xorg.conf /etc/X11/xorg.conf.save" then (re)start X and post you full X log (either use pastebin or as an attachment with the .txt extension)

Last edited by Didier Spaier; 10-30-2013 at 06:58 AM. Reason: tyo corrected
 
Old 10-30-2013, 06:39 AM   #4
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
[ 40.516] (II) RADEON(0): KMS Color Tiling: enabled
[ 40.516] (II) RADEON(0): KMS Pageflipping: enabled
[ 40.516] (II) RADEON(0): SwapBuffers wait for vsync: enabled
[ 40.520] (II) RADEON(0): Output HDMI-0 has no monitor section
[ 40.524] (II) RADEON(0): Output DVI-0 has no monitor section
[ 40.542] (II) RADEON(0): Output VGA-0 has no monitor section
[ 40.546] (II) RADEON(0): EDID for output HDMI-0
[ 40.550] (II) RADEON(0): EDID for output DVI-0
[ 40.568] (II) RADEON(0): EDID for output VGA-0
[ 40.568] (II) RADEON(0): Printing probed modes for output VGA-0
[ 40.568] (II) RADEON(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 40.568] (II) RADEON(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 40.568] (II) RADEON(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 40.568] (II) RADEON(0): Modeline "848x480"x60.0 33.75 848 864 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz e)
[ 40.568] (II) RADEON(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 489 492 525 -hsync -vsync (31.5 kHz e)
[ 40.568] (II) RADEON(0): Output HDMI-0 disconnected
[ 40.568] (II) RADEON(0): Output DVI-0 disconnected
[ 40.568] (II) RADEON(0): Output VGA-0 connected
[ 40.568] (II) RADEON(0): Using fuzzy aspect match for initial modes
[ 40.568] (II) RADEON(0): Output VGA-0 using initial mode 1024x768
[ 40.568] (II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 40.568] (II) RADEON(0): mem size init: gart size :1fdff000 vram size: s:40000000 visible:fcc0000
[ 40.568] (II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM
[ 40.568] (==) RADEON(0): DPI set to (96, 96)
 
Old 10-30-2013, 08:14 PM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
You should not be using the modeset driver, but the radeon driver. Where did you get that xorg.conf from?
 
Old 10-30-2013, 09:26 PM   #6
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Try appending
Code:
video=VGA-1:1024x768M@75
to the kernel command line.
 
Old 10-31-2013, 08:06 AM   #7
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by adamk75 View Post
You should not be using the modeset driver, but the radeon driver. Where did you get that xorg.conf from?
It was generated by xorgsetup utility.
 
Old 10-31-2013, 08:09 AM   #8
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jtsn View Post
Try appending
Code:
video=VGA-1:1024x768M@75
to the kernel command line.
Is that "VGA-1" ? (I'm only asking because the VGA output is named VGA-0 in the X11 logs).

Second, 1024x768@75 exists (at this time) only in xorg.conf but not in fb.modes.
There is a 1024x768-75 there, but mine was tweaked with timings identical from both systems connected to the KVM.

I will try to add 1024x768@75 with my timings to the kernel command line.
 
Old 10-31-2013, 08:54 AM   #9
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by andrixnet View Post
It was generated by xorgsetup utility.
You'll want to fix it then so that it uses radeon.
 
Old 10-31-2013, 09:08 AM   #10
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by andrixnet View Post
Is that "VGA-1" ?
Yes it is.

Quote:
(I'm only asking because the VGA output is named VGA-0 in the X11 logs).
KMS video outputs have nothing to do with Xorg video outputs.

Quote:
Second, 1024x768@75 exists (at this time) only in xorg.conf but not in fb.modes.
KMS doesn't use /etc/fb.modes and made it obsolete.

Quote:
There is a 1024x768-75 there, but mine was tweaked with timings identical from both systems connected to the KVM.
You should use VESA Coordinated Video Timings (CVT) on all systems with video=VGA-1:1024x768M@75 (notice the "M"?)

Quote:
I will try to add 1024x768@75 with my timings to the kernel command line.
KMS doesn't support custom modelines.
 
Old 10-31-2013, 08:09 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Video device 0 in xorg.conf should be set to the radeon driver.

Change this line in your xorg.conf to reflect as such:

Code:
Identifier "Card0"
Driver "vesa"
Change to

Code:
Identifier "Card0"
Driver "radeon"
Restart X-Server and all should work well.

If you need a refresh rate tool, download, build, and install "driconf" from SlackBuilds.
 
Old 11-02-2013, 05:15 AM   #12
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jtsn View Post
Try appending
Code:
video=VGA-1:1024x768M@75
to the kernel command line.
It worked, now the console is in 1024x768 75Hz.
Finally, I located this info in /usr/src/linux/Documentantion/fb/modedb.txt
Thank you for the help, I don't think I would've found it by myself.
From what I read there, the timings are either probed, or from a table (which is hardcoded).

When I try to set timings in the console with fbset, I get this:
Code:
~# fbset -pixclock 12698
ioctl FBIOPUT_VSCREENINFO: Invalid argument
(in fact, any video mode in fb.modes can't be set with fbset, with same error).
 
Old 11-02-2013, 05:19 AM   #13
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
Actually, fbset shows nothing for timings :

Code:
:~# fbset

mode "1024x768"
    geometry 1024 768 1024 768 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode
Also, fbset -move does not work
 
Old 11-02-2013, 05:50 AM   #14
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: Disabled
I added the kernel command line as suggested, and my console is now 1024x768 75Hz (although not with the timings I would like). I can't set anything (except virtual resolution) with fbset.

I generated a new xorg.conf file (using xorgsetup) just to make sure I start clean.
I commented out the 2 driver sections about "vesa" and "modesetting" and the corresponding monitor and screen sections.
I customized my monitor0 section to use my modeline.

Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
#       Screen      1  "Screen1" RightOf "Screen0"
#       Screen      2  "Screen2" RightOf "Screen1"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "DRI"
        Mode 0666
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/local"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/CID"
        FontPath     "/usr/share/fonts/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/cyrillic"
EndSection

Section "Module"
        Load  "record"
        Load  "dbe"
        Load  "dri"
        Load  "glx"
        Load  "dri2"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync       31 - 120
        VertRefresh     56 - 75
        # 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
        Modeline "1024x768_75"  81.80  1024 1080 1192 1360  768 769 772 802  -HSync +Vsync
        Modeline "1024x768@75" 78.750 1024 1048 1144 1312 768 769 772 800 +hsync +vsync
        Option "PreferredMode" "1024x768@75"
        Option "DPMS"
        Option "Primary" "true"
EndSection

#Section "Monitor"
#       Identifier   "Monitor1"
#       VendorName   "Monitor Vendor"
#       ModelName    "Monitor Model"
#EndSection

#Section "Monitor"
#       Identifier   "Monitor2"
#       VendorName   "Monitor Vendor"
#       ModelName    "Monitor Model"
#EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "Dac8Bit"                   # [<bool>]
        #Option     "BusType"                   # [<str>]
        #Option     "CPPIOMode"                 # [<bool>]
        #Option     "CPusecTimeout"             # <i>
        #Option     "AGPMode"                   # <i>
        #Option     "AGPFastWrite"              # [<bool>]
        #Option     "AGPSize"                   # <i>
        #Option     "GARTSize"                  # <i>
        #Option     "RingSize"                  # <i>
        #Option     "BufferSize"                # <i>
        #Option     "EnableDepthMoves"          # [<bool>]
        #Option     "EnablePageFlip"            # [<bool>]
        #Option     "NoBackBuffer"              # [<bool>]
        #Option     "DMAForXv"                  # [<bool>]
        #Option     "FBTexPercent"              # <i>
        #Option     "DepthBits"                 # <i>
        #Option     "PCIAPERSize"               # <i>
        #Option     "AccelDFS"                  # [<bool>]
        #Option     "IgnoreEDID"                # [<bool>]
        #Option     "CustomEDID"                # [<str>]
        #Option     "DisplayPriority"           # [<str>]
        #Option     "PanelSize"                 # [<str>]
        #Option     "ForceMinDotClock"          # <freq>
        #Option     "ColorTiling"               # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "RageTheatreCrystal"        # <i>
        #Option     "RageTheatreTunerPort"      # <i>
        #Option     "RageTheatreCompositePort"  # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"                 # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "ScalerWidth"               # <i>
        #Option     "RenderAccel"               # [<bool>]
        #Option     "SubPixelOrder"             # [<str>]
        #Option     "ClockGating"               # [<bool>]
        #Option     "VGAAccess"                 # [<bool>]
        #Option     "ReverseDDC"                # [<bool>]
        #Option     "LVDSProbePLL"              # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "DRI"                       # [<bool>]
        #Option     "ConnectorTable"            # <str>
        #Option     "DefaultConnectorTable"     # [<bool>]
        #Option     "DefaultTMDSPLL"            # [<bool>]
        #Option     "TVDACLoadDetect"           # [<bool>]
        #Option     "ForceTVOut"                # [<bool>]
        #Option     "TVStandard"                # <str>
        #Option     "IgnoreLidStatus"           # [<bool>]
        #Option     "DefaultTVDACAdj"           # [<bool>]
        #Option     "Int10"                     # [<bool>]
        #Option     "EXAVSync"                  # [<bool>]
        #Option     "ATOMTVOut"                 # [<bool>]
        #Option     "R4xxATOM"                  # [<bool>]
        #Option     "ForceLowPowerMode"         # [<bool>]
        #Option     "DynamicPM"                 # [<bool>]
        #Option     "NewPLL"                    # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        Identifier  "Card0"
        Driver      "radeon"
        BusID       "PCI:1:0:0"
        Option "Monitor-VGA-0" "Monitor0"
EndSection

#Section "Device"
#        ### Available Driver options are:-
#        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
#        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
#        ### <percent>: "<f>%"
#        ### [arg]: arg optional
#        #Option     "SWcursor"                 # [<bool>]
#        #Option     "kmsdev"                   # <str>
#        #Option     "ShadowFB"                 # [<bool>]
#       Identifier  "Card1"
#       Driver      "modesetting"
#       BusID       "PCI:1:0:0"
#EndSection

#Section "Device"
#        ### Available Driver options are:-
#        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
#        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
#        ### <percent>: "<f>%"
#        ### [arg]: arg optional
#        #Option     "ShadowFB"                 # [<bool>]
#        #Option     "DefaultRefresh"           # [<bool>]
#        #Option     "ModeSetClearScreen"       # [<bool>]
#       Identifier  "Card2"
#       Driver      "vesa"
#       BusID       "PCI:1:0:0"
#EndSection

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

#Section "Screen"
#       Identifier "Screen1"
#       Device     "Card1"
#       Monitor    "Monitor1"
#       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

#Section "Screen"
#       Identifier "Screen2"
#       Device     "Card2"
#       Monitor    "Monitor2"
#       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
#       EndSubSecti
The problem is the same: monitor starts up in 1024x768 60Hz.

This is what xrandr reports:
Code:
xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768@75    75.0 +
   1024x768_75    75.0
   1024x768       60.0*
   800x600        60.3     56.2
   848x480        60.0
   640x480        59.9
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
but, a later run of xrandr
~$ xrandr --output VGA-0 --mode 1024x768@75
will set the display to the mode I want and the refresh I want.

I still can't figure out what can I do in the config file xorg.conf so that X will start in the proper mode.
 
Old 11-02-2013, 06:06 AM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Remember what jtsn wrote:
Quote:
KMS video outputs have nothing to do with Xorg video outputs.
So just append this line
Code:
append = "video=VGA-1:1024x768M@75"
to the proper lilo.conf's stanza and you're all set. You don't need an xorg.conf at all unless maybe for other specific settings.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force specific refresh for specific resolution miner49er Linux - General 2 03-20-2009 02:36 AM
Slackware 12 Screen Resolution / Refresh Rate Issies luco.vico Slackware 8 02-25-2008 12:12 PM
slackware 11, resolution/refresh rates problems with nVidia GeForce 6200 pacman87 Slackware 2 01-02-2007 05:27 PM
X11 Refresh rate and Resolution issue crazibri SUSE / openSUSE 9 02-13-2006 07:39 AM
Force a refresh rate in X Menestrel Linux - Newbie 3 01-05-2005 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration