LinuxQuestions.org
Review your favorite Linux distribution.
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 08-23-2007, 03:26 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
DisplaySize and Modes in xorg ignored


Hello! I am running Slackware Linux 12.0 with kernel-generic-smp-2.6.21.5-smp.

The problem is that despite the settings in xorg.conf and the default server argument -dpi 100 that I pass to startx, I cannot achieve the desired resolution of 100x100 dpi and 1024x768 at 85 Hz.
The system by default logs in a screen resolution of 1152x864 and 75 Hz.
If I set the resolution at 1024x768 from the kde control center, then the resolution becomes 83x85 dpi. I save these settings for the next kde startup and log out of X, then I log in by issuing : starx -- dpi 100, and I get a blank screen and the only option is to reboot. After reboot I get the desired 1024x768 at 85 Hz, but again the resolution is 83x85 dpi.
What should I do? Why the setting of xorg.conf seem to be ignored? I had a similar problem with Slackware 12.0 configuring another PC with an intel video card. The solution was to pass -dpi 100 to startx. However, on this PC this does not seem to be the solution.


Here is some hardware info I find relevant:
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 01)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)


Here is an excerpt of my xorg.conf, generated by xorgsetup and manually adding the DisplaySize and Modeline options to Section Monitor:
Section "Monitor"
#DisplaySize 330 250 # mm
Identifier "Monitor0"
VendorName "GSM"
ModelName "775FT Plus"
### Comment all HorizSync and VertRefresh values to use DDC:
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
DisplaySize 260.1 195.1
Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
EndSection

