Path: utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!perelandra.austin.ibm.com!ransom From: ransom@perelandra.austin.ibm.com Newsgroups: comp.unix.aix Subject: Re: X & AIX Summary: Need to switch console Message-ID: <4794@awdprime.UUCP> Date: 15 Jan 91 14:55:30 GMT References: <829@nih-csl.nih.gov> Sender: news@awdprime.UUCP Followup-To: ransom@bissell.austin.ibm.com Organization: Internation Business Machines - Austin, TX Lines: 19 I start X on my console when I login. To do this you need to use swcons to change the console. In my .xinitrc file, I check to see if I am on the console (in my case xinit passes as the first parameter to .xinitrc whether or not I am on the console). If X is being started on the console, then the .xinitrc creates an aixterm that runs this small shell script: swcons 'tty' exec $SHELL exit 0 This swaps the console to the aixterm and runs your shell. Now, I also changed my .mwmrc to use kill 0 to kill X and in the .profile, you need to run swcons before starting X. This will clean up the console when you log back in. Also the .profile should be changed to only run X if the user is on the graphics head. Jeff Peek AIX Operating System Architecture -- IBM Advanced Workstation Division ransom@bissell.austin.ibm.com Austin, TX