[ltp] T41p: APM & ATI fglrx

Didrik Pinte linux-thinkpad@linux-thinkpad.org
Sun, 27 Jun 2004 09:52:16 +0200


--=-juMBtqUmD0lAkTExGw8V
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Le dim 27/06/2004 à 00:58, Niel Lambrechts a écrit :
> Hi Didrik,
> 
> Would you mind explaining how you suspend/resume, and if you use ACPI or
> APM?
> 
> I would also be extremely grateful if you could share some info with us:
> 1. a copy of your XFree86config	
> 2. glxgears					#What FPS you get?
> 3. glxinfo | grep -i direct		#DRI active?
> 4. uname -a					#kernel version?
> 5. rpm -qa|grep -i fglrx		#version of fglrx?
> 
> 
> fglrx has ALWAYS caused my server to hang when resuming under either
> APM/ACPI, I would be rather pleased if you have a solution that works!
> 
> Thanks!
> Niel

Hi,

No problem, here is the info. I'm using APM, suspending to ram by
closing the lid (i do think that apm -s is ok too). Suspending to disk
with Fn+F12

geru-itea:/home/did/Downloads# glxgears
5201 frames in 5.0 seconds = 1040.200 FPS
6179 frames in 5.0 seconds = 1235.800 FPS
6185 frames in 5.0 seconds = 1237.000 FPS
6186 frames in 5.0 seconds = 1237.200 FPS

geru-itea:/home/did/Downloads# glxinfo | grep -i direct
direct rendering: Yes

geru-itea:/home/did/Downloads# uname -a
Linux geru-itea 2.6.6customized #1 Thu Jun 17 16:31:52 CEST 2004 i686
GNU/Linux

Version of fglrx : 4.3.0-3.7.6 (rpm is not used on my computer, i'm
running a Debian System).

I've attached my XF86Config-4

Didrik


--=-juMBtqUmD0lAkTExGw8V
Content-Disposition: attachment; filename=XF86Config-4
Content-Type: text/plain; name=XF86Config-4; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

# XF86Config-4 (XFree86 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 XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#   md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
#   dpkg-reconfigure xserver-xfree86

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
	Load	"GLcore"
	Load	"bitmap"
	Load	"dbe"
# 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

	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"be"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"synaptics"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection
 
Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

 
Section "InputDevice"
	Identifier	"USB Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mouse0"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

 
Section "InputDevice"
	Identifier	"USB Alone"
	Driver		"mouse"
	Option		"CorePointer
	Option		"Device"		"/dev/input/mouse0"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection


#Section "Device"
#	Identifier	"radeon9000"
#	Driver		"radeon"
#EndSection

Section "Device"
	Identifier	"ATI Technologies, Inc. Radeon R250 Lf [Radeon Mobility 9000]"
	Driver		"fglrx"
# === Use internal AGP GART support? ===
# If OpenGL acceleration doesn't work, try using "yes" here
# and disable the kernel agpgart driver.
#  Option "UseInternalAGPGART" "no"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    Option "DesktopSetup"               "0x00000100" 
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified" 
    Option "VRefresh2"                  "unspecified" 
    Option "ScreenOverlap"              "0" 
# === TV-out Management ===
    Option "NoTV"                       "no"     
    Option "TVStandard"                 "NTSC-M"     
    Option "TVHSizeAdj"                 "0"     
    Option "TVVSizeAdj"                 "0"     
    Option "TVHPosAdj"                  "0"     
    Option "TVVPosAdj"                  "0"     
    Option "TVHStartAdj"                "0"     
    Option "TVColorAdj"                 "0"     
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Center Mode (Laptops only) ===
    Option "CenterMode"                 "off"
# === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals"         "off"
# === QBS Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "no"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4c66
    Screen 0
EndSection

Section "Monitor"
	Identifier	"DXS:1313"
	HorizSync	30-60
	VertRefresh	50-75
	Option		"DPMS"
EndSection


Section "Monitor"
        Identifier      "Monitor0"
        Option  "DPMS"  "true"
        HorizSync    28.0 - 96.0 # Warning: This may fry old Monitors
        VertRefresh  50.0 - 75.0 # Very conservative. May flicker.
EndSection

Section "Monitor"
    Identifier "External Monitor"
    HorizSync 30-60
    VertRefresh 50-75
EndSection

#Section "Screen"
#	Identifier	"RadeonScreen"
#	Device		"radeon9000"
	#Monitor		"DXS:1313"
#	Monitor		"Monitor0"
#	DefaultDepth	24
#    Subsection "Display"
#        Depth       24
#        Modes       "1400x1050" "1280x1024" "1024x768" "800x600"
#        ViewPort    0 0  # initial origin if mode is smaller than desktop
        #Virtual     1024 1024
#    EndSubsection
#EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Technologies, Inc. Radeon R250 Lf [Radeon Mobility 9000]"
	Monitor		"Monitor0"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
    Subsection "Display"
        Depth       24
        Modes       "1400x1050" "1280x1024" "1024x768" "800x600"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
        #Virtual     1024 1024
    EndSubsection
EndSection

Section "Screen"
    Identifier "External"
    Device "ATI Technologies, Inc. Radeon R250 Lf [Radeon Mobility 9000]"
    Monitor "External Monitor"
    DefaultColorDepth 24
    DefaultDepth 24
    
    Subsection "Display"
        Depth 8
        Virtual 1024 768
    EndSubsection
    
    Subsection "Display"
        Depth 15
        Virtual 1024 768
    EndSubsection
    
    Subsection "Display"
        Depth 16
        Modes "1024x768"
    EndSubsection
    
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768"
        #ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection


Section "ServerLayout"
	Identifier	"Default Layout"
	#Screen 0		"RadeonScreen"
	Screen 0		"Default Screen"
	Screen 1 		"External"
	InputDevice	"Generic Keyboard"
	#InputDevice 	"USB Alone"
	InputDevice	"Configured Mouse"
	InputDevice	"Generic Mouse"
	InputDevice	"USB Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection


--=-juMBtqUmD0lAkTExGw8V--