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:51:28
Message-Id: A9F5ED8B-636F-4CEE-A298-CD3F1E6F2D76@chezdavid.net
In Reply to: Re: [gentoo-ppc-user] xorg.conf for Mac G4 mini by David Friedlander
1 Further to the last;
2
3 I modified the xorg.conf to include a modeline for 1024x768, and
4 changed the
5 screen display sections to reference it. I believe the server gets a
6 little further now,
7 but still no soap.
8
9 Attached, the new xorg.conf and the error log (as before)
10
11 xorg.conf:
12
13 -----------------------
14
15 ### This file was generated by xac v0.6_pre3
16
17 Section "ServerLayout"
18 Identifier "XAC Configured"
19 Screen 0 "Screen0" 0 0
20 InputDevice "Mouse0" "CorePointer"
21 InputDevice "Keyboard0" "CoreKeyboard"
22 EndSection
23
24 Section "Files"
25 ### Multiple FontPath entries are allowed (which are concatenated
26 ### together as well as specifying multiple comma-separated
27 ### entries in one FontPath command (or both methods)
28 ###
29 ### For X Font Server support, uncomment this and comment the
30 ### other FontPaths. (This is not required for most configurations)
31 # FontPath "unix/:-1"
32
33 FontPath "/usr/share/fonts/75dpi"
34 FontPath "/usr/share/fonts/default/ghostscript"
35 FontPath "/usr/share/fonts/corefonts"
36 EndSection
37
38 Section "Module"
39 Load "extmod"
40 Load "dbe"
41 Load "record"
42 Load "glx"
43 Load "type1"
44 Load "freetype"
45 Load "dri"
46 EndSection
47
48 Section "ServerFlags"
49 Option "blank time" "10" # 10 Minutes
50 Option "standby time" "20" # 20 Minutes
51 Option "suspend time" "30" # 30Minutes
52 Option "off time" "60" # 60Minutes
53 ### Uncomment so X doesn't fail when no mouse is available
54 # Option "AllowMouseOpenFail" "true"
55 ### Enable this option if X should not change resolutions
56 ### This is useful if mode changing corrupts the X Server
57 # Option "DisableVidModeExtensions" "true"
58 EndSection
59
60 Section "InputDevice"
61 Identifier "Keyboard0"
62 Driver "kbd"
63 ### Check /usr/share/X11/xkb/rules/xorg.lst for available models
64 Option "XkbdModel" "pc105"
65 ### Check /usr/share/X11/xkb/symbols/ for available layouts
66 Option "XkbLayout" "us"
67 Option "XkbOptions" "compose:rwin"
68 EndSection
69
70 Section "InputDevice"
71 Identifier "Mouse0"
72 Driver "mouse"
73 Option "Device" "/dev/input/mice"
74 Option "Protocol" "auto"
75
76 ### Set driver options:
77 ### No options set!
78
79 ### Unset driver options:
80 ### No options unset!
81 EndSection
82
83 Section "Device"
84 Identifier "Card0"
85 Driver "radeon"
86 ### Configured ATI Radeon Yb at PCI Bus ID:
87 # BusID "PCI:0:16:0"
88
89 ### Set driver options:
90 Option "EnablePageFlip" "true" # Increases Performance
91 Option "MergedFB" "false" # Set to true if you want mirrored
92 monitor output
93
94 ### Unchanged, default driver options:
95 # Option "AccelMethod" "XAA" # XAA or EXA, but EXA is unstable"
96 # Option "AGPMode" "1" # Set to the AGP bus speed, 1 = 1x
97 # Option "AGPFastWrite" "false" # Can be unstable
98 # Option "BackingStore" "false" # Currently broken
99 # Option "BIOSHotkeys" "false" # Enable this to switch outputs with
100 a hotkey
101 # Option "BusType" "auto" # Force Video Bus to PCI, AGP or PCIE
102 # Option "MonitorLayout" "auto" # Set to TMDS for some Apple Flat
103 Panels
104 # Option "NoAccel" "false" # Disables ALL hardware acceleration
105 # Option "RenderAccel" "true" # Hardware Render Acceleration"
106 # Option "ReverseDDC" "false" # Some G5s require this
107 # Option "SWcursor" "false"
108 Option "UseFBDev" "false" # Try enabling this if it does not work
109
110 ### See "man radeon" for more information and options
111 EndSection
112
113 Section "Monitor"
114 Identifier "Monitor0"
115 UseModes "Modes0"
116 ModelName "SDM-N50PS"
117 Option "DPMS"
118 HorizSync 30-60
119 VertRefresh 50-65
120 EndSection
121
122 Section "Modes"
123 Identifier "Modes0"
124 ### # 720x400 59.55 Hz (CVT) hsync: 24.83 kHz; pclk: 22.25 MHz
125 # Modeline "720x400" 22.25 720 744 808 896 400 403 413 417 -hsync
126 +vsync
127 Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806 -
128 hsync -vsync
129 EndSection
130
131 Section "Screen"
132 Identifier "Screen0"
133 Device "Card0"
134 Monitor "Monitor0"
135 DefaultDepth 24
136
137 SubSection "Display"
138 Depth 24
139 Virtual 1024 768
140 Modes "1024x768"
141 EndSubSection
142
143 EndSection
144
145 Section "DRI"
146 Group 0
147 Mode 0666
148 EndSection
149
150 ----------------------------------------
151
152 Error log:
153 -------------------------------------
154 xauth: creating new authority file /home/david/.serverauth.25907
155
156 X.Org X Server 1.5.3
157 Release Date: 5 November 2008
158 X Protocol Version 11, Revision 0
159 Build Operating System: Linux 2.6.24-gentoo-r3 ppc
160 Current Operating System: Linux dfminigentoo 2.6.24-gentoo-r3 #3 Sat
161 Jul 4 09:52:08 EDT 2009 ppc
162 Build Date: 09 July 2009 08:25:07AM
163
164 Before reporting problems, check http://wiki.x.org
165 to make sure that you have the latest version.
166 Markers: (--) probed, (**) from config file, (==) default setting,
167 (++) from command line, (!!) notice, (II) informational,
168 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
169 (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 20 08:24:45 2009
170 (==) Using config file: "/etc/X11/xorg.conf"
171
172 (EE) Failed to load module "type1" (module does not exist, 0)
173 (EE) Failed to load module "freetype" (module does not exist, 0)
174 XRANDR name: DVI-0
175 Connector: DVI-I
176 CRT2: INTERNAL_DAC1
177 DFP1: INTERNAL_TMDS1
178 DDC reg: 0x6c
179 XRANDR name: S-video
180 Connector: S-video
181 TV1: INTERNAL_DAC2
182 DDC reg: 0x0
183 finished output detect: 0
184 finished output detect: 1
185 finished all detect
186 before xf86InitialConfiguration
187 after xf86InitialConfiguration
188 Entering TV Save
189 Save TV timing tables
190 saveTimingTables: reading timing tables
191 TV Save done
192 disable primary dac
193 disable primary dac
194 disable TV
195 disable primary dac
196 init memmap
197 init common
198 init crtc1
199 init pll1
200 freq: 65000000
201 best_freq: 65000000
202 best_feedback_div: 65
203 best_ref_div: 9
204 best_post_div: 3
205 restore memmap
206 restore common
207 restore crtc1
208 restore pll1
209 finished PLL1
210 set RMX
211 set primary dac
212 enable primary dac
213 disable TV
214 SESSION_MANAGER=local/dfminigentoo:@/tmp/.ICE-unix/25934,unix/
215 dfminigentoo:/tmp/.ICE-unix/25934
216 1248092687.891995 Session manager: disconnected...
217 1248092688.023184 Session manager: disconnected...
218 1248092688.117781 Session manager: disconnected...
219 1248092688.221803 Session manager: disconnected...
220 1248092688.317778 Session manager: disconnected...
221 1248092688.419156 Session manager: disconnected...
222 1248092688.513810 Session manager: disconnected...
223 1248092688.617479 Session manager: disconnected...
224 1248092688.713813 Session manager: disconnected...
225 1248092688.815359 Session manager: disconnected...
226 1248092688.911995 Session manager: disconnected...
227
228 ** (gnome-session:25934): CRITICAL **: dbus_g_proxy_add_signal:
229 assertion `DBUS_IS_G_PROXY (proxy)' failed
230
231 ** (gnome-session:25934): CRITICAL **: dbus_g_proxy_connect_signal:
232 assertion `DBUS_IS_G_PROXY (proxy)' failed
233 Window manager warning: Failed to read saved session file /home/
234 david/.config/metacity/sessions/default0.ms: Failed to open file '/
235 home/david/.config/metacity/sessions/default0.ms': No such file or
236 directory
237 Failed to play sound: Sound disabled
238 20/07/2009 08:24:51 Autoprobing TCP port
239 20/07/2009 08:24:51 Autoprobing selected port 5900
240 20/07/2009 08:24:51 Advertising authentication type: 'No
241 Authentication' (1)
242 20/07/2009 08:24:51 Advertising security type: 'No Authentication' (1)
243
244 ** (nautilus:26000): WARNING **: Unable to add monitor: Not supported
245
246 (gnome-panel:25991): Gtk-WARNING **: gtk_widget_size_allocate():
247 attempt to allocate widget with width -15 and height 23
248 The application 'gnome-session' lost its connection to the display :0.0;
249 most likely the X server was shut down or you killed/destroyed
250 the application.
251 Window manager warning: Lost connection to the display ':0.0';
252 most likely the X server was shut down or you killed/destroyed
253 the window manager.
254 xinit: connection to X server lost.
255
256 waiting for X server to shut down disable primary dac
257 finished PLL2
258 finished PLL1
259 Entering Restore TV
260 Restore TV PLL
261 Restore TVHV
262 Restore TV Restarts
263 Restore Timing Tables
264 Restore TV standard
265 Leaving Restore TV
266
267
268 ------------------------------------
269 Best,
270 David
271
272
273
274
275 On Jul 20, 2009, at 8:25 AM, David Friedlander wrote:
276
277 > Hello, Joe,
278 >
279 > The server doesn't start; stderr shows the following (captured with
280 > "xterm 2> test.log"
281 > This is regardless of the setting of "UseFBDev"
282 >
283 > Following this is the generated xorg.conf. I see a strange
284 > "modeline" entry for 720x400 --
285 > could that be the problem? I believe that in the past I've deleted
286 > this and even tried to replace
287 > it with a 1024x768 line, but truthfully I can't remember any more.
288 >
289 > David
290 >
291 > (I suspect the last 2 lines are generated when I press ctrl-c.)
292 >
293 > ------------------------------
294 > xauth: creating new authority file /home/david/.serverauth.25513
295 >
296 > X.Org X Server 1.5.3
297 > Release Date: 5 November 2008
298 > X Protocol Version 11, Revision 0
299 > Build Operating System: Linux 2.6.24-gentoo-r3 ppc
300 > Current Operating System: Linux dfminigentoo 2.6.24-gentoo-r3 #3 Sat
301 > Jul 4 09:52:08 EDT 2009 ppc
302 > Build Date: 09 July 2009 08:25:07AM
303 >
304 > Before reporting problems, check http://wiki.x.org
305 > to make sure that you have the latest version.
306 > Markers: (--) probed, (**) from config file, (==) default setting,
307 > (++) from command line, (!!) notice, (II) informational,
308 > (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
309 > (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 20 07:57:28 2009
310 > (==) Using config file: "/etc/X11/xorg.conf"
311 >
312 > (EE) Failed to load module "type1" (module does not exist, 0)
313 > (EE) Failed to load module "freetype" (module does not exist, 0)
314 > XRANDR name: DVI-0
315 > Connector: DVI-I
316 > CRT2: INTERNAL_DAC1
317 > DFP1: INTERNAL_TMDS1
318 > DDC reg: 0x6c
319 > XRANDR name: S-video
320 > Connector: S-video
321 > TV1: INTERNAL_DAC2
322 > DDC reg: 0x0
323 > finished output detect: 0
324 > finished output detect: 1
325 > finished all detect
326 > before xf86InitialConfiguration
327 > (EE) RADEON(0): Output DVI-0 enabled but has no modes
328 > (EE) RADEON(0): No valid modes.
329 > (EE) Screen(s) found, but none have a usable configuration.
330 >
331 > Fatal server error:
332 > no screens found
333 > giving up.
334 > xinit: Connection refused (errno 111): unable to connect to X server
335 > xinit: No such process (errno 3): unexpected signal 2.
336 >
337 > --------------------------------
338 > Here's the xorg.conf
339 > -------------------------------
340 > ### This file was generated by xac v0.6_pre3
341 >
342 > Section "ServerLayout"
343 > Identifier "XAC Configured"
344 > Screen 0 "Screen0" 0 0
345 > InputDevice "Mouse0" "CorePointer"
346 > InputDevice "Keyboard0" "CoreKeyboard"
347 > EndSection
348 >
349 > Section "Files"
350 > ### Multiple FontPath entries are allowed (which are concatenated
351 > ### together as well as specifying multiple comma-separated
352 > ### entries in one FontPath command (or both methods)
353 > ###
354 > ### For X Font Server support, uncomment this and comment the
355 > ### other FontPaths. (This is not required for most configurations)
356 > # FontPath "unix/:-1"
357 >
358 > FontPath "/usr/share/fonts/75dpi"
359 > FontPath "/usr/share/fonts/default/ghostscript"
360 > FontPath "/usr/share/fonts/corefonts"
361 > EndSection
362 >
363 > Section "Module"
364 > Load "extmod"
365 > Load "dbe"
366 > Load "record"
367 > Load "glx"
368 > Load "type1"
369 > Load "freetype"
370 > Load "dri"
371 > EndSection
372 >
373 > Section "ServerFlags"
374 > Option "blank time" "10" # 10 Minutes
375 > Option "standby time" "20" # 20 Minutes
376 > Option "suspend time" "30" # 30Minutes
377 > Option "off time" "60" # 60Minutes
378 > ### Uncomment so X doesn't fail when no mouse is available
379 > # Option "AllowMouseOpenFail" "true"
380 > ### Enable this option if X should not change resolutions
381 > ### This is useful if mode changing corrupts the X Server
382 > # Option "DisableVidModeExtensions" "true"
383 > EndSection
384 >
385 > Section "InputDevice"
386 > Identifier "Keyboard0"
387 > Driver "kbd"
388 > ### Check /usr/share/X11/xkb/rules/xorg.lst for available models
389 > Option "XkbdModel" "pc105"
390 > ### Check /usr/share/X11/xkb/symbols/ for available layouts
391 > Option "XkbLayout" "us"
392 > Option "XkbOptions" "compose:rwin"
393 > EndSection
394 >
395 > Section "InputDevice"
396 > Identifier "Mouse0"
397 > Driver "mouse"
398 > Option "Device" "/dev/input/mice"
399 > Option "Protocol" "auto"
400 >
401 > ### Set driver options:
402 > ### No options set!
403 >
404 > ### Unset driver options:
405 > ### No options unset!
406 > EndSection
407 >
408 > Section "Device"
409 > Identifier "Card0"
410 > Driver "radeon"
411 > ### Configured ATI Radeon Yb at PCI Bus ID:
412 > # BusID "PCI:0:16:0"
413 >
414 > ### Set driver options:
415 > Option "EnablePageFlip" "true" # Increases Performance
416 > Option "MergedFB" "false" # Set to true if you want mirrored
417 > monitor output
418 >
419 > ### Unchanged, default driver options:
420 > # Option "AccelMethod" "XAA" # XAA or EXA, but EXA is unstable"
421 > # Option "AGPMode" "1" # Set to the AGP bus speed, 1 = 1x
422 > # Option "AGPFastWrite" "false" # Can be unstable
423 > # Option "BackingStore" "false" # Currently broken
424 > # Option "BIOSHotkeys" "false" # Enable this to switch outputs
425 > with a hotkey
426 > # Option "BusType" "auto" # Force Video Bus to PCI, AGP or PCIE
427 > # Option "MonitorLayout" "auto" # Set to TMDS for some Apple Flat
428 > Panels
429 > # Option "NoAccel" "false" # Disables ALL hardware acceleration
430 > # Option "RenderAccel" "true" # Hardware Render Acceleration"
431 > # Option "ReverseDDC" "false" # Some G5s require this
432 > # Option "SWcursor" "false"
433 > Option "UseFBDev" "false" # Try enabling this if it does not work
434 >
435 > ### See "man radeon" for more information and options
436 > EndSection
437 >
438 > Section "Monitor"
439 > Identifier "Monitor0"
440 > UseModes "Modes0"
441 > ModelName "SDM-N50PS"
442 > Option "DPMS"
443 > HorizSync 30-60
444 > VertRefresh 50-65
445 > EndSection
446 >
447 > Section "Modes"
448 > Identifier "Modes0"
449 > ### # 720x400 59.55 Hz (CVT) hsync: 24.83 kHz; pclk: 22.25 MHz
450 > Modeline "720x400" 22.25 720 744 808 896 400 403 413 417 -hsync
451 > +vsync
452 > EndSection
453 >
454 > Section "Screen"
455 > Identifier "Screen0"
456 > Device "Card0"
457 > Monitor "Monitor0"
458 > DefaultDepth 24
459 >
460 > SubSection "Display"
461 > Depth 8
462 > Virtual 640 400
463 > Modes "640x400" "720x400" "640x480" "640x480"
464 > EndSubSection
465 >
466 > SubSection "Display"
467 > Depth 16
468 > Virtual 640 400
469 > Modes "640x400" "720x400" "640x480" "640x480"
470 > EndSubSection
471 >
472 > SubSection "Display"
473 > Depth 24
474 > Virtual 640 400
475 > Modes "640x400" "720x400" "640x480" "640x480"
476 > EndSubSection
477 >
478 > EndSection
479 >
480 > Section "DRI"
481 > Group 0
482 > Mode 0666
483 > EndSection
484 >
485 >
486 >
487 >
488 >
489 > On Jul 20, 2009, at 6:15 AM, Joseph Jezak wrote:
490 >
491 >> David Friedlander wrote:
492 >>> Hello, Joe and JR:
493 >>>
494 >>> Thank to both of you for your help; it took me until now to find the
495 >>> time to once again find time to
496 >>> fiddle with this problem.
497 >>>
498 >>> The symptom is that the monitor gives a message that there's no
499 >>> signal
500 >>> and goes away. Terminating X
501 >>> with some combination :-) of shift keys and the delete key brings
502 >>> back
503 >>> a text terminal. A very lengthy log
504 >>> file gets generated, but to the best of my ability I can not find
505 >>> any
506 >>> indication of an error in it.
507 >>>
508 >>> Checked the FAQ, but I'm not clear how to "set the correct
509 >>> framebuffer
510 >>> device" -- or what that might mean.
511 >>>
512 >>> Probably my blindness, if you can direct me I'll be grateful.
513 >>>
514 >>>
515 >>> Here's the output from xac:
516 >>> -----------------------------------------
517 >>> dfminigentoo ~ # xac --dump
518 >>> Machine Name: PowerMac10,1
519 >>> Video Cards Found:
520 >>> * ATI Radeon Yb - (0:16:0)
521 >>> Detected as: ATI Radeon Open Driver
522 >>>
523 >>> Framebuffer Info:
524 >>> Accel ID: 38
525 >>> Name String: ATI Radeon Yb
526 >>> Depth PP: 8
527 >>>
528 >>> EDID0:
529 >>> ID: SNY5011
530 >>> SN: 16843009
531 >>> DT: [31, 2000]
532 >>> EV: (1, 2)
533 >>> VI: {'serration_vsync': 0, 'blank_to_black': 0, 'sync_on_green':
534 >>> 1, 'composite_sync': 1, 'video_level': 0, 'seperate_sync': 1,
535 >>> 'digital': 0}
536 >>> SZ: (33, 24)
537 >>> GA: 2.2
538 >>> FS: {'suspend': 1, 'gtf': 1, 'standby': 1, 'prefered_timing': 1,
539 >>> 'rgb': 0, 'display_type': 1, 'active_off': 1}
540 >>> CC: {'red_y': 0.33984375, 'red_x': 0.625, 'blue_y': 0.0703125,
541 >>> 'blue_x': 0.1552734375, 'white_y': 0.2978515625, 'white_x':
542 >>> 0.283203125, 'green_y': 0.599609375, 'green_x': 0.2802734375}
543 >>> ET: [[720, 400, 70], [640, 480, 75], [640, 480, 67]]
544 >>> MD: [['Detailed Timing', {'stereo': 0, 'vborder': 0,
545 >>> 'vimage_size': 234, 'hsync_offset': 16, 'horizontal_active': 640,
546 >>> 'horizontal_blanking': 160, 'vsync_pulse_width': 2, 'interlaced': 0,
547 >>> 'pixel_clock': 54793, 'hborder': 0, 'vertical_blanking': 49,
548 >>> 'digital_composite': 3, 'vertical_active': 400, 'vsync_offset': 12,
549 >>> 'variant': 2, 'himage_size': 312, 'hsync_pulse_width': 96}],
550 >>> ['Range',
551 >>> {'v_max': 65, 'h_min': 30, 'h_max': 60, 'v_min': 50}], ['Name',
552 >>> 'SDM-N50PS'], ['Serial', '0140495']]
553 >>> HE: 0
554 >> Okay, this looks good. You are using the correct framebuffer driver
555 >> (the
556 >> ATI Radeon driver and not the OpenFirmware FB driver, which won't
557 >> work
558 >> for X) and it appears that your monitor is correctly responding
559 >> with an
560 >> EDID for autodetection. Can you try generating an X config file
561 >> with xac
562 >> and give that a try? If it doesn't work out of the box, try
563 >> uncommenting
564 >> the "UseFBDev" option and try both "true" and "false", sometimes the
565 >> correct value is not autodetected by X.
566 >>
567 >> -Joe
568 >>
569 >
570 >