Skip to content

Commit

Permalink
Disable PS/2 stub on shutdown (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 authored Oct 13, 2024
1 parent 7350e3e commit bdbf806
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VoodooPS2 Changelog
============================
#### v2.3.7
- Fixed multiple PS2/SMBus devices attaching
- Fixed eratic pointer in bootpicker by disabling SMBus/PS2 devices on shutdown

#### v2.3.6
- Lowered macOS requirements to 10.10
Expand Down
6 changes: 6 additions & 0 deletions VoodooPS2Trackpad/VoodooPS2SMBusDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ bool ApplePS2SmbusDevice::start(IOService *provider) {
return true;
}

void ApplePS2SmbusDevice::stop(IOService *provider) {
_nub->uninstallPowerControlAction();
resetDevice();
super::stop(provider);
}

void ApplePS2SmbusDevice::free() {
OSSafeReleaseNULL(_data);
super::free();
Expand Down
1 change: 1 addition & 0 deletions VoodooPS2Trackpad/VoodooPS2SMBusDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class EXPORT ApplePS2SmbusDevice : public IOService {
static ApplePS2SmbusDevice *withReset(bool resetNeeded, OSDictionary *data, uint8_t addr);

bool start(IOService *provider) override;
void stop(IOService *provider) override;
void free() override;

private:
Expand Down

0 comments on commit bdbf806

Please sign in to comment.