WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro  (Read 7614 times)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Hi all,
I created a usb stick to load TinyCorePure64 14.0 using UEFI and successfully booted to the desktop on the Macbook Pro.
However, the
- keyboard not working and
- mouse not working.

I also booted on a Dell laptop with UEFI with similar result:
- keyboard working  :)
- mouse not working

Can anyone please guide me how to make the keyboard and mouse work?
Thank you..

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #1 on: May 05, 2023, 05:34:55 AM »
I boot a Dell laptop from usb stick using uefi without problems - are you using the built-in keyboard/mouse?

Which boot loader are you using - grub, syslinux or?

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #2 on: May 05, 2023, 05:49:55 AM »
Hi, yes I'm using built-in keyboard/mouse.
I don't remember the Dell model number though. It's not with me now.
I booted UEFI using grub.

So, the usb actually will boot to bios by syslinux and to UEFI by grub.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #3 on: May 05, 2023, 06:09:21 AM »
Did you check the bios settings for uefi boot and boot security?

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #4 on: May 05, 2023, 06:58:23 AM »
No i did not.
But when I boot using other distro (one of arch based) everything works.
Both in Dell and Macbook Pro.
Btw, there's no bios settings in Macbook anyway and one of my intention is to make it work with Macbook as well.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #5 on: May 05, 2023, 11:30:37 AM »
You'd need to start with checking dmesg, if they are even detected. For the macbook, perhaps with external usb mouse and keyboard.
The only barriers that can stop you are the ones you create yourself.

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #6 on: May 06, 2023, 05:59:58 AM »
Hi Curaga, I don't have usb c keyboard for the macbook.
But I did dmesg on the Dell 7490
And here's what i got for keyboard, mouse and usb
https://pasteboard.co/bx34koKHX6c1.jpg
and here's for ps/2
https://pasteboard.co/Wq4Z3PyJrXFG.jpg

But I don't understand what those output mean though  ::)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #7 on: May 06, 2023, 08:06:49 AM »
Hi pek
Try adding the boot code:
Code: [Select]
i8042.nopnpand see if the  AUX port disabled  message goes away.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #8 on: May 06, 2023, 08:54:21 AM »
Hi pek
Add the  i2c-KERNEL.tcz  extension to  onboot.

Run this command:
Code: [Select]
dmesg | grep -Ei "keyb|mouse|ps/2|i8042|touch" > dmesg.txtand then post the contents of  dmesg.txt.

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #9 on: May 06, 2023, 11:38:15 PM »
Hi Rich, thanks for your suggestions.

In summary, by loading i2c-KERNEL.tcz onboot, makes
* Keyboard and Mouse work on Dell (with or without i8042.nopnp boot code)
* Keyboard and Mouse still not work on Macbook Pro (with or without i8042.nopnp boot code)


Here are the dmesg output in reply to your questions:

1. Adding i8042.nopnp boot code without loading i2c-KERNEL.tcz
Code: [Select]
[    0.000000] Command line: BOOT_IMAGE=/boot/14/64/vmlinuz64 i8042.nopnp
[    0.045165] Kernel command line: BOOT_IMAGE=/boot/14/64/vmlinuz64 i8042.nopnp
[    0.766362] usbcore: registered new interface driver ums-onetouch
[    0.766415] i8042: PNP detection disabled
[    0.766690] i8042: Warning: Keylock active
[    0.768400] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.768410] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.768477] mousedev: PS/2 mouse device common for all mice
[    0.768572] usbcore: registered new interface driver appletouch
[    0.770578] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[    1.494704] input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input6


