LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-09-2005, 01:33 PM   #1
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Rep: Reputation: 30
1280 x 800... getting there! Black bands down the edges.


I've got an Acer Aspire (specs below) with a 15.4" widescreen, designed for 1280 x 800 resolution. nVidia drivers installed and working fine. I've managed to produce some interesting results so far, in that instead of a stretched image, I now have black bands filling the sides of the screen. The verticle resolution is still not quite right either... Some stretching still occurs. How do I get this to run a proper 1280 x 800 with the beauty and grace it does on Windows?

The following is my xorg.conf. I've removed most of it, so tell me if there's anything else you need... like I said, nVidia rivers installed and working.

Thanks in advance!

# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the font modules
Load "type1"
Load "freetype"
#Load "speedo"

# This loads the GLX module
Load "glx"

EndSection

# **********************************************************************
# Monitor section
# **********************************************************************
Section "Modes"
Identifier "16:10"
Modeline "1280x800" 83.5 1280 1344 1480 1680 800 801 804 828
EndSection
# Any number of monitor sections may be present

Section "Monitor"

Identifier "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

# HorizSync 31.5 - 50.0
HorizSync 30- 90
# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

# VertRefresh 40-90
VertRefresh 50 - 75.0
Option "UseEditFreqs"
UseModes "16:10"
Option "FlatPanelProperties" "Scaling = aspect-scaled"
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
Identifier "NV PCI"
Driver "nvidia"
#Identifier "VESA Framebuffer"
#Driver "vesa"
#VideoRam 4096
# Insert Clocks lines here if appropriate
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "NV PCI"
# Device "VESA Framebuffer"
Monitor "My Monitor"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.

# DefaultDepth 8
# DefaultDepth 16
DefaultDepth 24
# DefaultDepth 32

# "1024x768" is also a conservative usable default resolution. If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)

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

EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
Identifier "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens. The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen. In this example, screen 2 is located to the
# right of screen 1.

Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used. Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"

EndSection
 
Old 04-09-2005, 07:48 PM   #2
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
OK, I've just installed FreeRock Gnome, and the good news is that it scrolls around when I put my cursor to the edge of the working display, which means that it must have looked in my xorg to get the right settings, and works in 1280 x 800. So alls I need to do is get it to output to the screen properly!

Please, any help would be good, as I don't wanna take my laptop into school Monday like this so my class's resident Linux-hater can gloat. I wanna show everyone how COOL my laptop is with SLACKWARE on it!!!
 
Old 04-10-2005, 11:50 AM   #3
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
bump
 
Old 04-11-2005, 10:42 AM   #4
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
bump
Please, any help at all is help!
 
Old 04-11-2005, 11:54 AM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,062

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
not to sound stupid or demeaning (sometimes answers can be so obvious we tend to miss them), but have you tried adjusting the controls on the front panel of the monitor itself? sometime you have to do that if the monitor hasn't operated at that resolution/refresh rate before, this should only have to be done once for each resolution/refresh setting.
 
Old 04-11-2005, 02:29 PM   #6
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
There are no such buttons... this is a laptop.
As I mentioned above, I'm actually scrolling around within a 1280 x 800 desktop now with a reduced display set for 1024 x 768... This is why the bands are there, something I changed in my xorg has set it to do so, this being the FlatPanel option. I've kept it this way, as it maintains the correct aspect ratio on this 1280 x 800 desktop. Otherwise I'm scolling around a stretched version of the same desktop in 1024 x 768 strethed to fit a 15.4" widescreen
 
Old 04-11-2005, 02:46 PM   #7
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
My 13.3 inch LCD runs at 1280x800 without adding any options at all -- here are a few snippets of my config.

Code:
Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        Option "dpms"
EndSection


Section "Device
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "Unknown Board"
        BusID       "PCI:1:0:0"
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
        EndSubSection
EndSection
Section "dri"
        mode 0666
EndSection
Somehow, I don't even have to mention 1280x800 and it just does it.

Try simplifying a bit, let it try to sense the values itself.

--Shade
 
Old 04-11-2005, 03:48 PM   #8
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
I've already had very simple settings... that's where I started from!

I'll try again though! Thanks for the assist!
 
Old 04-25-2005, 01:58 PM   #9
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
bump... still need help on this!
 
Old 04-26-2005, 03:32 PM   #10
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Rep: Reputation: 30
I feel your pain. I struggled with this problem for a long time. I finally got it to work, but I made so many changes from so many suggestions I got that I'm not sure what I actually did that fixed it. I used the nvidia forum (nvnews.net) mostly and that forum is rather unfriendly to searches and the like. Here's my xorg.conf file if it helps. I have a GeForce 440 64 Meg card.

SaX generated X11 config file
# Created on: 2005-04-08T07:44:38-0700.
#
# Version: 4.8
# Contact: Marcus Schaefer <sax@suse.de>, 2002
#
# Automatically generated by [ISaX] (4.8)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection

Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
EndSection

Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
EndSection

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Device" "/dev/input/mice"
Option "Name" "AlpsPS/2 ALPS TouchPad"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
EndSection

Section "Monitor"
DisplaySize 320 240
HorizSync 28-48
Identifier "Monitor[0]"
ModelName "1024X768@60HZ"
Option "DPMS"
VendorName "--> VESA"
VertRefresh 50-60
UseModes "Modes[0]"
EndSection

