LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Screen Resolution 800x600 with black borders (https://www.linuxquestions.org/questions/linux-hardware-18/screen-resolution-800x600-with-black-borders-499653/)

JoSch1337 11-08-2006 02:55 AM

Screen Resolution 800x600 with black borders
 
Hi!

The topic title may suggest, that I'm having problems with my graphics card and that I can not set my resoltion to i.e. 1024x768 and that I'm stuck to 800x600 with a black border on my tft.

Actually it's the other way round.
I have an ASUS Laptop with integrated ATI graphics an everything is working fine. But if I change the resolution to something lower than my native 1024x768 the image is stretched across the entire screen.
How do I change my configuration, that changing the resolution does not stretch the image but produces a black border around it, so that the image is still sharp?
On windows there's a setting in the ati driver called "stretch image to panel size" on intel chips it's called "panel fitting". This can be activated and deactivated in windows. How do I do it in linux? I don't find an entry in xorg.conf.

Thanks for your help! JoSch

Samotnik 11-08-2006 03:55 AM

Well, try to use xvidtune to make a proper modeline. Maybe it will do the job.

JoSch1337 11-08-2006 07:46 AM

Okay, I tried xvidtune but for some reason there's no effect if I change anything and then click apply or test. Do you know why?

Samotnik 11-09-2006 01:21 AM

Give me details about your distro, xserver, and give the config file for xserver.

JoSch1337 11-10-2006 12:51 AM

Okay, I'm using Ubuntu 6.10 with latest xserver I think. Here is my config. Everything has to be default.
Code:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#  sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/X11/fonts/misc"
        FontPath        "/usr/share/X11/fonts/cyrillic"
        FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/Type1"
        FontPath        "/usr/share/X11/fonts/100dpi"
        FontPath        "/usr/share/X11/fonts/75dpi"
        FontPath        "/usr/share/fonts/X11/misc"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load        "i2c"
        Load        "bitmap"
        Load        "ddc"
        Load        "dri"
        Load        "extmod"
        Load        "freetype"
        Load        "glx"
        Load        "int10"
        Load        "type1"
        Load        "vbe"
EndSection

Section "InputDevice"
        Identifier        "Generic Keyboard"
        Driver                "kbd"
        Option                "CoreKeyboard"
        Option                "XkbRules"        "xorg"
        Option                "XkbModel"        "pc105"
        Option                "XkbLayout"        "de"
        Option                "XkbOptions"        "lv3:ralt_switch"
EndSection

Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/input/mice"
        Option                "Protocol"                "ExplorerPS/2"
        Option                "ZAxisMapping"                "4 5"
        Option                "Emulate3Buttons"        "true"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
EndSection

Section "Device"
        Identifier        "ATI Technologies, Inc. Radeon Mobility 9100 U3 (R200 IGP)"
        Driver                "ati"
        BusID                "PCI:1:5:0"
EndSection


Section "Monitor"
        Identifier        "Generic Monitor"
        Option                "DPMS"
        HorizSync        28-51
        VertRefresh        43-60
EndSection

Section "Screen"
        Identifier        "Default Screen"
        Device                "ATI Technologies, Inc. Radeon Mobility 9100 U3 (R200 IGP)"
        Monitor                "Generic Monitor"
        DefaultDepth        24
        SubSection "Display"
                Depth                1
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                4
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                8
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                15
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                16
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                24
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier        "Default Layout"
        Screen                "Default Screen"
        InputDevice        "Generic Keyboard"
        InputDevice        "Configured Mouse"
        InputDevice    "stylus" "SendCoreEvents"
        InputDevice    "cursor" "SendCoreEvents"
        InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "DRI"
        Mode        0666
EndSection


Samotnik 11-10-2006 10:24 AM

On Ubuntu try to put xvidtune to /etc/sudoers and run it with root privileges.

JoSch1337 11-10-2006 01:43 PM

I now got the solution!
I had to use the fglrx driver and add the Option
Code:

Option "Centermode" "On"
to my Device section. It now works the way I want it to.


All times are GMT -5. The time now is 03:30 AM.