mbp-2016-linux icon indicating copy to clipboard operation
mbp-2016-linux copied to clipboard

Keyboard function during debian installation

Open marc-git opened this issue 5 years ago • 22 comments

A couple of bugs seem to be preventing me from reinstalling on14,3.

Grub runs from the usb drive. Keyboard working. I can't get enter any options in the startup menu because the options to boot are F10 (touchbar!) or ctrl-x but neither of those work. Whatever I select from the Grub menu I lose keyboard and touchpad support once I am in. Kernel is 5.7.0-2 Possibly related to the USB device bug, I can't run a usb keyboard either. No input is detected.

Anybody have a tip for getting this going?

Sorry for posting an installation related question here but it seemed to me that this was in the spirit of the repository since it is a hardware compatibility bug.

marc-git avatar Aug 26 '20 13:08 marc-git

Debian kernels don't enable CONFIG_KEYBOARD_APPLESPI yet.

See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943337

risen avatar Aug 26 '20 14:08 risen

OK didn't realise that was still open... how silly.

marc-git avatar Aug 26 '20 14:08 marc-git

Possible work around would be to make a custom live usb with live-build

marc-git avatar Aug 26 '20 14:08 marc-git

You could try to open a merge request for the Debian linux kernel repository at https://salsa.debian.org/kernel-team/linux to get it included. That way this could get solved once and for all for Debian users.

Dunedan avatar Aug 26 '20 15:08 Dunedan

You could try to open a merge request for the Debian linux kernel repository at https://salsa.debian.org/kernel-team/linux to get it included. That way this could get solved once and for all for Debian users.

Any idea which of these configs they would put it in? https://salsa.debian.org/kernel-team/linux/-/tree/master/debian/config

marc-git avatar Aug 26 '20 18:08 marc-git

I guess options would be here: https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/config/config or here https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/config/amd64/config since it is strictly restricted to amd64 machines.

marc-git avatar Aug 26 '20 18:08 marc-git

https://salsa.debian.org/kernel-team/linux/-/merge_requests/265

marc-git avatar Aug 26 '20 18:08 marc-git

This will be fixed in 5.8.7-2 https://salsa.debian.org/kernel-team/linux/-/commit/830bc6d579b9645318ee4605d4aed3d0d39cd58a

marc-git avatar Sep 09 '20 12:09 marc-git

@marc-git: Thank you for handling this. This is going to help a lot of people.

Dunedan avatar Sep 10 '20 05:09 Dunedan

A bit surprised myself! Thanks for submitting the bug report. I think they would not have gone ahead without it.

marc-git avatar Sep 10 '20 06:09 marc-git

Might have to reopen this. I tried installing with a daily snapshot of testing and despite the right kernel version, still no keyboard after booting into the installer.

marc-git avatar Oct 23 '20 20:10 marc-git

Is applespi included in the initial ramdisk? If so, are all other necessary modules as well?

Dunedan avatar Oct 24 '20 05:10 Dunedan

there is a trick to check this from within another linux install right?

marc-git avatar Oct 25 '20 19:10 marc-git

I did a quick check booting the latest daily snapshot of the installer for Debian testing (from https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/) as a VM to check whether proper kernel and applespi are available. Turns out kernel version is 5.9.1-1 and applespi is included as well. So this should be fine. However the spi_pxa2xx_platform and intel_lpss_pci modules (and spi_pxa2xx_pci for the 2015 MacBook) don't seem to be available (see note in README of https://github.com/roadrunner2/macbook12-spi-driver). Those modules are available on an installed system, but apparently not in the installer. As I don't own a compatible MacBook anymore, I can't further test this.

What you can do to verify: Can you complete the installation with an external keyboard and check whether or not the keyboard works afterwards? If it doesn't, does modprobe applespi get it to work?

My guess is that the mentioned modules are either not enabled in the kernel config for the installer or aren't included in the initrd of the installer. I'm not sure where to get this information from, but that would probably the next step when the keyboard does work after installation, but not during the installer.

Dunedan avatar Oct 25 '20 21:10 Dunedan

cheers. can check again but there is the other problem related to the usb devices which were not being enabled in the installer, so an external keyboard wouldn't work.
Strangely the other two modules were already included in the kernel before I submitted the merge request to include applespi. I guess they try to reduce the size of the initrd as much as possible. Do you know what script is responsible for the daily snapshot build?

marc-git avatar Oct 26 '20 05:10 marc-git

Do you know what script is responsible for the daily snapshot build?

Unfortunately not, otherwise I would've already checked how the config used there looks like.

Dunedan avatar Oct 26 '20 06:10 Dunedan

only got this far. Might have to ask on mailing list... https://salsa.debian.org/installer-team/d-i/-/tree/master/scripts/kernel

marc-git avatar Oct 26 '20 19:10 marc-git

What you can do to verify: Can you complete the installation with an external keyboard and check whether or not the keyboard works afterwards? If it doesn't, does modprobe applespi get it to work?

external keyboard finally works with this 5.9.0-1 so install was possible and then internal keyboard/mouse work out of box.

I've mailed the mailing list

marc-git avatar Nov 10 '20 17:11 marc-git

Any updates on this?

For reference I believe the mentioned post to a mailing list is this one: https://lists.debian.org/debian-boot/2020/11/msg00142.html

Two days ago the Debian Installer Bullseye Alpha 3 got released (https://lists.debian.org/debian-devel-announce/2020/12/msg00001.html). It'd be great if somebody could check out, if this version of the Debian installer still faces the same problem.

Dunedan avatar Dec 08 '20 20:12 Dunedan

Any updates on this?

For reference I believe the mentioned post to a mailing list is this one: https://lists.debian.org/debian-boot/2020/11/msg00142.html

Two days ago the Debian Installer Bullseye Alpha 3 got released (https://lists.debian.org/debian-devel-announce/2020/12/msg00001.html). It'd be great if somebody could check out, if this version of the Debian installer still faces the same problem.

will check it out. thanks for the heads up

marc-git avatar Dec 14 '20 19:12 marc-git

Still no go with the latest version here

marc-git avatar Jan 20 '21 19:01 marc-git

The live image I tried from 2021-04-12, keyboard didn't work on my MacBookAir9,1

Now, your page doesn't list anything about MacBookAir9,1, as far as I can see, so perhaps this isn't supported anywhere yet?

I am a linux newb (well, a returnee from so long ago, I am again a newb), but fairly tech savvy otherwise, so if I can help out chasing down info, let me know. External keyboard does work, so I can poke around if you tell me what to look for :)

akda5id avatar Apr 16 '21 04:04 akda5id