[Qt-interest] changing default ctrl+alt+Fn behaviour
Colin S. Miller
no-spam-thank-you at csmiller.demon.co.uk
Fri Nov 20 12:26:22 CET 2009
Colin S. Miller wrote:
> linux newbie wrote:
>> Hi,
>>
>> I am running Qt in embedded ARM platform. I invoked Qt_test -qws
>> application from tty1 and on pressing ctrl+alt+F2 key, by default it
>> switches to tty2. Is it possible to change this behaviour. I do have
>> event filter in my test application, but on pressing Ctrl+Alt+F2 key,
>> it seems that event filter is not called.
>>
> I think it is the init process that catches these.
> Have a look at /etc/initrc or /etc/init.d/*
Oops, its not in those files.
Instead,
edit /etc/inittab
and remove these lines
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
They control which runlevels (second column) have a text
console on ctrl+alt+Fx where x is the first column
You'll probably have to reboot for the changes to take effect.
I'm not sure how X decides what virtual console it uses.
/etc/inittab says
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
so its probably in another config file.
HTH,
Colin S. Miller
>
> HTH,
> Colin S. Miller
More information about the Qt-interest-old
mailing list