Section "Device"
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
# Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Here is some info from my /var/log/Xorg.0.log:
(**) intel(0): Display dimensions: (260, 195) mm
(WW) intel(0): Probed monitor is 330x250 mm, using Displaysize 260x195 mm
(**) intel(0): DPI set to (125, 166)
(II) intel(0): Output VGA connected
(II) intel(0): I2C device "CRTDDC_A:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "CRTDDC_A:ddc2" removed.
(II) intel(0): EDID for output VGA
(II) intel(0): Manufacturer: GSM Model: 4349 Serial#: 24336
(II) intel(0): Year: 2002 Week: 22
(II) intel(0): EDID Version: 1.3
(II) intel(0): Analog Display Input, Input Voltage Level: 0.700/0.300 V
(II) intel(0): Sync: Separate
(II) intel(0): Max H-Image Size [cm]: horiz.: 33 vert.: 25
(II) intel(0): Gamma: 2.85
(II) intel(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
(II) intel(0): First detailed timing not preferred mode in violation of standard!(II) intel(0): redX: 0.631 redY: 0.328 greenX: 0.295 greenY: 0.600

(II) intel(0): Supported VESA Video Modes:
(II) intel(0): 720x400@70Hz
(II) intel(0): 720x400@88Hz
(II) intel(0): 640x480@60Hz
(II) intel(0): 640x480@67Hz
(II) intel(0): 640x480@72Hz
(II) intel(0): 640x480@75Hz
(II) intel(0): 800x600@56Hz
(II) intel(0): 800x600@60Hz
(II) intel(0): 800x600@72Hz
(II) intel(0): 800x600@75Hz
(II) intel(0): 832x624@75Hz
(II) intel(0): 1024x768@87Hz (interlaced)
(II) intel(0): 1024x768@60Hz
(II) intel(0): 1024x768@70Hz
(II) intel(0): 1024x768@75Hz
(II) intel(0): 1152x870@75Hz
(II) intel(0): Manufacturer's mask: 0
(II) intel(0): Supported Future Video Modes:
(II) intel(0): #0: hsize: 640 vsize 480 refresh: 75 vid: 20273
(II) intel(0): #1: hsize: 640 vsize 480 refresh: 85 vid: 22833
(II) intel(0): #2: hsize: 800 vsize 600 refresh: 75 vid: 20293
(II) intel(0): #3: hsize: 800 vsize 600 refresh: 85 vid: 22853
(II) intel(0): #4: hsize: 1024 vsize 768 refresh: 70 vid: 19041
(II) intel(0): #5: hsize: 1024 vsize 768 refresh: 75 vid: 20321
(II) intel(0): #6: hsize: 1024 vsize 768 refresh: 85 vid: 22881
(II) intel(0): #7: hsize: 1280 vsize 1024 refresh: 60 vid: 32897



I am completely at a loss. Any suggestions will be appreciated.

Regards,
Martin
 
Old 08-23-2007, 03:46 AM   #2
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Sorry for posting again, but I got a little further. This is my current Device Section:
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
Option "NoDDC" "True"
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
BusID "PCI:0:2:0"
EndSection

What I did is uncomment the NoDDC option and set it to True. Then when I startx -- -dpi 100, I get a resolution of 89x100 dpi and 1024x768 at 85Hz. So the only problem now is horizontal dpi. the vertical is ok. Any suggestions?
 
Old 08-23-2007, 04:27 AM   #3
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I have a different graphics card and monitor to you, but this works for me:

in Section "Screen"


Option "DPI" "96x96"

which gives me my chosen dpi of 96

maybe this would work for you, (it may depend much on the graphics driver?)

tobyl
 
Old 08-23-2007, 04:57 AM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
No, this does not work for me. I did what you suggested, but no difference. Here is what I founf in Xorg.0.log:
cat /var/log/Xorg.0.log | grep DPI
(++) intel(0): DPI set to (100, 100)
(WW) intel(0): Option "DPI" is not used

So intel driver does not support that option.

Other suggestions?
 
Old 12-14-2007, 11:19 AM   #5
reed68
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Rep: Reputation: 0
Hi tobyl,

Thank you. I used your setting and it worked for me.

My configuration is:
- Video Adapter NVIDIA GeForce 6800 (256 MB)
- 3D Accelerator nVIDIA GeForce 6800 PCI-E
- Monitor Dell 1905FP (Digital) [19" LCD]

I'm running Slackware 12. X.Org Version number is 11.0

When I used SimplyMEPIS Linux I had the following dpi:
96 x 96 dpi.

Since I've been using Slackware 12 I have the following dpi:
87 x 86 dpi.

Update:
When I changed my xorg.conf with the option tobyl wrote I now have 96 x 96 dpi.

My xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Thu Oct 4 10:33:51 PDT 2007


Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/local/share/fonts"
EndSection

Section "Module"
Load "dbe"
Load "glx"
Load "xtrap"
Load "record"
Load "extmod"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection

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

Section "Monitor"

#DisplaySize 370 300 # mm
### Comment all HorizSync and VertRefresh values to use DDC:
Identifier "Monitor0"
VendorName "DEL"
ModelName "DELL 1905FP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection

Section "Device"

### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" # <i>
#Option "DualHead" # [<bool>]
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV41.1 [GeForce 6800]"
EndSection

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

Option "DPI" "96x96"
EndSubSection
EndSection


~Brian
 
Old 12-14-2007, 11:32 AM   #6
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 32
nvidia - dpi not used

Quote:
Originally Posted by tramni1980 View Post
No, this does not work for me. I did what you suggested, but no difference. Here is what I founf in Xorg.0.log:
cat /var/log/Xorg.0.log | grep DPI
(++) intel(0): DPI set to (100, 100)
(WW) intel(0): Option "DPI" is not used

So intel driver does not support that option.
I tried too with NVidia geforce2 gts (!) and get same warning about dpi not used. FWIW.
 
  


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
Why are xorg.conf modes being ignored? asdflol Slackware 8 08-25-2007 01:43 PM
wrong displaysize in 12.0 tramni1980 Slackware 11 07-06-2007 12:34 PM
xorg.conf without resolution modes? armandino Linux - General 3 03-07-2007 08:56 AM
Modes Listed in xorg.conf not being used Gamezace Linux - Hardware 4 12-11-2005 02:38 PM
xorg.conf and VESA modes Dark_Helmet Linux - General 2 12-28-2004 10:16 PM

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

All times are GMT -5. The time now is 10:14 PM.

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