Better HN
topnewbestaskshowjobs

Nospeaker ─ Make your MacBook's trackpad talk using its haptic motor(github.com)

323 points · by yakkomajuri · 1d ago · 176 comments

https://x.com/codycollier/status/2124505859883716918
Comments
sirwhinesalot1d ago
As impressive as this is, the fact that clicking that unmoving slab feels like pressing a button is far more impressive.
nkrisc1d ago
Long ago when I first used a Macbook trackpad I didn't even realize it wasn't actually pressing or clicking. The illusion is so complete it had me completely fooled for a long time.
crazygringo1d ago
It's incredibly jarring when your Mac crashes, and not only does the pointer stop moving, but the trackpad won't even physically click anymore. It feels like the crash has somehow escaped the world of software, and that actual physical reality has started to crash, until you remember the button press was just a haptic illusion in the first place.

I remember the same thing happening with my iPhone's home button a few times as well, when my iPhone crashed.

Still, crashes happen so seldom that it's like a handful of times across a decade.

nkrisc1d ago
That’s the only reason I realized it didn’t physically click is when whatever is responsible for the haptic feedback stopped working temporarily.
Tade01d ago
It had me completely fooled until your comment. It's my work machine, so I didn't delve into the specifics.
smeej19h ago
Me too. It sent me digging through my shelves looking for a standalone Magic Trackpad 2 that I have to verify. Sure enough, powered on, clicks. Powered off, no clicks.

I only used MacBooks for a few years at various companies, but I would have sworn that they actually clicked. I'm honestly quite unsettled by this!

npteljes1d ago
Well, today is that day for me! Thanks for this comment. I opened the Mac just a little so it doesn't wake up, and stuck my pinky in - indeed the trackpad doesn't click. Mind blown.
jader2011d ago
When I got my first Macbook with the haptic trackpad (my 2015 MBP still had the physical click), I knew about it being haptic, and still wasn't convinced.

I kept inspecting the pad while I clicked, trying to "catch" it moving. I was convinced there there was no way haptics alone could simulate the feeling of a click.

bathtub3651d ago
It technically does move, it has a kind of squishy give to it but the haptics make it feel like a click. If you press on it while the machine is off you can see it squish down.
stackghost1d ago
I'm not a particularly big fan of their OS but Apple's laptop hardware is just head and shoulders above the rest. The touchpad in particular is by far the best on the market.
blauditore1d ago
Trackpads are a lot about getting used to them. Apple's ones seem particularly tuned towards fine movement. This is good for initial impression and precision for new users. To me it feels like I need to move my hands too much.

Recently I've switched from a Thinkpad to a Chromebook, and the trackpad felt horrible (as if the cursor was doing a bit of extra movement at the end). A few months later, I used the Thinkpad once again, and suddenly that one felt completely off. It's just that my muscle memory got calibrated to the new trackpad's behavior.

elxr1d ago
Try an xps16 or expertbook ultra trackpad.

I don't think that's a valid take anymore. Its the same tech and the same build quality, hard to see why anyone would think the macbook is "by far the best" when they're so similar in practice.

edb_1231d ago
Am I the only one who feels that Apple's trackpads are quite frustrating and hard to use? They never seem to register my clicks correctly, dragging and dropping works badly (so easy to drop something along the way during a drag and drop). Might be because I have quite dry hands, but at the same time ThinkPad trackpads work just fine for me.
ctmlr1d ago
I seriously can't wait for Linux to be fully supported on the latest Macbooks.
xp841d ago
Indeed, OS mostly just keeps getting worse and worse, but especially since M1, the laptops just embarrass even most high-end competitors.

I’m still partial to HP’s high end, but especially compared to an equivalently-powerful Lenovo mobile workstations, M-series MacBook Pros look like they’re from a different decade, and in a good way now, unlike the 2016-era BS where they looked distinctive mainly because they had no ports, a Touch Bar, and a shitty keyboard.

garbageman1d ago
It's incredible and also makes other trackpads feel exceptionally sloppy.
colechristensen1d ago
Long ago and not so long ago they were indeed still actually pressing and clicking.
rbanffy1d ago
It’s been a long time. IIRC, the last one that clicked was the fat pre-Retina Pro, a workhorse that stayed in production for the longest time.

