You are not logged in.

#1 2011-06-26 16:27:54

Touba
Member
Registered: 2009-11-03
Posts: 19

Is it possible to change Xorg server to VT1?

Hello, right now I'm starting in runlevel 5 autologin using /bin/login to go directly to the graphical desktop. My Xorg server is running in VT7 and I'm wondering if it could be changed to run in VT1, because when I restart or shutdown I'm dropped to the first VT while the shutdown text is being displayed in VT7.

Offline

#2 2011-06-26 16:42:54

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Is it possible to change Xorg server to VT1?

Have a look at /etc/inittab, I think this is what you're looking for.

Offline

#3 2011-06-26 16:53:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Is it possible to change Xorg server to VT1?

https://wiki.archlinux.org/index.php/Start_X_at_Boot
Try changing 'exec xinit -- /usr/bin/X -nolisten tcp vt7' to 'exec xinit -- /usr/bin/X -nolisten tcp vt1'.

Offline

#4 2011-06-26 18:32:51

Touba
Member
Registered: 2009-11-03
Posts: 19

Re: Is it possible to change Xorg server to VT1?

Thank you for your answers the_isz and karol. I've looked into the inittab file, if it's there where it can be changed I have no clue on how.

I've just tried what karol suggests, even though the X11 server is running in the first VT it's not using the .xinitrc file or something as the session doesn't seem to be registered in ConsoleKit (e.g. I can't reboot the computer as a normal user).

Right now I'm starting the X server this way:

# Start X if running in runlevel 5:
if [[ -z $DISPLAY && $(tty) = /dev/tty1 && `runlevel | cut -c3` = 5 ]]; then
    startx &> /dev/null
fi

So that any login from a different TTY or other runlevel other than 5 would produce a terminal login.

In my xinitrc file the exec line looks like this:

exec ck-launch-session dbus-launch gnome-session

Offline

#5 2011-06-26 18:42:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Is it possible to change Xorg server to VT1?

In //etc/iniitab, you might try commenting out the line

c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux

I've not tried this -- there may be repercussions.  Let us know wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2011-06-26 21:16:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Is it possible to change Xorg server to VT1?

You can use your .xinitrc like this

xinit /home/karol/.xinitrc -- /usr/bin/X -nolisten tcp vt1

Offline

Board footer

Powered by FluxBB