Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: Robotics 15 Července 2008, 22:46:37
-
Z ničeho nic, se mi při hrách, které mají defaultně nastavené rozlišení stejné jako mám nastavené pro plochu tak se sice fulscreernou ale sou furt v okně, takže vidím rám okna a horní gnome panel. Když ale rozlišení změním na jiné a to tak aby bylo buď jiné než ve hře nebo na ploše, tak se to přepne do kompletního rozlišení :-(. Jak mile je ale rozlišení stejné jak u plochy i hry tak se to nefulscreerne. Jak to spravit? :'(
# 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 xorg.conf manual page.
# (Type "man 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"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "cz"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "Resolution" "200"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "Device"
Identifier "nVidia Corporation G80 [GeForce 8800 GTS]"
Boardname "nv"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 0
EndSection
Section "Monitor"
Identifier "Obecný monitor"
Vendorname "ViewSonic"
Modelname "ViewSonic E70fb-2"
Horizsync 30-70
Vertrefresh 50-150
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
modeline "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
modeline "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync interlace +vsync
modeline "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
Gamma 1.0
EndSection
Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G80 [GeForce 8800 GTS]"
Monitor "Obecný monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1400 1050
Modes "1024x768@75" "1024x768@70" "1024x768@85" "1024x768@60" "832x624@75" "1024x768@43" "800x600@60" "1152x864@75" "800x600@85" "1280x960@60" "800x600@75" "1280x1024@60" "800x600@72" "1400x1050@60" "800x600@56" "640x480@85" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection
Section "Module"
Load "glx"
Load "v4l"
EndSection
Section "ServerFlags"
EndSection
EDIT: Vlastně asi ne z ničeho nic, když ted tak promítám hlavou tak sem většinu her měl v okně. :-( takže ten problém už je dlouho.
-
Tak sem našel jenom jedno forum o tom zde (http://www.nvnews.net/vbulletin/showthread.php?t=106808). Neumím moc anglicky, ale co sem tak pochopil z toho tak, že to je nahlášený bug a že to je všude rozebíráno nebo co. Pak tam nějakej maník píše že se do sekce "Device" má dát option "ModeValidation" "NoXServerModes". Pod jeho příspěvkem se všichni radujou.. já samozřejmě ne, protože jako naschvál mě to nepomohlo ach jo! Nemůžu vůbec hrát některý hry :'( :'( :'( :'( :'(
-
:'( :'( :'( :'( :'(
<< hlavne kvuli hram nebul
-
tak se budu >:(
-
Tak zkus skript Rungame, používaný mnoha Linuxovými pařany ;)
#!/bin/sh
#Find a free DISPLAY
DISP=`/bin/pidof X | wc -w`
DISP=`expr $DISP + 1`
export DISPLAY=:$DISP
#Run X server
X $DISPLAY &
#Find PID of X server
PID=$!
#Set permissions
xauth add $DISPLAY . `mcookie` &
#Run application
$@
#Switch of the X server
kill $PID
Ten dej do /usr/local/bin/rungame a pak jen edituj /etc/X11/XWrapper* a napiš tam anybody místo console.
Hru pak spustíš příkazem rungame hra a ona se ti spustí ve vlastním x serveru a mezi ní a plochou si můžeš přepínat pomocí ctrl+alt+F7 a F8
-
Tak to je hustý, hned to zkusím :o.
-
Si bůh! Díky, funguje to! Prosím, přidej to na WIKI :).
-
Nee sakra to ne, bůh nejsem :) Jen mám pár zkušeností s pařením na Linuchu a rád poradím ;)
-
Nee sakra to ne, bůh nejsem :) Jen mám pár zkušeností s pařením na Linuchu a rád poradím ;)
<< no, ja to taky zkousel a nejni to uplne bezproblemove, takze si spoustim druhy Xka rucne aka (diky Tvemu skriptu) ::
X :1.0 &
xauth add :1.0 . `mcookie` &
DISPLAY=:1.0 xterm &