Skip to content

Instantly share code, notes, and snippets.

View al3xtjames's full-sized avatar

Alex James al3xtjames

View GitHub Profile

###Intel 7 Series/C210 Chipset Family:

Stock:

Intel 7 Series/C210 Chipset Family
├── USB 2.0 Enhanced Host Controller #1 (EHC1)
│   └── Internal Hub (PR01)
│       ├── Port 1 (PRT1)
│       ├── Port 2 (PRT2)
│ ├── Port 3 (PRT3)
@al3xtjames
al3xtjames / AppleSmBios.h
Created April 20, 2016 00:58
Apple-specific SMBIOS definitions
/** @file
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License that accompanies this
distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@al3xtjames
al3xtjames / xhc.md
Last active July 15, 2016 20:08
Haswell XHC Port Enable/Disable

Haswell DSDT excerpt:

Scope (_SB.PCI0.XHC.RHUB.HS01)
{
    Method (_UPC, 0, Serialized)  // _UPC: USB Port Capabilities
    {
        If (!PRTE (_ADR))
        {
            Return (UPCN) /* \_SB_.PCI0.XHC_.RHUB.UPCN */

}

@al3xtjames
al3xtjames / fstab.angler
Last active February 6, 2017 04:31
franco Kernel fstab for Nexus 6P (angler) with forceencrypt/verity enabled
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,discard,errors=panic,inode_readahead_blks=8 wait,check,forcefdeorfbe=/dev/
@al3xtjames
al3xtjames / fedora-25-dv7-4087cl.md
Last active May 24, 2017 18:24
Fedora 25 on HP Pavilion dv7 4087cl

Fedora 25 on HP Pavilion dv7 4087cl

Hardware specifications

  • CPU: Intel Core i5-430M @ 2.27 GHz (2 cores / 4 threads)
  • IGPU: Intel HD Graphics (Ironlake)
  • dGPU: AMD Radeon HD 5470M 512MB
  • WiFi: Intel Centrino Wireless-N 1000 (replaced with Intel Wireless-AC 7260)
  • Screen: 17.3" 1600x900 LCD

Post-installation tweaks

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.15294118225574493</real>

Keybase proof

I hereby claim:

  • I am al3xtjames on github.
  • I am alextjames (https://keybase.io/alextjames) on keybase.
  • I have a public key whose fingerprint is 596A 2627 9F82 5657 0296 530B 3A2A C7C0 12D6 5316

To claim this, I am signing this object:

@al3xtjames
al3xtjames / xserve_lspci.txt
Last active July 30, 2017 21:36
Xserve3,1 devices
00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 22)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
00:0d.0 Host bridge: Intel Corporation Device 343a (rev 22)
00:0d.1 Host bridge: Intel Corporation Device 343b (rev 22)
00:0d.2 Host bridge: Intel Corporation Device 343c (rev 22)
00:0d.3 Host bridge: Intel Corporation Device 343d (rev 22)
00:0d.4 Host bridge: Intel Corporation 7500/5520/5500/X58 Physical Layer Port 0 (rev 22)
00:0d.5 Host bridge: Intel Corporation 7500/5520/5500 Physical Layer Port 1 (rev 22)
@al3xtjames
al3xtjames / AppleRAIDCardFirmware.arcupdate.extracted.txt
Last active August 3, 2017 02:23
Apple RAID Card (Early 2009) stuff
_AppleRAIDCardFirmware.arcupdate.extracted ❯❯❯ tree
.
├── 18
├── 18261A5
├── 183D84F
├── 183D896
├── 183D896.gz
├── 197E7D7
├── 5A30
├── _18.extracted
diff --git a/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp b/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
index 7e667da..8e5f535 100644
--- a/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
+++ b/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
@@ -1432,6 +1432,23 @@ void ApplePS2SynapticsTouchPad::dispatchEventsWithPacket(UInt8* packet, UInt32 p
yraw = yraw * xupmm / yupmm;
int z = packet[2];
int f = z>z_finger ? w>=4 ? 1 : w+2 : 0; // number of fingers
+
+ // theracermaster: When DynamicEWMode is set, enable EW mode for 3/4 finger gestures