[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X.org + pmdisk, ibook G4



I've seen a few people mention success with pmdisk and X.org 6.8 on this
model. However, whenever the system is brought up from sleep the colors
are distorted in X (as opposed to when DRI is enabled and the entire
screen is distorted and unreadable). So technically I can bring it back
up, but the colors all have an odd yellow hue. I'm curious how other
people have it working properly, especially those of you who mentioned
DRI works with pmdisk.

suspend script: 
ifdown eth0
rmmod prism2_usb
rmmod pl2303
rmmod usbserial
rmmod usbhid
rmmod ohci_hcd
rmmod usbcore
rmmod therm_adt746x

echo -n disk > /sys/power/state

modprobe therm_adt746x
modprobe pl2303
modprobe usbhid
modprobe ohci_hcd
# Notap doesn't seem to work after resume, so we restart pbb
/etc/init.d/pbbuttonsd restart

Xorg.conf:

Section "ServerLayout"
Identifier     "XFree86 Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath	"/usr/X11R6/lib/X11/fonts/truetype"
FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "extmod"
Load  "dri"
Load  "dbe"
Load  "record"
Load  "xtrap"
Load  "glx"
Load  "speedo"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option 	"Protocol"        "IMPS/2"
Option          "ZAxisMapping"  "4 5"
Option          "Device"        "/dev/input/mice"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
UseModes	"Modes0"
EndSection

Section "Device"
Identifier  "Card0"
Driver      "radeon"
VendorName  "ATI Technologies Inc"
BoardName   "Radeon 9200 Mobility"
Option      "AGPMode" "4"
Option	    "UseFBDev"	"True"
Option      "EnablePageFlip" "On"
ChipID      0x514d
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 4
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 8
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 15
Modes  	"1280x960" "1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 16
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 24
Modes   "1280x960" "1024x768" "640x480" "800x600" 
EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection

Section "Modes"
        Identifier      "Modes0"
	Modeline "1024x768" 75.000 1024 1040 1048 1064  768 784 792 808  -HSync
-VSync
EndSection

-- 
Chris Anderson <chris@nullcode.org>
ICQ: 72021847  Jabber: chrisja@jabber.org
20B2 CB34 8AA5 05BC A90C  2CDD 2768 D4B4 2B93 424B

Attachment: sleep
Description: application/shellscript

Section "ServerLayout"
Identifier     "XFree86 Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath	"/usr/X11R6/lib/X11/fonts/truetype"
FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "extmod"
Load  "dri"
Load  "dbe"
Load  "record"
Load  "xtrap"
Load  "glx"
Load  "speedo"
Load  "type1"
EndSection

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

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option 	"Protocol"        "IMPS/2"
Option          "ZAxisMapping"  "4 5"
Option          "Device"        "/dev/input/mice"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
UseModes	"Modes0"
#HorizSync       30-70
#VertRefresh     50-160
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
Identifier  "Card0"
Driver      "radeon"
VendorName  "ATI Technologies Inc"
BoardName   "Radeon 9200 Mobility"
Option      "AGPMode" "4"
Option	    "UseFBDev"	"True"
Option      "EnablePageFlip" "On"
ChipID      0x514d
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 4
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 8
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 15
Modes  	"1280x960" "1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 16
Modes  	"1024x768" "640x480" "800x600" 
EndSubSection
SubSection "Display"
Depth 24
Modes   "1280x960" "1024x768" "640x480" "800x600" 
EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection

Section "Modes"
        Identifier      "Modes0"
	Modeline "1024x768" 75.000 1024 1040 1048 1064  768 784 792 808  -HSync -VSync
EndSection

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: