List Info

Thread: keyboard does not work in kernel space




keyboard does not work in kernel space
user name
2006-05-10 16:41:17
Hi all!

I just got a new Inspiron 9400 laptop and was trying to do
full disk 
encryption with GEOM ELI. Everything seems to be working
fine now, 
except that the keyboard does not seem to work in kernel
space so that 
when my USB boot stick asks me for the passphrase of my
internal hard 
drive, I cannot enter anything. I know this is not specific
to GEOM ELI, 
since I was messing around with my USB pendrive and forgot
to specify a 
root device, which the kernel prompted me for the root
device and I had 
exactly the same problem: the keyboard did not work.

When I change the root device to my pen drive it boots to
the login 
prompt (user space), and the keyboard works fine at that
moment.

Is this problem familiar to anybody? Is there any way to
solve it?

Thanks in advance,
Sebastiaan
_______________________________________________
freebsd-mobilefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
keyboard does not work in kernel space
user name
2006-05-10 17:20:37
Sebastiaan van Erk wrote:
> Hi all!
> 
> I just got a new Inspiron 9400 laptop and was trying to
do full disk 
> encryption with GEOM ELI. Everything seems to be
working fine now, 
> except that the keyboard does not seem to work in
kernel space so that 
> when my USB boot stick asks me for the passphrase of my
internal hard 
> drive, I cannot enter anything. I know this is not
specific to GEOM ELI, 
> since I was messing around with my USB pendrive and
forgot to specify a 
> root device, which the kernel prompted me for the root
device and I had 
> exactly the same problem: the keyboard did not work.

known issue. kbdmux(4) + atkbd(4) does not currently work in
"kernel" 
space. the reason is because atkbd(4) does not seem to deal
with 
"polled" mode correctly.

in "kernel" space interrupts are disabled and
the keyboard has to be 
polled for characters. kbdmux(4) expects low level keyboard
driver to 
deal with it. ukbd(4) driver does that, atkbd(4) does not.

> When I change the root device to my pen drive it boots
to the login 
> prompt (user space), and the keyboard works fine at
that moment.
> 
> Is this problem familiar to anybody? Is there any way
to solve it?

1) disable kbdmux(4)

or

2) use ukbd(4) (usb) keyboard

i'm looking into this, but due to limited time i can not
provide eta.

thanks,
max
_______________________________________________
freebsd-mobilefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
keyboard does not work in kernel space
user name
2006-05-10 17:22:35
Hi,

It's a known problem. I reported it to Maksim Yevmenkin
(author of kbdmux),
who confirmed it.

Workaround is to disable GEOM_ELI in your kernel, make sure
you don't
load it in loader.conf either, and instead add the
disk/slice you want
to attach to in geli_devices in /etc/rc.conf. Then you'll
be asked to
enter the passphrase from userland, which will be fine.

On Wed, May 10, 2006 at 06:41:17PM +0200, Sebastiaan van Erk
wrote:
> I just got a new Inspiron 9400 laptop and was trying to
do full disk 
> encryption with GEOM ELI. Everything seems to be
working fine now, 
> except that the keyboard does not seem to work in
kernel space so that 
> when my USB boot stick asks me for the passphrase of my
internal hard 
> drive, I cannot enter anything. I know this is not
specific to GEOM ELI, 
> since I was messing around with my USB pendrive and
forgot to specify a 
> root device, which the kernel prompted me for the root
device and I had 
> exactly the same problem: the keyboard did not work.
> 
> When I change the root device to my pen drive it boots
to the login 
> prompt (user space), and the keyboard works fine at
that moment.
> 
> Is this problem familiar to anybody? Is there any way
to solve it?
> 
> Thanks in advance,
> Sebastiaan
> _______________________________________________
> freebsd-mobilefreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

> To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"


-- 
Anders.
_______________________________________________
freebsd-mobilefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
keyboard does not work in kernel space
user name
2006-05-10 17:53:41
Hi,

Thanks for the reply, I'll disable kbdmux, I take it there
are no 
problems with this since I use only one keyboard anyway...

Regards,
Sebastiaan