2. Adding i8042.nopnp boot code and loading i2c-KERNEL.tcz
Code: [Select]
[    0.000000] Command line: BOOT_IMAGE=/boot/14/64/vmlinuz64 cde i8042.nopnp
[    0.046548] Kernel command line: BOOT_IMAGE=/boot/14/64/vmlinuz64 cde i8042.nopnp
[    0.751693] usbcore: registered new interface driver ums-onetouch
[    0.751738] i8042: PNP detection disabled
[    0.752011] i8042: Warning: Keylock active
[    0.753670] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.753686] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.753757] mousedev: PS/2 mouse device common for all mice
[    0.753847] usbcore: registered new interface driver appletouch
[    0.755593] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[    1.520119] input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input6
[   12.398843] input: MELF0410:00 1FD2:7007 Touchscreen as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-MELF0410:00/0018:1FD2:7007.0001/input/input11
[   12.429264] input: DELL081C:00 044E:121F Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-DELL081C:00/0018:044E:121F.0002/input/input13
[   12.429340] input: DELL081C:00 044E:121F Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-DELL081C:00/0018:044E:121F.0002/input/input14
[   12.429449] hid-generic 0018:044E:121F.0002: input,hidraw1: I2C HID v1.00 Mouse [DELL081C:00 044E:121F] on i2c-DELL081C:00


3. Without i8042.nopnp boot code and loading i2c-KERNEL.tcz
Code: [Select]
[    0.756297] usbcore: registered new interface driver ums-onetouch
[    0.756378] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[    0.756382] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    0.756648] i8042: Warning: Keylock active
[    0.756892] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.756993] mousedev: PS/2 mouse device common for all mice
[    0.757100] usbcore: registered new interface driver appletouch
[    0.758381] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[   12.097105] input: MELF0410:00 1FD2:7007 Touchscreen as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-MELF0410:00/0018:1FD2:7007.0001/input/input9
[   12.130813] input: DELL081C:00 044E:121F Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-DELL081C:00/0018:044E:121F.0002/input/input11
[   12.130880] input: DELL081C:00 044E:121F Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-DELL081C:00/0018:044E:121F.0002/input/input12
[   12.130980] hid-generic 0018:044E:121F.0002: input,hidraw1: I2C HID v1.00 Mouse [DELL081C:00 044E:121F] on i2c-DELL081C:00


I will try to dmesg on macbook later when I have access to usb-c keyboard or adapter.

So, what is this i2c-KERNEL.tcz ?
Why it makes mouse works on Dell 7490?
Thanks.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #10 on: May 07, 2023, 01:56:37 AM »
i2c is an internal device technology/communication bus. Your Dell's mouse is an i2c device apparently, which is fairly rare.

Apple on the other hand does custom everything, needing Apple-specific drivers usually. It's possible we don't have something enabled in the kernel for your MBP.
The only barriers that can stop you are the ones you create yourself.

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #11 on: May 07, 2023, 02:46:11 AM »
Thanks for the explanation Curaga.

Btw, when i said "mouse", what i actually meant was the "touchpad". Sorry for that.

Quote
Apple on the other hand does custom everything, needing Apple-specific drivers usually. It's possible we don't have something enabled in the kernel for your MBP.
I booted other live distro on the MBP and keyboard/touchpad worked.
Don't you think there's a generic/common driver for this?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #12 on: May 07, 2023, 05:58:48 AM »
You can check which drivers are being loaded on the other distro using "lsmod" and "dmesg" and compare with tinycore to see what's missing.
« Last Edit: May 07, 2023, 06:24:19 AM by Juanito »

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #13 on: May 07, 2023, 09:09:30 AM »
That's a great idea Juanito. Thanks.

Since I don't have usb-c keyboard yet for Tinycore,
I would just paste outputs from the other distro with working keyboard and touchpad here.
Just incase anyone can spot something before I can paste the comparison.

lsmod
https://pastebin.com/najnLdyY

dmesg
https://pastebin.com/p14uiEdG

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #14 on: May 07, 2023, 09:23:57 AM »
This:
Code: [Select]
[   71.363403] input: Apple SPI Keyboard as /devices/pci0000:00/0000:00:1e.3/pxa2xx-spi.5/spi_master/spi2/spi-APP000D:00/input/input5
[   71.365129] input: Apple SPI Touchpad as /devices/pci0000:00/0000:00:1e.3/pxa2xx-spi.5/spi_master/spi2/spi-APP000D:00/input/input6
[   71.367448] applespi spi-APP000D:00: modeswitch done.

..would tend to indicate you need to look at the spi_pxa2xx_platform and applespi divers