Please enable JavaScript.
Coggle requires JavaScript to display documents.
MacOS Knowhow (Finder (how to show hidden files/folders
defaults write…
MacOS Knowhow
Finder
-
-
:!:Finder is using too much memory
Currently, my uptime is about 7 days, and finder is using 1.74 MB of memory (1.65 compressed, real mem=182 MB). First of all, does this mean that 1.65 of the memory is compressed? Currently, my swap usage is 524 MB. memory pressure graph is showing a medi-core green region. Following threads talks about some cures: killing finder could be an option, or re-indexing spotlight can be an option they say:
https://apple.stackexchange.com/questions/53075/when-will-finder-use-large-amount-of-memoryI am planning to use the device as is at the moment and will see what happens.
how to show hidden files/folders
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
If you run it using false, it will hide them again.
:warning:Note: In open folder dialog, cmd - shift - . also toggles viewing of hidden files and folders
Memory management
-
how does integrated graphics affect RAM usage? this article says that it costs 1.5 GB of system RAM to drive the integrated GPU. If that is correct, 16 GB mbp with a dedicated RAM means indeed like 17.5 GB.
IN theory, since mbp 16 also have an integrated graphics, if it is allocating that much anyway, it won't mean 17.5 GB of RAM
-
Swap usage.
At this page, it is argued that macos does not purge the cached files, therefore it swaps
This is a nice article on compression
This is another article on MacOS memory management
-
Window Manager
Capturing screen contents
link 1
Entire Screen
To copy the entire screen, press Command-Control-Shift-3. The screen shot will be placed on your clipboard for you to paste into another program like PowerPoint, Word, Photoshop, etc.
To capture the entire screen, press Command-Shift-3. The screen shot will be automatically saved as a PNG file on your desktop with the filename starting with “Picture” followed by a number, example Picture 1, Picture 2, and so on.
Portion of screen
To capture a portion of the screen, press Command-Shift-4. A cross-hair cursor will appear and you can click and drag to select the area you wish to capture. When you release the mouse button, the screen shot will be automatically saved as a PNG file on your desktop following the same naming convention as explained on the first tip above.
To copy a portion of the screen to the clipboard, press Command-Control-Shift-4. A cross-hair cursor will appear and you can click and drag to select the area you wish to capture. When you release the mouse button, you can paste the screen shot to another application.
-
Cycle between apps of same window
Cmd + (note that key is mapped to the key to the left of Z on US english layout)
Activity Monitor
-
network usage per process
nettop -P -k state,interface -d
-
-
-
Preview
Open another window of same document in preview
Choose file print then choose open in preview. quite tacky…
Battery
Discharging during sleep problem
https://www.youtube.com/watch?v=5Fp4_T4fe7k
- this video also recommends resetting smc for sleep power problems…
The following command:
ioreg -l | grep IOPlatformFeatureDefaults
shows:
{"TCPKeepAliveDuringSleep"=Yes,"DNDWhileDisplaySleeps"=No,"TCPKeepAliveExpirationTimeout"=43200But the following command:
log show --style syslog | fgrep "Wake reason"
shows an roc alarm wake up on every 2 hours.
This is related with make on demand feature. However, this time, I have first closed the lid, and then pulled out the magsafe charger. Therefore, the computer might have thought that it was still running on AC power, because wake on demand should only be available on ac power.https://www.youtube.com/watch?v=fc8mAnuGO04
- this video recommends changing the above setting dnd while display sleeps tckkeepalive etc…
Strange:
https://apple.stackexchange.com/questions/253776/macbook-pro-13-with-retina-display-consumes-10-battery-overnight-with-the-lid-cpmset -g
lists the tcpkeepalive as 1, and you can change it with:
sudo pmset -b tcpkeepalive 0
Warning: This option disables TCP Keep Alive mechanism when sytem is sleeping. This will result in some critical features like 'Find My Mac' not to function properly.
—— Ok I have changed the keep alive to 0It looks like the grep IOPlatformDefaults method does not work to be reported in latest os releasesNote: after using the command sudo peseta -b tcpkeepalive to set, the newly set value can be seen in the system report, however, you need to close the system report window and open it again to see the new setting.
Home brew
Followed instlalation istructions from here
Virtualization
Ubuntu on VirtualBox
Tried the instructions from here
Stability
:warning: :!:The system has crashed when 3 virtual machines with 2 GB RAM allocation each, are started simultaneously. First, the computer has locked, even touch pad was not registering a click. Then it displayed a message, and then rebooted.
keyboards
Coolermaster Masterkeys pro pbt switches to mac layout by pressing Fn + Ctrl + M. Hope it switches back to windows layout by pressing Fn + Ctrl + W :smiley:
-
External Drives
I was copying files on a USB thumb drive, then I cancelled it, then USB became corrupted. Then, I have found this and erased from there. However, only FAT option has worked. I could not format it using ExFat, for example
-
-
-
-
-
-