LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Games fullscreen is distorted, but video fullscreen is fine - older laptop (http://www.linuxquestions.org/questions/linux-software-2/games-fullscreen-is-distorted-but-video-fullscreen-is-fine-older-laptop-740579/)

xmrkite 07-16-2009 01:49 PM

Games fullscreen is distorted, but video fullscreen is fine - older laptop
 
Hello, I have a toshiba 4600 and am running antix on it.

I can watch video files fine in fullscreen, but when i run emulators like zsnes or snes9x or fceu, it goes fullscreen, but the picture does not cover the entire screen.

It's weird...it is like it just stretches the picture vertically, but there are black bars all around the sides. And the image isn't even centered. There is a huge black bar to the right and a smaller one to the left.

The video card is a cyberbladeXP.

Any ideas on what i can do here?

-Thanks

TITiAN 07-16-2009 03:30 PM

Videos in fullscreen are different from (most) other applications because they don't change the resolution in fullscreen mode (at least all video apps that I tried). Maybe try setting different resolutions in zsnes?

xmrkite 07-16-2009 04:18 PM

I've tried all the resolution options i could up to 1024x768 which is my screens native resolution. Only the resolutions that use open GL work, but when i use opengl it is so slow, like 2-3 fps.

Also, this behavior is exactly the same with all three of the emulators listed in my post.

Any other ideas?
-Thanks

TITiAN 07-16-2009 04:41 PM

Looks like bad/non-installed video card drivers to me. Please post the contents of the file /etc/X11/xorg.conf here; that should give some info about your graphics configuration.

xmrkite 07-17-2009 12:25 PM

Here is my xorg file. Some of the stuff in there has nothing to do with my video card, but this is the only xorg file i could find where i am able to use tv out on my laptop.

Code:

Section "ServerLayout"
  Identifier "XFree86 Configured"
  Screen 0 "Screen0" 0 0
 #Screen 0 "ATIScreen" 0 0
 #Screen 1 "Screen1" RightOf "Screen0"
 #Option "Xinerama" "true"
 #Option "Clone" "true"
  InputDevice "Keyboard0" "CoreKeyboard"
 #InputDevice "PS/2 Mouse" "CorePointer"
  InputDevice "USB Mouse" "CorePointer"
 #InputDevice "Touchpad" "SendCoreEvents"
 #InputDevice "ALPS Touchpad" "SendCoreEvents"
 #InputDevice "Appletouch" "SendCoreEvents"
 #InputDevice "Stylus" "SendCoreEvents"
 #InputDevice "Eraser" "SendCoreEvents"
 #InputDevice "Cursor" "SendCoreEvents"
 #InputDevice "Serial Mouse" "CorePointer"
EndSection

Section "ServerFlags"
  Option "AllowMouseOpenFail" "true"
EndSection

Section "Files"
# Xorg 7.0 font paths
    FontPath        "/usr/share/fonts/X11/100dpi:unscaled"
    FontPath        "/usr/share/fonts/X11/misc:unscaled"

# Other font paths
    FontPath        "/usr/share/fonts/truetype/arphic"
    FontPath        "/usr/share/fonts/truetype/freefont"
    FontPath        "/usr/share/fonts/truetype/kochi"
    FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"

# path to defoma fonts
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

EndSection

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

Section "InputDevice"
  Identifier "Keyboard0"
  Driver "keyboard"
  Option "CoreKeyboard"
  Option "XkbModel" "pc105"
  Option "XkbLayout" "us"
  Option "XKbOptions" ""
EndSection

Section "InputDevice"
  Identifier "Serial Mouse"
  Driver "mouse"
  Option  "Protocol" "Microsoft"
  Option  "Device" "/dev/ttyS0"
  Option  "Emulate3Buttons" "false"
  Option  "Emulate3Timeout" "70"
EndSection

Section "InputDevice"
  Identifier "Touchpad"
  Driver "synaptics"
  Option "Device" "/dev/psaux"
  Option "Protocol" "auto-dev"
  Option "LeftEdge" "1700"
  Option "RightEdge" "5300"
  Option "TopEdge" "1700"
  Option "BottomEdge" "4200"
  Option "FingerLow" "25"
  Option "FingerHigh" "30"
  Option "MaxTapTime" "180"
  Option "MaxTapMove" "220"
  Option "VertScrollDelta" "100"
  Option "HorizScrollDelta" "0"
  Option "MinSpeed" "0.09"
  Option "MaxSpeed" "0.18"
  Option "AccelFactor" "0.0015"
  Option "SHMConfig" "on"
EndSection

Section "InputDevice"
  Driver "synaptics"
  Identifier "ALPS Touchpad"
  Option "Device" "/dev/input/mouse0"
  Option "Protocol" "event"
  Option "LeftEdge" "130"
  Option "RightEdge" "840"
  Option "TopEdge" "130"
  Option "BottomEdge" "640"
  Option "FingerLow" "7"
  Option "FingerHigh" "8"
  Option "MaxTapTime" "180"
  Option "MaxTapMove" "110"
  Option "EmulateMidButtonTime" "75"
  Option "VertScrollDelta" "20"
  Option "HorizScrollDelta" "0"
  Option "MinSpeed" "0.25"
  Option "MaxSpeed" "0.50"
  Option "AccelFactor" "0.030"
  Option "EdgeMotionMinSpeed" "200"
  Option "EdgeMotionMaxSpeed" "200"
  Option "UpDownScrolling" "1"
  Option "CircularScrolling" "1"
  Option "CircScrollDelta" "0.1"
  Option "CircScrollTrigger" "2"
  Option "SHMConfig" "on"
EndSection

Section "InputDevice"
  Identifier "Appletouch"
  Driver "synaptics"
  Option "Device" "/dev/psaux"
  Option "Protocol" "auto-dev"
  Option "LeftEdge" "100"
  Option "RightEdge" "1120"
  Option "TopEdge" "50"
  Option "BottomEdge" "310"
  Option "FingerLow" "25"
  Option "FingerHigh" "30"
  Option "MaxTapMove" "220"
  Option "TapButton1" "1"
  Option "TapButton2" "3"
  Option "TapButton3" "2"
  Option "MinSpeed" "0.79"
  Option "MaxSpeed" "0.88"
  Option "AccelFactor" "0.0015"
  Option "SHMConfig" "on"
EndSection

Section "InputDevice"
  Identifier "PS/2 Mouse"
  Driver "mouse"
  Option "Protocol" "auto"
  Option "Device" "/dev/psaux"
  Option "Emulate3Buttons" "false"
  Option "Emulate3Timeout" "70"
  Option "ZAxisMapping" "4 5"
  Option "Buttons" "5"
EndSection

Section "InputDevice"
  Identifier "USB Mouse"
  Driver "mouse"
  Option "Device" "/dev/input/mice"
  Option "Protocol" "ExplorerPS/2"
  Option "ZAxisMapping" "4 5"
  Option "Buttons" "5"
EndSection

Section "InputDevice"
  Identifier "Stylus"
  Driver "wacom"
  Option "Mode" "Absolute"
  Option "Type" "stylus"
  Option "Device" "/dev/input/wacom"
Endsection

# Settings for wacom eraser
Section "InputDevice"
  Identifier "Eraser"
  Driver "wacom"
  Option "Mode" "Absolute"
  Option "Type" "eraser"
  Option "Device" "/dev/input/wacom"
Endsection

# Settings for wacom cursor (mouse)
Section "InputDevice"
  Identifier "Cursor"
  Driver "wacom"
  Option "Mode" "Relative"
  Option "Type" "cursor"
  Option "Device" "/dev/input/wacom"
Endsection

Section "Monitor"
  Identifier "Monitor0"
  VendorName "unknown"
  ModelName "unknown"
  Option "DPMS" "true"
  HorizSync    30-75
  VertRefresh  55-70

EndSection

Section "Monitor"
  Identifier "Monitor1"
  VendorName "unknown"
  ModelName "unknown"
  Option "DPMS" "true"
  HorizSync    30-75
  VertRefresh  55-70
EndSection

Section "Monitor"
  Identifier  "ATIMonitor"
  VendorName "unknown"
  ModelName "unknown"
  Option "DPMS" "true"
  HorizSync    30-75
  VertRefresh  55-70
EndSection

Section "Device"
  Identifier  "Card0"
  Driver "trident"
  BoardName "unknown"

  Screen 0
 #Option "UseDisplayDevice" "dfp"
 #Option "MonitorLayout" "crt,crt"
 #BusID  "PCI:1:0:0"
 #Option "sw_cursor" # needed for some ati cards
 #Option "hw_cursor"
 #Option "NoAccel"
 #Option "ShowCache"
 #Option "ShadowFB"
 #Option "UseFBDev"
 #Option "Rotate"
  Option "UseInternalAGPGART" "no"

  Option "XAANoOffscreenPixmaps" "true"

# savage special options, use with care
 #Option "NoUseBios"
 #Option "BusType" "PCI"
  Option "DmaMode" "None"

# nvidia special options, use with care
  Option "CursorShadow" "1"
  Option "CursorShadowAlpha" "63"
  Option "CursorShadowYOffset" "2"
  Option "CursorShadowXOffset" "4"
  Option "FlatPanelProperties" "Scaling = native"
  Option "NoLogo" "true"
  Option "UseEDID" "true"
  Option "AddARGBGLXVisuals" "true"
  Option "RenderAccel" "true"
 #Option "AllowGLXWithComposite" "true"
EndSection

Section "Device"
  Identifier  "Card1"
  Driver "trident"
  BoardName "unknown"

  Screen 1
 #Option "MonitorLayout" "crt,crt"
 #BusID  "PCI:1:0:0"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device "Card0"
  Monitor "Monitor0"
  DefaultColorDepth 16
 
  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
  SubSection "Display"
  Depth 32
  Modes "1024x768" "800x600" "640x480"
  EndSubSection
 
  # Only the official NVIDIA driver supports twinview
  # these setting are an example
  Option "TwinView" "false"
  Option "SecondMonitorVendorName" "unknown"
  Option "SecondMonitorModelName" "unknown"
  Option "SecondMonitorHorizSync" "30-75"
  Option "SecondMonitorVertRefresh" "55-70"
 #Option "MetaModes" "1024x768, 1024x768"
  Option "TwinViewOrientation" "RightOf"
  Option "ConnectedMonitor" "dfp,dfp"
EndSection

Section "Screen"
  Identifier "Screen1"
  Device "Card1"
  Monitor "Monitor1"
  DefaultColorDepth 16
 
  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
  SubSection "Display"
  Depth 32
  Modes "1024x768" "800x600" "640x480"
  EndSubSection
EndSection

Section "Screen"
  Identifier "ATIScreen"
  Device "Card0"
  Monitor "ATIMonitor"
  DefaultColorDepth 24
 
  SubSection "Display"
  Depth 24
  Modes "1024x768" "800x600" "640x480"
  EndSubSection
EndSection

Section "DRI"
  Mode 0666
EndSection

Section "Extensions"
  Option "Composite" "Enable"
EndSection

-Thanks for any help you can provide.

TITiAN 07-18-2009 09:45 AM

That's a lot of configuration in your file. Did you try starting X without any configuration file at all (with back-up(s), of course) ?

nitrousoxide82 07-18-2009 03:51 PM

I see
Code:

Driver "trident"
on the posted xorg.conf. Is this the correct driver? The output of lspci can help determine the exact make/model of your video chipset. This may also explain the slow OpenGL (although some chipsets, namely SiS ones, are known not to support OpenGL acceleration under Linux. This may or may not be the case, though).

Another thing to note is that most laptops (for some time now) have wide-screen displays. The machines ZSNES, FCEU and such emulators emulate were designed for standard 4:3 TV screens. So the black bars on the sides of the screen may be there exactly to AVOID image distortion caused by wrong aspect ratio.

Hope this helps.

xmrkite 07-20-2009 12:40 PM

Hello and thanks for the replies. Starting up without an xorg file gives me a nice error. The driver should be trident as far as i can tell, since i'm using a Trident CyberbladeXP video card in this laptop.

It's an old laptop, and the screen is a 4:3 screen. Also, it's more than just black bars...you totally miss out on the bottom 150-200 pixels as they are below the screen. And the rest is squashed, so it's clearly tweaked.

-Thanks for any help.


All times are GMT -5. The time now is 04:05 PM.