1 |
On Fri, May 22, 2009 at 12:54 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
2 |
> On Friday 22 May 2009 21:19:40 Mark Knecht wrote: |
3 |
>> On Fri, May 22, 2009 at 12:08 PM, Matt Harrison |
4 |
>> |
5 |
>> <iwasinnamuknow@×××××××××.com> wrote: |
6 |
>> > Mark Knecht wrote: |
7 |
>> >> On Fri, May 22, 2009 at 11:49 AM, bn <brullonulla@×××××.com> wrote: |
8 |
>> >>> Mark Knecht ha scritto: |
9 |
>> >>>> Title sort of says it. I have an old machine that I'm setting up as a |
10 |
>> >>>> Myth server. I didn't want X on the machine but I'm having trouble so |
11 |
>> >>>> I emerged xdm and start it using /etc/init.d/xdm start. The drivers |
12 |
>> >>>> get loaded but I get a black screen. No error message in the X log |
13 |
>> >>>> file. |
14 |
>> >>>> |
15 |
>> >>>> I haven't messed with X at this level before. What's the minimum test |
16 |
>> >>>> of X that would display a terminal or something very basic? |
17 |
>> >>> |
18 |
>> >>> Have you tried |
19 |
>> >>> |
20 |
>> >>> startx /usr/bin/xterm |
21 |
>> >> |
22 |
>> >> Yes. Same black screen. Nothing else going on. The processes show up |
23 |
>> >> in ps aux, X as root, xterm as me. |
24 |
>> > |
25 |
>> > I've found before that if everything seems to be running (can list X |
26 |
>> > processes and logs look fine) but you still don't see anything, it's |
27 |
>> > possible it is your monitor. I used to use a really old 15" CRT for a |
28 |
>> > server but it just wouldn't run X at anything over 640x480. Modern |
29 |
>> > monitors will at least tell you if the resolution/refresh is out of |
30 |
>> > limits, but older ones don't often. Try with a different monitor if that |
31 |
>> > one is old or suspect. |
32 |
>> > |
33 |
>> > ~Matt |
34 |
>> |
35 |
>> Good point. I'll hook the machine up to a very good monitor later today. |
36 |
>> Thanks. |
37 |
> |
38 |
> You need to run an X-server, not the one that is displaying xdm because that |
39 |
> will only run xdm and once you authenticate will launch an entirely different |
40 |
> session. Either launch the failsafe session, it gives you twm on gentoo with a |
41 |
> single xterm, or ditch xdm and run startx. |
42 |
> |
43 |
> You can also run xinit (startx is a wrapper script around xinit that launches |
44 |
> user-defined apps) and that gives you plain X without a window manager so you |
45 |
> need to put at least xterm into .xinitrc |
46 |
> |
47 |
>> One question about this X stuff. Is there any difference at all at the |
48 |
>> application level if I run an app displaying on the monitor of that |
49 |
>> machine, or use ssh -X -Y -C and run the app displaying on a remote |
50 |
>> machine? |
51 |
> |
52 |
> No difference whatsoever for basic apps. X is network transparent, meaning |
53 |
> that the X client reads and writes a Unix socket, TCP socket, or whatever else |
54 |
> you can dream up. However, I'm sure you will find that recent fancy stuff like |
55 |
> compiz and OpenGL don't work as expected. |
56 |
> |
57 |
>> If there is absolutely no difference then I don't need to bother with |
58 |
>> this. If there is then I do. The real issue here is that Myth doesn't |
59 |
>> work. If I can be certain that displaying Myth apps on a remote |
60 |
>> screen, such as mythtv-setup or mythfrontend, is really the same then |
61 |
>> I'll just do that. However those apps are currently failing so I'm |
62 |
>> trying to eliminate issues, and possibly creating one I don't care |
63 |
>> about in doing that! |
64 |
> |
65 |
> Running X apps locally locally tests your X libs and your X server. |
66 |
> Running X apps remotely tests the X libs |
67 |
> |
68 |
|
69 |
Thanks Alan, |
70 |
OK, I switched to a known good monitor, left xdm turned off and |
71 |
used startx at my command line. I see all the right stuff in ps but |
72 |
still no video, and it seems that I've lost control of my keyboard as |
73 |
I cannot use Alt-Ctrl-F2 to get to another console. (The machine |
74 |
currently doesn't have a mouse) |
75 |
|
76 |
MacMini ~ # ps aux | grep x |
77 |
<SNIP> |
78 |
mark 4643 0.0 0.2 3324 1348 tty1 S+ 13:24 0:00 |
79 |
/bin/sh /usr/bin/startx |
80 |
mark 4659 0.0 0.2 3680 1104 tty1 S+ 13:24 0:00 xinit |
81 |
/etc/X11/xinit/xinitrc -- -nolisten tcp -br -auth |
82 |
/home/mark/.serverauth.4643 -deferglyphs 16 |
83 |
mark 4679 0.0 0.6 8216 3252 tty1 S 13:24 0:00 xterm |
84 |
-geometry 80x66+0+0 -name login |
85 |
mark 4694 0.0 0.6 8376 3488 tty1 S 13:24 0:00 |
86 |
xclock -geometry 50x50-1+1 |
87 |
mark 4695 0.0 0.6 8208 3252 tty1 S 13:24 0:00 xterm |
88 |
-geometry 80x50+494+51 |
89 |
mark 4696 0.0 0.6 8196 3236 tty1 S 13:24 0:00 xterm |
90 |
-geometry 80x20+494-0 |
91 |
root 4735 0.0 0.1 2840 1020 pts/3 R+ 13:26 0:00 ps aux |
92 |
root 4736 0.0 0.1 2060 580 pts/3 R+ 13:26 0:00 grep |
93 |
--colour=auto x |
94 |
MacMini ~ # |
95 |
|
96 |
If I use top in a terminal and kill startx and xinit then I get back |
97 |
to my login console. |
98 |
|
99 |
Possibly xorg-server-1.5 isn't compatible with a 2.6.24 kernel? |
100 |
|
101 |
Maybe I should move this to the Power PC group. Likely I'll find |
102 |
someone there with direct experience. Still, I appreciate the wider |
103 |
audience of gentoo-user. |
104 |
|
105 |
- Mark |