On 1/19/07, Kevin Williams <[EMAIL PROTECTED]> wrote:
>
> I have SuSE 10.2, gentoo and BLFS installed on my laptop. While SuSE and
> gentoo (and others like Mandriva, Kororaa....) setup the keyboard to behave
> the way it should, I just can't get it do the same in BLFS.
>
> These are the problems I'm facing with the keyboard.
>
> 1)  Ctrl+C and Ctrl+Z do not work while in single user mode. But these key
>      combinations do work in other runlevels

You mean single user mode on the linux console correct? I'm not sure
why this wouldn't work. Single-user enters a shell through sulogin.
According to sulogin(8), /etc/profile is not read in this setting. In
that way, you wouldn't get the INPUTRC settings. Possibly, this is
causing problems. But the console script is run, so I don't know. This
is not my area of expertise. I don't spend much time on the console.

> 2)  Ctrl+Alt+Fn combination doesn't work when the kdm login screen is
>      displayed !! The only way I can use Ctrl+Alt+Fn is either to login into
>      kde or select "Console Login" from the drop down menu and thus terminate
>      kdm session. While in other runlevels, these key combinations work
>      without a hitch !

When kdm is running, X has taken over, so settings for the console
have no effect. Keyboards are managed by XKB at that point. It's very
possible that kdm is blocking the effect of these keys and the
"Console Login" button is the way they want you to switch VTs. Maybe
the other distros patch out this behavior. I'm guessing here.

> The only possible explanation I could think of - there exists a
> keyword/variable/setting which is screwing up the setting thus, overriding
> the normal kbd behaviour. I just don't where to look now ! My guess is that,
> it could be one of the settings in login.defs or inputrc or I dunno !!
>
> Can somebody help in this regard ? Or, point me at something useful ??

Here's an old, but still relevant, guide to XKB. Remember that X has
it's own input handling routines and that once it starts, settings
applied to the Linux console have no effect.

http://www.xfree86.org/current/XKB-Config.html

> It definitely would prove helpful, if someone could brief me on how the keymap
> is setup during the boot process. I don't know if the kernel has to do
> anything with the keymap ! But, I've tried booting with kernels from SuSE and
> gentoo... ! If it is not the kernel then, it must be in the userland ,
> right ?  Just what is it that screwing up the default behaviour ?

Alexander is the guy you'd want to talk to here. The console/kbd is
voodoo to me. But, if you read through /etc/rc.d/init.d/console, you
can start to put together the process. And, yes, the console behavior
is closely tied to the kernel.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to