public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Bootloader hangs without a keyboard
@ 2018-04-07 23:18 Marc Joliet
  2018-04-08  0:18 ` mad.scientist.at.large
  2018-04-08 11:35 ` Wols Lists
  0 siblings, 2 replies; 13+ messages in thread
From: Marc Joliet @ 2018-04-07 23:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

Hi list

I have a bit of a weird issue.  I recently acquired a used server (Fujitsu 
Primergy TX140 S1) via a friend of mine.  I have Gentoo installed on it now 
and overall it works fine save for one perplexing issue [0]: The bootloader 
hangs when booting without a keyboard attached.  I tried it with both GRUB and 
systemd-boot (which works nicely in combination with kernel-install); both 
only work with a keyboard attached.  GRUB hangs when the countdown starts, 
while systemd-boot hangs when the cursor first appears, but before the boot 
entries are listed.  In both cases the cursor freezes.

I'm curious if anybody has seen this issue before and/or has any idea how to 
solve it.  The only resources I could find online that seem related are [1] 
(different OS, no resolution, hints at BIOS), [2] (which provides a potential 
solution, though I'm not sure whether I can actually implement it), and [3] 
(the patch didn't help).  There was also a related systemd bug at [4].

I updated the BIOS, but that helped as much as anticipated, that is, not at 
all (it was at the penultimate version already).  I also tried unplugging the 
display in case the BIOS was expecting a keyboard then.

Any help is much appreciated.

[0] Well, there's a second one, too, but I'll have to see if it shows up 
again.
[1] https://unix.stackexchange.com/questions/66696/nas4free-freebsd-wont-make-it-past-bootloader-without-keyboard
[2] https://www.linuxquestions.org/questions/linux-newbie-8/os-cannot-be-loaded-without-keyboard-because-of-grub-805350/
[3] https://bugs.archlinux.org/task/44923
[4] https://github.com/systemd/systemd/pull/3735

Greetings
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-07 23:18 [gentoo-user] Bootloader hangs without a keyboard Marc Joliet
@ 2018-04-08  0:18 ` mad.scientist.at.large
  2018-04-08 12:11   ` Marc Joliet
  2018-04-08 11:35 ` Wols Lists
  1 sibling, 1 reply; 13+ messages in thread
From: mad.scientist.at.large @ 2018-04-08  0:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2868 bytes --]

The obvious solution is to leave a keyboard attached, OR make the computer think so with one of the adapters that let you use ps/2 peripherals on a machine that only has usb.  They always show up as a keyboard and mouse to the computer, even if only the adapter is plugged in.  They have them on ebay etc., from $1 up.
mad.scientist.at.large (a good madscientist)
--
God bless the rich, the greedy and the corrupt politicians they have put into office.   God bless them for helping me do the right thing by giving the rich my little pile of cash.  After all, the rich know what to do with money.


7. Apr 2018 17:18 by marcec@gmx.de <mailto:marcec@gmx.de>:


> Hi list
>
> I have a bit of a weird issue.  I recently acquired a used server (Fujitsu 
> Primergy TX140 S1) via a friend of mine.  I have Gentoo installed on it now 
> and overall it works fine save for one perplexing issue [0]: The bootloader 
> hangs when booting without a keyboard attached.  I tried it with both GRUB and 
> systemd-boot (which works nicely in combination with kernel-install); both 
> only work with a keyboard attached.  GRUB hangs when the countdown starts, 
> while systemd-boot hangs when the cursor first appears, but before the boot 
> entries are listed.  In both cases the cursor freezes.
>
> I'm curious if anybody has seen this issue before and/or has any idea how to 
> solve it.  The only resources I could find online that seem related are [1] 
> (different OS, no resolution, hints at BIOS), [2] (which provides a potential 
> solution, though I'm not sure whether I can actually implement it), and [3] 
> (the patch didn't help).  There was also a related systemd bug at [4].
>
> I updated the BIOS, but that helped as much as anticipated, that is, not at 
> all (it was at the penultimate version already).  I also tried unplugging the 
> display in case the BIOS was expecting a keyboard then.
>
> Any help is much appreciated.
>
> [0] Well, there's a second one, too, but I'll have to see if it shows up 
> again.
> [1] > https://unix.stackexchange.com/questions/66696/nas4free-freebsd-wont-make-it-past-bootloader-without-keyboard <https://unix.stackexchange.com/questions/66696/nas4free-freebsd-wont-make-it-past-bootloader-without-keyboard>
> [2] > https://www.linuxquestions.org/questions/linux-newbie-8/os-cannot-be-loaded-without-keyboard-because-of-grub-805350 <https://www.linuxquestions.org/questions/linux-newbie-8/os-cannot-be-loaded-without-keyboard-because-of-grub-805350/>
> [3] > https://bugs.archlinux.org/task/44923 <https://bugs.archlinux.org/task/44923>
> [4] > https://github.com/systemd/systemd/pull/3735 <https://github.com/systemd/systemd/pull/3735>
>
> Greetings
> -- 
> Marc Joliet
> --
> "People who think they know everything really annoy those of us who know we
> don't" - Bjarne Stroustrup

[-- Attachment #2: Type: text/html, Size: 3522 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-07 23:18 [gentoo-user] Bootloader hangs without a keyboard Marc Joliet
  2018-04-08  0:18 ` mad.scientist.at.large
@ 2018-04-08 11:35 ` Wols Lists
  2018-04-08 12:48   ` Marc Joliet
  1 sibling, 1 reply; 13+ messages in thread
From: Wols Lists @ 2018-04-08 11:35 UTC (permalink / raw
  To: gentoo-user

On 08/04/2018 00:18, Marc Joliet wrote:
> Hi list
>
> I have a bit of a weird issue.  I recently acquired a used server (Fujitsu
> Primergy TX140 S1) via a friend of mine.  I have Gentoo installed on it now
> and overall it works fine save for one perplexing issue [0]: The bootloader
> hangs when booting without a keyboard attached.  I tried it with both GRUB and
> systemd-boot (which works nicely in combination with kernel-install); both
> only work with a keyboard attached.  GRUB hangs when the countdown starts,
> while systemd-boot hangs when the cursor first appears, but before the boot
> entries are listed.  In both cases the cursor freezes.

I can't help with a solution, but this is actually quite a common 
problem. I remember ages ago copious reports of computer rooms with 
these boxes that share one keyboard, mouse and screen amongst several 
computers, and there were loads of complaints about systems refusing to 
boot.

Go in ti the bios settings, and see if there's something about 
keyboards. I really can't remember but there was something about a 
missing keyboard triggering a bios boot error - cue all the jokes about 
"keyboard missing, press F1 to continue". Actually, if you search on 
that message, you might find something ...

Cheers,
Wol


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08  0:18 ` mad.scientist.at.large
@ 2018-04-08 12:11   ` Marc Joliet
  2018-04-08 13:18     ` Marc Joliet
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Joliet @ 2018-04-08 12:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

Am Sonntag, 8. April 2018, 02:18:21 CEST schrieb 
mad.scientist.at.large@tutanota.com:
> The obvious solution is to leave a keyboard attached, OR make the computer
> think so with one of the adapters that let you use ps/2 peripherals on a
> machine that only has usb.  They always show up as a keyboard and mouse to
> the computer, even if only the adapter is plugged in.  They have them on
> ebay etc., from $1 up.

Yeah, I did hear about those while researching the problem (forgot to mention, 
sorry), but thanks for pointing out how cheap they are.  I'll probably go that 
route if I find no other solution, though I've also considered just using it 
as a desktop, since it's more powerful than my current one, but was also 
looking forward to a home server with more disk space :-/ .

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 11:35 ` Wols Lists
@ 2018-04-08 12:48   ` Marc Joliet
  2018-04-09  4:18     ` Walter Dnes
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Joliet @ 2018-04-08 12:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2198 bytes --]

Am Sonntag, 8. April 2018, 13:35:02 CEST schrieb Wols Lists:
> On 08/04/2018 00:18, Marc Joliet wrote:
> > Hi list
> > 
> > I have a bit of a weird issue.  I recently acquired a used server (Fujitsu
> > Primergy TX140 S1) via a friend of mine.  I have Gentoo installed on it
> > now
> > and overall it works fine save for one perplexing issue [0]: The
> > bootloader
> > hangs when booting without a keyboard attached.  I tried it with both GRUB
> > and systemd-boot (which works nicely in combination with kernel-install);
> > both only work with a keyboard attached.  GRUB hangs when the countdown
> > starts, while systemd-boot hangs when the cursor first appears, but
> > before the boot entries are listed.  In both cases the cursor freezes.
> 
> I can't help with a solution, but this is actually quite a common
> problem. I remember ages ago copious reports of computer rooms with
> these boxes that share one keyboard, mouse and screen amongst several
> computers, and there were loads of complaints about systems refusing to
> boot.

I can't help but wonder if these kinds of servers only tested in setups with 
KVM switches.  One thing I kept reading about was how people have several 
servers hooked up to these, so maybe these types of servers often simply 
aren't tested without a keyboard.

> Go in ti the bios settings, and see if there's something about
> keyboards. I really can't remember but there was something about a
> missing keyboard triggering a bios boot error - cue all the jokes about
> "keyboard missing, press F1 to continue". Actually, if you search on
> that message, you might find something ...

Yeah, that was the first thing I tried, but there are no such settings.  
Though I never thought to try disabling the USB ports.

*tries it out now*

Nope, I had set it to "Disable all unused ports", but that didn't change 
anything.  Neither did deactivating the serial port.  That makes the issue 
much weirder in my eyes, since it's clearly intended to be able to boot the 
server without any USB devices attached.

> Cheers,
> Wol

Greetings
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 12:11   ` Marc Joliet
@ 2018-04-08 13:18     ` Marc Joliet
  2018-04-08 14:49       ` Neil Bothwick
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Joliet @ 2018-04-08 13:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

Am Sonntag, 8. April 2018, 14:11:57 CEST schrieb Marc Joliet:
> Yeah, I did hear about those while researching the problem (forgot to
> mention, sorry), but thanks for pointing out how cheap they are.

Ugh, I misread, yeah, of course those exist and are cheap (sadly I only have 
USB->PS/2 adapters).  I thought I had read about so-called keyboard 
simulators, which I interpreted to mean a USB dongle that pretends to be an 
input device, but ATM I cannot find any evidence of them actually existing, so 
maybe I misremembered/misunderstood (however, I did find https://www.ico.de/
telejet-keyboard-simulator-tks-usb--tksu, which lets you send specific 
keypresses remotely, but it's a tad overkill for my purposes).

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 13:18     ` Marc Joliet
@ 2018-04-08 14:49       ` Neil Bothwick
  2018-04-08 15:45         ` Marc Joliet
  0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2018-04-08 14:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

On Sun, 08 Apr 2018 15:18:21 +0200, Marc Joliet wrote:

> > Yeah, I did hear about those while researching the problem (forgot to
> > mention, sorry), but thanks for pointing out how cheap they are.  
> 
> Ugh, I misread, yeah, of course those exist and are cheap (sadly I only
> have USB->PS/2 adapters).  I thought I had read about so-called
> keyboard simulators, which I interpreted to mean a USB dongle that
> pretends to be an input device, but ATM I cannot find any evidence of
> them actually existing,

Use the dongle from a wireless keyboard.


-- 
Neil Bothwick

WITLAG: The delay between delivery and comprehension of a joke.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 14:49       ` Neil Bothwick
@ 2018-04-08 15:45         ` Marc Joliet
  2018-04-08 15:47           ` R0b0t1
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Joliet @ 2018-04-08 15:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]

Am Sonntag, 8. April 2018, 16:49:55 CEST schrieb Neil Bothwick:
> On Sun, 08 Apr 2018 15:18:21 +0200, Marc Joliet wrote:
> > > Yeah, I did hear about those while researching the problem (forgot to
> > > mention, sorry), but thanks for pointing out how cheap they are.
> > 
> > Ugh, I misread, yeah, of course those exist and are cheap (sadly I only
> > have USB->PS/2 adapters).  I thought I had read about so-called
> > keyboard simulators, which I interpreted to mean a USB dongle that
> > pretends to be an input device, but ATM I cannot find any evidence of
> > them actually existing,
> 
> Use the dongle from a wireless keyboard.

That's also a good idea, I wasn't sure if you could buy those without a 
keyboard and hadn't thought to check.  Funnily enough, this is exactly what 
I've been doing so far (I have a Logitech wireless keyboard with a "unifying" 
receiver).

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 15:45         ` Marc Joliet
@ 2018-04-08 15:47           ` R0b0t1
  2018-04-08 18:04             ` Neil Bothwick
  0 siblings, 1 reply; 13+ messages in thread
From: R0b0t1 @ 2018-04-08 15:47 UTC (permalink / raw
  To: gentoo-user

On Sun, Apr 8, 2018 at 10:45 AM, Marc Joliet <marcec@gmx.de> wrote:
> Am Sonntag, 8. April 2018, 16:49:55 CEST schrieb Neil Bothwick:
>> On Sun, 08 Apr 2018 15:18:21 +0200, Marc Joliet wrote:
>> > > Yeah, I did hear about those while researching the problem (forgot to
>> > > mention, sorry), but thanks for pointing out how cheap they are.
>> >
>> > Ugh, I misread, yeah, of course those exist and are cheap (sadly I only
>> > have USB->PS/2 adapters).  I thought I had read about so-called
>> > keyboard simulators, which I interpreted to mean a USB dongle that
>> > pretends to be an input device, but ATM I cannot find any evidence of
>> > them actually existing,
>>
>> Use the dongle from a wireless keyboard.
>
> That's also a good idea, I wasn't sure if you could buy those without a
> keyboard and hadn't thought to check.  Funnily enough, this is exactly what
> I've been doing so far (I have a Logitech wireless keyboard with a "unifying"
> receiver).
>

You can buy Logitech unifying receivers for $9 or so, but it might be
cheaper to buy offbrand keyboard/receiver sets.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 15:47           ` R0b0t1
@ 2018-04-08 18:04             ` Neil Bothwick
  2018-04-08 19:55               ` R0b0t1
  0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2018-04-08 18:04 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On Sun, 8 Apr 2018 10:47:06 -0500, R0b0t1 wrote:

> >> Use the dongle from a wireless keyboard.  
> >
> > That's also a good idea, I wasn't sure if you could buy those without
> > a keyboard and hadn't thought to check.  Funnily enough, this is
> > exactly what I've been doing so far (I have a Logitech wireless
> > keyboard with a "unifying" receiver).
> >  
> 
> You can buy Logitech unifying receivers for $9 or so, but it might be
> cheaper to buy offbrand keyboard/receiver sets.

Or a wireless remote control, those also appear as HID devices.


-- 
Neil Bothwick

Eagles may soar, but Wombles don't get sucked into jet engines

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 18:04             ` Neil Bothwick
@ 2018-04-08 19:55               ` R0b0t1
  0 siblings, 0 replies; 13+ messages in thread
From: R0b0t1 @ 2018-04-08 19:55 UTC (permalink / raw
  To: gentoo-user

On Sun, Apr 8, 2018 at 1:04 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Sun, 8 Apr 2018 10:47:06 -0500, R0b0t1 wrote:
>
>> >> Use the dongle from a wireless keyboard.
>> >
>> > That's also a good idea, I wasn't sure if you could buy those without
>> > a keyboard and hadn't thought to check.  Funnily enough, this is
>> > exactly what I've been doing so far (I have a Logitech wireless
>> > keyboard with a "unifying" receiver).
>> >
>>
>> You can buy Logitech unifying receivers for $9 or so, but it might be
>> cheaper to buy offbrand keyboard/receiver sets.
>
> Or a wireless remote control, those also appear as HID devices.
>

But there is a specific HID type for "boot keyboard" which is what the
EFI or BIOS firmware looks for when starting. The report is structured
so that the firmware does not need to implement the full USB standard.
Some board firmware is not implemented properly and does not parse the
reports properly, which means some keyboards do not work with all
motherboards.

The other reason I bring this up is because reading about EFI, it
seems the system can demand boot devices are present. I have no idea
why, but what OP is seeing may be intended behavior.

Cheers,
     R0b0t1


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-08 12:48   ` Marc Joliet
@ 2018-04-09  4:18     ` Walter Dnes
  2018-04-10 11:00       ` Marc Joliet
  0 siblings, 1 reply; 13+ messages in thread
From: Walter Dnes @ 2018-04-09  4:18 UTC (permalink / raw
  To: gentoo-user

  Is there an entry in BIOS setup for "Halt bootup or error" or the
opposite, "Continue bootup on error"?  Try setting that if it exists.
That won't fix the root problem, but may ignore it and boot up
successfully.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Bootloader hangs without a keyboard
  2018-04-09  4:18     ` Walter Dnes
@ 2018-04-10 11:00       ` Marc Joliet
  0 siblings, 0 replies; 13+ messages in thread
From: Marc Joliet @ 2018-04-10 11:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

Am Montag, 9. April 2018, 06:18:10 CEST schrieb Walter Dnes:
>   Is there an entry in BIOS setup for "Halt bootup or error" or the
> opposite, "Continue bootup on error"?  Try setting that if it exists.
> That won't fix the root problem, but may ignore it and boot up
> successfully.

It's already set to continue, thanks anyway.  (But wouldn't that setting only 
influence whether I got past the BIOS or not?)

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-04-10 11:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-07 23:18 [gentoo-user] Bootloader hangs without a keyboard Marc Joliet
2018-04-08  0:18 ` mad.scientist.at.large
2018-04-08 12:11   ` Marc Joliet
2018-04-08 13:18     ` Marc Joliet
2018-04-08 14:49       ` Neil Bothwick
2018-04-08 15:45         ` Marc Joliet
2018-04-08 15:47           ` R0b0t1
2018-04-08 18:04             ` Neil Bothwick
2018-04-08 19:55               ` R0b0t1
2018-04-08 11:35 ` Wols Lists
2018-04-08 12:48   ` Marc Joliet
2018-04-09  4:18     ` Walter Dnes
2018-04-10 11:00       ` Marc Joliet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox