TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: DualShock calibration in the browser using WebHID

125 pointsby al_alabout 1 year ago
This website uses undocumented HID commands of both DS4 and DualSense to re-center and recalibrate DualShock analog sticks.

16 comments

NelsonMinarabout 1 year ago
Really nicely done!<p>Can recalibration help when the controller is connected to a Playstation? Does it store the calibration somehow in the controller? Or is this only useful on a PC?<p>I&#x27;d love to somehow restore my PS5 DualSense that&#x27;s fallen victim to stick drift. I looked once in Steam&#x27;s debug info and instead of the stick reading 0 at center it was reading about 20,000. Given the max is 32,767 I&#x27;ve lost 2&#x2F;3 of the useful range, so maybe there&#x27;s no fixing it with software.
评论 #39981744 未加载
评论 #39980839 未加载
评论 #39981494 未加载
评论 #39983495 未加载
solardevabout 1 year ago
This is amazing!! Thank you! I don&#x27;t even have a PS controller and I&#x27;m grateful this exists.<p>I hope you&#x27;ll do one for Xbox Elite controllers and button remapping next :) It sucks having to boot into a Windows VM to remap them.
sumo89about 1 year ago
&quot;I noticed that many repair technicians were using my scripts to recalibrate controllers, which significantly reduced repair times and costs. However, many of them were also having a tough time setting up the environment to run the scripts: Python, libusb, Windows drivers, and all that complicated stuff: the user experience was completely off.<p>This led me to the idea of creating a multiplatform web UI that could simplify everything. I developed a prototype and shared the link on a Facebook group for repair technicians, where it was warmly (..really warmly!) received.&quot;<p>That&#x27;s so wholesome. Other people would have seen their software being used and decided they should be turning a profit from it.
评论 #39980423 未加载
评论 #39980320 未加载
terandleabout 1 year ago
Helped out with the drift on my DualSense, now I don&#x27;t have to trash it, thanks man!
TehCorwizabout 1 year ago
It&#x27;s detecting my Sony original DS4 controller as a clone.
评论 #39981889 未加载
herpdyderpabout 1 year ago
Calibration immediately errors out for my DualSense. Luckily mine doesn&#x27;t actually need any calibration, I was just trying it out :)
评论 #39981775 未加载
aidenn0about 1 year ago
Does this mean that a malicious website could intentionally miscalibrate any HID devices connected, or does it ask for permissions?
评论 #39983545 未加载
评论 #39983553 未加载
opanabout 1 year ago
Are there any plans to support Switch Pro Controllers?
heystefanabout 1 year ago
Can I detect analog stick drift with this?
sotixabout 1 year ago
&gt; It is available only for Google Chrome, Chromium or compatiable browsers (e.g. Edge) because it uses WebHID, a javascript extension that can be used to send commands to a HID device.<p>I didn’t know about WebHID, but it’s interesting Firefox doesn’t support it. According to Mozilla’s position[0]:<p>&gt; This API, like WebUSB, provides access to generic devices. Though this API is limited to human interface devices (HID), the same concerns apply as WebUSB, namely that devices are generally not designed with access from arbitrary websites in their threat model.<p>[0]: <a href="https:&#x2F;&#x2F;mozilla.github.io&#x2F;standards-positions&#x2F;#webhid" rel="nofollow">https:&#x2F;&#x2F;mozilla.github.io&#x2F;standards-positions&#x2F;#webhid</a>
评论 #39985480 未加载
评论 #39982596 未加载
评论 #39982140 未加载
hnburnsyabout 1 year ago
JFC, is there any host functionality that Chrome will not try and implement in the browser. No wonder it is so bloated and leaks your fingerprint in a million different ways.<p>Apple says they will not implement WebHID and 15 other &quot;features&quot; in WebKit...<p>&gt;Here are some examples of features we have decided to not yet implement due to fingerprinting, security, and other concerns, and where we do not yet see a path to resolving those concerns:<p><pre><code> Web Bluetooth Web MIDI API Magnetometer API Web NFC API Device Memory API Network Information API Battery Status API Web Bluetooth Scanning Ambient Light Sensor HDCP Policy Check extension for EME Proximity Sensor WebHID Serial API Web USB Geolocation Sensor (background geolocation) User Idle Detection</code></pre>
评论 #39985547 未加载
alickzabout 1 year ago
cool
steelbrainabout 1 year ago
Chrome is doing amazing work with these WebAPIs. Here&#x27;s a quick list of things enabled by Chrome being open-minded and allowing WebHID and WebUSB APIs to exist:<p>- Turn your Stadia controllers into bluetooth controllers: <a href="https:&#x2F;&#x2F;stadia.google.com&#x2F;controller&#x2F;index_en_GB.html" rel="nofollow">https:&#x2F;&#x2F;stadia.google.com&#x2F;controller&#x2F;index_en_GB.html</a><p>- Android Flash Tool: <a href="https:&#x2F;&#x2F;flash.android.com&#x2F;welcome" rel="nofollow">https:&#x2F;&#x2F;flash.android.com&#x2F;welcome</a><p>- fastboot.js - FastBoot API but entirely though the web: <a href="https:&#x2F;&#x2F;kdrag0n.github.io&#x2F;fastboot.js&#x2F;demo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kdrag0n.github.io&#x2F;fastboot.js&#x2F;demo&#x2F;</a><p>- WebADB - Android debugging interface through the web: <a href="https:&#x2F;&#x2F;app.webadb.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;app.webadb.com&#x2F;</a><p>and here&#x27;s my favorite (because I used it in my RX-8)<p>- Node-Carplay - Carplay interface through a USB dongle in your browser with no external dependencies!!1! (<a href="https:&#x2F;&#x2F;github.com&#x2F;rhysmorgan134&#x2F;node-CarPlay">https:&#x2F;&#x2F;github.com&#x2F;rhysmorgan134&#x2F;node-CarPlay</a>)
评论 #39985168 未加载
评论 #39986022 未加载
评论 #39985487 未加载
评论 #39985094 未加载
the__alchemistabout 1 year ago
Hey - total tangent, but... I&#x27;m playing through Horizon Forbidden West. It&#x27;s the first game on PC I&#x27;ve played that supports the DualSense (PS5 controller)&#x27;s haptic motors and adaptive triggers. They are something else when integrated properly with game events and sounds. It would be cool if this were integrated into more games!
评论 #39983120 未加载
评论 #39980024 未加载
mdrznabout 1 year ago
Helvetica with font-weight 300 makes the text really thin and hard to read at 100% zoom.
评论 #39980381 未加载
评论 #39980124 未加载
michaelmroseabout 1 year ago
So a malicious website can brick controllers. Good for author but I&#x27;m surprised its even possible.
评论 #39984150 未加载
评论 #39982661 未加载