Now the Neo also clicks and it imitates the haptic trackpad so perfectly I can’t tell the difference.

robotresearcher1d ago
MacBook Neo currently has a mechanical switch.
swiftcoder1d ago
The first time I tried to press the trackpad with the Mac was powered off was a real mindfuck
stefanfisk1d ago
The first time my iPhone 8 ran out of battery it was like it went from being full of life and joy to full on rigor mortis in an instant
hamdingers1d ago
Interesting that the haptics are this capable yet Apple only uses it for that one effect as far as I know. Seems overbuilt, wish they'd add more haptics for scrolling/zooming/gestures/etc.
origini1d ago
Overbuild?

You mean the touchpad pressing?

Its flawless and consistent across the whole area. That is complelty different to any touchpad which uses some button.

saagarjha1d ago
Open up QuickTime and press down hard on the fast forward button
gumby2711d ago
That's really cool but how on earth did you discover that?
weinzierl1d ago
Interesting indeed. My theory is that for them replacing the physical button was mainly a cost-down measure and reliability improvement second.
kccqzy1d ago
No it’s definitely a quality improvement. Have you tried clicking on MacBook trackpads before this? Say a 2011 or 2012 MacBook Pro. The trackpad sucked. Pressing different parts of the trackpad felt different rather than uniform. And because the trackpad surface physically moved up and down, dust could get in and that changed the trackpad feel considerably. There were some areas on my trackpad that, when pressed, released way slower than other parts. It was just inferior tech compared to later trackpads.
swiftcoder1d ago
> My theory is that for them replacing the physical button was mainly a cost-down measure

Interestingly, the MacBook Neo uses a completely different physical click, rather than haptics, so if the haptic engine was a cost-down, it wasn't sufficient to hit that particular price point

RossBencina1d ago
It's hard for me to believe that the haptic motor and drive electronics is cheaper to manufacture than a mechanical switch (but someone please feel free to educate me). On the other hand, it is plausible that the haptic solution has a longer MTBF (but mechanical switches can be really reliable.) I'd favor the theory that Apple added it to Mac as part of the iPhone/Mac ui convergence strategy.
jdejean1d ago
Pretty sure they used the same or similar tech for force touch on iPhones
swiftcoder1d ago
They got rid of Force Touch on iPhones a few years back. We still get haptics, but no force sensing.
inventor77771d ago
In Final Cut there are some feedbacks for snapping clips. But yeah, underused other than that.
LoganDark1d ago
Try dragging Spotlight with the trackpad, you'll feel the trackpad nudge whenever it snaps to a center line. Some apps do this too. Usually you only add nudges for things that are actual snaps/clicks, not smooth things like scrolling or zooming.
zeroq1d ago
Wdym "that one effect"? What about hovering iPhone?! xD
stackghost1d ago
"hovering iPhone"?
dimavolo1d ago
Its always freaky when my fingers are cold and I press the unmoving slab but I don't feel it react, even though of course it does
mrheosuper1d ago
Apple is the best in haptic feedback. I remember the iphone 7 with the "virtual" click on home button, the only way to tell it's not real is turning off the phone
flocked19h ago
There is a way to disable the haptic engine of the macOS trackpad to try it out: https://github.com/shalamand3r/SlabPad
spolitry17h ago
Thank you! It's incredible how Apple removes basic quality of life features like this.
isityettime1d ago
Maybe some of this is bugs with other software that I use to restore basic functionality to the trackpad, like a middle clicking gesture, but I find the haptic click not only unconvincing but inconsistent in practice. The move away from physical clicks was a very noticeable downgrade for me.
iSnow1d ago
Had a Macbook once where the cable to the trackpad was flaky and from time to time, it was just a cold, unmoving slab. It was weird as it normally felt like it had "give" like a switch.
_ette1d ago
I had no idea this was the case. I've only had use of a Mac via work recently so I haven't done a typical deep dive into everything about them.

Just used the end of a pen to test it.. mindblown. That is an incredibly impressive illusion.

eszett1d ago
It's not an unmoving slab. It does move, it just don't give a click feedback when turned off.

Update: Okay — my trackpad is probably loose; sry. haha

emptybits1d ago
For those “into” this sort of thing, and of a certain vintage, you’ll know about using the motor in the Commodore 1541 floppy drive to similar effect.

But I only just discovered this ... generating video and audio from just the floppy drive, no computer, since the drive has its own 6502-ish CPU.

https://youtu.be/zprSxCMlECA?si=a8D39bAiKajNZ1Nb

Matthias Kramm is a god-level hacker.

hinkley22h ago
This basic concept has been weaponized in the Floppotron:

https://www.youtube.com/watch?v=Oym7B7YidKs

The last iteration was about three years ago:

https://www.youtube.com/watch?v=3KS02q0BUnY

Flatbed scanner motors are pretty good at hitting the high notes.

rbanffy1d ago
I think it’s such a brilliant design (apart from the speed), the filesystem running on the drive and the computer having a posix file like interface to read and write things.

If Commodore had made the drives even smarter, having ISAM access to files would make commercial software extremely easy to make on the machine.

Atari also had a clever design that devices were daisy chained. Had their drives been smarter, you could have written a file to disk and have the drive send it to the printer, freeing the computer for other things (a big annoyance on most personal computers until the arrival of multitasking OSs).

emptybits1d ago
It really was a great design. At user group meetings, we’d connect two 1541 drives together and after the duplicator program was loaded to the drives, we’d disconnect the C64 computer and monitor and the two drives worked standalone as a duplication station all night. Headless and computerless. It felt like the future! c.1983
solstice1d ago
Holy moly that was awesome! Thank you for sharing!
arlattimore1d ago
The author has an example on his X profile: https://x.com/codycollier/status/2124505859883716918
crazygringo1d ago
Thank you for finding a link! They need to embed or link a video in the GitHub README.

Because there's no way I'm installing that no matter what they say about it not breaking your trackpad. But obviously I want to see what it sounds like.

hnlmorg1d ago
That was way better than I was expecting!
postalcoder1d ago
This reminds me of the good ol days when computers had a tiny piezoelectric speaker to play rudimentary beeps. I remember keeling over laughing when a friend showed me you could actually play music through it (terribly). It was so absurd.
jodrellblank1d ago
A lot of the YouTube videos that claim to be PC Speaker music sound far too good quality to me, like 16-bit Amiga music instead.

This Pirates of the Caribbean version sounds pretty accurate to what PC beeper could do (but it sounds better in today's headphones): https://www.youtube.com/watch?v=GdJyt5wdWCM

I'm convinced there was a MOD file player that could output to the PC beeper and would run on an IBM XT / compatible in the very early 1990s, and I seem to remember it was called 'brain' but Google can't find anything about it. Apparently Scream Tracker 2, FastTracker II, could play to the PC speaker, not sure if they ran on an XT, I can't really remember that long ago but think brain was UI-less just a command line player.

cowlevel1d ago
The PC speaker is fundamentally a cheap piezo element or a real-er magnetic speaker attached to a GPIO attached to a timer. The most simple thing you could do with it was program the timer to output a square wave. But it was also possible to control it directly as an on/off output, and do various waveforms (including PWM), but it would occupy the whole CPU.
dreamlayers1d ago
The hardware controlling the PC speaker was only designed for playing a single tone at a time. But there was software that could do something like PWM and get much better quality. Linux still has a snd_pcsp module for this.
stackghost1d ago
Back when "the family computer" was a concept, my brother and I installed Sim City 2000 on our 486 which didn't have a sound card, so all the music played on the PC Speaker. My cousin had a Pentium machine with a Sound Blaster and he got to enjoy proper sounds, not to mention better frame rates, but I still have fond memories of PC Speaker music.

https://youtu.be/tsVj-C5kxWY?t=370

darkwater1d ago
A 486 in the period of Sim City 2000 without even a poor Adlib/SoundBlaster compatible card is something I would not have imagined possible. In my circles the PC speaker basically died with the 386DX
reconnecting1d ago
It was the motherboard speaker, using the SAY.COM program, if I'm not mistaken. It was quite impressive at the time, since sound cards were rare in ordinary PCs back then, and getting any sound out of a PC except the startup beep was a luxury.
iamjackg1d ago
LucasArts had PC Speaker music down to a fine art. The theme for Monkey Island 2 sometimes feels as if it has more than one channel thanks to all the arpeggios, sweeps, and trills.

MI2: https://www.youtube.com/watch?v=-KY35VB0b_Y MI1: https://www.youtube.com/watch?v=1IOL4q5tDDQ

hinkley22h ago
Over a year before Monkey Island, EA released Sentinel Worlds 1, which boasted about its soundtrack.

https://www.youtube.com/watch?v=O48HgFio6wI

It took advantage of a little finer time slicing, but it's still effectively the same kind of beat boxing trick of playing a single sound at once and chopping it up to create the feel of a layered beat.

I remember it being quite a bit smoother than this but I imagine you would say the same about Monkey Island.

pjerem1d ago
Most mobo still have connectors for piezoelectric speakers.

I bought one for cheap on aliexpress and my brand new (2026) PC build does a beep when I boot it. It's literally $1 away if you want it back :)

zimpenfish1d ago
> you could actually play music through [...] a tiny piezoelectric speaker [...] (terribly)

Tim Follin and the ZX Spectrum would like a word.

https://www.youtube.com/watch?v=T42WuUpBuHE

https://www.youtube.com/watch?v=gNc_xczyGLc

asimovDev1d ago
there's a speaker in my Mac Pro tower for beeps and the Macintosh booting sound playback. macOS exposes it as a sound output so you can play music through it.
soon_to_be_sb1d ago
> It was so absurd.

Yea, it is so amazing that it is a TV now.

soci1d ago
100+ messages in this thread so far but, seems nobody here has tried it yet. Well, I just did.

Absolutely impressive how loud it sounds. This must be ruining my trackpad haptic motor for sure.

Also, although it may not be an intended feature, I find it awesome that it "speaks" in the language set in your Mac. I have my Mac in Catalan, so spoken English sentences are difficult to comprehend, but Catalan ones sound quite "nice" as it let's you type whatever you want to hear.

alacritas01d ago
running it kinda fixed mine from being weak. It might have been a bit stuck before and driving it so strongly might have freed it up
RossBencina1d ago
Interesting that Apple's API uses a sum-of-sines representation for controlling the motor. I wonder whether this is to avoid accidentally burning the motor out, to make it easier to compensate the actuator dynamics using simple feed-forward per-partial amplitude and phase correction, or to provide a low-bandwidth encoding that can be sent across USB/HID efficiently. Maybe all of the above?

It would be interesting to see what the USB stream looks like when running Nospeaker on a Magic Trackpad 2.

donatj1d ago
These fun ways to reuse existing hardware for new purposes are my favorite kind of "hack".

I remember there was a project back in the day that used I believe the accelerometer for locking your hard drive actuators to allow you to move your whole laptop around like a wiimote.

TheCycoONE1d ago
Which could be used to play Neverball on a Thinkpad like one of those maze ball toys.
mandeepj1d ago
> NO SPEAKER drives that motor up to 4,000 times a second

How long before that motors dies due to that imposed and newly formed wear and tear? Will Apple care honor a replacement? I don’t think so, given how picky they are.

dabinat1d ago
I don’t know if you can even get a haptic motor replacement from Apple. I’d imagine it fails very rarely in normal use. They’d probably have to replace the whole logic board.
pvtmert1d ago
The fact that I know some (ex-)colleagues of mine and how they used their work laptop (aka MacBook Pro) I would say that haptic motor failure is least of the problems...

p.s: these people also file for the replacement on the day their machine hits the 4year mark. (which was the company policy for new hardware)

ledauphin1d ago
this is the best hacker content I've seen in a while.
reconnecting1d ago
Something smiliar with floppy driver. Floppy music - Imperial march

https://www.youtube.com/watch?v=yHJOz_y9rZE

solstice1d ago
Wow, this is so good. I burst out laughing when I saw how far this madness had progressed in his later videos: https://www.youtube.com/watch?v=AtRVTYMA87k
Wowfunhappy1d ago
My favorite in this genre is the Yoshi's Island athletic theme: https://www.youtube.com/watch?v=f_fqxKwVSJM

I just think it sounds so weird but also so legitimately good!

ramses01d ago
Radiohead "Nude" - https://www.youtube.com/watch?v=CgB5DU0uEdg&t=65s

...legitimately my favorite way of hearing that song! 16 years ago, 50k views

[edit: I should mention that this makes my number of listens a nearly countable percentage of total views...]

antback1d ago
OK, I think this is cool, but won’t it break the haptic motor after a few weeks?

Anyway, as an experiment, it’s awesome. Some people are seriously creative :-)

