On Thu, Jul 15, 2004 at 10:35:57PM +0530, M.Balakrishna Pillai wrote: > On Wed, Jul 14, 2004 at 06:32:12PM +0530, H S Rai wrote: > > I work on exported graphics display using "X -query". A number of > > times network fails (due to frequent power cuts), and `Graphics > > Display' gets dimmed and that don't permit me to do any action. I > > cannot use `ctrl+alt + F1' to come to virtual console. I can only do > > `ctrl+alt+del' to reboot system. To avoid rebooting in this way, I > > want an action equivalent to `ctrl+alt + F1' on `ctrl+alt+del'. How I > > can achieve this? > > > > exit /etc/inittab > replace the line > ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now > with > ca:12345:ctrlaltdel:/usr/bin/chvt 1 > > replace /usr/bin/chvt with the correct path of chvt > the 1 stands for `ctrl+alt + F1' for `ctrl+alt + F2' make it 2 > > save the file and issue the command `init q'. > > for more information 'man chvt' and 'man inittab' >
AFAIK, 'chvt 6' would take me to tty6. This would work on console, but under X the VT_ACTIVATE function is nullified, and it may not work. Normally, Ctrl-Alt-Lt-Arrow would take you from tty(N) to tty(N-1) and converse for Ctrl-Alt-Rt-Arrow. But these would not work under X terminal. Some WMs trap these key function to switch windows. Secondly, even if it works, pressing Ctrl-Alt-Del under tty would also take him to tty N as defined in inittab. HSR, just confirm if you can kill X with Ctrl-Alt-BkSpc ? Or does diverting ctrlaltdel to 'killall xinit' in inittab help ? This would have no effect if not in X. Just a suggestion ... Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Viewing part of a file LOST #199 To see the last 10 lines of a long file, use "tail filename". To see the first 10 lines, use "head filename". ####[genesis (at) istar.ca]################################### : ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
