nyuuzyou/wikis huggingface dataset:
SMC

The System Management Controller (SMC) is a subsystem of Intel processor-based Macintosh computers. It is similar in function to the older SMU or PMU or UAE of non-Intel Macintosh computers, as well as the newer T2 Security Chips made by Apple (more information here; spoiler alert, they're really annoying).
==Overview==
The SMC has roles in controlling thermal and power management, battery charging, video mode switching, sleep and wake, hibernation, and LED indicators. It also enables enforcement of the macOS End User License, allowing macOS to identify when it is running on non-Apple hardware.
==Troubleshooting==
To reset your SMC, see this page.
For older machines (Ivy Bridge Haswell and Broadwell), see this page.
For CD3215 without T2 chip, see this page.
For CD 3215/17 with T2 chip, see this page.
For a more in-depth explanation of how the SMC circuit works and basic functionality, see this page.
To reflow, solder and/or replace the SMC, see this page.
For more info on the SMC circuits, see this page.
For SMC sensor codes, see this page.
To Flash the SMC, see this page.
==See also==
Wikipedia
SMC Circuits

We need to provide power, clock and reset signals to kick-start the SMC chip.
pp3v42_g3h created by u7090 will provide main power to the SMC chip u5000 via the BGA ball K12, VBAT. The pp3v42_g3h also goes through L5001 to power the SMC internal logic model VDDA. The SMC will create pp1v2_s5_smc_vddc to power itself. Then the SMC crystal circuit will start to output 12 MHZ square-ls clock for the SMC.
U5110 monitors the voltage of pp3v42_g3h. If pp3v42_g3h is not less than 3.0V and stable, U5100 will output a delayed smc_reset_l 3.3V to reset the SMC chip. The delay time is determined by R5101and C5101. U5110 also outputs pp3v3_s5_avref_smc 3.3V references voltage for the analog-digital conversion function of SMC sensors circuits including current sensors, voltage sensors and temperature sensors.
On receiving smc_bc_acok from charging chip u7100, SMC will communicate with the MagSafe via the one-wired circuit and the green light on the charger will be on. Meanwhile, SMC uses SMBus to communicate with u7100 to adjust the ppbus_g3h from base voltage 8.1V to standard 8.45V. If you can get 8.45V ppbus_g3h output, it means SMC is functioning, at least partially. SMC uses the same SMBus to read battery status to determine the battery charging current. SMS monitors system input current (AMON) and battery charging current (BMON) all the time.
SMC is a very important and complex chip designed by Apple. There is no “new" SMC chip you can buy. It has to be from a donor board with the same model and year. We will discuss more SMC functions later.
SMC requires VDD (PP3V42_G3H), VDDA (PP3V3_S5_SMC_VDDA) and SMC_RESET_L to be 3.42V in order to turn on. It also requires the crystal to be in good shape to generate the clock. The crystal circuit is almost never the problem as long as it is not visually damaged.
VREFA (PP3V3_S5_AVREF_SMC) is not required for the SMC to turn on, but it is required to reach a stable S0 state, otherwise without current/voltage sensing working properly the board won't reach an S0 state or cycle. In general the board can still boot in SMC bypass mode.
SMC bypass is a mode where several SMC features are disabled (sensors in particular), you disconnect all power, press power button, connect Magsafe and keep power button held for 5 to 10 seconds. Fans should go at max speed.
Category:Mac 
Category:MacBook
SMC Compatibility

Question: That reminds me. I have to swap a SMC on a 2010 A1286. I don’t have an exact donor. Can I use a donor with a different processor?
Answer: [Piernov] as long as it's the same model donor board it's fine.
In some cases you can use one from similar boards. SMC firmware is exactly the same on 3476 and 3536 for example, I guess it's the same for 00163 and 00426.
In some other cases SMC from similar board should work fine but there may be some discrepencies (between 11" and 13" Air)
In some cases it'll not be 100% compatible but enough to boot, then you can force flash the SMC update for the correct board… may work.
For a 2010 A1286, the 2010 A1297 may be close enough for example, dunno.
LIST OF COMPATIBILITY:
820-3437 :
Fully compatible : 820-3435
Need to flash : 820-00165, 820-00164
820-3435
Fully compatible : 820-3437
Need to flash : 820-00165, 820-00164
820-00164
Fully Compatible : 820-00165
Need to flash : 820-3435, 820-3437
820-00165
Fully Compatible : 820-00164
Need to flash : 820-3435, 820-3437
820-3855
Need to flash : 820-5509
820-5509
Need to flash : 820-3437
Samsung Diode Mode Measurements

== Samsung Galaxy S7 Edge SM-G935A ==
=== PDF of All Pictures: ===
==== High Quality Pictures: ====
==Galaxy S8 SM-G950U==
=== PDF of All Pictures: ===
==== All Pics in High Quality: ====
==Galaxy Note 9==
Overall View: 
Connector 1: 
Connector 2: 
Connector 3: 
Connector 5: 
Connector 6: 
Connector 7:
Connector 8: 
==Galaxy S9 Plus==
Overall View 1: 
Overall View 2: 
OLED: 
Iris Scanner: 
Front Facing Camera: 
Proximity Sensor: 
Finger Print Scanner: 
 
Rear Camera: 
Charging Port: 
Battery: 
==Samsung S10==
OLED: 
Charging Port: 
Battery: 
Front Camera: 
Headphone Jack: 
Left Rear Camera: 
Right Rear Camera: 
==Samsung S10e==
OLED: 
12MP Camera: 
16MP Camera: 
Front Camera: 
Headphone Jack: 
Power Button: 
==Samsung S10+==
OLED: 
Front Camera: 
Headphone Jack: 
==Galaxy Note 10+==
Overall View 1:
Overall View 2: 
Front Camera: 
S Pen: 
Wireless Charger: 
Battery: 
OLED: 
Dock Connector 1: 
Dock Connector 2: 
Digitizer: 
Buttons: 
Rear Camera 1: 
Rear Camera 2: 
Rear Camera 3: 
==Samsung S20 Ultra==
Overall view: 
Overview 2: 
Battery: 
Power Button: 
OLED: 
 
Charging Port 1: 
Charging Port 2: 
Front Camera: 
Rear Camera 1: 
Rear Camera 2: 
Rear Camera 3: 
Rear Camera 4: 
Wireless Charging: 
Side Sensor: 
Sensor 2:
Single user mode

Booting into single user mode will allow you to run terminal commands with full access to the file system. After running your commands simply type in reboot.
NOTE: before having write access you will need mount the root volume as read/write
*mount -uw /
==Create a new user in Single User Mode (This creates a new Administrator Account)==
You can create a new administrator account by restarting the Setup Assistant:
#Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
#Mount the drive by typing /sbin/mount -uw / then ↩ enter.
#Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
#Reboot by typing reboot then ↩ enter.
#Complete the setup process, creating a new admin account.
With macOS Catalina, the APFS volume scheme is a little different. Change step 2 to /sbin/mount -uw /System/Volumes/Data . Continue to step 3.
==Creating a new user with macOS Catalina, Big Sur and Monterey using Terminal in recovery mode.==
It appears that with Big Sur, you loose Admin privileges in single user mode. So in order to delete the Apple Setup Done file, we now have to boot into Recovery mode first and use Terminal to carry out our command. Very similar to the above method of removing the file .AppleSetupDone, we need to locate the db folder in the Macintosh HD Data partition. With macOS Big Sur and Monterey, the db folder has now been relocated in an additional "private" folder. 
#First, Boot into Recovery Mode with CMD+R
#Access Disk Utility and mount the Data volume. Should be called Macintosh HD - Data
#Close Disk Utility and open Terminal.
#From terminal enter this the new command. rm /Volumes/Macintosh\ HD\ -\ Data/private/var/db/.AppleSetupDone then enter.
#Reboot by typing reboot then enter
#Complete the setup process, creating a new admin account.
More information on this method can be found here. https://discussions.apple.com/docs/DOC-250002676
==Delete test account in Single User Mode (This removes any test acct and creates a new Admin acct)==
#⌘+S
#/sbin/mount -uw /
#cd /var/db/dslocal/nodes/Default/users/
#rm test.plist
#rm -rf /Users/test
#rm /var/db/.AppleSetupDone
#reboot
With macOS Catalina, the APFS volume scheme is a little different. Change step 2 to /sbin/mount -uw /System/Volumes/Data . Continue to step 3.
Category:Mac
Software Sensor Readings

page needs user contributions. If you have one of these machines in fully-working condition, please consider adding your values
==Macbook Air 13" 2015-2017 (820-00165)==
==Macbook Pro Retina 13" 2015 (820-4924)==
13", 2015, 2.7 i5, 8GB, 128GB 
Battery cycle 1026
MacOS 10.15.7
HWSensors version: 6.26.1440
Stats version: 2.6.3
==Macbook Pro Retina 15" 2015 iGPU (820-00138)==
to be added
==Macbook Pro Retina 15" 2015 dGPU (820-00163/820-00426)==
Note: Do know, with nothing but external monitor connected, and usb or ssd testing operating system, the heatpipe air sensor readings will be 128C. It is most likely not an actual sensor issue. Verify with good trackpad connector, and or trackpad.
Start Up Manager

Key Combination: Hold Option on start
Start Up Manager allows you to boot from an external device, whether that be a USB Flash Drive, External Hard Drive, or with more recent machines over the Network via Netboot. If your desired disk isn't showing up, newer machines don't show devices that use Option ROM Firmware until you load their firmware. To do so, press Option + Shift + Command + Period while in startup manager. If a firmware password is in use, the ability to load Option ROM Firmware devices is disabled.
Startup Keys

==Modern (Intel) Macs==
NOTE: Macs with a firmware password will not allow booting from a different volume without password. They will not PRAM.
===Recovery:===
*Command + R: Start up from built in recovery mode.
Macs upgraded to macOS 10.12.4 or later:
*Option + Command + R: Start up from latest internet recovery compatible with your Mac.
*Shift + Option + Command + R: Start up from internet recovery closest to original macOS that came with your Mac.
Macs not upgraded to macOS 10.12.4 or later:
*Option + Command + R: Start up from internet recovery closest to original macOS that came with your Mac.
===Resets:===
====PRAM Reset:====
*Option + Command + P + R: Reset NVRAM/PRAM. This will reset screen brightness, volume, default boot drive to first available storage device (usually internal HDD/SSD), Bluetooth/WiFi settings, Find My [Mac] token, display resolution, and Gpu selection.
====SMC Reset:====
*Left Control + Left Option + Right Shift + Power (7-45 seconds) - For Notebooks with T2 Chip
*Left Shift + Left Control + Left Option + Power -For Notebooks with non-removable battery and no T2
*All others - Discharge machine
===Diagnostic:===
*Option: Use the Start Up Manager. Newer Macs allow WiFi booting and selection of NetBoot volumes from this screen.
*Shift: Start up in safe mode.
*D: Start up the build in Apple Hardware Test (AHT).
*Option + D: Start up the internet Apple Hardware Test (AHT).
*N: Start up from the last or default NetBoot volume.
*Option + N: Start up from the default NetBoot volume.
*Command + S: Start up in single user mode.
*T: Start up in target disk mode.
*Command + V: Start up in verbose mode.
*Eject, F12, or pointer button: Eject removable devices.
*C: Boot from optical drive.
Category:Mac
Stuck System Upgrades

If you encounter a Mac that is stuck on the loading screen
* Check the disk first with DriveDX. 
* Check to see if the storage and hard drive cable are good. The important SMART stats to look at are sector errorsand CRC errors.
* Use Disk Utility to run first aid. If you get anything other than OK and "Operation Successful" there is an issue that needs to be repaired before moving on
* Hold the Shift key to boot to safe mode. Type in the password. Reboot when done
T1 MacBook WiFi IC Replacement

In the event a WiFi IC is internally shorted on a MacBook Pro with a T1 processor (2015-2017), you must replace the WiFi IC as well as the WiFi ROM and Bluetooth ROM from a matching donor board. The WiFi IC U3700, WiFi ROM U3780, and Bluetooth ROM U3770 are paired together and all 3 chips must be transferred together in order to restore WiFi Functionality. 
Below I have provided images from an 820-00840-A Logic board that had a short on PP3V3_s5 inside of the U3700 WiFi IC.
If you ONLY migrate the Wifi IC U3700, the MacBook will acknowledged the presence of the WiFi IC, however, WiFi will NOT work and report NULL under System Information. 
Replacement WiFI IC has to come from matching donor board, similar to SMC Replacements on older MacBooks. Do not use an iPad Air WiFi IC as it does not have the firmware provided by the WiFI ROM to properly function.
In theory, you may be able to dump the firmware of a donor WiFi ROM and Bluetooth ROM to the patient ROMs. However you still have to transfer the WiFi IC from the donor board where you would be getting the ROM dumps from, so you might as well just transfer the ROM chips instead.
Terminal Commands Cheat Sheet

===Shortcuts===
Key/Command 	Description
Tab 	Auto-complete files and folder names
Ctrl + A 	Go to the beginning of the line you are currently typing on
Ctrl + E 	Go to the end of the line you are currently typing on
Ctrl + U 	Clear the line before the cursor
Ctrl + K 	Clear the line after the cursor
Ctrl + W 	Delete the word before the cursor
Ctrl + T 	Swap the last two characters before the cursor
Esc + T 	Swap the last two words before the cursor
Ctrl + R 	Lets you search through previously used commands
Ctrl + L or Command + K	Clears the Screen
Ctrl + C 	Kill whatever you are running
Ctrl + D 	Exit the current shell
===Core Commands===
cd 	Home directory 	
cd [folder] 	Change directory 	
cd ~ 	Home directory, e.g. ‘cd ~/folder/’ 	
cd / 	Root of drive 	
ls 	Short listing 	
ls -l 	Long listing 	
ls -a 	Listing incl. hidden files 	
ls -lh 	Long listing with Human readable file sizes 	
ls -R 	Entire content of folder recursively 	
sudo [command]	Run command with the security privileges of the superuser (Super User DO)	
open [file] 	Opens a file 	
open . 	Opens the directory 	
top 	Displays active processes. Press q to quit 	
nano [file] 	Opens the Terminal it’s editor 	
pico [file] 	Opens the Terminal it’ 	Exit
clear 	Clear screen 	
===Command History===
history n	Shows the stuff typed – add a number to limit the last n items
ctrl-r 	Interactively search through previously typed commands
![value] 	Execute the last command typed that starts with ‘value’
!! 	Execute the last command typed
===File Management===
touch [file] 	Create new file
pwd 	Full path to working directory
.. 	Parent/enclosing directory, e.g.
ls -l .. 	Long listing of parent directory
cd ../../ 	Move 2 levels up
. 	Current folder
cat 	Concatenate to screen
rm [file] 	Remove a file, e.g. rm [file] [file]
rm -i [file] 	Remove with confirmation
rm -r [dir] 	Remove a directory and contents
rm -f [file] 	Force removal without confirmation
rm -i [file] 	Will display prompt before
cp [file] [newfile] 	Copy file to file
cp [file] [dir] 	Copy file to directory
mv [file] [new filename]	Move/Rename, e.g. mv -v [file] [dir]
===Directory Management===
mkdir [dir] 	Create new directory
mkdir -p [dir]/[dir]	Create nested directories
rmdir [dir] 	Remove directory ( only operates on empty directories )
rm -R [dir] 	Remove directory and contents
===Pipes – Allows To Combine Multiple Commands That Generate Output===
more 	Output content delivered in screensize chunks
> [file] 	Push output to file, keep in mind it will get overwritten
>> [file]	Append output to existing file
< 	Tell command to read content from a fi
===Help===
[command] -h 	Offers help
[command] —help 	Offers help
[command] help 	Offers help
reset 	Resets the terminal display
man [command] 	Show the help for ‘command’
whatis [command]	Gives a one-line description of ‘command’
Source: https://gist.github.com/poopsplat/7195274.js
Thermal Cameras

1. HT-A2 + ZnSe Focal Lens
*I ordered the camera directly from Aliexpress - https://www.aliexpress.com/item/32963919097.html?spm=a2g0s.9042311.0.0.413e4c4dW0lD8P the HT-A2 Camera is a standalone smartphone-like device with IR sensor resolution 320x240px. it also has camera for combined mode (like many of quanli cameras), howerver with this mod image is sharp enough to turn normal camera completely off. 
*
*Please be advised that this camera is not capable of recording video, keep this in mind if capturing video is important for your work. It can only capture photos.
*
*Lens used in the example - ZnSe Focal Lens, 20mm Diameter, 50.8mm Focus Lenght
*
*Lens adapter used in the example (by OZ2CPU) - https://www.thingiverse.com/thing:4964427/files (Requires glue)
Throttling

Throttling (arbitrary frequency limitation of the CPU) happens when a sensor is reading bad, a bad battery is used or battery is absent. The machine becomes slow but not always totally unusable. Youtube video playback can become choppy at higher resolutions, moving cursor halts video, etc... The CPU temperature won't go up in most cases (and the fan will either stay quite low or ramp up fully).
*To find missing sensors, use ASD and decode here : sensors codes or use AHT/AD, not as specific.)
Intel Power Gadget can be used to monitor the power consumption and the actual core clock of the CPU to observe proper boosting behaviour under load. Intel Power Gadget is only available starting from 2nd gen Core CPU. Trying to run it on 1st gen Core will result in an immediate kernel panic. Instead, while it is much less user friendly, the following command can be used in the Terminal to monitor the actual core clock, refreshing every 0.1s:
 sudo powermetrics --sampler cpu_power -i 100
