Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269731AbUISCct (ORCPT ); Sat, 18 Sep 2004 22:32:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269729AbUISCcs (ORCPT ); Sat, 18 Sep 2004 22:32:48 -0400 Received: from pimout5-ext.prodigy.net ([207.115.63.73]:31680 "EHLO pimout5-ext.prodigy.net") by vger.kernel.org with ESMTP id S269731AbUISCcq (ORCPT ); Sat, 18 Sep 2004 22:32:46 -0400 Date: Sat, 18 Sep 2004 22:32:43 -0400 (EDT) From: Vladimir Dergachev X-X-Sender: volodya@node2.an-vo.com Reply-To: Vladimir Dergachev To: Jon Smirl cc: dri-devel , lkml Subject: Re: Design for setting video modes, ownership of sysfs attributes In-Reply-To: <9e4733910409181916446719b8@mail.gmail.com> Message-ID: References: <9e47339104091815125ef78738@mail.gmail.com> <9e47339104091817545b3d2675@mail.gmail.com> <9e4733910409181916446719b8@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1207 Lines: 35 On Sat, 18 Sep 2004, Jon Smirl wrote: > You did that from an xterm, right? Which console device is the xterm running on? Yes. I thought /dev/pts/1 was a console - much like regular tty or a serial port. > > X starts up a process that knows which device it is running and it can > remember that device since X stays running. > > Maybe the answer is that this is something for the VC layer since the > VC layer stays running and knows what device it was started on. An > escape sequence could query the device from the VC terminal emulator. > > Is there some way to figure this out from the environment? Well, there is a DISPLAY variable which you likely knew about. Otherwise there does not seem to be anything else console specific. Btw, completely unrelated, but I found that that I have WINDOW_MANAGER=metacity set. Not sure how I got it, but I am running KDE. best Vladimir Dergachev - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/