Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Help me reboot X
Date: Mon, 04 Jun 2007 03:17:23
Message-Id: 9acccfe50706032007m428a5a04gcb04570f5e3ba5d4@mail.gmail.com
In Reply to: Re: [gentoo-user] Help me reboot X by "Guillermo A. Amaral"
1 On 6/3/07, Guillermo A. Amaral <me@×××××××××××××××.com> wrote:
2 > On Sunday 03 June 2007 19:36, Kevin O'Gorman wrote:
3 > >
4 > > In the meanwhile, a couple of notes:
5 > > 1) Yes, it's REALLY locked up. But there's always enough CPU left
6 > > for a non-X login from another machine. It has to be another machine
7 > > because I can't even switch to a console terminal.
8 > > 2) I have no clue how to find out what's causing the lockup. I'd
9 > > love to, because I usually lose a bunch of work in the crash.
10 > > 3) I don't see anything labeled "SysReq" on my keyboard, but it's
11 > > associated with the PrintScreen key on my wife's box. Can I hope
12 > > alt-printscreen-K will work? (I personally wonder about it since
13 > > _nothing_ else on the keyboard works, but maybe the kernel can see
14 > > it).
15 > >
16 > > Again, thanks. I'll say more when it happens again.
17 > >
18 > > --
19 > > Kevin O'Gorman, PhD
20 > >
21 > >
22 > 1) alt-printscreen-k should work
23 > 2) try 'killall X' via ssh and if that doesnt restart and bring the display
24 > back also do "killall kdm"
25 > 3) can you share a copy of you xorg.conf?
26
27 Sure. I've done very little with it for a very long time. It still
28 mentions XFree, for
29 instance. But mostly it works.
30
31 # File generated by xf86config.
32
33 #
34 # Copyright (c) 1999 by The XFree86 Project, Inc.
35 #
36 # Permission is hereby granted, free of charge, to any person obtaining a
37 # copy of this software and associated documentation files (the "Software"),
38 # to deal in the Software without restriction, including without limitation
39 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
40 # and/or sell copies of the Software, and to permit persons to whom the
41 # Software is furnished to do so, subject to the following conditions:
42 #
43 # The above copyright notice and this permission notice shall be included in
44 # all copies or substantial portions of the Software.
45 #
46 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
49 # THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
50 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
51 # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
52 # SOFTWARE.
53 #
54 # Except as contained in this notice, the name of the XFree86 Project shall
55 # not be used in advertising or otherwise to promote the sale, use or other
56 # dealings in this Software without prior written authorization from the
57 # XFree86 Project.
58 #
59
60 # **********************************************************************
61 # Refer to the XF86Config(4/5) man page for details about the format of
62 # this file.
63 # **********************************************************************
64
65 # **********************************************************************
66 # Module section -- this section is used to specify
67 # which dynamically loadable modules to load.
68 # **********************************************************************
69 #
70 Section "Module"
71
72 # This loads the DBE extension module.
73
74 Load "dbe" # Double buffer extension
75
76 # This loads the miscellaneous extensions module, and disables
77 # initialisation of the XFree86-DGA extension within that module.
78 SubSection "extmod"
79 Option "omit xfree86-dga" # don't initialise the DGA extension
80 EndSubSection
81
82 # This loads the Type1 and FreeType font modules
83 Load "type1"
84 Load "speedo"
85 # Load "freetype"
86 # Load "xtt"
87
88 # This loads the GLX module
89 # Load "glx"
90 # This loads the DRI module
91 # Load "dri"
92
93 EndSection
94
95 # **********************************************************************
96 # Files section. This allows default font and rgb paths to be set
97 # **********************************************************************
98
99 Section "Files"
100
101 # The location of the RGB database. Note, this is the name of the
102 # file minus the extension (like ".txt" or ".db"). There is normally
103 # no need to change the default.
104
105
106 # Multiple FontPath entries are allowed (which are concatenated together),
107 # as well as specifying multiple comma-separated entries in one FontPath
108 # command (or a combination of both methods)
109 #
110 # If you don't have a floating point coprocessor and emacs, Mosaic or other
111 # programs take long to start up, try moving the Type1 and Speedo directory
112 # to the end of this list (or comment them out).
113 #
114
115 FontPath "/usr/share/fonts/local/"
116 FontPath "/usr/share/fonts/misc/"
117 FontPath "/usr/share/fonts/75dpi/:unscaled"
118 FontPath "/usr/share/fonts/100dpi/:unscaled"
119 FontPath "/usr/share/fonts/Speedo/"
120 FontPath "/usr/share/fonts/Type1/"
121 # FontPath "/usr/share/fonts/TrueType/"
122 # FontPath "/usr/share/fonts/freefont/"
123 FontPath "/usr/share/fonts/75dpi/"
124 FontPath "/usr/share/fonts/100dpi/"
125
126 # The module search path. The default path is shown here.
127
128
129 EndSection
130
131 # **********************************************************************
132 # Server flags section.
133 # **********************************************************************
134
135 Section "ServerFlags"
136
137 # Uncomment this to cause a core dump at the spot where a signal is
138 # received. This may leave the console in an unusable state, but may
139 # provide a better stack trace in the core dump to aid in debugging
140
141 # Option "NoTrapSignals"
142
143 # Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
144 # (where n is 1 through 12). This allows clients to receive these key
145 # events.
146
147 # Option "DontVTSwitch"
148
149 # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
150 # This allows clients to receive this key event.
151
152 # Option "DontZap"
153
154 # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
155 # sequences. This allows clients to receive these key events.
156
157 # Option "Dont Zoom"
158
159 # Uncomment this to disable tuning with the xvidtune client. With
160 # it the client can still run and fetch card and monitor attributes,
161 # but it will not be allowed to change them. If it tries it will
162 # receive a protocol error.
163
164 # Option "DisableVidModeExtension"
165
166 # Uncomment this to enable the use of a non-local xvidtune client.
167
168 # Option "AllowNonLocalXvidtune"
169
170 # Uncomment this to disable dynamically modifying the input device
171 # (mouse and keyboard) settings.
172
173 # Option "DisableModInDev"
174
175 # Uncomment this to enable the use of a non-local client to
176 # change the keyboard or mouse settings (currently only xset).
177
178 # Option "AllowNonLocalModInDev"
179
180 EndSection
181
182 # **********************************************************************
183 # Input devices
184 # **********************************************************************
185
186 # **********************************************************************
187 # Core keyboard's InputDevice section
188 # **********************************************************************
189
190 Section "InputDevice"
191
192 Identifier "Keyboard1"
193 Driver "kbd"
194
195 # For most OSs the protocol can be omitted (it defaults to "Standard").
196 # When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
197 # uncomment the following line.
198
199 # Option "Protocol" "Xqueue"
200
201 Option "AutoRepeat" "500 30"
202
203 # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
204 # Option "Xleds" "1 2 3"
205
206 # Option "LeftAlt" "Meta"
207 # Option "RightAlt" "ModeShift"
208
209 # To customise the XKB settings to suit your keyboard, modify the
210 # lines below (which are the defaults). For example, for a non-U.S.
211 # keyboard, you will probably want to use:
212 # Option "XkbModel" "pc102"
213 # If you have a US Microsoft Natural keyboard, you can use:
214 # Option "XkbModel" "microsoft"
215 #
216 # Then to change the language, change the Layout setting.
217 # For example, a german layout can be obtained with:
218 # Option "XkbLayout" "de"
219 # or:
220 # Option "XkbLayout" "de"
221 # Option "XkbVariant" "nodeadkeys"
222 #
223 # If you'd like to switch the positions of your capslock and
224 # control keys, use:
225 # Option "XkbOptions" "ctrl:swapcaps"
226
227 # These are the default XKB settings for XFree86
228
229 # Option "XkbModel" "pc101"
230 # Option "XkbLayout" "us"
231 # Option "XkbVariant" ""
232 # Option "XkbOptions" ""
233
234 # Option "XkbDisable"
235
236
237 Option "XkbModel" "microsoft"
238 Option "XkbLayout" "us"
239
240 EndSection
241
242
243 # **********************************************************************
244 # Core Pointer's InputDevice section
245 # **********************************************************************
246
247 Section "InputDevice"
248
249 # Identifier and driver
250
251 Identifier "Mouse1"
252 Driver "mouse"
253 Option "Protocol" "PS/2"
254 #KOSMANOR: for udev
255 Option "Device" "/dev/input/mice"
256 Option "ZAxisMapping" "4 5"
257
258 # Mouse-speed setting for PS/2 mouse.
259
260 # Option "Resolution" "256"
261
262 # When using XQUEUE, comment out the above two lines, and uncomment
263 # the following line.
264
265 # Option "Protocol" "Xqueue"
266
267 # Baudrate and SampleRate are only for some Logitech mice. In
268 # almost every case these lines should be omitted.
269
270 # Option "BaudRate" "9600"
271 # Option "SampleRate" "150"
272
273 # Emulate3Buttons is an option for 2-button Microsoft mice
274 # Emulate3Timeout is the timeout in milliseconds (default is 50ms)
275
276 # Option "Emulate3Buttons"
277 # Option "Emulate3Timeout" "50"
278
279 # ChordMiddle is an option for some 3-button Logitech mice
280
281 # Option "ChordMiddle"
282
283 EndSection
284
285
286 # **********************************************************************
287 # Other input device sections
288 # this is optional and is required only if you
289 # are using extended input devices. This is for example only. Refer
290 # to the XF86Config man page for a description of the options.
291 # **********************************************************************
292 #
293 # Section "InputDevice"
294 # Identifier "Mouse2"
295 # Driver "mouse"
296 # Option "Protocol" "MouseMan"
297 # Option "Device" "/dev/mouse2"
298 # EndSection
299 #
300 # Section "InputDevice"
301 # Identifier "spaceball"
302 # Driver "magellan"
303 # Option "Device" "/dev/cua0"
304 # EndSection
305 #
306 # Section "InputDevice"
307 # Identifier "spaceball2"
308 # Driver "spaceorb"
309 # Option "Device" "/dev/cua0"
310 # EndSection
311 #
312 # Section "InputDevice"
313 # Identifier "touchscreen0"
314 # Driver "microtouch"
315 # Option "Device" "/dev/ttyS0"
316 # Option "MinX" "1412"
317 # Option "MaxX" "15184"
318 # Option "MinY" "15372"
319 # Option "MaxY" "1230"
320 # Option "ScreenNumber" "0"
321 # Option "ReportingMode" "Scaled"
322 # Option "ButtonNumber" "1"
323 # Option "SendCoreEvents"
324 # EndSection
325 #
326 # Section "InputDevice"
327 # Identifier "touchscreen1"
328 # Driver "elo2300"
329 # Option "Device" "/dev/ttyS0"
330 # Option "MinX" "231"
331 # Option "MaxX" "3868"
332 # Option "MinY" "3858"
333 # Option "MaxY" "272"
334 # Option "ScreenNumber" "0"
335 # Option "ReportingMode" "Scaled"
336 # Option "ButtonThreshold" "17"
337 # Option "ButtonNumber" "1"
338 # Option "SendCoreEvents"
339 # EndSection
340
341 # **********************************************************************
342 # Monitor section
343 # **********************************************************************
344
345 # Any number of monitor sections may be present
346
347 Section "Monitor"
348 # I made this up; at 1400-1050, it says it's running at
349 # H: 81.8 KHz, V: 75.0 Hz
350 # and just as H had to be at least 78.75 KHz (75 x 1050)
351 # so the dot clock has to be at least 114 MHz (81.8 x 1400)
352 Identifier "Westinghouse"
353 HorizSync 20-120
354 VertRefresh 40-120
355 EndSection
356
357 Section "Monitor"
358
359 Identifier "pionex"
360
361 # HorizSync is in kHz unless units are specified.
362 # HorizSync may be a comma separated list of discrete values, or a
363 # comma separated list of ranges of values.
364 # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
365 # USER MANUAL FOR THE CORRECT NUMBERS.
366
367 HorizSync 30-70
368
369 # HorizSync 30-64 # multisync
370 # HorizSync 31.5, 35.2 # multiple fixed sync frequencies
371 # HorizSync 15-25, 30-50 # multiple ranges of sync frequencies
372
373 # VertRefresh is in Hz unless units are specified.
374 # VertRefresh may be a comma separated list of discrete values, or a
375 # comma separated list of ranges of values.
376 # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
377 # USER MANUAL FOR THE CORRECT NUMBERS.
378
379 VertRefresh 47-130
380
381 EndSection
382
383
384 # **********************************************************************
385 # Graphics device section
386 # **********************************************************************
387
388 # Any number of graphics device sections may be present
389
390 # Standard VGA Device:
391
392 Section "Device"
393 Identifier "Standard VGA"
394 VendorName "Unknown"
395 BoardName "Unknown"
396
397 # The chipset line is optional in most cases. It can be used to override
398 # the driver's chipset detection, and should not normally be specified.
399
400 # Chipset "generic"
401
402 # The Driver line must be present. When using run-time loadable driver
403 # modules, this line instructs the server to load the specified driver
404 # module. Even when not using loadable driver modules, this line
405 # indicates which driver should interpret the information in this section.
406
407 Driver "vga"
408 # The BusID line is used to specify which of possibly multiple devices
409 # this section is intended for. When this line isn't present, a device
410 # section can only match up with the primary video device. For PCI
411 # devices a line like the following could be used. This line should not
412 # normally be included unless there is more than one video device
413 # intalled.
414
415 # BusID "PCI:0:10:0"
416
417 # VideoRam 256
418
419 # Clocks 25.2 28.3
420
421 EndSection
422
423 # Device configured by xf86config:
424
425 Section "Device"
426 Identifier "ati-internal"
427 Driver "ati"
428 #VideoRam 8192
429 # Insert Clocks lines here if appropriate
430 EndSection
431
432
433 # **********************************************************************
434 # Screen sections
435 # **********************************************************************
436
437 # Any number of screen sections may be present. Each describes
438 # the configuration of a single screen. A single specific screen section
439 # may be specified from the X server command line with the "-screen"
440 # option.
441 Section "Screen"
442 Identifier "Screen1"
443 Device "ati-internal"
444 Monitor "Westinghouse"
445 DefaultDepth 16
446
447 Subsection "Display"
448 Depth 8
449 Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
450 ViewPort 0 0
451 EndSubsection
452 Subsection "Display"
453 Depth 16
454 Modes "1400x1050" "1300x1024" "1280x1024"
455 ViewPort 0 0
456 EndSubsection
457 Subsection "Display"
458 Depth 24
459 Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
460 ViewPort 0 0
461 EndSubsection
462 EndSection
463
464 # **********************************************************************
465 # ServerLayout sections.
466 # **********************************************************************
467
468 # Any number of ServerLayout sections may be present. Each describes
469 # the way multiple screens are organised. A specific ServerLayout
470 # section may be specified from the X server command line with the
471 # "-layout" option. In the absence of this, the first section is used.
472 # When now ServerLayout section is present, the first Screen section
473 # is used alone.
474
475 Section "ServerLayout"
476
477 # The Identifier line must be present
478 Identifier "Simple Layout"
479
480 # Each Screen line specifies a Screen section name, and optionally
481 # the relative position of other screens. The four names after
482 # primary screen name are the screens to the top, bottom, left and right
483 # of the primary screen. In this example, screen 2 is located to the
484 # right of screen 1.
485
486 Screen "Screen1"
487
488 # Each InputDevice line specifies an InputDevice section name and
489 # optionally some options to specify the way the device is to be
490 # used. Those options include "CorePointer", "CoreKeyboard" and
491 # "SendCoreEvents".
492
493 InputDevice "Mouse1" "CorePointer"
494 InputDevice "Keyboard1" "CoreKeyboard"
495
496 EndSection
497
498 # Section "DRI"
499 # Mode 0666
500 # EndSection
501
502
503
504
505 --
506 Kevin O'Gorman, PhD
507 --
508 gentoo-user@g.o mailing list