Maksim Yevmenkin wrote:
> Sebastiaan van Erk wrote:
>> Hi all!
>>
>> I just got a new Inspiron 9400 laptop and was
trying to do full disk 
>> encryption with GEOM ELI. Everything seems to be
working fine now, 
>> except that the keyboard does not seem to work in
kernel space so 
>> that when my USB boot stick asks me for the
passphrase of my internal 
>> hard drive, I cannot enter anything. I know this is
not specific to 
>> GEOM ELI, since I was messing around with my USB
pendrive and forgot 
>> to specify a root device, which the kernel prompted
me for the root 
>> device and I had exactly the same problem: the
keyboard did not work.
>
> known issue. kbdmux(4) + atkbd(4) does not currently
work in "kernel" 
> space. the reason is because atkbd(4) does not seem to
deal with 
> "polled" mode correctly.
>
> in "kernel" space interrupts are disabled
and the keyboard has to be 
> polled for characters. kbdmux(4) expects low level
keyboard driver to 
> deal with it. ukbd(4) driver does that, atkbd(4) does
not.
>
>> When I change the root device to my pen drive it
boots to the login 
>> prompt (user space), and the keyboard works fine at
that moment.
>>
>> Is this problem familiar to anybody? Is there any
way to solve it?
>
> 1) disable kbdmux(4)
>
> or
>
> 2) use ukbd(4) (usb) keyboard
>
> i'm looking into this, but due to limited time i can
not provide eta.
>
> thanks,
> max
_______________________________________________
freebsd-mobilefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
keyboard does not work in kernel space
user name
2006-05-10 17:55:12
Thanks for the reply!

Since I'm using full disk encryption and booting from a USB
stick this 
is not really an option for me. The ENTIRE freebsd system
(root + swap + 
user partitions) is on the encrypted device, which I want
attached from 
the kernel. I'll disable kbdmux though, don't think I'll
be needing that 
one (I hope).

Regards
Sebastiaan

Anders Nordby wrote:
> Hi,
>
> It's a known problem. I reported it to Maksim
Yevmenkin (author of kbdmux),
> who confirmed it.
>
> Workaround is to disable GEOM_ELI in your kernel, make
sure you don't
> load it in loader.conf either, and instead add the
disk/slice you want
> to attach to in geli_devices in /etc/rc.conf. Then
you'll be asked to
> enter the passphrase from userland, which will be fine.
>
> On Wed, May 10, 2006 at 06:41:17PM +0200, Sebastiaan
van Erk wrote:
>   
>> I just got a new Inspiron 9400 laptop and was
trying to do full disk 
>> encryption with GEOM ELI. Everything seems to be
working fine now, 
>> except that the keyboard does not seem to work in
kernel space so that 
>> when my USB boot stick asks me for the passphrase
of my internal hard 
>> drive, I cannot enter anything. I know this is not
specific to GEOM ELI, 
>> since I was messing around with my USB pendrive and
forgot to specify a 
>> root device, which the kernel prompted me for the
root device and I had 
>> exactly the same problem: the keyboard did not
work.
>>
>> When I change the root device to my pen drive it
boots to the login 
>> prompt (user space), and the keyboard works fine at
that moment.
>>
>> Is this problem familiar to anybody? Is there any
way to solve it?
>>
>> Thanks in advance,
>> Sebastiaan
>> _______________________________________________
>> freebsd-mobilefreebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

>> To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
>>     
>
>
>   
_______________________________________________
freebsd-mobilefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
keyboard does not work in kernel space
user name
2006-05-10 18:20:09
On 5/10/06, Maksim Yevmenkin <maksim.yevmenkinsavvis.net> wrote:
> Sebastiaan van Erk wrote:
> > Hi all!
> >
> > I just got a new Inspiron 9400 laptop and was
trying to do full disk
> > encryption with GEOM ELI. Everything seems to be
working fine now,
> > except that the keyboard does not seem to work in
kernel space so that
> > when my USB boot stick asks me for the passphrase
of my internal hard
> > drive, I cannot enter anything. I know this is not
specific to GEOM ELI,
> > since I was messing around with my USB pendrive
and forgot to specify a
> > root device, which the kernel prompted me for the
root device and I had
> > exactly the same problem: the keyboard did not
work.
>
> known issue. kbdmux(4) + atkbd(4) does not currently
work in "kernel"
> space. the reason is because atkbd(4) does not seem to
deal with
> "polled" mode correctly.
>
> in "kernel" space interrupts are disabled
and the keyboard has to be
> polled for characters. kbdmux(4) expects low level
keyboard driver to
> deal with it. ukbd(4) driver does that, atkbd(4) does
not.
>
> > When I change the root device to my pen drive it
boots to the login
> > prompt (user space), and the keyboard works fine
at that moment.
> >
> > Is this problem familiar to anybody? Is there any
way to solve it?
>
> 1) disable kbdmux(4)
>
> or
>
> 2) use ukbd(4) (usb) keyboard
>
> i'm looking into this, but due to limited time i can
not provide eta.

Since we have kbdmux turned on as default in 6.1R, could we
have
an ERRATA entry for this? So people will be warned about
this.

As for me, I turned off kbdmux for all boxes that I might
need break
into debugger.

Thanks,
Rong-En Fan
_______________________________________________
freebsd-mobilefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

To unsubscribe, send any mail to
"freebsd-mobile-unsubscribefreebsd.org"
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )