SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A game running at 800x600 on a 1280x1024 desktop will not (like 'dows does) resize your desktop to fit the game res. The solution? Use another screen that *IS* the right size.
I wrote a script that will start an empty X session that's the right size as your game, and fill it with your game. It's called "run" (Obscure Program Launcher) - you shouldn't need to do much to it to get it to work, but you will have to edit your Xorg.conf file again to provide some different screen resolutions. Hopefully you can use your intelligence to understand it's workings, I haven't had time to write any proper instructions.
root@xushitop:/download# ./run -p 6
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/xushitop:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.4.29 i686 [ELF]
Current Operating System: Linux xushitop 2.6.11.11 #9 Wed Jun 8 10:06:40 BST 2005 i686
Build Date: 13 February 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Wed Jun 8 16:31:20 2005
(==) Using config file: "/etc/X11/xorg.conf"
(EE) No Screen section called "800600"
(EE) Unable to determine the screen layout
(EE) Error parsing the config file
Fatal server error:
no screens found
Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.1.log" for additional information.
XIO: fatal IO error 104 (Connection reset by peer) on X server ":1.0"
after 0 requests (0 known processed) with 0 events remaining.
My Xorg.conf is updated once more in the other thread. From what i see, everything is working, so i'm not sure why it doesn't like my screen settings.
Xorg.1.log
Code:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/xushitop:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.4.29 i686 [ELF]
Current Operating System: Linux xushitop 2.6.11.11 #9 Wed Jun 8 10:06:40 BST 2005 i686
Build Date: 13 February 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Wed Jun 8 16:31:20 2005
(==) Using config file: "/etc/X11/xorg.conf"
(EE) No Screen section called "800600"
(EE) Unable to determine the screen layout
(EE) Error parsing the config file
Fatal server error:
no screens found
Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.1.log" for additional information.
You need to add some extra sections into your xorg.conf. Again, I don't have an ATI, so I'm just guessing. The idea is to have a separate "single headed" card setup, so you can basically disable the spare monitor while you're gaming (ctrl+alt+F7 will push you back to your main desktop if you started X before running the script).
Code:
#~~~~~~~~~~~~~~~~~~~~~~#
# Single screen setup for gaming! #
#~~~~~~~~~~~~~~~~~~~~~~#
# Single headed device, effectively. I guess you could set it to use either monitor.
Section "Device"
Identifier "SingleScreen"
Driver "radeon"
ChipID 0x4c66
Option "Overlay"
Option "EnablePageFlip" "on"
BusID "PCI:1:0:0"
Option "DCCMode" "on"
Option "MergedFB" "False"
#Option "MonitorLayout" "LCD,CRT"
#Option "OverlayOnCRTC2" "true"
#Option "MetaModes" "1680x1050-1280x1024"
#Option "MetaModes" "1680x1050-1024x768"
#Option "CRT2Position" "RightOf"
Screen 0
EndSection
# Screen listing - this is where the resolution comes into play.
Section "Screen"
Identifier "800600"
Device "SingleScreen"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "800x600"
EndSubsection
Subsection "Display"
Depth 16
Modes "800x600"
EndSubsection
EndSection
Section "Screen"
Identifier "640480"
Device "SingleScreen"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "640x480"
EndSubsection
Subsection "Display"
Depth 16
Modes "640x480"
EndSubsection
EndSection
Because you're starting xinit with explicit commands, it'll mostly override whatever you've put in Server Layout. I'm hope the script works for you!
# Quad Buffer Stereo (QBS) support is now working for all ATI FireGLâ„¢ products that support QBS
# ATI FireGL X3 products now support dual-link enabled display devices
# The ATI Proprietary Linux driver Driver now falls back to a single-link mode if the card or connector does not support dual-link mode
# The DGA and RandR X Server extensions are now capable of loading simultaneously when using the ATI Proprietary Linux driver
# Intermittent error messages such as, [fglrx:firegl_alloc_bufs] *ERROR* Failed to create buffer queue (-12) and similar, no longer appear in the kernel output
# OpenGL based applications that have common symbol names to that of the libGL library no longer experience intermittent erratic behavior
# Applications using certain OpenGL calls such as, glTexSubImage no longer results in a driver memory leak
# When running in clone mode, the X server no longer crashes with a segmentation fault if the mouse is moved during a mode switch
I'm on a emachines laptop at the moment, amd64. I just installed 2.6.12.2, and fglrx fails to compile with an error. The first patch works, but the second fails 6 out of its 8 instructions... It didn't help here =/
bash-3.00# cd /lib/modules/fglrx/build_mod/
bash-3.00# cp /root/patch* ../build_mod/
bash-3.00# patch -p1 < patch1
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- or.c
|+++ agpgart_be.c
--------------------------
File to patch: agpgart_be.c
patching file agpgart_be.c
Hunk #4 succeeded at 7449 (offset 2 lines).
Code:
bash-3.00# patch -p1 < patch2
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- 2.c
|+++ firegl_public.c
--------------------------
File to patch: firegl_public.c
patching file firegl_public.c
Hunk #1 FAILED at 1663.
Hunk #2 succeeded at 2110 (offset 2 lines).
Hunk #3 FAILED at 2213.
Hunk #4 FAILED at 2582.
Hunk #5 FAILED at 2745.
Hunk #6 FAILED at 2812.
Hunk #7 FAILED at 2849.
Hunk #8 succeeded at 2901 with fuzz 2 (offset 4 lines).
6 out of 8 hunks FAILED -- saving rejects to file firegl_public.c.rej
And, finally,
Code:
bash-3.00# sh make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.12.2/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.12.2'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agp3.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `agp_find_supported_device':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7155: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7175: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7180: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7206: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7226: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7246: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7251: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `__fgl_agp_init':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7637: warning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `__fgl_agp_cleanup':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7647: warning: `pm_unregister_all' is deprecated (declared at include/linux/pm.h:116)
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12.2'
make: *** [kmod_build] Error 2
build failed with return value 2
Yep, i'm stumped.. And i tried both the x86 and x86_64 versions. same thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.