Gentoo Archives: gentoo-ppc-user

From: David Friedlander <david@×××××××××.net>
To: gentoo-ppc-user@l.g.o
Subject: Re: [gentoo-ppc-user] xorg.conf for Mac G4 mini
Date: Mon, 20 Jul 2009 12:25:58
Message-Id: 66E83A2E-04D2-43FA-8FC0-9C30EB5F2C38@chezdavid.net
In Reply to: Re: [gentoo-ppc-user] xorg.conf for Mac G4 mini by Joseph Jezak
1 Hello, Joe,
2
3 The server doesn't start; stderr shows the following (captured with
4 "xterm 2> test.log"
5 This is regardless of the setting of "UseFBDev"
6
7 Following this is the generated xorg.conf. I see a strange "modeline"
8 entry for 720x400 --
9 could that be the problem? I believe that in the past I've deleted
10 this and even tried to replace
11 it with a 1024x768 line, but truthfully I can't remember any more.
12
13 David
14
15 (I suspect the last 2 lines are generated when I press ctrl-c.)
16
17 ------------------------------
18 xauth: creating new authority file /home/david/.serverauth.25513
19
20 X.Org X Server 1.5.3
21 Release Date: 5 November 2008
22 X Protocol Version 11, Revision 0
23 Build Operating System: Linux 2.6.24-gentoo-r3 ppc
24 Current Operating System: Linux dfminigentoo 2.6.24-gentoo-r3 #3 Sat
25 Jul 4 09:52:08 EDT 2009 ppc
26 Build Date: 09 July 2009 08:25:07AM
27
28 Before reporting problems, check http://wiki.x.org
29 to make sure that you have the latest version.
30 Markers: (--) probed, (**) from config file, (==) default setting,
31 (++) from command line, (!!) notice, (II) informational,
32 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
33 (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 20 07:57:28 2009
34 (==) Using config file: "/etc/X11/xorg.conf"
35
36 (EE) Failed to load module "type1" (module does not exist, 0)
37 (EE) Failed to load module "freetype" (module does not exist, 0)
38 XRANDR name: DVI-0
39 Connector: DVI-I
40 CRT2: INTERNAL_DAC1
41 DFP1: INTERNAL_TMDS1
42 DDC reg: 0x6c
43 XRANDR name: S-video
44 Connector: S-video
45 TV1: INTERNAL_DAC2
46 DDC reg: 0x0
47 finished output detect: 0
48 finished output detect: 1
49 finished all detect
50 before xf86InitialConfiguration
51 (EE) RADEON(0): Output DVI-0 enabled but has no modes
52 (EE) RADEON(0): No valid modes.
53 (EE) Screen(s) found, but none have a usable configuration.
54
55 Fatal server error:
56 no screens found
57 giving up.
58 xinit: Connection refused (errno 111): unable to connect to X server
59 xinit: No such process (errno 3): unexpected signal 2.
60
61 --------------------------------
62 Here's the xorg.conf
63 -------------------------------
64 ### This file was generated by xac v0.6_pre3
65
66 Section "ServerLayout"
67 Identifier "XAC Configured"
68 Screen 0 "Screen0" 0 0
69 InputDevice "Mouse0" "CorePointer"
70 InputDevice "Keyboard0" "CoreKeyboard"
71 EndSection
72
73 Section "Files"
74 ### Multiple FontPath entries are allowed (which are concatenated
75 ### together as well as specifying multiple comma-separated
76 ### entries in one FontPath command (or both methods)
77 ###
78 ### For X Font Server support, uncomment this and comment the
79 ### other FontPaths. (This is not required for most configurations)
80 # FontPath "unix/:-1"
81
82 FontPath "/usr/share/fonts/75dpi"
83 FontPath "/usr/share/fonts/default/ghostscript"
84 FontPath "/usr/share/fonts/corefonts"
85 EndSection
86
87 Section "Module"
88 Load "extmod"
89 Load "dbe"
90 Load "record"
91 Load "glx"
92 Load "type1"
93 Load "freetype"
94 Load "dri"
95 EndSection
96
97 Section "ServerFlags"
98 Option "blank time" "10" # 10 Minutes
99 Option "standby time" "20" # 20 Minutes
100 Option "suspend time" "30" # 30Minutes
101 Option "off time" "60" # 60Minutes
102 ### Uncomment so X doesn't fail when no mouse is available
103 # Option "AllowMouseOpenFail" "true"
104 ### Enable this option if X should not change resolutions
105 ### This is useful if mode changing corrupts the X Server
106 # Option "DisableVidModeExtensions" "true"
107 EndSection
108
109 Section "InputDevice"
110 Identifier "Keyboard0"
111 Driver "kbd"
112 ### Check /usr/share/X11/xkb/rules/xorg.lst for available models
113 Option "XkbdModel" "pc105"
114 ### Check /usr/share/X11/xkb/symbols/ for available layouts
115 Option "XkbLayout" "us"
116 Option "XkbOptions" "compose:rwin"
117 EndSection
118
119 Section "InputDevice"
120 Identifier "Mouse0"
121 Driver "mouse"
122 Option "Device" "/dev/input/mice"
123 Option "Protocol" "auto"
124
125 ### Set driver options:
126 ### No options set!
127
128 ### Unset driver options:
129 ### No options unset!
130 EndSection
131
132 Section "Device"
133 Identifier "Card0"
134 Driver "radeon"
135 ### Configured ATI Radeon Yb at PCI Bus ID:
136 # BusID "PCI:0:16:0"
137
138 ### Set driver options:
139 Option "EnablePageFlip" "true" # Increases Performance
140 Option "MergedFB" "false" # Set to true if you want mirrored
141 monitor output
142
143 ### Unchanged, default driver options:
144 # Option "AccelMethod" "XAA" # XAA or EXA, but EXA is unstable"
145 # Option "AGPMode" "1" # Set to the AGP bus speed, 1 = 1x
146 # Option "AGPFastWrite" "false" # Can be unstable
147 # Option "BackingStore" "false" # Currently broken
148 # Option "BIOSHotkeys" "false" # Enable this to switch outputs with
149 a hotkey
150 # Option "BusType" "auto" # Force Video Bus to PCI, AGP or PCIE
151 # Option "MonitorLayout" "auto" # Set to TMDS for some Apple Flat
152 Panels
153 # Option "NoAccel" "false" # Disables ALL hardware acceleration
154 # Option "RenderAccel" "true" # Hardware Render Acceleration"
155 # Option "ReverseDDC" "false" # Some G5s require this
156 # Option "SWcursor" "false"
157 Option "UseFBDev" "false" # Try enabling this if it does not work
158
159 ### See "man radeon" for more information and options
160 EndSection
161
162 Section "Monitor"
163 Identifier "Monitor0"
164 UseModes "Modes0"
165 ModelName "SDM-N50PS"
166 Option "DPMS"
167 HorizSync 30-60
168 VertRefresh 50-65
169 EndSection
170
171 Section "Modes"
172 Identifier "Modes0"
173 ### # 720x400 59.55 Hz (CVT) hsync: 24.83 kHz; pclk: 22.25 MHz
174 Modeline "720x400" 22.25 720 744 808 896 400 403 413 417 -hsync
175 +vsync
176 EndSection
177
178 Section "Screen"
179 Identifier "Screen0"
180 Device "Card0"
181 Monitor "Monitor0"
182 DefaultDepth 24
183
184 SubSection "Display"
185 Depth 8
186 Virtual 640 400
187 Modes "640x400" "720x400" "640x480" "640x480"
188 EndSubSection
189
190 SubSection "Display"
191 Depth 16
192 Virtual 640 400
193 Modes "640x400" "720x400" "640x480" "640x480"
194 EndSubSection
195
196 SubSection "Display"
197 Depth 24
198 Virtual 640 400
199 Modes "640x400" "720x400" "640x480" "640x480"
200 EndSubSection
201
202 EndSection
203
204 Section "DRI"
205 Group 0
206 Mode 0666
207 EndSection
208
209
210
211
212
213 On Jul 20, 2009, at 6:15 AM, Joseph Jezak wrote:
214
215 > David Friedlander wrote:
216 >> Hello, Joe and JR:
217 >>
218 >> Thank to both of you for your help; it took me until now to find the
219 >> time to once again find time to
220 >> fiddle with this problem.
221 >>
222 >> The symptom is that the monitor gives a message that there's no
223 >> signal
224 >> and goes away. Terminating X
225 >> with some combination :-) of shift keys and the delete key brings
226 >> back
227 >> a text terminal. A very lengthy log
228 >> file gets generated, but to the best of my ability I can not find any
229 >> indication of an error in it.
230 >>
231 >> Checked the FAQ, but I'm not clear how to "set the correct
232 >> framebuffer
233 >> device" -- or what that might mean.
234 >>
235 >> Probably my blindness, if you can direct me I'll be grateful.
236 >>
237 >>
238 >> Here's the output from xac:
239 >> -----------------------------------------
240 >> dfminigentoo ~ # xac --dump
241 >> Machine Name: PowerMac10,1
242 >> Video Cards Found:
243 >> * ATI Radeon Yb - (0:16:0)
244 >> Detected as: ATI Radeon Open Driver
245 >>
246 >> Framebuffer Info:
247 >> Accel ID: 38
248 >> Name String: ATI Radeon Yb
249 >> Depth PP: 8
250 >>
251 >> EDID0:
252 >> ID: SNY5011
253 >> SN: 16843009
254 >> DT: [31, 2000]
255 >> EV: (1, 2)
256 >> VI: {'serration_vsync': 0, 'blank_to_black': 0, 'sync_on_green':
257 >> 1, 'composite_sync': 1, 'video_level': 0, 'seperate_sync': 1,
258 >> 'digital': 0}
259 >> SZ: (33, 24)
260 >> GA: 2.2
261 >> FS: {'suspend': 1, 'gtf': 1, 'standby': 1, 'prefered_timing': 1,
262 >> 'rgb': 0, 'display_type': 1, 'active_off': 1}
263 >> CC: {'red_y': 0.33984375, 'red_x': 0.625, 'blue_y': 0.0703125,
264 >> 'blue_x': 0.1552734375, 'white_y': 0.2978515625, 'white_x':
265 >> 0.283203125, 'green_y': 0.599609375, 'green_x': 0.2802734375}
266 >> ET: [[720, 400, 70], [640, 480, 75], [640, 480, 67]]
267 >> MD: [['Detailed Timing', {'stereo': 0, 'vborder': 0,
268 >> 'vimage_size': 234, 'hsync_offset': 16, 'horizontal_active': 640,
269 >> 'horizontal_blanking': 160, 'vsync_pulse_width': 2, 'interlaced': 0,
270 >> 'pixel_clock': 54793, 'hborder': 0, 'vertical_blanking': 49,
271 >> 'digital_composite': 3, 'vertical_active': 400, 'vsync_offset': 12,
272 >> 'variant': 2, 'himage_size': 312, 'hsync_pulse_width': 96}],
273 >> ['Range',
274 >> {'v_max': 65, 'h_min': 30, 'h_max': 60, 'v_min': 50}], ['Name',
275 >> 'SDM-N50PS'], ['Serial', '0140495']]
276 >> HE: 0
277 > Okay, this looks good. You are using the correct framebuffer driver
278 > (the
279 > ATI Radeon driver and not the OpenFirmware FB driver, which won't work
280 > for X) and it appears that your monitor is correctly responding with
281 > an
282 > EDID for autodetection. Can you try generating an X config file with
283 > xac
284 > and give that a try? If it doesn't work out of the box, try
285 > uncommenting
286 > the "UseFBDev" option and try both "true" and "false", sometimes the
287 > correct value is not autodetected by X.
288 >
289 > -Joe
290 >

Replies

Subject Author
Re: [gentoo-ppc-user] xorg.conf for Mac G4 mini David Friedlander <david@×××××××××.net>
Re: [gentoo-ppc-user] xorg.conf for Mac G4 mini Joseph Jezak <josejx@g.o>