9 ms·
The input devices are on SPI, not USB Things like this make me wonder if Apple is deliberately going for proprietariness as a sort of vendor-lock-in, because I
by userbinator 10y ago
The input devices are on SPI, not USB
Things like this make me wonder if Apple is deliberately going for proprietariness as a sort of vendor-lock-in, because I can't see any other compelling reasons for coming up with a completely different interface for such basic and existing devices. USB and PS/2 are standardised to the point that hardware and software for them are widely available and cheap. They're also extensible, so one does not have to reinvent everything to add additional features.
I still remember when the first "Intel Macbooks" came out with nearly identical hardware to a PC laptop of the same era, i.e. keyboard and trackpad looked like standard PS/2 devices. Later models of PCs and Macs started using USB internally (which is in some ways more complex, since the existing PS/2 interface was provided by the EC via LPC whereas USB may require an additional controller and definitely requires routing additional signals between it and one of the USB ports on the chipset), but at least they would still work relatively standardly.
Personally, I'm all for new features but implemented in backwards-compatible or relatively standard ways. Apple doesn't seem to be a fan of that.
- emgeee 10y agoJust an FYI SPI is a pretty standard interface in the embedded world
- userbinator 10y agoTrue, but SPI is really just referring to the physical layer protocol while the layers above can vary considerably and be proprietary. The only thing that's constant is that it is a synchronous serial protocol. It's not like USB which defines device classes and the higher-level layers of the stack, or PS/2 where e.g. all PS/2 keyboards or mice are expected to have an identical basic set of functionality and behaviour. There are certainly proprietary "vendor-specific" extensions to those, but e.g. it's almost a given that if you plug in a USB keyboard, all the standard QWERTY keys should work effortlessly; and while there may be extensions like displays and touchbars that require specific drivers, the core functionality doesn't change. If I understand correctly, what Apple did here is invent their own protocol for the keyboard which is completely different from what any PC or earlier Macs have, thus the lack of any functionality from Linux. And given how crucial a keyboard is to being able to do anything with the computer, it's no wonder this has caused much consternation. I think many people are used to the idea that even if the OS does not provide drivers for specific devices, basic functionality like keyboard, mouse, and video (even if it's something like a VGA 640x480 16 colours mode) should still be present --- partly to enable "bootstrapping" into more functionality by installing and troubleshooting the drivers.
- geocar 10y ago> I think many people are used to the idea that even if the OS does not provide drivers for specific devices, basic functionality like keyboard, mouse, and video (even if it's something like a VGA 640x480 16 colours mode) should still be present --- partly to enable "bootstrapping" into more functionality by installing and troubleshooting the drivers. Then I think people need to step back and appreciate that this "basic functionality" is actually really expensive in terms of price, space, power and performance. Would they really pay more for Apple hardware if it booted up with a full internal USB or a PS/2? What if it made the laptop heavier? Shortened the battery life? These things are very important to me: I wouldn't buy a heavier Mac. Could this be mitigated with custom ASICs? Or a new power switch and some extra power controllers (e.g. a soft switch to turn off the fallback 8042 and start using the faster more sensible SPI interface)? Perhaps, but someone has to pay for it. Moaning about things that don't make sense to change -- that someone just doesn't like, just makes that someone unhappy.
- userbinator 10y agoCould this be mitigated with custom ASICs? Or a new power switch and some extra power controllers (e.g. a soft switch to turn off the fallback 8042 and start using the faster more sensible SPI interface)? Perhaps, but someone has to pay for it. PS/2 has not been implemented with a real 8042 for a very long time. Standard laptop ECs which are cheap and widely available have optimised dedicated hardware to handle the protocol. Speed is not a problem either, because this doesn't need to be a physical PS/2 interface with a separate keyboard on the end of it --- in the designs I've seen, the EC scans the key matrix itself and just provides a PS/2 software interface. It really doesn't matter what the physical interface on a laptop is, since the software interface is what's important here; Apple could've used something similar to PS/2 but increased the clock rate to whatever they needed, and it'd still look the same and be compatible to existing software. USB is not a good idea from a power perspective since it is a polled bus and there's plenty of additional unneeded complexity throughout the whole stack, but PS/2 is interrupt-driven and extremely low-power. In fact, it is a synchronous serial protocol just like SPI, so what appears to have happened with these MacBooks is that Apple basically reinvented PS/2 in their own "Think Different" way.
- WayneBro 10y agoWheels are pretty standard on cars too. Shouldn't every computer have wheels?
- culturestate 10y ago> I can't see any other compelling reasons for coming up with a completely different interface for such basic and existing devices. I don't know enough about the implementation to speak to why they made this choice, but for what it's worth, SPI is a standard[1] - and a quite old one. I suspect, were we to follow this down the rabbit hole, that we'd find it's related to power management. 1. https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bu...
- chillingeffect 10y agothat's a good guess. I would agree. SPI is not connection-oriented and "comes up and goes down" (to the extent that it goes up and comes down at all) very fast with very little active memory needed to support the communication.
- userbinator 10y agoNeither is PS/2, which also being a synchronous serial interface with very low overhead, does share many characteristics with SPI at the physical layer: https://en.wikipedia.org/wiki/PS/2_port#Legacy_port_status_and_USB https://en.wikipedia.org/wiki/PS/2_port#Legacy_port_status_a... The PS/2 interface saves power due to its interrupt-driven nature compared to USB which requires periodic polling, so it is a popular interface for laptops' internal keyboards and pointing devices The major difference is that PS/2 is a de-facto standard up to the application layer/software interface, while the MacBook SPI protocol is unique to Apple.
- mjg59 10y agoPS/2 isn't high enough bandwidth to support decent multitouch, which is why most modern PC touchpads come up in PS/2 mode and then transition to SPI.
- ust 10y agoThat well may be (regarding the power management), but while SPI as standard is old, the use of SPI is not standard. I've implemented quite a few SPIs (mostly FPGA) to interface with various commercial devices and virtually all of them had a different protocol, i.e. 8bit vs 7bit words, different bits to denote write or read, etc. Some of them didn't even use SS signal. I wouldn't really called them standard, and I say that with regret. More hardware could be used in a more standard manner.
- jws 10y agoMy Acer Cloudbook trackpad is I2C, a similar simple bus. It can be configured in BIOS to fallback to PS/2 with reduced capabilities. PS/2 is too slow for the volume of data coming out of a modern touchpad. USB is a lot more hardware, though that is small in the context of a CPU. It may just be that with I2C running around the motherboard for all the miscellaneous devices it just makes sense to use that.
- colechristensen 10y agoI imagine it's more that they don't care and SPI is simpler/cheaper than USB when you custom make your hardware.
- ianai 10y agoI don't necessarily think Apple cost minimizes in that way. They build and engineer in ways other companies cannot or won't risk. My example being their 10k cnc machine purchase for MacBook cases. Or I could be totally wrong and this is what they're doing, of course.
- mjg59 10y agoApple were already using USB for the PPC iBooks, and continued that with the Macbook - Linux has always complained that it can't find a PS/2 controller on x86 Apples. But USB is poor from a power management perspective, and so input devices on low power systems are frequently run over SPI instead. Apple began this with the Macbook (which is basically a tablet shaped like a laptop) and have started extending it across their entire mobile range. There are entirely sound reasons for doing this, and it's not unique to Apple.
- jacobolus 10y agoPPC Mac laptops used ADB as an internal protocol for many years after no Apple computer shipped with external ADB ports. My recollection was that the transition to using USB as an internal protocol came slightly before the PPC->Intel transition, and that the first several generations of X86 Mac laptops used USB internally for trackpads and keyboards. You sure there were ever any using PS/2? Seems unlikely.