Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard function during debian installation #160

Open
marc-git opened this issue Aug 26, 2020 · 22 comments
Open

Keyboard function during debian installation #160

marc-git opened this issue Aug 26, 2020 · 22 comments

Comments

@marc-git
Copy link
Contributor

marc-git commented Aug 26, 2020

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.

@risen
Copy link
Contributor

risen commented Aug 26, 2020

Debian kernels don't enable CONFIG_KEYBOARD_APPLESPI yet.

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

@marc-git
Copy link
Contributor Author

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

@marc-git
Copy link
Contributor Author

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

@Dunedan
Copy link
Owner

Dunedan commented Aug 26, 2020

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.

@marc-git
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

@marc-git
Copy link
Contributor Author

marc-git commented Sep 9, 2020

@marc-git marc-git closed this as completed Sep 9, 2020
@Dunedan
Copy link
Owner

Dunedan commented Sep 10, 2020

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

@marc-git
Copy link
Contributor Author

marc-git commented Sep 10, 2020 via email

@marc-git
Copy link
Contributor Author

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.

@Dunedan
Copy link
Owner

Dunedan commented Oct 24, 2020

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

@Dunedan Dunedan reopened this Oct 24, 2020
@marc-git
Copy link
Contributor Author

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

@Dunedan
Copy link
Owner

Dunedan commented Oct 25, 2020

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.

@marc-git
Copy link
Contributor Author

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?

@Dunedan
Copy link
Owner

Dunedan commented Oct 26, 2020

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.

@marc-git
Copy link
Contributor Author

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
Copy link
Contributor Author

marc-git commented Nov 10, 2020

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

@Dunedan
Copy link
Owner

Dunedan commented Dec 8, 2020

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.

@marc-git
Copy link
Contributor Author

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
Copy link
Contributor Author

marc-git commented Jan 20, 2021

Still no go with the latest version here

@akda5id
Copy link

akda5id commented Apr 16, 2021

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants