MacBook Pro shutting down when asleep? Here's why

Tuesday October 24, 2017

Feature head image

I’ve had long term issues with my MacBook Pro shutting down in sleep mode. Other times I’ll open it and find it’s incredibly hot, with the fans blowing. The problem seems to have been magnified with the installation of High Sierra. I’m not alone: Some people had started calling this the “sleep of death”.

After resetting the SMC and NVRAM (both of which I advise as first steps for this issue), I experimented by turning off Power Nap. This is a relatively new feature on portable Macs that lets them perform some tasks – such as fetching emails, or applying updates – while the system is in sleep mode (that is, usually with the lid shut).

By turning off Power Nap the problem appears to have been fixed. In one case at least, consulting the system log showed that the crash and subsequent shutdown occurred when the system attempted to backup via Time Machine – again triggered by Power Nap. The Time Machine disk was getting full, and it seems my Mac’s response to this error message was to, well, give-up and turn itself off.

Turning off Power Nap is pretty simple – open-up System Preferences, click the Energy Saver icon, and then remove the check in the Power Nap box for both the Battery and Power Adapter tabs.

Power Nap is one of those features that’s nice to have, but hardly essential, and I’m not missing it at all. YMMV but see how to you get on if MacBook Pro sleep mode crashes or heat-ups are an issue for you.

Main feature illustration

Leave a comment... [1]

New command-line tools in High Sierra

Sunday October 1, 2017

Feature head image

Here’s a list of the differences between the main command-line tool listings in High Sierra compared to its predecessor Sierra. What’s new? What’s gone? Here you can find out.

There are not very many new tools, and none seem vital from an everyday-usage perspective. Perhaps of most interest is the removal of the command-line ftp and telnet programs – although surely this was a long time coming considering how insecure these are.

There’s also a new yaa archive filetype that I can’t find any information about online. But take a look at the list see what you think. If you can provide more info of any of the tools then share the info in the comments below.

To get this information I simply diff’ed the file listings of /bin, /sbin, /usr/sbin and /usr/bin on Sierra and High Sierra – these being listed in the $PATH for a standard macOS user (/usr/local/bin/ is also listed, but does not exist within a default install of macOS).

To compare the contents of the paths, I used a virtual machine with a fresh Sierra installation, and then updated it to High Sierra. Notably, the Xcode command-line tools were NOT installed, and nor were any third-party command-line managers like brew. It’s possible a virtual machine installation doesn’t install certain services common to an actual bare-metal installation of macOS. Therefore some command-line tools might be missing from this list.

In each case I’ve provided the summary in the man page for that command, or the description that appears when you type the command followed by ––help.

Here’s the new tools provided within High Sierra. See later in this blog post for tools that have disappeared.

/bin & /sbin
All filenames identical.

Contents of /usr/bin

Control the macOS content cache (from AssetCache manpage: “AssetCache speeds up the download of software and content distributed by Apple by locally caching assets that were previously downloaded on your network. AssetCache is launched automatically by the system. Users should not run AssetCache manually.”) MacKungFu note: This is part of the new caching server provided with the client macOS installation, and which was formerly part of macOS Sierra Server.)

This tool generates files that permit Apple to investigate issues with the disk and storage configuration of your device and to help improve related Apple products.

Configures the Disk Mount Conditioner. The Disk Mount Conditioner is a kernel provided service that can degrade the disk I/O being issued to specific mount points, providing the illusion that the I/O is executing on a slower device.

ktrace can configure the system to trace events, or record them to a file, and print a human-readable representation of the events.

yaa creates and manipulates YAA archives. MacKungFu note: I can’t find this archive file format mentioned anywhere online. Bizarre.

Contents of /usr/sbin

The Bluetooth daemon handles SDP transactions, link key management, and incoming connection acceptance. It cannot be used directly by the user. (MacKungFu note: the older blued is no longer in High Sierra but is present in Sierra.)

Control and report on CKKS (MacKungFu note: Appears to be CloudKit-related.)

skywalkctl is a utility used to interact with the Skywalk subsystem, which provides the plumbing between various networking-related pieces of software and hardware. It should only be used in a test and debug context. Using it for any other purpose is strongly discouraged.

The wfsctl utility allows administrators to start, stop, and check the status of the WebDAV File Sharing service (WFS). It also allows administrators to create and delete WebDAV share points. It operates by configuring the Apache httpd server. The wfsctl command requires root privileges.

Tools removed from High Sierra
Here are the tools in Sierra that have been removed from High Sierra. Note that I have not included tools that have been removed but that are still actually present with updated version numbers.

/bin & /sbin
As above, all filenames are identical.

Contents of /usr/bin

Control the macOS caching server.
Utility to verify certificates. The verify command verifies certificate chains.
Internet file transfer program. ftp is the user interface to the Internet standard File Transfer Protocol. The program allows a user to transfer files to and from a remote network site.
Server and Clients for Emacs
Server and Clients for Emacs
Server and Clients for Emacs
Server and Clients for Emacs
User interface to the TELNET protocol. The telnet command is used to communicate with another host using the TELNET protocol.
No man page but it’s part of the Ruby on Rails framework.
In its first form, tethered-caching creates a tethered network, starts a caching service, and prepares all tethered iOS devices to use that network and caching service. The caching service in macOS Server is configured and started if macOS Server is installed on this computer.

Contents of /usr/sbin

apxs is a tool for building and installing extension modules for the Apache HyperText Transfer Protocol (HTTP) server.
The Mac OS X Bluetooth daemon.
The timed utility is a time server daemon which may be invoked at boot time via launchd.
The timedc utility is used to control the operation of the timed program.

Leave a comment...

5 things you probably haven't spotted in High Sierra

Saturday September 30, 2017

Feature head image

Using High Sierra? Here’s a handful of things that you probably haven’t spotted. Discovered any more? Share them in the comments below. Remember: We’re only looking for things few people have yet seen. Headline features are easily read about on other blogs around and about.

1. Automatic GPU switching when MacBooks use mains power
Plug in a power adapter on a MacBook Pro with a GPU, and it’ll automatically activate the GPU. With previous releases of macOS/OS X, the GPU was activated on an as-needs basis, such as when you ran Adobe Photoshop.
Main feature illustration

2. Caching server
macOS High Sierra Server edition (around $20 on the App Store) has always been able to cache updates for other devices on the network. In other words, an iOS update would automagically be cached when it became available, and then all iPhones and iPads could grab it without having to download it themselves – saving time and Internet bandwidth. Nothing needed to be done to make this happen – it just worked. Well, in High Sierra, caching comes to all Macs. Just open System Preferences, click the Sharing icon, and then put a check in Content Caching. Mac updates will be cached too. Here’s a nice techie overview of this new feature.
Main feature illustration

3. Note pinning
Important notes within the Notes app can now be pinned to the top of the list, so you don’t miss them. Just swipe right on them, or right-click and select Pin Note. Or click File > Pin Note. This one was actually flagged by Apple in its intro to High Sierra that pops-up a day or so after you upgrade, but I’ll bet you didn’t bother to look at that, did you!?
Main feature illustration

4. “All my files” is now “Recents”
Easily one of the most dubious feature additions of recent years, All My Files in Finder’s sidebar was supposed to present you a quick at-a-glance view of things you’ve worked on. Instead, it was just a mess of files. In High Sierra, it’s switched out and now Recents takes its place, so that you now see – well – a list of the files you’ve recently accessed. It’s arguably still not very useful because it lists pretty much everything you’ve opened recently, and it would be more useful if it could reflect files you’ve actually edited or altered. Ah well. Maybe next time, Apple?
Main feature illustration

5. Media player keys now control YouTube (and others)
Until now the media keys on the keyboard, as well as the earpods’ in-line remote, have only controlled iTunes (and the system volume). In High Sierra, the keys control playback of HTML5 video players, such as YouTube. This works in a slightly odd although ultimately sensible way, in that it controls the last thing you started playing. For example, if you start a YouTube video playing and then start a song playing in iTunes, the media keys will control iTunes – just as they always did. But should you pause and then resume playback of the YouTube video, using the on-screen controls, the media keys will now control that YouTube video – because that was the last thing you started playing.
Main feature illustration

See also George Gardside’s terrific summary of hidden macOS High Sierra features. iPhone Hacks also wrote an interesting summary but there’s a lot of obvious stuff in there and a lot of filler (does anybody outside of India care that there’s now a Hindi San Francisco variant?!).

Hey! Are you a YouTuber looking to put all this into a cool video? Rather than stealing it, why not provide a quick link back to this page in the comments beneath the video? You’ll feel a lot less dirty for doing so, and maybe together we can create a fairer world…? It’s got to be worth a try.

Leave a comment... [2]

Speed-up Word 2016

Saturday June 17, 2017

Feature head image

As a professional writer I use Microsoft Word a lot but Word 2016 has always been problematically and annoyingly slow once I get beyond a few pages of text. I find that there’s a delay when I type, so what I see on screen trails behind, and sometimes scrolling down pages mean they don’t redraw instantly, leaving with me a grey screen for a second or two. Sadly, there’s no sign of a fix from Microsoft despite numerous complaints.

So, I searched to find some solutions. If you have the same problem, any or indeed all of these tips might help.

Note: If your problem is Word 2016’s slow start-up from cold, and not slowdowns during editing, see this older tip.

Make it compatible
Look at the title of the document in the Word window. Does it read immediately afterwards [Compatibility Mode]? This means the document hasn’t been updated for take advantage of all Word 2016’s new features, and it seems this also causes slowdowns. The fix is to click File > Convert Document. You’ll see a warning about how the layout of the document might be adjusted, so you might choose to save a copy of the document beforehand. Note two things. First, if the file was a .doc file then will be switched to .docx. Saving the file will create a new .docx version of the file alongside the older .doc file. Secondly, this change might cause problems if you work with people running old versions of Word. If that’s the case then the best policy might be to get them to open one of your converted documents as a test, to see what happens.

Main feature illustration

Switch to draft mode
Do you work in Print Layout view mode? I do, and have for years because I need to see when I’m filling up pages. However, switching to Draft (click the View menu and select the option) will very likely speed-up the document if you have a lot of text. Yes, you sacrifice WYSIWYG layout, and to me the whole thing looks a lot messier and… well, draft-like. But it’s definitely faster. Don’t forget you can adjust the zoom level using the slider on the status bar at the bottom right.

Main feature illustration

Quit Dropbox
Dropbox integrates with Word nowadays and some people report that the integration has negative effects on Word 2016. Just try quitting Dropbox – hold down Option (Alt on some keyboards) and click the Dropbox menubar icon, then select Quit Dropbox. If your problems go away then you’ve identified the cause. It’s not clear how Dropbox integrates with Word but if you just can’t work without Dropbox running then you might choose to turn off Dropbox’s Accessibility integration with macOS. To do so, open System Preferences, click the Security & Privacy icon, and then click the Privacy tab. Then click the Accessibility icon at the left of the window, and remove the check/tick alongside Dropbox (you might need to click the padlock at the bottom left first to allow this system change). Note that this might also affect Dropbox’s visual integration with Finder, but everything else will work just fine.

Main feature illustration

Turn off grammar checking
Allegedly, grammar checking can also slow down Word 2016, so to turn it off start by clicking the Word 2016 menu bar entry, and then Preferences (or simply tap Cmd+comma). In the preferences dialog box that appears, click the Spelling & Grammar icon, and the remove the check from Check Grammar As You Type.

Use Office 2011
My version of Word is provided as part of a business subscription so I’m not sure if the following is true but it certainly used to be the case that it was possible to downgrade to Office 2011 if you have a personal Office 365 subscription. Just head over to the download section of Office 365 and make the choice, or head over to MacAdmins, which lists all the official Office for Mac downloads (this is entirely legal – the downloads won’t work until you login with your Office 365 or work-supplied account details). Although not as pretty, Word 2011 is still a damn fine word processor and speedy to boot – it starts in the blink of an eye, and I’ve never experienced any slowdowns either. I know some people will suggest switching to LibreOffice, but in my tests it’s still not as polished as Microsoft’s products and you’ll still get those annoying file compatibility glitches. However, you might like to give it a try. Of course, there’s always Apple’s own Pages but for compatibility reasons – it can only export Word documents and not natively work with them – I’ve found it to be not useful.

Main feature illustration

Leave a comment... [1]

◀︎ Older /
Recently on MKF