From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1M7bdj-0007jN-CE for garchives@archives.gentoo.org; Fri, 22 May 2009 20:46:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7F94E0499; Fri, 22 May 2009 20:46:49 +0000 (UTC) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by pigeon.gentoo.org (Postfix) with ESMTP id 9ED2CE0499 for ; Fri, 22 May 2009 20:46:49 +0000 (UTC) Received: by gxk24 with SMTP id 24so125797gxk.10 for ; Fri, 22 May 2009 13:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2QlBQ+M/bbh+RR6xIkefc6ZSSZuwmxShmq6uB5GkV1Y=; b=NUpPTvhQkgmu9oQG0GaCDraQ8XmjM8hNylWMb9XkGSrhDUZVTHH+ijeFS+9TNL6E5V ScI9IYmmvZo5ALuwCWhatUQYjYoAyWOmid9T1sFSsejRPnue1vJRPXLFPGKUDNfKdBTd aQ9Lize3xPkz2bz9otuMqJXjWPKkDN3u19/7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=QhQzZ5+m8hJKMFd1Aqjb7O1a/HVojDMyzmtw3Hq6yDY1c1vP9m5/rWeJ81cAEUul7c 47ETlKo0NCFnSfAgHi6xkFD78rj+5lTFFhxUfomidNRNBPTWwmi2Voj9PNRf3PrZKzMj ZrznRDTPTYpNZToDSQvNG6OtWrxqYHZVADPhM= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.151.128.3 with SMTP id f3mr8354391ybn.156.1243025208964; Fri, 22 May 2009 13:46:48 -0700 (PDT) In-Reply-To: <200905222154.43057.alan.mckinnon@gmail.com> References: <5bdc1c8b0905221126v6396597fq51993b0a0769e697@mail.gmail.com> <4A16F845.7070609@genestate.com> <5bdc1c8b0905221219v577413b4mbb656b122fdb3232@mail.gmail.com> <200905222154.43057.alan.mckinnon@gmail.com> Date: Fri, 22 May 2009 13:46:48 -0700 Message-ID: <5bdc1c8b0905221346t3bcbae13p7240f5c20c107b57@mail.gmail.com> Subject: Re: [gentoo-user] Is starting xdm enough to see something in X? From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 39b446bb-ad74-4d9f-918e-445017049859 X-Archives-Hash: 7f4a6a01ccb014174dba7a64ceb8da3c On Fri, May 22, 2009 at 12:54 PM, Alan McKinnon w= rote: > On Friday 22 May 2009 21:19:40 Mark Knecht wrote: >> On Fri, May 22, 2009 at 12:08 PM, Matt Harrison >> >> wrote: >> > Mark Knecht wrote: >> >> On Fri, May 22, 2009 at 11:49 AM, bn wrote: >> >>> Mark Knecht ha scritto: >> >>>> Title sort of says it. I have an old machine that I'm setting up as= a >> >>>> Myth server. I didn't want X on the machine but I'm having trouble = so >> >>>> I emerged xdm and start it using /etc/init.d/xdm start. The =C2=A0d= rivers >> >>>> get loaded but I get a black screen. No error message in the X log >> >>>> file. >> >>>> >> >>>> I haven't messed with X at this level before. What's the minimum te= st >> >>>> of X that would display a terminal or something very basic? >> >>> >> >>> Have you tried >> >>> >> >>> startx /usr/bin/xterm >> >> >> >> Yes. Same black screen. Nothing else going on. The processes show up >> >> in ps aux, X as root, xterm as me. >> > >> > I've found before that if everything seems to be running (can list X >> > processes and logs look fine) but you still don't see anything, it's >> > possible it is your monitor. I used to use a really old 15" CRT for a >> > server but it just wouldn't run X at anything over 640x480. Modern >> > monitors will at least tell you if the resolution/refresh is out of >> > limits, but older ones don't often. Try with a different monitor if th= at >> > one is old or suspect. >> > >> > ~Matt >> >> Good point. I'll hook the machine up to a very good monitor later today. >> Thanks. > > You need to run an X-server, not the one that is displaying xdm because t= hat > will only run xdm and once you authenticate will launch an entirely diffe= rent > session. Either launch the failsafe session, it gives you twm on gentoo w= ith a > single xterm, or ditch xdm and run startx. > > You can also run xinit (startx is a wrapper script around xinit that laun= ches > user-defined apps) and that gives you plain X without a window manager so= you > need to put at least xterm into .xinitrc > >> One question about this X stuff. Is there any difference at all at the >> application level if I run an app displaying on the monitor of that >> machine, or use ssh -X -Y -C and run the app displaying on a remote >> machine? > > No difference whatsoever for basic apps. X is network transparent, meanin= g > that the X client reads and writes a Unix socket, TCP socket, or whatever= else > you can dream up. However, I'm sure you will find that recent fancy stuff= like > compiz and OpenGL don't work as expected. > >> If there is absolutely no difference then I don't need to bother with >> this. If there is then I do. The real issue here is that Myth doesn't >> work. If I can be certain that displaying Myth apps on a remote >> screen, such as mythtv-setup or mythfrontend, is really the same then >> I'll just do that. However those apps are currently failing so I'm >> trying to eliminate issues, and possibly creating one I don't care >> about in doing that! > > Running X apps locally locally tests your X libs and your X server. > Running X apps remotely tests the X libs > Thanks Alan, OK, I switched to a known good monitor, left xdm turned off and used startx at my command line. I see all the right stuff in ps but still no video, and it seems that I've lost control of my keyboard as I cannot use Alt-Ctrl-F2 to get to another console. (The machine currently doesn't have a mouse) MacMini ~ # ps aux | grep x mark 4643 0.0 0.2 3324 1348 tty1 S+ 13:24 0:00 /bin/sh /usr/bin/startx mark 4659 0.0 0.2 3680 1104 tty1 S+ 13:24 0:00 xinit /etc/X11/xinit/xinitrc -- -nolisten tcp -br -auth /home/mark/.serverauth.4643 -deferglyphs 16 mark 4679 0.0 0.6 8216 3252 tty1 S 13:24 0:00 xterm -geometry 80x66+0+0 -name login mark 4694 0.0 0.6 8376 3488 tty1 S 13:24 0:00 xclock -geometry 50x50-1+1 mark 4695 0.0 0.6 8208 3252 tty1 S 13:24 0:00 xterm -geometry 80x50+494+51 mark 4696 0.0 0.6 8196 3236 tty1 S 13:24 0:00 xterm -geometry 80x20+494-0 root 4735 0.0 0.1 2840 1020 pts/3 R+ 13:26 0:00 ps aux root 4736 0.0 0.1 2060 580 pts/3 R+ 13:26 0:00 grep --colour=3Dauto x MacMini ~ # If I use top in a terminal and kill startx and xinit then I get back to my login console. Possibly xorg-server-1.5 isn't compatible with a 2.6.24 kernel? Maybe I should move this to the Power PC group. Likely I'll find someone there with direct experience. Still, I appreciate the wider audience of gentoo-user. - Mark