HackerTrans
TopNewTrendsCommentsPastAskShowJobs

SyncOnGreen

no profile record

comments

SyncOnGreen
·قبل 3 أشهر·discuss
> SBU1 and SBU2 are secondary bus wires, for the DisplayPort AUX channel and hot plug detection (HPD).

Correction - HPD signal is translated into vendor message and carried over CC lines - same ones that are used for PD and AltMode negotiation.

In DP-Alt mode SBU1/2 basically becomes AUX+/-.
SyncOnGreen
·قبل سنتين·discuss
> Generating VERY precise timing and pulses, you need FPGA's or CPLD's

Back in the day, I managed to create a working RGH modchip based on Atmega8 (8 bit micro) running at 20 MHz with hand-crafted assembly code. I named it RWH (Reset Witch Hack) and it was able to boot Xbox 360 Jasper in 1-2 minutes. Old motherboards had a physical pad on the motherboard allowing for slowing down the CPU, so no i2c was required. I also have to connect the whole 8 bit POST bus to read the current value in one instruction.

PCB was made at home, and since AVR is 5V system, I used NPNs for voltage conversion (all values were inverted in the software).

Why? I didn't have money to buy the "real" CPLD modchip.

Rush and happiness when it first booted - priceless.

I still should have the source code for it somewhere on backup.

photos: https://gist.githubusercontent.com/JaCzekanski/c02ed11c30fac... https://gist.githubusercontent.com/JaCzekanski/c02ed11c30fac...
SyncOnGreen
·قبل سنتين·discuss
Sorry if you felt attacked, it wasn't my point.

Congratulations on developing and shipping a fully-fledged product, I hope I'll help people in need of a "it just works" solution for this particular problem. Paying for it is of course justified, as you poured your time and knowledge to provide a fully working fix.

Since this is Hackernews, I shared how I approached this problem on my devices - I use Hammerspoon to script little parts of the system I don't like in macOS and audio device handling is one of them.

I use a more complex version that handles additional pain points, but the default input source changing has worked just fine for me for the last few years (with AirPods, Bose QC35 and regular wired headphones).
SyncOnGreen
·قبل سنتين·discuss
The script can be extended with additional features like:

- fixing macOS balance bug (outputDevice:setBalance(0.5) on output device change)

- muting built-in speakers on headphones disconnect event

- pausing Spotify when external headphones are disconnected
SyncOnGreen
·قبل سنتين·discuss
Same can be achieved in a few lines of Lua using Hammerspoon and hs.audiodevice API.

    local builtinMicName = "MacBook Pro Microphone"
    hs.audiodevice.watcher.setCallback(function(e) 
        defaultMic = hs.audiodevice.defaultInputDevice():name()
        if (e == "dIn " and defaultMic ~= builtinMic) then
          local builtinMic = hs.audiodevice.findInputByName(builtinMicName)
          builtinMic:setDefaultInputDevice()
        end
    end)
    hs.audiodevice.watcher.start()
It doesn't seem fair to pay $20 per year for this. I'd be fine with one time payment.