==820-2936==
===No battery===
===With battery===
==820-00165==
The following example is a 820-00165 (MBA 13" 2017 i7) with prime95 torture test starting in the middle of the graph.
Topcase information

=WORK IN PROGRESS=
This page contains information about topcases and how to distinguish different model years based on no more than the topcase itself and its features/model numbers.
Information about compatibility between the different years will be added when possible as well.
=MacBook Pro=
Screen size	EMC 	Model N°	Date 	Model ID 	Board number	Topcase model N°	Topcase date	Topcase lot number	Letter code
13" 	 	A1502 	 	 	 	 	 	 	
 	 	A1502 	 	 	 	 	 	 	
 	 	A1502 	 	 	 	 	 	 	
15" 	EMC 2512/2673	A1398 	Midi 2012/Early 2013	MacBookPro10,1	820-3332 	613-9739-D 	14.12.11 	0000141930 	K
 	 	 	 	 	 	613-9739-D 	13.06.09 	0000259210 	K
 	 	 	 	 	 	613-9739-D 	2012.08.25 	01MPN20041 	F
 	 	 	 	 	 	613-9739-D 	13.06.09 	0000259210 	K
 	EMC 2674 	A1398 	Late 2013 	MacBookPro11,2	820-3662 	613-1325-08 	2013.11.29 	01MPN00336 	F
 	 	 	 	 	 	613-1325-09 	13.02.07 	01MPD10724 	F
 	 	 	 	 	 	613-1325-08 	2013.10.14 	01MPD00386 	F
Trackpad & keyboard

Issue: Trackpad & Keyboard do not function on A1465 and A1466 MacBook Air
Troubleshooting Steps
#Test boot and hold option. Does it bring you to the boot menu? Does the trackpad/keyboard work? If no, continue on step 2. If yes, skip to step
#Inspect trackpad flex cable for any damage or corrosion. Sometimes it is only visible under microscope. It is also a safe bet to swap the cable and test.
#Test with a new trackpad, and keyboard disconnected.
#Measure voltages going into J4800. Does it have power where there should be power? 
Case Example: A1465 2013 11" MacBook Air: Original issue was SMC failure, and it sat in my drawer for about a year. Finally replaced SMC and the unit boots up and works fine, but no trackpad or keyboard in the OS. They do work on the boot menu. I tested all components and discovered 0v on TPAD_USB_IF_EN coming from the PCH. I jumpered from PP3V3_S0, and the keyboard and mouse function. 
Note : if both TPAD_USB_IF_EN_CONN and TPAD_SPI_IF_EN_CONN are present (from jumping 3v3 to TPAD_USB_IF_EN_CONN) , mouse movement will be jittery, to fix this issue jump TPAD_SPI_IF_EN_CONN to ground.
Issue: Water damaged trackpad works but causes throttling and temperature error in FaceTime on A1465 MacBook Air (trackpad sensor issue)
Apple Diagnostics show error PFM006.
Troubleshooting Steps
#Inspect trackpad flex cable for any damage or corrosion. Sometimes it is only visible under microscope inside the connector on trackpad side or board side. It is also a safe bet to swap the cable and test.
#Test with a new trackpad, and eventually with keyboard disconnected. For testing purposes, you may use a trackpad from an A1466, they are compatible.
===A1502 and similar flexcable install===
#leave connector CLOSED
#align flex cable so it perfectly fits but not inserted
#open connector lock and let cable slide in
USB-C Pinout

The USB-C port on an A1708 is constructed with from a metal cap, a PCB, and a pin carrier. The metal cap has a ground shield that extends toward the end of the port and kapton tape on the inside to protect against shorts. The PCB layer has indents in the sides of the ports to allow the USB C cable to grab on to. The pin carrier has a metal frame and shields that partially cover the exposed port like the metal cap does. The pins are held in place with a plastic. All three of these components are soldered together.
Common power sequence:
=====Common problems on Macbooks:=====
#No External monitor, also Not able to charge / but USB connectivity works. In most cases means CC1 or CC2 pin is either damaged or dataline is burned on cd3215/17 side. There are usb 2.0 lines in the middle, they work fine in both orientations, thats why it somehow detects storage devices.
#Charging works only in one orientation same with CC1/CC2, most likely damaged connector.
#Charging works, data transfer too, no external screen with known-good cable Inspect dataline pairs for damage or shorts. Shorted dataline usually is a bad sign.
#Damaged port, no image on the screen RIP CPU. Despite all possible precautions, it is possible to kill the CPU by sending 20V to some of Datalines around. In most cases it will blow the cd3215 but before replacing dead CD3215 check if there is a short on USB_UPC_PCH_XA( or B)_P(or N).
Update Certificates in Older macOS

The root certificates of older macOS like El Capitan are expiring. Below is a script to pull the updated certs from the logi.wiki source and install them to an older system.
Open a terminal by using Spotlight Search (Command(⌘) + Space) and type Terminal. Then copy and paste the following command into a terminal. After pasting press enter. You will get a password prompt popping up. Enter your password and click OK. Alternatively you can open Terminal by opening the Utilities directly by pressing Shift + Command(⌘) + U after clicking Finder to activate it.
bash <(curl -s http://logi.wiki/rootcerts.sh)
You can also add it to a scripting system like DeployStudio by adding a DS to the end.
curl -s http://logi.wiki/rootcerts.sh | bash -s DS
For more information and other methods see https://logi.wiki/index.php/ERR_CERT_INVALID
Useful Websites

Save these, bookmark these, use these.
Everymac Lookup
Beetstech Device compatibility look up.
MacBook Pro Unibody Power On Pad Locations
MacBook Air Power On Pad Locations
MacOS A-Z Terminal Commands
Fix Fusion Drive - WARNING! ERASES EXISTING DATA IF ANY!!!
2012 and Earlier Mac Pro RAM Instructions
Apple Exchange and Repair Programs
Apple System Status
Logiwiki
Apple Wiki's - Be sure to bookmark Apple product Wiki's in Wikipedia.  Each has very detailed technical information listed within which is uber helpful.  I am not going to copy and paste each one here, but please use this valuable resource!
Useful tools

== Here you will find a list of various tools that might not be easy to find on your own ==
Nerd-tool: tool for calibrating the sleep sensor on 2019+ macbooks: https://notebooknerds.de/en/nerd-tool-1/
Lifeboat (076-00236), tool for extracting data from 2016-2017 Macbook Pros, usually out of stock these days: https://www.ebay.co.uk/itm/282989664130
FNB58: most recommended USB-c meter, for use with macbooks, iphones, androids etc https://www.aliexpress.com/item/1005005108936815.html