<issue_start>username_0: I'm using iterm2 together with tmux and I need the function keys. Ever since I got the TouchBar Macbook Pro and upgraded to HighSierra, the F4 key became disfunctional in iTerm2 and emacs.

* The F4 key is used to cycle through the open tabs in tmux forwards
* The F3 key (cycle backwards) and in fact all other F keys work as expected
* The F4 key worked before the HighSierra / Touchbar upgrade. I used Time Machine to migrate, so no configuration changed.
* The F4 also does not work with on an external Magic Keyboard, indicating a software / mapping issue.

I suspect that some change in High Sierra makes macOS not pass the F4 key on to applications, but I'm not sure. I have checked that no system wide keyboard shortcut is assigned to F4. What else could I check?

Update: The issue can be confirmed with the [keyboard viewer](https://support.apple.com/kb/PH25242?locale=en_US), a program that allows to display all keys pressed. It clearly confirms that all keys except F4 are registered by the system while F4 is not.<issue_comment>username_1: *I have seen elsewhere* that some key combos stop working until you reinstall iTerm2. If you have homebrew and cask installed, you can use `brew cask reinstall iterm2`.

(I'm so unsure about the efficacy of this that I would have posted it as a comment, but I can't comment yet)
Upvotes: 1 <issue_comment>username_2: I found a (weird) solution [here](https://discussions.apple.com/message/15700340#15700340). This could be some arcane migration bug that is present in MacOS for very long time. The linked thread is from 2011. Here is what worked for me.

1. Backup your keyboard shortcut preferences (i.e. write them down)
2. Delete the file `~/Library/Preferences/com.apple.symbolichotkeys.plist`
3. reboot
4. Set up keyboard shortcuts in preferences as desired
Upvotes: 1 [selected_answer]<issue_comment>username_3: Apparently it's related to safari and / or chrome, and / or gmail / inbox
<https://discussions.apple.com/thread/7813416>

a quick fix: +Q on safari and chrome, wait 30-40s, test it...
Upvotes: 0 <issue_comment>username_4: I discovered the issue to be the Spotify app. Just add this to the stack of grievances with their app/service and lack of support.

I still have Chrome open now, and about 30 seconds after quitting Spotify, F4 is working just fine again.

I just went a step further and found a solution! I diffed the running processes listed in Activity Monitor both before and after running Spotify, and one process stood out: NowPlayingTouchUI. I did a force quit on that process in Activity Monitor, and F4 works again! However, as soon as the song changes, it comes back.

From some other info I found online, I devised the following solution which fixes the problem by preventing this process from running.

**Disable SIP**

1. Restart the machine in recovery mode (cmd-R) on startup.
2. Click on the Utilities menu and select "Terminal"; if you don't see this, you need to restart and enter Recovery Mode again.
3. Type "csrutil disable" in Terminal, then press enter.
4. Close Terminal and select "Restart" from the Apple menu.

**Move the NowPlayinTouchUI LaunchAgent**

5. After the system restarts, run Terminal again, and enter the following command, and press enter, and type in your password (if/when prompted) and hit enter again. This command will move the com.apple.NowPlayingTouchUI.plist file from the LaunchAgents folder to your home directory.

```
sudo mv /System/Library/LaunchAgents/com.apple.NowPlayingTouchUI.plist ~

```
6. Lastly, just logout/login again for the changes to take effect.

From this point on, NowPlayingTouchUI will no longer be launched, and your F4 key will continue working while using the Spotify app!

If you wish to re-enable SIP, just relaunch in recovery mode again, launch terminal, and enter the command "csrutil enable" and press enter, then restart.

This fix is confirmed working after a couple restarts of my MacBook Pro (macOS 10.12.6 Sierra) and Spotify (1.1.52.687.gf5565fe5).
Upvotes: 0


<issue_start>username_0: When I switch to the TestFlight tab for my app in iTunes Connect, it doesn't load. It perpetually shows the spinner.

It was doing this yesterday too. I've tried a different browser and it's the same.

Any ideas?

[![enter image description here](https://i.stack.imgur.com/GC8hDm.png)](https://i.stack.imgur.com/GC8hDm.png)<issue_comment>username_1: This unicode combination can be produced when holding down the alt/option key on your Mac's keyboard. If you google this issue, there is a [thread](https://discussions.apple.com/thread/4815782?tstart=0) from 2013/14 describing a solution to this issue.

Here are the summarised steps to revert they keyboard back to its intended use:

1. Open system preferences
2. Select accessibility
3. Select keyboard
4. Enable sticky keys
5. Press option twice quickly to enable sticky and once more to turn it off (option key must be enabled if you previously disabled it in modifier key controls)
6. Problem solved! - Turn sticky keys off again

I can verify that these steps are still valid for macOS High Sierra but do let me know how you get on.
Upvotes: 3 <issue_comment>username_2: If the sticky keys fix does not work, then the fact that an external keyboard works ok most likely indicates that the internal one is damaged.
Upvotes: 2 <issue_comment>username_3: This happened to me. The **Logitech Gaming Software** application was causing the problem. I quit the application and the problem stopped. (The Logitech application is sporadically unstable)

Even if you aren't running the **Logitech Gaming Software**, try quitting any applications (especially those running in the background) that could be related to keyboard inputs and outputs, e.g. mouse software, text shortcuts, macros, abbreviation expanders, etc.
Upvotes: 0 <issue_comment>username_4: Though this [solution](https://www.ifixit.com/Answers/View/94749/Keyboard+is+typing+the+wrong+character) looks weird, but it works:

Run your fingers over all the keys. I too faced the same error because some key was stuck, rubbing fingers over all the keys helped me.
Upvotes: 1


<issue_start>username_0: Can I use MacBook Pro as a display for AppleTV? I'm often traveling and I don't have always external monitor for testing tvOS apps on the device.

Thanks, Milos

PS. I can connect AppleTV with MBP using USB cable, open QuickTime player - movie recording and I will have MBP as a display. Problem is that AppleTV stopped working as soon as I unplugged HDMI cable from monitor or device. I tried with the turned off the monitor and it also works, so I need a way to fake it AppleTV that there is a monitor/tv.<issue_comment>username_1: Unfortunately you can't put a MacBook into Target Display Mode like an iMac, so short of disassembling your MacBook to wire the internal Display Port the monitor uses to one of the external ones (assuming your Mac has one) there doesn't appear to be a way.
Upvotes: 2 <issue_comment>username_2: I found a solution. We simply need to connect our Apple TV device to our MacBook using USB cable, open a QuickTime player and choose New Movie Recording. Then we need to choose Apple TV as a camera and microphone source. Because Apple TV uses HDMI Hot-Plug-Detect feature that makes the source device aware that it has been connected/disconnected to/from the screen we need to use HDMI dummy plug (Display Emulator) that will emulate a monitor connected to the device. It cost only a few dollars and it can be very easy ordered from online gear markets. That's all. Work like a charm.

To summarize steps:

1. Connect Apple TV to MacBook using USB cable
2. Insert HDMI dummy plug to Apple TV
3. Open QuickTime player - New movie recording
4. Choose Apple TV as a camera and microphone source

You can find screenshots on my website [here](http://milosmokic.com/index.php/2018/02/17/how-to-use-apple-tv-without-tv-or-monitor/).
Upvotes: 2


<issue_start>username_0: I'm trying to give new life to my old white late-2006 MacBook by installing a new OS (dual boot), but I am having problems as my DVD/CD drive is broken and I just can't get my Mac to boot from my flash drive. The Mac has 64 bit processors, but the EFI is 32 bit.

I previously tried (and succeeded) installing Windows 10 with the help of VirtualBox following [this incredible guide](https://apple.stackexchange.com/questions/225387/no-bootable-device-usb-2-0-macbook-pro-mid-2014/225521#225521), but finally decided to drop that solution as I couldn't get the sound to work (everything else worked like a charm though). So, I would instead like to give 64 bit Ubuntu a try.

Could a similar approach, using VirtualBox as in the guide above, be used to install Ubuntu without USB or DVD, or would access to the physical disk via VirtualBox be a limitation?

I'm currently running OSX 10.7 Lion and VirtualBox 4.3.40.<issue_comment>username_1: This answer address your attempt to install Windows 10. All Mac models through the 2007 model year, which could run Windows, did so using the BIOS boot method. All the drivers included in the Boot Camp Support Software (BCSS) were design for a BIOS boot. If one was able to achieve a EFI boot, they usually were rewarded with the failure of one or more hardware devices.

The BCSS you downloaded using the Boot Camp Assistant should have been the same as from the website [Boot Camp Support Software 4.0.4033](https://support.apple.com/kb/DL1630?locale=en_US). You should use this software regardless of a 32 bit or 64 bit install and for Windows 7 through Windows 10. I have a 17-inch, mid 2007 iMac, which also uses the same BCSS. I have successfully installed 64 bit Windows 7, 8 and 10.

If you install a 64 bit version of Windows, you might have trouble installing the BCSS. Basically, Apple inserted a scarecrow application to fool you into thinking you can not run the installer. Once you bypass this application, the Boot Camp Support Software should not have any problems installing. This bypass procedure is outlined at [this Ask Different website](https://apple.stackexchange.com/questions/174221/using-boot-camp-support-software-4-0-4033-to-install-64-bit-windows-7-or-8).
Upvotes: 0 <issue_comment>username_1: >
> Note, there is an [update](https://apple.stackexchange.com/questions/462072/upgrading-linux-distro-on-2006-macbook-2-1/462200#462200) to this answer, where Ubuntu is replaced by the Desktop 64-bit Lubuntu 22.04.2 LTS (Jammy Jellyfish).
>
>
>

My objective is to post a procedure that would allow you to boot a Ubuntu Desktop Live. Once you have booted, you could then install the regular Ubuntu Desktop. The only way I can figure out how to boot Ubuntu Desktop Live is by using GRUB. The problem is I can not determine a way to install GRUB without first installing some version of Linux. In this case, I choose to install Ubuntu Server inside a VirtualBox machine. This machine was configured to use a subset of the Mac's physical HD partitions. Once GRUB was installing in these partitions, Ubuntu Desktop Live could boot without using VirtualBox.

Install Ubuntu Server
---------------------

1. To start I will assume your current hard disk is configured as shown below.

```
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *80.5 GB    disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            79.7 GB    disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

```

The command below will create approximately 40 GB of free space at the end of your internal disk. This command will automatically relocate the `disk0s3` partition.

```
diskutil resizevolume disk0s2 40g

```

The results can be summarized by the output from the `diskutil list` command, shown below.

```
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *80.5 GB    disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            40.0 GB    disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

```
2. Before using VirtualBox, all new linux related partitions have to be created. I choose the third party tool [`gdisk`](http://www.rodsbooks.com/gdisk/) to create the partitions. Below is a list of the partitions that need to be created.

	* 1.9 GB partition to hold the contents of the Ubuntu Desktop Live iso. This will allow you to replace Ubuntu Server with Ubuntu Desktop.
	* 1 MiB Bios Boot Partition to hold GRUB boot code.
	* 4 GiB Linux Swap Partition. This was chosen to be the same size as your RAM.
	* The remaining space to be allocated for Ubuntu files.The output from using the `gdisk /dev/disk0` command to edit the GPT is given below.

```
GPT fdisk (gdisk) version 1.0.3

Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/disk0: 157286400 sectors, 75.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): A7A204BD-463D-4EE5-9A78-8E9804D1539F
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 157286366
Partitions will be aligned on 8-sector boundaries
Total free space is 77482197 sectors (36.9 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          409640        78534639   37.3 GiB    AF00  Macintosh HD
   3        78534640        79804175   619.9 MiB   AB00  Recovery HD

Command (? for help): n
Partition number (4-128, default 4):
First sector (34-157286366, default = 79804176) or {+-}size{KMGTP}:
Last sector (79804176-157286366, default = 157286366) or {+-}size{KMGTP}: +1900M
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): 8300
Changed type of partition to 'Linux filesystem'

Command (? for help): n
Partition number (5-128, default 5):
First sector (34-157286366, default = 83695376) or {+-}size{KMGTP}:
Last sector (83695376-157286366, default = 157286366) or {+-}size{KMGTP}: +1M
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): ef02
Changed type of partition to 'BIOS boot partition'

Command (? for help): n
Partition number (6-128, default 6):
First sector (34-157286366, default = 83697424) or {+-}size{KMGTP}:
Last sector (83697424-157286366, default = 157286366) or {+-}size{KMGTP}: +4G
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): 8200
Changed type of partition to 'Linux swap'

Command (? for help): n
Partition number (7-128, default 7):
First sector (34-157286366, default = 92086032) or {+-}size{KMGTP}:
Last sector (92086032-157286366, default = 157286366) or {+-}size{KMGTP}:
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): 8300
Changed type of partition to 'Linux filesystem'

Command (? for help): p
Disk /dev/disk0: 157286400 sectors, 75.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): A7A204BD-463D-4EE5-9A78-8E9804D1539F
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 157286366
Partitions will be aligned on 8-sector boundaries
Total free space is 6 sectors (3.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          409640        78534639   37.3 GiB    AF00  Macintosh HD
   3        78534640        79804175   619.9 MiB   AB00  Recovery HD
   4        79804176        83695375   1.9 GiB     8300  Linux filesystem
   5        83695376        83697423   1024.0 KiB  EF02  BIOS boot partition
   6        83697424        92086031   4.0 GiB     8200  Linux swap
   7        92086032       157286366   31.1 GiB    8300  Linux filesystem

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.

```

>
> Note: It would be a good idea to restart the Mac.
>
>
>

The output from the command `diskutil list` is shown below. This includes the new partitions created by using `gdisk`.

```
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *80.5 GB    disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            40.0 GB    disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4               2.0 GB     disk0s4
   5: 21686148-6449-6E6F-744E-656564454649               1.0 MB     disk0s5
   6:                 Linux Swap                         4.3 GB     disk0s6
   7: 0FC63DAF-8483-4772-8E79-3D69D8477DE4               33.4 GB    disk0s7

```
3. Create folder named "VirtualBox" in your Documents folder.

>
> Note: At this point, one should realize it would be easier to copy the commands from this document and paste them into the Terminal application window.
>
>
>
4. This step will create the files needed by VirtualBox to access the
physical partition where you will install Ubuntu. In a Terminal
application window, enter the following commands.

```
cd  ~/documents/virtualbox
sudo  chmod  go+rw  /dev/disk0s4
sudo  chmod  go+rw  /dev/disk0s5
sudo  chmod  go+rw  /dev/disk0s6
sudo  chmod  go+rw  /dev/disk0s7
sudo  vboxmanage  internalcommands  createrawvmdk  -filename  "$PWD/linux.vmdk"  -rawdisk  /dev/disk0  -partitions  4,5,6,7
sudo  chown  $USER  linux*.vmdk

```

>
> Note: This access granted by the `chmod` command will only last
> until OS X is rebooted.
>
>
>

The result should be the creation of the files `linux.vmdk` and
`linux-pt.vmdk` in your "VirtualBox" folder. Later, you will
select the file `linux.vmdk` to give a virtual machine access to
the physical partitions.
5. Configure the virtual machine. Open the VirtualBox application and
click on icon above the New label. Enter or select the values shown
below, then click the "Continue" button.

[![a1](https://i.stack.imgur.com/ilgdK.png)](https://i.stack.imgur.com/ilgdK.png)

Use the default settings except for the hard drive. Choose the "Use an existing virtual hard drive file" button. Navigate to your "VirtualBox" folder. Highlight the `linux.vmdk` file. Open the `linux.vmdk` file. Your window should appear similar to what is shown below.

[![a2](https://i.stack.imgur.com/psRdg.png)](https://i.stack.imgur.com/psRdg.png)

Click the "Create" button.

After returning to the VirtualBox application's "Oracle VM VirtualBox Manager" window, click on the icon above the "Settings" label. Next, click on the icon above the "Storage" label. Highlight "Controller: SATA" in "Storage Devices", then **select the "Use Host I/O Cache" option.** Your window should appear similar to what is shown below.

[![3a](https://i.stack.imgur.com/zD7eu.png)](https://i.stack.imgur.com/zD7eu.png)

Highlight the Empty CD/DVD and select "Choose Virtual Optical Disk
File..." to attach the "ubuntu-16.04.3-server-amd64.iso" file. (Hint: Look for the
CD/DVD icons)

[![a4](https://i.stack.imgur.com/UVK8A.png)](https://i.stack.imgur.com/UVK8A.png)

Click OK to close the window. Your "Oracle VM VirtualBox Manager"
window should appear similar to what is shown below.

[![a7](https://i.stack.imgur.com/egf8a.png)](https://i.stack.imgur.com/egf8a.png)
6. Click on the icon above the "Start" label to boot from the "ubuntu-16.04.3-server-amd64.iso" file. You can proceed with the installation by choosing the default values until you reach the image shown below. Here, you should choose "Manual".

[![35_55](https://i.stack.imgur.com/HOytE.png)](https://i.stack.imgur.com/HOytE.png)

Select #6, as shown below.

[![37_12](https://i.stack.imgur.com/hHU2W.png)](https://i.stack.imgur.com/hHU2W.png)

Select "Use as:", as shown below.

[![37_37](https://i.stack.imgur.com/qbELN.png)](https://i.stack.imgur.com/qbELN.png)

Select "swap area", as shown below.

[![37_53](https://i.stack.imgur.com/waJT9.png)](https://i.stack.imgur.com/waJT9.png)

Select "Done setting up the partition", as show below.

[![38_06](https://i.stack.imgur.com/Fa5gJ.png)](https://i.stack.imgur.com/Fa5gJ.png)

Select #7, as shown below.

[![38_17](https://i.stack.imgur.com/jBA6E.png)](https://i.stack.imgur.com/jBA6E.png)

Select "Use as:", as shown below.

[![38_34](https://i.stack.imgur.com/4UEzc.png)](https://i.stack.imgur.com/4UEzc.png)

Select "Ext4 journaling file system", as shown below.

[![38_45](https://i.stack.imgur.com/uTeyz.png)](https://i.stack.imgur.com/uTeyz.png)

Select "Mount point:", as shown below.

[![39_04](https://i.stack.imgur.com/SuF0D.png)](https://i.stack.imgur.com/SuF0D.png)

Select "/ - the root file system", as shown below.

[![39_13](https://i.stack.imgur.com/q7zIX.png)](https://i.stack.imgur.com/q7zIX.png)

Select "Done setting up the partition", as show below.

[![39_50](https://i.stack.imgur.com/VkF0c.png)](https://i.stack.imgur.com/VkF0c.png)

Select "Finish partitioning and write changes to disk", as shown below.

[![40_11](https://i.stack.imgur.com/dEkjX.png)](https://i.stack.imgur.com/dEkjX.png)

Select "Yes", as shown below.

[![40_27](https://i.stack.imgur.com/AnMHt.png)](https://i.stack.imgur.com/AnMHt.png)
7. When prompted to "Install the GRUB boot loader to the master boot record?", select "Yes", as shown below.

[![47_18](https://i.stack.imgur.com/FkkeG.png)](https://i.stack.imgur.com/FkkeG.png)

The install should proceed to completion.

Use Ubuntu Server to Setup Ubuntu Desktop Live
----------------------------------------------

1. Using VirtualBox, boot to Ubuntu Server.
2. After logging in, enter the command below. This will give you `root` user privileges.

```
sudo  bash

```
3. Copy the MBR to an unused sector in the BIOS boot partition.

```
dd  if=/dev/sda  count=1  seek=1800  of=/dev/sda5

```
4. Insert `ubuntu-16.04.3-desktop-amd64.iso` into the virtual DVD drive.
5. Enter the commands given below to copy the files from the iso to the hard disk.

>
> Note: The `rsync` command may take a while to complete.
>
>
>

```
mkfs.ext4  /dev/sda4
mkdir  live
mount  /dev/sda4  live
mkdir  dvd
mount  /dev/sr0 dvd
rsync  -a  dvd/*  live
eject
rmdir  dvd
umount  live
rmdir  live

```
6. Configure GRUB. Start by entering the following commands to edit the `40_custom` file.

```
cd  /etc/grub.d
nano  40_custom

```

Add the following lines to the end of the `40_custom` file. This will create Ubuntu Desktop Live and Installation entries in the GRUB menu.

```
menuentry "Ubuntu Desktop 16.04.3 Live" {
        set root=(hd0,4)
        linux /casper/vmlinuz.efi boot=casper ignore_uuid
        initrd /casper/initrd.lz
}
menuentry "Install Ubuntu Desktop 16.04.3" {
        set root=(hd0,4)
        linux /casper/vmlinuz.efi boot=casper only-ubiquity ignore_uuid
        initrd /casper/initrd.lz
}

```

After saving your changes to the `40_custom` file, enter the following commands to edit the `grub` file.

```
cd  /etc/default
nano  grub

```

Find the following line in the `grub` file.

```
GRUB_DEFAULT=0

```

Change the line to appear as shown below.

```
GRUB_DEFAULT=3

```

Find the following line in the `grub` file.

```
GRUB_TIMEOUT=2

```

Change the line to appear as shown below.

```
GRUB_TIMEOUT=-1

```

After saving your changes to the `grub` file, use the following commands to update grub and return to your home directory.

```
update-grub
cd  ~

```
7. Exit being the `root` user and shutdown the virtual machine.

```
exit
shutdown  now

```

Use OS X to Setup Ubuntu Desktop Live
-------------------------------------

1. Copy the MBR GRUB boot code from the BIOS boot partition to the MBR.

```
cd  ~
sudo  dd  if=/dev/disk0s5  count=1  skip=1800  of=mbr.binary
sudo  fdisk  -u  -y  -f  mbr.binary  /dev/disk0
sudo  rm  mbr.binary

```
2. Convert to a Hybrid MBR/GPT scheme. The only reason for this step is to get around a bug in the Mac logic board BIOS firmware. Basically, the BIOS will not load the MBR into RAM unless there is an active partition in the MBR table. This conversion can be easily accomplished through the use of the interactive command shown below.

```
sudo  gdisk  /dev/disk0

```

The output from using this command is shown below.

```
GPT fdisk (gdisk) version 1.0.3

Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): r

Recovery/transformation command (? for help): h

WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.

Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 2 3 4
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

Creating entry for GPT partition #2 (MBR partition #2)
Enter an MBR hex code (default AF): af
Set the bootable flag? (Y/N): n

Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default AB): ab
Set the bootable flag? (Y/N): n

Creating entry for GPT partition #4 (MBR partition #4)
Enter an MBR hex code (default 83): 83
Set the bootable flag? (Y/N): y

Recovery/transformation command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.

```

>
> Note: As the above message states, It would be a good idea to restart your Mac.
>
>
>
3. Use the `bless` command to set your Mac to BIOS boot.

```
sudo  bless  --device  /dev/disk0  --setBoot  --legacy

```

Replace Ubuntu Server with Ubuntu Desktop
-----------------------------------------

1. After properly blessing your Mac, restart to boot GRUB. You should get an image similar to what is shown below. Select "Install Ubuntu Desktop 16.04.3".

[![00-03](https://i.stack.imgur.com/MbOoS.png)](https://i.stack.imgur.com/MbOoS.png)
2. Install until the message shown below appears. Shortly, after this message is displayed, the window will be populated by partition information. This information will obscure this message.

[![c0](https://i.stack.imgur.com/Pdjif.png)](https://i.stack.imgur.com/Pdjif.png)

The window, with the partition information, will appear similar to what is shown below.

[![c1](https://i.stack.imgur.com/yJMwl.png)](https://i.stack.imgur.com/yJMwl.png)

**This message is wrong.** The message clearly says "You will not be able to create, delete or resize partition on this disk." Well, this is *exactly* what we will be doing.
3. Delete the last 3 partitions. Select a partition, then select the `-` character. Repeat for the two remaining partitions. The result should appear similar to what is shown below.

[![c2](https://i.stack.imgur.com/CiHEs.png)](https://i.stack.imgur.com/CiHEs.png)
4. Add back the desired partitions, I choose the same as was deleted. You may want something different. Perhaps a LVM?

Select the free space as shown below, then select the `+` character.

[![c3](https://i.stack.imgur.com/5GmQD.png)](https://i.stack.imgur.com/5GmQD.png)

Set the popup window as shown below, then select "OK".

[![c4](https://i.stack.imgur.com/71jE5.png)](https://i.stack.imgur.com/71jE5.png)

Select the free space as shown below, then select the `+` character.

[![c5](https://i.stack.imgur.com/Zmtvc.png)](https://i.stack.imgur.com/Zmtvc.png)

Set the popup window as shown below, then select "OK".

[![c6](https://i.stack.imgur.com/v31jh.png)](https://i.stack.imgur.com/v31jh.png)

Select the free space as shown below, then select the `+` character.

[![c7](https://i.stack.imgur.com/vqiY4.png)](https://i.stack.imgur.com/vqiY4.png)

Set the "Mount point" in the popup window, as shown below, then select "OK".

>
> Note: Do not change the "Size:" value. Your value may be different from what is shown below.
>
>
>

[![c8](https://i.stack.imgur.com/Alv3u.png)](https://i.stack.imgur.com/Alv3u.png)

The final results are shown below. To proceed with the installation, select "Install Now".

[![c9](https://i.stack.imgur.com/rcMx4.png)](https://i.stack.imgur.com/rcMx4.png)
5. Select "Continue". Let the installation proceed to conclusion.

[![c10](https://i.stack.imgur.com/ipr6P.png)](https://i.stack.imgur.com/ipr6P.png)

Where to Next?
--------------

To boot back to OS X, you need to hold down the `option` key at startup.

You will probably want to use [rEFInd](http://www.rodsbooks.com/refind/) as your boot manager.

I made the swap space 4 GiB, because I read this is the amount of RAM installed. Upon review, I see only 3 GiB is usable. A little extra swap space probably is nothing to be concerned over. If you wish, you could make adjustments to my posted installation procedures.

References
----------

There is no reason for readers to look up any of these references. They appear here for my use.

[GNU GRUB Manual 2.02](https://www.gnu.org/software/grub/manual/grub/grub.html)

[Creating a BIOS/GPT and UEFI/GPT Grub-bootable Linux system](https://blog.heckel.xyz/2017/05/28/creating-a-bios-gpt-and-uefi-gpt-grub-bootable-linux-system/)

[How do I set the grub timeout and the grub default boot entry?](https://askubuntu.com/questions/148095/how-do-i-set-the-grub-timeout-and-the-grub-default-boot-entry)

[Installation/FromLinux](https://help.ubuntu.com/community/Installation/FromLinux)

[Can I boot a Live USB fully to RAM, allowing me to remove the disk?](https://askubuntu.com/questions/829917/can-i-boot-a-live-usb-fully-to-ram-allowing-me-to-remove-the-disk)

[How to bypass “Try it / Install” screen when booting from USB Live Session? (without installing in the USB)](https://askubuntu.com/questions/47522/how-to-bypass-try-it-install-screen-when-booting-from-usb-live-session-wit)
Upvotes: 4 [selected_answer]


<issue_start>username_0: I accidentally turned off FileVault on my MacBook when trying to allow downloaded Canon driver software to be opened. FileVault is currently decrypting and I want to stop it as soon as possible. How do I stop FileVault decryption?<issue_comment>username_1: You have to let it finish FileVault decryption entirely before you can turn it back on. This can take hours or sometimes days, so you'll have to be patient. Encryption also takes nearly as long. There's nothing to do but wait for it to complete.

If you have a MacBook, be sure to keep it plugged in, as FileVault wont decrypt or encrypt while on battery power.

You should still be able to use your computer while it decrypts/encrypts.
Upvotes: 3 <issue_comment>username_2: You have to wait but you can still use your mac while you wait.
Upvotes: 0


<issue_start>username_0: I have an iPhone 6 I want to sell. I just reset all the settings and removed all the data using the iPhone 6 option in the general settings. The phone now says "Hello" as a new phone would. I don't have a SIM card and cannot logon to the phone to confirm that all is adequately deleted.

Was the procedure I performed sufficient to adequately remove all of the data, such that another user would not reasonably be able to retrieve the data?<issue_comment>username_1: Apple has a [page dedicated to what you need to do to sell your device](https://support.apple.com/en-us/HT201351).

>
> Before you sell or give away your device, you should remove your personal information. You shouldn't manually delete your contacts, calendars, reminders, documents, photos, or any other iCloud information while you're signed in to iCloud with your Apple ID. This would delete your content from the iCloud servers and any of your devices signed in to iCloud.
>
>
> Follow these steps:
> -------------------
>
>
> 1. If you paired an Apple Watch with your iPhone, unpair your Apple Watch.
> 2. [Back up your device](https://support.apple.com/kb/HT203977).
> 3. Sign out of iCloud and the iTunes & App Store.
> 	* If you're using iOS 10.3 or later, tap `Settings > [your name]`. Scroll down and tap `Sign Out`. Enter your Apple ID password and tap `Turn Off`.
> 	* If you're using iOS 10.2 or earlier, tap `Settings > iCloud > Sign Out`. Tap `Sign Out` again, then tap `Delete from My [device]` and enter your Apple ID password. Then go to `Settings > iTunes & App Store > Apple ID > Sign Out`.
> 4. Go back to Settings and tap `General > Reset > Erase All Content and Settings`. If you turned on Find My iPhone, you might need to enter your Apple ID and password.
> 5. If asked for your device passcode or Restrictions passcode, enter it. Then tap `Erase [device]`.
> 6. If you're switching to a non-Apple phone, [deregister iMessage](https://support.apple.com/kb/HT203042).
> 7. Contact your carrier for help transferring service to a new owner. If you aren't using a SIM card with your device, you can contact them to get help transferring service to the new owner.
>
>
> *When you erase your iPhone, iPad, or iPod touch, Find My iPhone and Activation Lock is turned off*.
>
>
>

[![enter image description here](https://i.stack.imgur.com/Yhuad.jpg)](https://i.stack.imgur.com/Yhuad.jpg)
Upvotes: 2 <issue_comment>username_2: All the data on an iOS device is encrypted using strong encryption by default. The keys that are used to encrypted and decrypt our data are stored on the devices. When you choose to "Erase All Content and Settings" the device "obliterates" the keys. So your data is basically still there but **no-one** can read it anymore.

From the Apple's [iOS Security](https://www.apple.com/business/docs/iOS_Security_Guide.pdf) document:

>
> Erase All Content and Settings
>
>
> The “Erase all content and settings” option in Settings obliterates all the keys in Effaceable Storage, rendering all user data on the device cryptographically inaccessible. Therefore, it’s an ideal way to be sure all personal information is removed from a device before giving it to somebody else or returning it for service.
>
>
> Important: Don’t use the “Erase all content and settings” option until device has been backed up, as there is no way to recover the erased data.
>
>
>

I'd recommend reading through that document if you are interested in the security features of iOS devices. There's a lot more to it, including multiple levels of encryption depending on which types of data, etc.
Upvotes: 4 [selected_answer]


<issue_start>username_0: The "Force Quit Applications" window opened spontaneously due to memory pressure.

Now I can't close the "Force Quit Applications" window itself . The "X" button doesn't close the window and it doesn't have an icon in the dock or a menu bar.

[![enter image description here](https://i.stack.imgur.com/dauYy.png)](https://i.stack.imgur.com/dauYy.png)<issue_comment>username_1: You can close it with `⌘ cmd`+`w`.

There's a list of the official keyboard shortcuts on [apple.com](https://support.apple.com/en-us/HT201236)
Upvotes: 3 [selected_answer]<issue_comment>username_2: `⌘ cmd``W` was not working for me either.

I had luck by opening the "normal" Force Quit window from *Apple menu * > *Force Quit…*, which replaced the out-of-memory Force Quit window. I was then able to close it normally with the X button.
Upvotes: 2 <issue_comment>username_3: cmd + w didn't work at first step.

Than I force closed all "paused" applications one by one, after that cmd + w worked.
Upvotes: 0


<issue_start>username_0: Suppose I want to open a specific app which has an icon on the menu bar tray, is it possible to do it using a shell command?

In my case, there is an app called "Quick View Calendar" (available in Mac App Store) which shows up in the Menu bar, which I would like to open with a Terminal command and to use that code to run an Automator service to<issue_comment>username_1: Terminal (bash, csh, zsh, et. al.) doesn't "open" menu bar commands. This is what AppleScript is for - it scripts the GUI.

To get an application to "execute" an option/function on the command line that would normally accessed through the menu bar, you pass command line parameters. Typically, the command looks like this:

```
$ command -x [optional arguments]

```

The above command will execute with the option flag `x` (where `x` is any flag that the command accepts) and any optional arguments for that flag.

The caveat here is that the application **must** accept command line options. If it doesn't there will be nothing you can script from the command line to do what you want.

If that is the case, look to AppleScript, but be aware, that not all apps are scriptable under AppleScript.
Upvotes: 1 <issue_comment>username_2: Since all that's required is a single click to the menu bar icon in order to open the app, AppleScript can achieve this very easily using GUI scripting, which requires the right accessibility permissions to be granted to whichever program you'll use to execute the AppleScript (e.g. *Script Editor*, *Automator*, *Terminal*, etc..).

So, first, grant the appropriate permissions via *System Preferences*. This screenshot is from MacOS 10.13:

[![System Preferences on MacOS 10.13](https://i.stack.imgur.com/HSzOh.jpg)](https://i.stack.imgur.com/HSzOh.jpg)

After this is done, open up *Script Editor* and run this script. I don't have *Quick Calendar View* myself, but the principles for most menu bar apps are the same, so this will hopefully obtain a list of application names that have icons sitting in your menu bar:

```
    tell application "System Events" to get the name of ¬
        every process whose class of menu bar 2 is menu bar

```

"Quick View Calendar" or something appropriately similar ought to appear in the list that is returned by running that command. This is the name that I've used in the following snippet, which is what actually does what you need, namely to issue a mouse click to the menu bar icon and open the application. If the name is something different, you can change that yourself:

```
    tell application "System Events" to tell process "Quick View Calendar" to ¬
        click menu bar item 1 of menu bar 2

```

You can paste this code into a **Run AppleScript** action in *Automator* (again, provided *Automator* has been granted accessibility permissions), which will then become part of your workflow in creating the service you want to create.

Your original request was to run a command from *Terminal* to perform this action, so you can simply open up *Terminal* (again, accessibility permissions!), and type this:

```
    osascript \
        -e 'tell application "System Events" to ¬' \
        -e 'tell process "Quick View Calendar" to ¬' \
        -e 'click menu bar item 1 of menu bar 2'

```

If you run into any problems, let me know.
Upvotes: 4 [selected_answer]<issue_comment>username_3: You can compile a very simple 14-line Foundation framework app, that will from then on give you the ability to click any point x/y onscreen,

[ Contents drawn back due to massive *anonymous* down-voting … ]
Upvotes: 0


<issue_start>username_0: I am not able to update my macOS from Sierra to High Sierra. It shows the error below when I try to update from iTunes. How to fix it?

[![enter image description here](https://i.stack.imgur.com/63wxt.png)](https://i.stack.imgur.com/63wxt.png)<issue_comment>username_1: Finally following steps worked for me,

1. From **System preference -> Date & Time**, enable *set time zone automatically using current location* option
2. Share location for the time being if asked

[![enter image description here](https://i.stack.imgur.com/psVDO.png)](https://i.stack.imgur.com/psVDO.png)

3. Press `⌘ Command` `Space` open Spotlight search, write 'Terminal' and hit `⏎ Return`. It will open Terminal window
4. Enter the following command in Terminal window

```
sudo ntpdate -u time.apple.com

```
Upvotes: 4 [selected_answer]<issue_comment>username_2: Simple fix: Connect the Ethernet cable directly to your laptop (use USB Ethernet adapter) and reinstall macOS from the Internet Recovery mode. Restart and hold `⌘ Command`:`⌥ Option``R`.
Upvotes: 1 <issue_comment>username_3: Try using `⌥ Option``⌘ Command``R` [Startup Key Combination](https://support.apple.com/en-us/HT204904).

On an Intel-based Mac, this should offer the latest macOS that is compatible with your Mac and will use a different recovery server.
Upvotes: 0


<issue_start>username_0: ### Question

Is there a way to change the Finder tab title to include the name of the containing folder?

### Problem

I work on projects that have the same standardized subfolder names (e.g., `code`), which makes it difficult to switch between projects without going through each tab to identify the containing folder.

Current state: ambiguous Finder tab titles for three *different* subfolders
[![Ambiguous Finder tab titles for three different folders](https://i.stack.imgur.com/4Gb2m.png)](https://i.stack.imgur.com/4Gb2m.png)

### Goal

I'd like to display the containing folder name as part of the Finder tab title. Extending the example, this would look like: `projectA/code`, `projectB/code`, etc.

Ideal solution (blue text only to emphasize the change):
[![enter image description here](https://i.stack.imgur.com/dLYxm.png)](https://i.stack.imgur.com/dLYxm.png)

### Related questions and resources

* My question is more general than [a previous question](https://apple.stackexchange.com/questions/312324/how-to-rename-tab-title-name-of-finder-mac) that sought to edit individual Finder tab names.
* [Displaying the path in the Finder title bar](https://www.tekrevue.com/tip/show-path-finder-title-bar/) only works for the selected tab, and does not solve the problem of distinguishing Finder tabs.
* [This answer](https://apple.stackexchange.com/questions/139790/persistant-name-on-finder-tabs) suggests a possibility with DragThing, but doesn't make it clear how to implement the solution. UPDATE: [DragThing is being retired](https://www.dragthing.com/).<issue_comment>username_1: Use the app "Onyx". It's free and you can use it to customize macOS. Go to Settings > Finder and there is a box for showing what you want ;)
Upvotes: -1 <issue_comment>username_2: There's no mod or preference I have seen to make Finder do this. [You'll want an alternative app if this is your one and only need for productivity](https://apple.stackexchange.com/q/11785/5472). Check out PathFinder: <https://www.cocoatech.io>

I find using a code editor to view folder hierarchy works much better. If you don’t have an IDE I would start with an extensible / feature-full editor like Visual Studio Code.

* <https://code.visualstudio.com/>

That or making the jump to shell where you can exert exceptional control over prompts allow more customization than Finder does at present.
Upvotes: -1


<issue_start>username_0: I am charging my iPhone from a newer Thunderbolt 3/USB C enabled MacBook (in my case MacBook Pro 2016) with USB C to lightning cable from Apple.

What I know is:

For example there is an iPhone 8/8 Plus/X or a newer iPad Pro 13

```
with computer (default(?)) or iPhone charger wall plug: 5W (5V 1A)
with iPad charger or 2.4A powerbank USB A to lightning: 12W (5V 2.4A)
with MacBook charger wall plug (29W or larger) USB C to lightning: 29W fast charging

```

Anything I do from a 2016 MacBook Pro 15 it seems I get the default charging speed (5W) through USB C despite the same USB C to lightning cable with the MacBook wall plug can fast charge (29W).

The USB C/Thunderbolt 3 standard though supports 100W. Is there a (highly likely unofficial) way to tell my Mac that the iPhone/iPad plugged in via the USB C to lightning cable would like to take a faster charge?

So is there a way to charge from a Mac an iPhone/iPad with 12W or 29W instead of the "default" 5W?<issue_comment>username_1: You can do something like:

```
-- Get current active app
tell application "System Events"
    set activeApp to name of first application process whose frontmost is true
end tell

set repeatValue to false
repeat until repeatValue
    tell application "System Events"
        set newActiveApp to name of first application process whose frontmost is true
        if newActiveApp is not in activeApp then
            set repeatValue to true -- stop the loop
        end if

        log "Repeating"
    end tell
end repeat

```

So You can check the current active app and decide if you want to stop the loop.
Upvotes: 0 <issue_comment>username_2: After a bit of researching, I came up with a 75% solution to your question. The script below will repeat the actions inside the loop until one of two assertions are met:

① The window that has focus now is different to the window that had focus before;

② A **modifier** key out of either `fn`, `⌃`, `⌥` and `⌘` is pressed.

I tried to find a solution that permits testing for any keydown event, but was only able to find a solution involving the modifier keys. AppleScript alone ***cannot*** listen for key events, however AppleScript-ObjC can. Perhaps another person will be able to provide the full solution that allows for monitoring of any key pressing.

I've added comments within the script to help guide you through what each part does. Bear in mind, this is just an example script demonstrating one possible way of implementing these methods to achieve your objective:

```
    use sys : application "System Events"
    use framework "Cocoa"

    set [firstText, secondText] to ["A", "B"]
    set [firstDelay, secondDelay] to [0.2, 0.3]

    # Open up a new TextEdit document into which
    # the keystrokes can produce output
    tell application "TextEdit"
        activate

        set D to make new document
    end tell

    # Get frontmost window of the frontmost application
    set P to a reference to (the first process whose frontmost is true)
    set W to the front window of P

    # Repeat loop will break if the focussed window changes
    repeat until the front window of P is not equal to W

        tell sys to keystroke [firstText, return] as text
        if modifierKeydown() then exit repeat # Exit on keypress

        delay firstDelay

        tell sys to keystroke [secondText, return] as text
        if modifierKeydown() then exit repeat # Exit on keypress

        delay secondDelay

        if modifierKeydown() then exit repeat # Exit on keypress

    end repeat

    close D without saving # Close the TextEdit document

    # Returns true if any of
    # { function, control, option, command }
    # are depressed; false otherwise
    on modifierKeydown()

        set __m to current application's ¬
            NSEvent's modifierFlags() as any

        return (__m > 262143)

    end modifierKeydown

```

Note that the `repeat` loop checks for modifier keydown status a number of times within a single iteration. I experimented with checking once, which necessitated holding down the modifier key for such a time until the loop was able to arrive at the checkpoint; and three times, which shortens the waiting time but at the expense of time that might be otherwise spent processing other actions within the loop (i.e. it will add to the delay times already in place between commands).

There's no right or wrong there—you'll have to play around with it and see what feels best for you.

Likewise, the check performed on window focus is only done once per iteration, which is actually very sufficient. However, you will notice that clicking away from the window is ever so slightly obstructed by the attention given to performing the actions inside the loop. It's not a problem at all, it just makes changing windows something done with more intent that normal.

None of that is surprising, however, given what this script is doing and how it's doing it.

Let me know how you get on, and if you have any questions or problems, leave a comment and I'll do my best to assist.
Upvotes: 2


<issue_start>username_0: I'm quite tempted by some 4K HDR external monitors that are slated to come to the market soon. Question is - can a Late 2016 MacBook Pro drive 4K HDR monitor at 60Hz? 4K monitors are supported as per Apple doc, but it doesn’t mention HDR at all.<issue_comment>username_1: No. It doesn't support HDR.

From Apple's [Tech Specs for the MacBook Pro](https://www.apple.com/macbook-pro/specs/) it supports "[Wide Color P3](https://en.wikipedia.org/wiki/DCI-P3)"

[HDR](https://en.wikipedia.org/wiki/Rec._2020) (Rec 2020 or BT 2020) is a color space "outside" P3 (as in more color). So, purchasing an HDR monitor now, you wouldn't be able to utilize it to it's full capability

[![RGB Color Spaces](https://i.stack.imgur.com/v437k.png)](https://i.stack.imgur.com/v437k.png)

To utilize HDR, you would need a capable monitor, source and content and unfortunately, 2 out of 3 just won't get you there.
Upvotes: -1 [selected_answer]<issue_comment>username_2: In general yes. It depends on the monitor, because every monitor has a different definition of "HDR". I'm not sure but I don't believe macOS can output in the HDR10 codec at all. Unless you really need 4k HDR 60Hz then I wouldn't worry about bandwidth, because the typical user will rarely have content that can use all three features *at once*. For example when you're gaming just switch the monitor to 1080p to get an HDR update every 16.7ms, but when you are photo editing or video streaming switch to 30Hz for a detailed image. But that's on the off chance that it doesn't work all at once. Any other problems you may have won't likely be because of your computers driver if you get a compatible display.
Upvotes: 1


<issue_start>username_0: I am stuck in a situation here. I am migrating my email database from Apple Mail to Windows Outlook. Plenty of my emails were on the online web mail that were automatically downloaded when I signed in Outlook for windows but there are many emails that are offline and stored in apple mail. How can I migrate those emails from Apple mail to Windows Outlook?<issue_comment>username_1: Well, I don't know exactly why this problem is happening, although I did find a bit more information [here](https://stackoverflow.com/questions/18953667/illegal-byte-sequence-error-while-using-shell-commands-in-mac-bash-terminal) and [here](https://stackoverflow.com/questions/9704020/recursive-search-and-replace-in-text-files-on-mac-and-linux), neither of which worked. I think it's the encoding and that the `LC_CTYPE=C` might be on the right track, but it converted the text into something completely different because of some sort of encoding problem.

Regardless, I did solve it, for now, at least, with this:

```
vim -c '%s /"//g|wq' infile

```
Upvotes: 1 <issue_comment>username_2: Apparently, the file is in UTF-16 format, but most of the text-manipulation tools in macOS don't know how to work with that and will garble files if they try. UTF-16 uses two bytes per character; for plain-ASCII characters like `"`, it's the single-byte ASCII code followed by a null byte. Something like `tr -d \"` will delete the first byte, leaving a stray null byte and throwing the entire rest of the file off by one byte.

I think you can get perl to work in UTF-16 (see [here](https://www.perl.com/pub/2012/05/perlunicook-specify-a-files-encoding.html/)), but I'm not sure of the ins and outs. This *might* work (based on [this](https://stackoverflow.com/questions/9447653/stream-process-utf-16-file-with-bom-and-unix-line-endings-in-windows-perl)):

```
perl -pe 'BEGIN { binmode $_, ":raw:encoding(UTF-16LE)" for *STDIN, *STDOUT }; s/"//g;' infile >outfile

```

You could also convert it to UTF-8 and back with

```
iconv -f UTF-16LE -t UTF-8 infile | tr -d \" | iconv -f UTF-8 -t UTF-16LE >outfile

```

If the output doesn't need to be in UTF-16, you can leave the last `iconv` out.
Upvotes: 3 [selected_answer]


<issue_start>username_0: I don‘t use mobile phone call and text messaging any longer but I need to keep cellular data / internet running since FaceTime, WhatsApp replace sms and cellular calls with better quality.

To implement that strategy I currently use a secondary sim card from my father. The upside is that it’s entirely free, the downside is that I get his phone calls, too. I plan to move to an individual solution some time in the future, this setting was to test whether or not pure-internet communication mode would be feasible.

Is there any way you are aware of to entirely and cleanly switch off the phone and text-message functions of the iPhone without affecting any other functions?<issue_comment>username_1: You can use the iPhone as an Internet connected device SIM free, i.e. without any SIM card into the device. You'll only need a SIM card plugged in when activating the device after a reset.

Another option would be to turn on Airplane mode which will turn off the cellular functionality. Wi-Fi and Bluetooth can be turned on while Airplane mode is active. More details can be found in the Apple Support article, [Use Airplane Mode on your iPhone, iPad, iPod touch, and Apple Watch](https://support.apple.com/kb/HT204234).
Upvotes: 0 <issue_comment>username_2: Some carrier can provide sim card that cellular data only.

Mainly used for iPad notebook and IoT device .

You can use it for your iPhone to get the results you want.
Upvotes: 1


<issue_start>username_0: ![enter image description here](https://i.stack.imgur.com/7cldZ.jpg)

I installed Windows 10 64 system on my MacBook Pro 16 / 13 Retina
I used to switch simply by clicking on boot camp and clicking on the partition I want to use.

But since today I can’t see the Windows partition anymore

I looked only and I tried to restart my Laptop and press and hold the Option key but when I do that, after my PC starts I reach a black screen with a locked sign as you see in the picture I uploaded.

I have to hold the power again to lose this screen and it restarts to my Windows again

Any help to how I can access my Mac iso again
I have a lot of important files there<issue_comment>username_1: Your description is rather confused, but the the image you posted looks like a firmware password prompt (see [Apple's support document #HT204455](https://support.apple.com/en-us/HT204455)). If there's a firmware password set on your Mac, you'll need to enter it in order to invoke any alternate startup mode -- basically, anytime you hold keys down at startup to make the Mac do something other than the default startup.

Do you know the firmware password? If so, just enter it and proceed normally. If not, you have a problem, because it's (intentionally) hard to remove or change if you don't know it.

You may also be able to switch between macOS and Windows using the [Startup Disk preferences](https://support.apple.com/en-us/HT202796) (in macOS) and [Boot Camp control panel](https://help.apple.com/bootcamp/controlpanel/5.1/#/bcmp29b8ac66) (in Windows). However, as @ÖmerRıfatKuldaşlı pointed out in a comment (and [this Apple support document](https://support.apple.com/en-us/ht208123) agrees), the Boot Camp control panel doesn't support switching to APFS volumes (which High Sierra uses on SSDs). So if you have an SSD MacBook Pro and High Sierra, you'll need the firmware password to switch from Windows to macOS.
Upvotes: 1 <issue_comment>username_2: Your computer has a firmware password set and you won’t be able to boot into any other OS unless you know/remember the password. If you do not remember setting that password, you have a few options:

### 1) If you bought your computer directly from Apple, they can remove the firmware lock for you.

In this case, you can go to the nearest Apple Store or Apple Authorized Support center and they can remove the firmware key. Before you do that, it’s a good idea to backup your data from both macOS and Windows partitions. You can use [TransMac](https://www.acutesystems.com/scrtm.htm) to access macOS partitions from Windows. You will also need to provide proof of ownership of the Mac which has a locked firmware password in order for them to unlock the computer.

### 2) If you bought it online from someone else (i.e from Amazon)

You will have to contact the seller and ask him/her the firmware password. He/She can tell it to you and you can then remove the firmware password from Recovery Mode.

### Way to boot into macOS without firmware password (Requires macOS Sierra or earlier)

Go into Bootcamp Helper control panel and there should be an option to select between OS X and Windows. Select OS X and press Reboot (or save and restart).

Source: <http://osxdaily.com/2015/01/28/forgot-mac-firmware-password-what-now/>
Upvotes: 2


<issue_start>username_0: Is it possible to take a photo or record a short video with the MacBook's webcam using Terminal?

```
sh-3.2# system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.13.4 (17E199)
      Kernel Version: Darwin 17.5.0
      Boot Volume: lily
      Boot Mode: Normal
      Computer Name: lily’s MacBook Air
      User Name: System Administrator (root)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled

```<issue_comment>username_1: Third-party utilities like [`imagesnap`](https://github.com/rharder/imagesnap) and [`iSightCapture`](https://github.com/RandyMcMillan/iSightCapture) would work, but I suspect you are looking for something built in?

This has been asked before in diffrent wording: [How do I take a steathy picture with my iSight camera from the command line?](https://apple.stackexchange.com/questions/18160/how-do-i-take-a-steathy-picture-with-my-isight-camera-from-the-command-line)
Upvotes: 0 <issue_comment>username_2: Use [FFMPEG](https://ffmpeg.org/).
----------------------------------

(This has become one of my favorite command line utilities for video/audio conversion and streaming)

According to the [FFMPEG Wiki](https://trac.ffmpeg.org/wiki/Capture/Webcam#AVFoundation), you can use Apple's AVFoundation to capture directly from the FaceTime Camera or any other USB web cam that's attached. Keep in mind, the wiki was written when the FaceTime camera was still called the iSight so some of the features/keywords are no longer valid

### Get the device ID

```
$ ffmpeg -f avfoundation -list_devices true -i ""

[AVFoundation input device @ 0x7fda1bc152c0] AVFoundation video devices:
[AVFoundation input device @ 0x7fda1bc152c0] [0] FaceTime HD Camera (Built-in)
[AVFoundation input device @ 0x7fda1bc152c0] [1] Capture screen 0
[AVFoundation input device @ 0x7fda1bc152c0] AVFoundation audio devices:
[AVFoundation input device @ 0x7fda1bc152c0] [0] USB Audio CODEC
[AVFoundation input device @ 0x7fda1bc152c0] [1] Built-in Microphone

```

The device we're looking for is "0"

### Capture the photo

```
$ ffmpeg -ss 0.5 -f avfoundation -i "0" -t 1 capture.jpg

```

What this does is take a 1 second video stream, takes the single fram starting at .5 seconds and saves it as a JPEG called `capture.jpg`
Upvotes: 4 [selected_answer]<issue_comment>username_3: username_2's reply above worked but with a few modifications. I'm using a MacBook Pro running Big Sur.

I had to add the frame rate & also use the command -frames:v 1 to export a single image.

```
ffmpeg -ss 0.5 -f avfoundation -r 30.000030 -i "0" -t 1 capture.jpg -frames:v 1

```
Upvotes: 2


<issue_start>username_0: I upgraded to my iPhone and Watch (iOS and watchOS 11.4, respectively). I've already had iMessages turned on and have been using it for years.

I enabled iCloud Messages on the iPhone but the Messages on my Watch kept showing a green bubble from my blue bubble people.

I went to [this Apple page](https://support.apple.com/en-us/HT208532) to ensure I was turning iCloud Messages on correctly and I verified my iPhone settings were correct.

The problem is with the Mac. There's no iCloud Messages checkbox available in `Messages -> Preferences -> Accounts`. I verified the macOS update was successful and I didn't get any error messages during the upgrade.

Is it just me (others can see the iCloud Messages checkbox) or has it not rolled-out to everyone yet? Do I need to be more patient and wait for the feature to become available?<issue_comment>username_1: Hum...
Even though I think your question is actually not a real one - you seems to know that Apple tried to implement a *Facebook-like* feature and made it impossible (or really hard) to disable, a piece of answer is that Photos is not designed (in my opinion) for a professional use.

Photos is intended to store photos of your family, your friends, your trips and holidays or other annoying every day's stuff like that. Every feature is design in this purpose: moments, collections, faces, locations as well as shared albums and ... memories!

I'm afraid you only have few solutions available including turning of memories notifications you mentioned (and never tap the memories album again). If you *don't want [your] professional environment besmirched by 'social media'-type actions* you may have to choose a different photo app to separated your professional and private life.

Concerning the algorithms behind memories, it is obviously based on similarly between groups of photos (location, date, people...). From my personal experience 2 différents types of memories are highlighted by the App:

* Regular memories that gather photos from a recent event (a trip, a week-end, a party). They are usually pushed froward few weeks after the event ends.
* Special memories that are usually highlighted many month (sometimes years) after the event ends. Such memories could contain only photos of a specific person (the memory titles "[Person X] over the years", "[Person X] birthday", [Person X]'s Home) or photos taken a specific amount of time ago (a have a "5 years ago" one, here are some other examples: "last Winter", "On this Day", "Chrismas day", "Halloween" and even "Best of Last Week/Mounth/Year").

I guess that you dislike this second category. This is quite intrusive I reckon but Photos App IS a social App since Apple designed to encourage photo sharing and viewing between family and friends rather than for professional use.
Upvotes: 2 <issue_comment>username_2: I love the idea of Photos automatically creating an album of Mr Boots, so I don't have to. I don't love a popup notification (esp. with audio ding) disrupting my hyper-focused state of productivity.
So... I clicked the gears icon (System Preferences) >> Notifications >> Scrolled down to Photos >> Unchecked Everything and changed alert style to None [![enter image description here](https://i.stack.imgur.com/Hm43f.png)](https://i.stack.imgur.com/Hm43f.png)
Upvotes: 1 <issue_comment>username_3: You don't have to turn off all Photos notifications if you just want to stop the Memories notification... just go to:

Photos App/Photos Menu/Preferences/Show Memories Notification checkbox.
Upvotes: 2 [selected_answer]


<issue_start>username_0: I want to back up data for some apps on iOS without including several GB of pictures and operating system files. How do I do this?

The option to backup data by app is completely missing from iCloud or I was unable to find it, and it also appears to be missing in iTunes. Where is the option to do selective or partial backup?<issue_comment>username_1: [Source](https://support.apple.com/en-us/HT204247):

Choose which apps to back up
============================

Many iOS apps automatically back up to iCloud after you install them. You can change which apps back up and remove existing backups from your storage. Use these steps on your iPhone, iPad, or iPod touch.

iOS 10.3 or later:
------------------

1. Go to `Settings > [your name] > iCloud`.
2. If you use iOS 11, tap `Manage Storage > Backups`. If you use iOS 10.3, tap `iCloud Storage > Manage Storage`.
3. Tap the name of the device that you're using.
4. Under `Choose Data to Back Up`, turn off any apps that you don't want to back up.
5. Choose Turn Off & Delete.

iOS 10.2 or earlier:
--------------------

1. Go to `Settings > iCloud > Storage > Manage Storage`.
2. Tap the name of the device that you're using.
3. Under `Backup Options`, turn off any apps that you don't want to back up.
4. Choose Turn Off & Delete.

**When you confirm that you want to Turn Off & Delete an app, it turns off iCloud Backup for that app and removes all of its information from iCloud.**

Some apps, like Voice Memos, are always backed up and you can't turn them off.
Upvotes: 2 <issue_comment>username_2: I know it doesn't related to icloud, but if you have jailbreaked device, you can use "Apps Manager" tweak (<https://www.tigisoftware.com/default/?page_id=259>) to locally backup/restore data by app. It works fine even on iOS 10 and 11
Upvotes: 1


<issue_start>username_0: I almost always turn off cellular data when I lock the screen. I only turn it on when I’m using internet. But it’s annoying to do that almost every time. Does it worth the trouble?<issue_comment>username_1: My subjective opinion is that while yes, turning off cellular data would extend the battery standby time, you would see more significant improvement by simply enabling low-power mode on the battery.

This is dependent on your individual usage patterns of course.

There are a few discussions and articles on the subject of increasing battery life at [Quora](https://www.quora.com/Does-turning-off-cellular-data-on-apps-preserve-iPhone-battery-life), [Apple Discussion Board](https://discussions.apple.com/thread/3702489), [Copytrans.net](https://www.copytrans.net/support/how-to-extend-iphone-battery-life/)

The material of the above seems to indicate that the simple act of disabling the cellular-data in and of itself isn't saving power, should you not actually be using the cellular data to receive or transmit data. The fact that transmitting and receiving cellular data does consume battery power is what would lead to an increase in standby time ie. comparing the battery usage between a device with mobile data enabled (but not actively being used) and the battery usage of a device that has mobile data disabled, you would not expect to see a significant difference.
Comparing the battery usage between a device with mobile data enabled (with high levels of push-service data being used) and the battery usage of a device that has mobile data disabled, you would expect to see a significant difference in standby time - hence the dependence on your individual usage patterns in this case.

[Low-power mode](https://support.apple.com/en-au/HT205234) disables various services and features, including mail fetch, Hey Siri, background App refresh, automatic downloads and some visual effects are reduced or turned off. I would expect the mobile data usage to be *similar* in both the cellular-data disabled, and battery low-power modes, with the low-power mode additionally disabling various processor intensive features.
Upvotes: 0 <issue_comment>username_2: You can follow general rules to optimize your battery life.

<https://www.apple.com/batteries/maximizing-performance/>.

Now respecting your question, you save a lot of battery by turning cellular data only when you needed. Cellular data consumes a lot of battery power, specially when yo have have no coverage or low signal:

"No Cell Coverage and Low Signal. This indicates that either you are in a poor cell coverage area and your iOS device is searching for a better signal or that you’ve used your device in low-signal conditions, which has affected your battery life."
This is according to previous apple link, however, take into consideration that GPS works with cellular data so if you leave it by accident powered on, your battery charge will decrease dramatically.

Also I recommend you to have your iPhone up to date, for possible bugs, of course back-up first.

<https://support.apple.com/en-us/HT203977>

Pay attention on one detail, if you back-up an iPhone with already performance issues, the iOS or iCloud back-ups could be affected too. So it is important to back-up often and not wait to have problems to back-up before an up date or even a restore.

Kind regards!
Upvotes: 1


<issue_start>username_0: Boot Camp Assistant is stuck on ‘create a partition’. I have followed the guide as answered in the question [Boot Camp Assistance is stuck on create a partition?](https://apple.stackexchange.com/questions/314111/boot-camp-assistance-is-stuck-on-create-a-partition/) but it didn't work after step 8. After I clicked on the "Next" button it says:

>
> Windows detected that the EFI system partition was formatted as NTFS. Format the EFI system partition as FAT32, and restart the installation.
>
>
>

What should I do?<issue_comment>username_1: You can try entering the following command in a macOS Terminal application window. This command should format the EFI system partition as FAT32.

```
sudo newfs_msdos -F 32 -v EFI /dev/rdisk0s1

```

If the command fails, you could try entering the command while booted to [macOS Recovery over the Internet](https://support.apple.com/en-us/HT201314).
Upvotes: 2 <issue_comment>username_2: when you get an option to select drive to install, delete all the drives you see , untill you only have 1 option ----> " unallocated ".

Installation will go smoothly after you do this
Upvotes: 0


<issue_start>username_0: Hello guys I'm trying to create a Service to do some repetitive tasks that I have to perform every day. Most of the things I figured out how to automate, but there is one move that seems to be impossible: dragging two folders into a Final Cut Pro 7 project.

[![Drag folders from Finder without mouse](https://i.stack.imgur.com/67qYL.jpg)](https://i.stack.imgur.com/67qYL.jpg)

I tried using Applescript to tell Final Cut the menu commands File/Import/Folder... But apparently the program is not scriptable. Furthermore the parent folder always change, so I can't hardcode the location, although I can tell the current path to the script using automator.

I can't upgrade to Final Cut X for professional reasons, so that's not an option.

Any insight would be appreciated, even to say "You can't do that".<issue_comment>username_1: Here is [Magic Utilities](https://magicutilities.net/).

At this point in time, we are not sure what went wrong in your specific case, but **our drivers do uninstall** when uninstalling the Magic Utilities.

You can always uninstall **any** Windows driver with Windows **pnputil** from the command line. First enumerate all drivers, to find the relevant eomXX.inf, then do a **forced** uninstall of that oemXX.inf file.

Note: The BootCamp drivers from Apples official webpage **do not support** the Magic Mouse 2.

We'll contact you via email to help you to solve your specific problem.

username_1
Upvotes: 2 <issue_comment>username_2: After a LOT of trial-and-error I have these findings:

I had to completely uninstall [Bluetooth Battery Monitor](https://www.bluetoothgoodies.com/); this was the main culprit. Simply "exiting" wasn't enough, only when disabled on startup I was able to make some progress and only after actually uninstalling everything started working as it should. Somehow these two applications seem to interfere / bite eachother.

I had issues with the mouse "jumping", not registering any clicks (it did, until Magic Utilities was loaded), I had it showing up as "not connected" in Magic Utilities and I had it actually show up as connected whenever I unpaired and re-paired but then in less than 10 seconds it would go back to "not connected" etc. It caused all sorts of strange problems. Clicking / moving the mouse at times caused beeps to come out of my speaker (like in the good old days when the keyboard buffer was full or when an application hung in Win 9x).

Uninstalling BlueTooth battery monitor fixed all my problems. Which kind of sucks since I liked it...
Upvotes: 1 [selected_answer]<issue_comment>username_3: If your goal is simply to get the mouse up and running then Apple's drivers will work just fine on a mac or a pc running windows 10 for free. You just can't download them from the apple website directly.

1. Download Brigadier <https://github.com/timsutton/brigadier/releases>
2. Open up the command line, navigate to the folder with brigadier
3. Run "brigadier.exe" if you are on a mac or "brigadier.exe -m iMac19,2" without quotes on a pc (-m specifies the model's drivers to get. anything recent should have the proper mouse drivers) This will leave a new folder something like bootcamp-###-##### in the directory from where you ran brigadier
4. open Windows Device Manager
5. Under Human Interface Devices right click on the Bluetooth HID device and click update driver
6. Click Browse my computer for driver software, then let me pick, then have disk
7. navigate to the bootcamp folder downloaded with brigadier go to BootCamp\Drivers\Apple\AppleWirelessMouse within this folder and select the AppleWirelessMouse.inf file.
8. Click next. The mouse will not work. This is expected. Just reboot the computer and scrolling will work!

This is a free solution that uses apple's drivers. It seems like for such an expensive piece of hardware they would make the driver easier to install on windows too. I guess that's not the Apple way though.

**EDIT**

Thanks to Rain9333 for his work to make this driver available directly on github. from his comment under the question this download is available here: <https://github.com/Rain9333/MagicMouse2DriversWin10x64>
Upvotes: 1


<issue_start>username_0: I have a macos and Windows 10 already installed. I went ahead and installed ubuntu via EFI, and I think I really messed something up.

Every time I boot and select Windows it goes to the purple Ubuntu boot manager. I really need access to Windows, as it has my work files on there. Is there a way I can go back to having boot camp launch windows instead of Ubuntu?

I can access Ubuntu, however.<issue_comment>username_1: The current releases of both Windows and Ubuntu by default install a file named `BOOTX64.EFI` in the `EFI/BOOT` folder stored in the `EFI` partition of your internal drive. When you installed Ubuntu, the Windows version of this `BOOTX64.EFI` file was overwritten with the Ubuntu version.

There is a backup copy of the windows version of the `BOOTX64.EFI` file which is named `bootmgfw.efi` in the folder `EFI/microsoft/boot` stored in the `EFI` partition.

There is a backup copy of the Ubuntu version of the `BOOTX64.EFI` file which is named `shimx64.efi` in the folder `EFI/ubuntu` stored in the `EFI` partition.

To get the `EFI` partition to appear in the Finder application, you will need to enter the following command in a Terminal application window.

```
sudo diskutil mount disk0s1

```
Upvotes: 0 <issue_comment>username_2: Why are you even using Bootcamp it’s not necessary.. just install a boot loader and pick whatever you need at the start. If you want to run particular windows apps just use Wine [Wine Is Not an Emulator](https://www.winehq.org/ "Wine")
Upvotes: 1


<issue_start>username_0: I recently changed from using a Surface to a Mac and I am having a hard time figuring out how to open files, let say from my gmail, without having to save the file on my Mac. With Microsoft, when I click download it prompted if I wanted to just open the file, Save or Save as... I can not figure out how to get those options on my Mac. Everytime it just prompts to save the file, but no to just open it without saving it first.<issue_comment>username_1: That option is located in the Safari Preferences dialog.

in Safari go to the Safari menu and select Preferences.

If it is not already selected click on the General icon in the top left of the Preferences dialog.

At the very bottom there should be a checkbox (likely unchecked) that says "Open "safe" files after downloading." Check that box and you should be good to go.
Upvotes: 2 <issue_comment>username_2: There are several aspects to the behavior you are describing. First, you should know that the "Open" vs "Save" behavior is not strictly controlled by the Operating System; it is a function of the application and the source of the file. For example, you mentioned **GMail**... there are many different ways to configure **GMail**, but in my setup, hovering the pointer over a mail attachment yields a choice of `Save to Drive` (i.e. Google Drive), or `Download`. In the **Chrome** browser's `Settings`, `Advanced` menu, you will find options to specify both the download location, and whether or not the file will be opened after download. You'll find similar settings for **Firefox**, and for **Safari** (as pointed out in @SteveChambers answer).

Also, as @jmh pointed out in his comment, a "right click"/`control` `click` will yield a context-sensitive menu that may offer choices such as `Open` and `Save As...`, depending upon the type of document it is, and how the web page was coded.

It seems that you may be laboring under a misconception. By that, I mean you seem to feel that Microsoft is not saving the file before you open it. Let me assure you that Microsoft ***is*** saving the file before you open it. Microsoft may be saving the file to a temporary location (I'll explain that in a moment), but they are saving it - that is, it exists on your hard drive somewhere, and it was downloaded.

And so, if you wish to "do it like Microsoft does" on your Mac, you might try this:

1. If you're using **Safari** as your web browser, you can configure it as outlined in @SteveChambers answer; i.e. open the file after download. Likewise, these same settings are available in **Chrome** and in **Firefox** (and likely any other browser you'll encounter).
2. You can change the default location for **Downloads** . Generally all the browsers (Firefox, Chrome, Safari) default saving downloaded files to the folder `~/Downloads` - a folder you will see in your **Dock**. Files you download to this folder will remain there until you manually delete them. However, if you specify `/tmp` (a "temporary" folder) as the default location for downloaded files, these downloads will be deleted when your system restarts.

One caveat you should be aware of: If you elect to use `/tmp`, you should **NOT** go into `/tmp` and manually delete files. Let the OS take care of the cleanup.

Hope this helps... transitioning to a new OS means re-learning some things, but at the end of the day, they often do the same things, but called by a different name. Such is the case with "Open" and "Download".
Upvotes: 1


<issue_start>username_0: The [Caffeine app](http://lightheadsw.com/caffeine/) for preventing sleep/screen lock is not working on macOS Mojave.

Did I miss a setting to FAQ on making it work with macOS 10.14?<issue_comment>username_1: Here are 2 alternative you can try that do the same as caffeine.

[Amphetamine, a full-on Caffeine replacement](https://itunes.apple.com/us/app/amphetamine/id937984704?mt=12)

and

[KeepingYouAwake, an up-to-date Caffeine clone](https://github.com/newmarcel/KeepingYouAwake/releases)
Upvotes: 4 <issue_comment>username_2: AFAIK, `caffeinate` remains in Mojave, and it is certainly in High Sierra and Mojave. `caffeinate` is a command line utility; i.e. you invoke it from the terminal. If this is what you mean by "manual entry" then I'll guess you're not keen on doing things from the command line.

However, `caffeinate` is [quite easy to use.](https://github.com/seamusdemora/seamus.github.io/blob/master/MacStuff.md#2-how-do-i-prevent-my-mac-from-sleeping-) It also has the advantage of being supported by Apple, doesn't require cluttering your system with additional apps that will require your time to maintain/upgrade. I could go on, but...

So that's my answer. I mostly just wanted to make it clear that the `caffeinate` utility has not been deprecated by Apple.

### EDIT:

Note that `caffeinate` will NOT prevent an [automatic logout](http://osxdaily.com/2013/03/23/automatically-log-out-of-a-mac-after-a-period-of-inactivity/). Check to make sure you have not selected that option; `caffeinate` is powerless against a logout.
Upvotes: 4 <issue_comment>username_3: Caffeine is still working! However, Apple has upped its security and privacy model a bit and caffeine fell prey to that. What you have to do to get it working properly again is the following:

* Open System Preferences
* Click Security & Privacy
* Click the Privacy tab
* In the left column, select Accessibility
* If needed, click the lock icon in the lower left and enter your password to unlock your settings
* Click the `+` button and select your Caffeine app to allow it to control your Mac
* Restart Caffeine

[![System Preferences screenshot](https://i.stack.imgur.com/4130R.png)](https://i.stack.imgur.com/4130R.png)
Upvotes: 6 <issue_comment>username_4: TLDR: Access to the permissions in Mac OSX Mojave have changed. You have two options:

1. [Download updated version of Caffeine that I fixed.](https://intelliscapesolutions.com/apps/caffeine) See story below.
2. [Update preferences to allow Caffeine access it needs.](https://apple.stackexchange.com/a/339355/116392) (via other answer to this question)

---

While this question wasn't entirely clear on whether the issue was with the `caffeinate` command built in to macOS or the Caffeine utility written by <NAME> of Lighthead Software, the comments and other answers seem to imply the latter.

After encountering the issue myself, I reached out to Tomas and inquired about taking over the development of Caffeine. He graciously has provided the source code under an MIT license, and I've made a quick updated version available [here](https://intelliscapesolutions.com/apps/caffeine) that will prompt for the needed accessibility permissions when running on Mojave.

I will be bringing additional support for Mojave as well as some improvements in the near future, but wanted to put this here for others who come across this question like I did and would like to continue using Caffeine.
Upvotes: 7 [selected_answer]<issue_comment>username_5: Hey there—I’m the creator of an alternative called **Theine**. Back in 2015 I’ve decided to create my own caffeine-like app because of the lack of support for retina displays.

▶ Download: <https://itunes.apple.com/app/theine-2/id955848755>

It’s available on the Mac App Store and *doesn’t* require Accessibility (== admin) privileges at all.

[![enter image description here](https://i.stack.imgur.com/iZcT3.jpg)](https://i.stack.imgur.com/iZcT3.jpg)
Upvotes: 0 <issue_comment>username_6: Below will start `caffeinate -s` supported by Apple as a macos launchctl daemon on computer startup.

```
; cat >~/ze.caffeinate.plist <<'EOF'
xml version="1.0" encoding="UTF-8"?

 Label
 ze.caffeinate
 ProgramArguments

 /usr/bin/caffeinate
 -s

 KeepAlive

EOF

; sudo mv ~/ze.caffeinate.plist /Library/LaunchDaemons/

; sudo launchctl load /Library/LaunchDaemons/ze.caffeinate.plist
...

; sudo launchctl list |grep caffeinate
4921    0   ze.caffeinate

```
Upvotes: 0


<issue_start>username_0: What is the difference between LibreOffice, as available for download from the [LibreOffice](https://www.libreoffice.org/) web site, and LibreOffice Vanilla, as available from the macOS AppStore? And how do current version numbers compare?

I guess downloading an image from that web site is okay, but then macOS asks me to confirm the image as obtained from a mirror site with an unfamiliar name. This still makes sense on a technical level, but frankly I'd prefer to install via the AppStore, esp. since the admin password is involved.<issue_comment>username_1: LibreOffice Vanilla is almost identical to LibreOffice Fresh. The only difference is that when downloading Fresh, the website asks for a donation. AFAIK there are some policies in App Store which doesn't allow asking for money in application listing. Since the money from donations are important for LibreOffice development the Vanilla version includes a donation link (which should be the only difference).

See <https://www.collaboraoffice.com/community-en/libreoffice-vanilla-mac-app-store/> and <https://www.libreoffice.org/download/libreoffice-fresh/>
Upvotes: 3 [selected_answer]<issue_comment>username_2: The Document Foundation Wiki has a page about [LibreOffice Vanilla for Mac](https://wiki.documentfoundation.org/LibreOffice_Vanilla_for_Mac), which explains the differences.

There are some differences in functionality. LibreOffice Vanilla for Mac omits some Java-based features. The upshot is that Base cannot use the HSQLDB engine, and is lacking some reporting features. Java-based extensions won't work either.

The wiki page includes a detailed list of build flags used to compile the Collabora versions, which provide further detail. (Caveat: it's a wiki, so this may not be up to date.)

Note that Collabora's post [LibreOffice Vanilla: Fresh from the community to your Mac](https://www.collaboraoffice.com/community-en/libreoffice-vanilla-mac-app-store/) does not mention these functional differences.
Upvotes: 3 <issue_comment>username_3: I should add, at time of writing, LibreOffice Base does not fully support M1 Silicone Macs, while Vanilla does.

```
LibreOffice:

  Version:  7.1.0.3
  Obtained from:    Identified Developer
  Last Modified:    29/01/21, 3:40 AM
  Kind: Intel
  Signed by:    Developer ID Application: The Document Foundation (7P5S3ZLCN7), Developer ID Certification Authority, Apple Root CA
  Location: /Applications/LibreOffice.app

```

Another source: <https://isapplesiliconready.com/?apps=LibreOffice%20Vanilla,LibreOffice>
Upvotes: 2


<issue_start>username_0: I’ve noticed that if I have two folders of the same name but different files in each, copying one on top of the other (eg: from different parent locations) will cause the contents of the first folder to be wiped out by the second. Windows does not do this; It merges the contents of the two folders, making the operation far less destructive. On Mac it feels very risky.

Why is this?
Is it an option which can be changed?<issue_comment>username_1: Merge two folders with the same name

If you have two folders with identical names at two different locations, you can merge them into a single folder.

Press and hold the `Option` key, then drag one folder to the location that contains a folder with the same name. In the dialog that appears, click Merge.

The Merge option appears only if one of the folders contains items that are not in the other folder. If the folders contain different versions of identically named files, the only options are Stop or Replace.
Upvotes: 4 [selected_answer]<issue_comment>username_2: On macOS Mojave, if you try to paste a folder with some name (let's say `My Folder`) into a different folder, let's say which is called `Parent Folder`, which *contains* a folder with the same name as the folder you are copying (i.e. `My Folder`), then one of two things will happen:

1. If the folder you are pasting contains the same files as the folder you are trying to paste over (i.e. the `My Folder` inside the `Parent Folder`), then you will be asked to "Stop" the operation or to "Replace" the folder.
2. If the folder you are pasting contains different items from the the folder you are trying to paste over, then you will be given both of the options from 1., but also an option to "Merge" the folders. According to macOS, this is what merging does:

>
> Merge will combine the two folders, preserving all the newer items such as “My Picture.png”.
>
>
>

You also seem to be saying that macOS doesn't warn you before replacing folders. macOS's default behavior is to show you a dialog box with "Stop" and "Replace" (as in situation 1) or with "Stop", "Replace", and "Merge" (as in situation 2).
Upvotes: 0


<issue_start>username_0: Is there a way to trigger 3rd party apps to change to dark themes when Dark Mode is turned on in macOS Mojave?

Specifically, can I have PyCharm switch theme automatically to Darcula when I turn on Dark Mode?

[LightsOff](https://gumroad.com/l/lightsoff/kkb62bx) shows a list of all apps to theoretically selectively choose Light/Dark Mode for, but it has no effect on PyCharm.
This is unfortunate especially since *PyCharm is shown on the LightsOff homepage as if LightsOff can control its theme*.
Chrome, MATLAB and SourceTree are also 3rd party apps with a dark theme that show no effect. The only app I use which switched to a dark theme with LightsOff is Things.<issue_comment>username_1: **Update:** Chrome now fully supports dark mode in Chrome 73 and JetBrains IDEs support dark mode in 2020.3.

---

Since PyCharm and other JetBrains IDE's are made in Java, they will not be able to use the native macOS Dark mode. Any system settings you apply also most likely won't affect Java applications, unless the developer specifically adds support for it using something like the library [jSystemThemeDetector](https://github.com/Dansoftowner/jSystemThemeDetector).

Many native apps will support Dark Mode without the developer having to do anything, but some that use custom UI views and controls, like Chrome, will need to add support for it manually. Dark mode support for Chrome is in progress(see [here](https://9to5google.com/2018/09/21/google-chrome-macos-dark-mode/)). SourceTree also uses custom controls and therefore doesn't support Dark Mode yet.
Upvotes: 3 [selected_answer]<issue_comment>username_2: I have come up with a (hacky) way to change themes in JetBrains editors using bash and AppleScript. An example for PyCharm would be something like:

```sh
#!/bin/bash

# Switch macOS dark mode on and off
osascript -e '
    tell application "System Events"
        tell appearance preferences
            set dark mode to not dark mode
        end tell
    end tell
'

# Change PyCharm theme

# Assumes default key mappings
# Switch to dark theme if macOS dark mode is on
# 2>/dev/null to suppress error if macOS dark mode is off
if defaults read -g AppleInterfaceStyle 2>/dev/null | grep -q "Dark"; then
    osascript -e '
        if application "PyCharm" is running then
            -- switch focus to PyCharm
            tell application "PyCharm" to activate
            tell application "System Events"
                -- open Quick Switch Theme menu
                keystroke "`" using {control down}
                -- Select Look and Feel
                keystroke "5"
                delay 0.4
                -- Select Darcula
                keystroke "2"
            end tell
        end if
        '
# Switch to light theme if macOS dark mode is off
else
    osascript -e '
        if application "PyCharm" is running then
          tell application "PyCharm" to activate
            tell application "System Events"
                keystroke "`" using {control down}
                keystroke "5"
                delay 0.4
                keystroke "1"
            end tell
        end if
        '
fi

```

I actually use it as a part of a larger script but the code above should work fine for PyCharm only (or any other JetBrains IDE, just replace application name). If you experience issues, I would suggest increasing/introducing delays between keystrokes like the `delay 0.4` in the code above.
Upvotes: 2


<issue_start>username_0: I have users in my lab that run sound via their speakers. I would like to disable the ability to do so on all machines in the lab to prevent this, whilst still allowing them to use their headphones.

I have read articles about how to disable all audio (not a totally desirable outcome, but better than the alternative) by deleting the IOAudioFamily.kext file, however, this doesn't seem to work on High Sierra.

Has anyone aware of a solution to this issue?

Thank you for your help.<issue_comment>username_1: I found this for you...

How to set the volume level to the secret minimum

So here's the deal, normally when you set the volume to 0 the speakers are automatically muted. On the keyboard you can hit the mute button while the volume is at 0 and it will unmute to the secret lowest volume setting.

Likewise, you can instruct AppleScript to not automatically mute the volume:

```
osascript -e "set volume without output muted output volume 1 --100%"

```

How to set the volume without unmuting

Sometimes you want the volume to stay muted, but to come on at a particular level when you unmute.

This is how you prevent the audio from unmuting when you adjust the volume level:

```
osascript -e "set volume with output muted output volume 42 --100%"

```
Upvotes: 1 <issue_comment>username_2: There are a handful of software-based solutions, but most of them do not support multi-device control, which is what you're looking for. So, whether you disable computer audio completely, or limit the volume on all devices, it sounds like it's not entirely what you're looking for.

>
> I would like to disable the ability to do so on all machines in the lab to prevent this, whilst still allowing them to use their headphones.
>
>
>

One simple approach to this would be to purchase a [short headphone extension cable](https://rads.stackoverflow.com/amzn/click/com/B01CNAUYBY) for each computer. With this extension cable plugged in, all audio will be routed to the headphones even though there may not be any headphones plugged in to the built-in jack. I think that would be simplest, provided no one removes it from the back of the computer.

Among the other software-based approaches, such as [Earsafe](https://earsafe.io), [Whisper](https://apps.apple.com/us/app/whisper-volume-limiter/id1438132944), or [Volimeter (CLI)](https://gist.github.com/atr000/223401), and [Volume Limiter](https://apps.apple.com/us/app/volume-limiter/id1478846233?mt=12) only Volume Limiter gives the ability to do this on a per-device basis.
Upvotes: 0