Section "Modes"
Identifier "Modes[0]"
Modeline "1280x800" 80.58 1280 1344 1480 1680 800 801 804 827
Modeline "1280x768" 77.37 1280 1344 1480 1680 768 769 772 794
Modeline "800x600" 36.88 800 832 912 1024 600 601 604 621
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 23.06 640 656 720 800 480 481 484 497
Modeline "1024x768" 65.00 1024 968 1104 1344 768 771 777 806
EndSection

Section "Screen"
DefaultDepth 16
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 32
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection

Section "Device"
BoardName "GeForce4 440 Go 64M"
BusID "1:0:0"
Driver "nvidia"
Identifier "Device[0]"
#Option "CrtcNumber" "1"
#Option "CrtcNumber" "0"
VendorName "NVidia"
EndSection

Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen[0]"
EndSection

Section "DRI"
Group "video"
Mode 0660
EndSection

Section "Extensions"
EndSection

I also have some Nvidia related changes I made in the modprobe.conf file. I added to the end:

include /etc/modprobe.d
include /etc/modprobe.conf.local
options nvidia NVreg_Mobile=0
alias char-major-195* nvidia


I did a couple of searches in google with black bands 1280x800 and got some results that may also help.

Good luck

edit: remember enter init 3 when you make these changes.

Last edited by ithawtewrong; 04-26-2005 at 03:34 PM.
 
Old 04-28-2005, 09:08 PM   #11
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
xorg.conf

I have a 1280x800 display on my laptop. Here are the relevant sections of my xorg.conf:

Code:
Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 60.1
    VertRefresh 60.3 - 85.1
    ModeLine "1280x800@60" 83.9 1280 1312 1624 1656 800 816 824 841
    ModeLine "1280x800@70" 101.92 1280 1312 1696 1728 800 816 825 841
    DisplaySize 331 207
    Option      "DPMS"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "NVidia"
    Monitor     "My Monitor"

   DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes "1280x800@70" "1280x800@60" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1280x800@70" "1280x800@60" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1280x800@70" "1280x800@60" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1280x800@70" "1280x800@60" "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
 
Old 05-03-2005, 12:04 PM   #12
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks! I'll give these a try as soon as I have five minutes!
 
Old 05-03-2005, 12:24 PM   #13
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
The key here is probably passing NVreg_Mobile=0 to the module when you load it. Add the line below:
Code:
options nvidia NVreg_Mobile=0
...to /etc/modprobe.conf or the source file for modprobe.conf (/etc/modules.d/nvidia, /etc/modutils/nvidia, or whatever your distribution uses), like ithawtewrong suggested.


Håkan
 
Old 05-03-2005, 03:11 PM   #14
Oholiab
Member
 
Registered: Feb 2005
Location: UK
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by hw-tph
The key here is probably passing NVreg_Mobile=0 to the module when you load it. Add the line below:
Code:
options nvidia NVreg_Mobile=0
...to /etc/modprobe.conf or the source file for modprobe.conf (/etc/modules.d/nvidia, /etc/modutils/nvidia, or whatever your distribution uses), like ithawtewrong suggested.


Håkan
I tried inserting all of the code suggested, but it could find neither of the files referenced, and did not understand the command you quoted...

bit of a bummer really.
 
Old 05-03-2005, 04:59 PM   #15
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
OK, I'm really not very familiar with distributions other than Debian and Gentoo so I will let someone else answer where module loading options are set. Let's try it manually to see if my theory is right instead.

Do all of the following commands as root.

First, let's switch to console mode. Either stop your login manager (gdm, kdm, xdm) if you use graphical login, or simply boot to runlevel 3 as suggested earlier.

Then let's see if the nvidia module is loaded: Type lsmod and look for a line that says "nvidia" (without the quotes). The lsmod command lists all loaded modules, and we want to unload the nvidia module. If it's loaded simply type rmmod nvidia to remove it from the running kernel and then use lsmod again to see that the nvidia module no longer is listed.

Now here comes my theory: We need to pass at least the NVreg_Mobile=0 option to the nvidia module. This is what the modprobe.conf file does - specifies options to modules that always should be used. But for now, let's do it by hand: modprobe nvidia NVreg_Mobile=0. If all goes well you should get no error message.

Now try start X again (without rebooting - use startx or start your login manager). If the black lines are gone and it works as you expect you should ask people using your distribution where and how to set this option (/etc/modprobe.conf is usually fragile - being generated from snippets of other files it might work for a while but then suddenly it's broken when you have updated something and your manual changes are over-written).


Håkan

Last edited by hw-tph; 05-03-2005 at 05:00 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Slack support 1280 x 800 screen resolution? Oholiab Slackware 16 01-07-2008 08:29 AM
How to set resolution to 1280*800 in Fedora Core 2? zell Linux - Laptop and Netbook 3 01-03-2008 12:24 AM
1280 x 800 resolution on AOpen laptop? SwampDonkey Linux - Hardware 0 10-08-2004 10:59 AM
1280 x 800 resolution in Redhat Linux 9 poochdog Linux - Hardware 4 07-10-2004 11:02 AM
Very annoying bands in X. KptnKrill Linux - General 3 06-06-2003 08:23 AM


All times are GMT -5. The time now is 11:25 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