Rohansi1d ago
Probably not. This has been done will all kinds of motors over time. The Steam Controller has similar haptic motors for its trackpad which are used to play a few sounds officially, and can also play music.
pjerem1d ago
The joycon's motors are also used to make some sounds in first party games like Mario Party.
Rebelgecko1d ago
The steam controller has a cool demo where someone makes it vibrate on a table in a way that causes it to move onto a charging dock
rtkwe1d ago
The taptic engine (tm) that drives those haptics is very similar to a speaker already just with mass instead of a speaker cone so possibly not.
fzeindl1d ago
On a similar note: HP scanner easteregg, where it plays ode to joy: https://www.youtube.com/watch?v=KImkZvLOCfA
wingspar1d ago
Story time… I recall back in the day, circa ‘79 a game in the TRS-80 called Graphic Trek. A space combat game.

The TRS-80 had no sound ability. But this game had sound! Shoot an enemy spaceship and it had zap sound.

It was rapidly turning on and off the to tape drive relay really fast…

It was shocking. Not long after, the tape system was adapted where you’d hookup a speaker and the computer could generate audio through the same mechanism for saving programs via audio on the tape drive.

bze121d ago
This is sweet! I’ve always thought haptics were such an underused medium

I’m working on a project in the same spirit — it’s a haptic-synced music player (for iPhone)

https://boombap.biz/clips/55359af6-4a03-4498-b410-453338003f...

The idea is for artists to share haptic teaser clips of their music

jader2011d ago
Reminds me of the floppy disk setup making full-on music.

FF7 boss theme:

https://www.youtube.com/watch?v=RLXQpJgZklk&t=24s

(Actual theme for comparison: https://www.youtube.com/watch?v=z_GUWdkJQgw)

alacritas01d ago
I think running this just freed up my haptic motor on my macbook m1 air!! Before, the feedback would be really weak and some days would be better than others. Now it just feels like a normal macbook and the clicking sensation is about 2x stronger now
sleep_debt1d ago
I was gonna say this is a good way to burn the motor out, but...maybe it could also free up a seized or dirty motor? Interesting.
raudette1d ago
This reminds me of a demo on my Amiga that played with the floppy drive's stepper motor speed to play El Condor Pasa: https://youtu.be/idLVcj-ic3g?t=71
Fnoord1d ago
./nospeaker "Serve the public trust. Protect the innocent. Uphold the law."
ShinyLeftPad1d ago
I wonder why limit to talking, could probably route any sound to it via a virtual audio device?
zeroq1d ago
Because "talk is cheap".
odyssey71d ago
There is a video on the creator’s x that demos music as well.
oreilles1d ago
It was already possible to use the Macbook's trackpad as a weighting scale [1]. Now as a speaker. Then what..?

[1] https://news.ycombinator.com/item?id=44635808

aenis1d ago
OK, that got me thinking. My Mac already makes weird sounds when I push the gpu hard (weird, thermal expansion crackling noises). Need to see if I can control that :-)
_def1d ago
missing a demo video
exitb1d ago
https://nitter.netbub.com/codycollier/status/212450585988371...
somedude8951d ago
That's extremely cool. Would allow for some great practical jokes.
AndrewKemendo1d ago
Probably a better link
unwind1d ago
I get a very pompous "blocked by Gandalf". Sorry for visiting your precious page, you olde wizard. :/

Edit: typo fix.

HelloUsername1d ago
Try https://xxcancel.com/codycollier/status/2124505859883716918
andai1d ago
Me too. Fortunately it's just Twitter. So just rewrite the autism to "x.com" and it magically works:

https://x.com/codycollier/status/2124505859883716918

IHLayman1d ago
Can't every speaker also be used as a microphone? If so, isn't this a huge security hole? Either way, what is the best way to turn this functionality off?
luyu_wu1d ago
No, typically speakers do not have a ADC attached, only a DAC.
asimovDev1d ago
Good ole days of plugging headphones into the microphone and jack and speaking into the earmuff
klinquist1d ago
Presumably the haptic engine control is write-only.
Saturdays1d ago
Ah nothing like some good'ol fun, one of the more recent cool projects I've seen on Hacker News!

Gave it a try, might wrap it in an interface so I can access via menu bar or something

PaulStatezny1d ago
Recommendation: Ask Gemini to rewrite the README. It will come out like 90% more human readable.
borlox1d ago
What LLM does the current readme come from? Why not rewrite it by humans?
PaulStatezny1d ago
It appears to be Claude, possibly an older or lower powered model.

I agree, human-written would be ideal. :D

Daneel_1d ago
I wonder when we'll see data exfil via ultrasonic trackpad-speaker?
TehCorwiz1d ago
That was literally my first thought.
rob741d ago
Apparently there's a video showing this on their Instagram profile (https://www.instagram.com/zxi/). I have two thoughts on that:

- why not Youtube? At least there you don't have to sign up to watch a video! Fortunately someone else made a Youtube short: https://www.youtube.com/shorts/MB6kg-Rr3pY

- once they have a video that's accessible to everyone, they should link it in the project's README.

ploppyfenis1d ago
bro makes an insane project, shares it with HN, just for some chud to complain theres no vid in the readme... lmao
MSFT_Edging1d ago
misuse of "chud".
thinkersclub1d ago
This is call, hope this won't make my mac goes out of warranty. Just wondering what should be the reason I will give to service technician when he ask what happened ?
gavinmckenzie1d ago
This brings back fond teenage memories of sorta playing music by manipulating the stepping motor of the Commodore 1541 floppy drive.
robenheimer1d ago
pretty cool. i killed it 30 seconds in, though, because that sounded like it was probably bad for my trackpad
_bobm1d ago
Thas an extra long em-dash, the em-em-dash.
andai1d ago
0x2500, Unicode Box Drawings Light Horizontal

The first one in this block

https://en.wikipedia.org/wiki/Box-drawing_characters

drfloyd511d ago
The spaghetti-dash.
larodi1d ago
We need s.o. make the coil talk under GPU load. it does atm but is in alien language
hankbond21h ago
My brain loves this and the rest of my body hates it.
sam1r1d ago
This is why your laptop mouse doesn’t click when it’s completely dead, fyi
speedping1d ago
Piping curl output from a random website to sh seems crazy to me
lopis1d ago
Live a little!
allthetime1d ago
with great power comes great responsibility

(you can read the code first)

frangonf1d ago
Finally, the macFloppotron
rbanffy1d ago
Don’t we all love the creative misuse of technology?
amelius23h ago
Can it be turned into a microphone?
nsoam1d ago
Oh, that can't be good for the struts.
kart231d ago
how long til this is used to steal crypto from an airgapped machine
souvlakee22h ago
That was very scary.
sooraj_sj1d ago
is that of any use ? already tired with magic mouse , never use trackpad
conroydave1d ago
how long until someone turns it into a modem?
hinkley22h ago
I am quite disappointed in how un-haptic the haptics in the macbook have remained. Semantic diffusion or just lowered expectations?
selimthegrim1d ago
Macintosh Plus on a Macintosh…

GitHub - os6/nospeaker: make your macbook's trackpad talk using its haptic motor

make your macbook's trackpad talk using its haptic motor - os6/nospeaker

GitHub