Add access to the macbook camera for the terminal application

I am trying to run a OpenCV tutorial that uses the cv.VideoCapture(0). This does require permission from terminal to access the camera. Here is a blog description showing that they see the terminal app included in the Applications list:

enter image description here

But for me the Terminal is not provided as an optional App:

enter image description here

That is actually not at all surprising. But then how to add Terminal? The apple docs only show this: https://support.apple.com/guide/mac-help/control-access-to-your-camera-on-mac-mchlf6d108da/mac :

enter image description here

No mention of how to add other apps is included. So how to add Terminal? (Actually I would also be interested in adding for iTerm2 ..)

Are there any risk of bricking the macbook by cloning to a partition?

I’m currently using a mac with 3 bootable partitions (multiboot). MacOS, Ubuntu and Arch-Linux.

I can switch between the operating systems using rEFInd

I mostly only use Arch-Linux but only gave it 30GB / 256GB when I created it. Now, I’m unable to update Arch because I don’t have enough space left.

As far as I know, Mac stores the boot menu on the disk itself and has been afraid of messing with the disk too much because I don’t want to end up bricking the macbook like I’ve done 2 times in the past. Changing the disk did not work, and I got a new one warranty.

Here is a screenshot from that (Question was removed)

  • https://i.imgur.com/ZSVnoL7.png
  • https://i.imgur.com/HzXrcPO.png

This is my plan

  1. Clone the partition to a 32GB USB Flash drive using Clonezilla
  2. Delete all partitions except MacOS
  3. Create a new partition with 128 GB
  4. Boot to Clonezilla again, and clone from USB to partition (This is the part I’m worried about)
  5. I would imagine I would need to extend the partition aswell after the cloning.

Are there any risk of overwriting the boot or bricking the Macbook?

macbook spontaneously quick-restarting

Twice within the last hour my MacBook Pro 15″ Mid-2015 w/ retina display restarted.

The restarts are weird, in the middle of whatever I’m doing my screen turns “black” (LED backlight still clearly on, looks more like blue) then it goes to my lock screen, loading icon appears, then shows my password prompt for me to log in again.

After logging in all my apps I had open are closed, and restart (as would happen after a normal restart).

But the whole “restart” process takes less than 20 seconds and my MacBook is clearly not powering off at any stage.

MacBook tries to connect to colleague’s Apple Watch

My colleague’s Apple Watch keeps asking if he wants to accept pairing with my MacBook Pro. I have never had his Apple Watch connected to my MacBook (or tried to do so…), but I did have his iPhone connected through a USB cable, to launch an iOS app on it (through Xcode).

I cannot see any sign of the Apple Watch on my MacBook. I have no idea why it tries to connect with his Apple Watch. I do not own an Apple Watch.

How do I stop this? It is quite annoying for my colleague.

Macbook Pro overheating

My 2012 MacBook Pro constantly overheats. The back gets too hot to touch. I’ve done everything I have been told to do that should fix it from resetting SMC and the NVRAM, to taking the back lid off and removing the fan to get all the dust out with an air compressor. I have screenshots attached to show reports from iStat

Macbook Pro w/ USB-C and multiple monitors occasionally swap non-main screens

My Macbook Pro (15″, 2017 model) running High Sierra has a multi monitor setup involving my laptop on the left, an external monitor to its right (and configured to be the main screen with the menu bar and dock), and another monitor to the right of that. Both external monitors (same brand and same resolution) are connected via HDMI cables that attach to Thunderbolt/USB-C plugs that go into an Elgato dock which then connects to the laptop via a Thunderbolt/USB-C cable.

I frequently will disconnect the laptop to go to a meeting and occasionally when I reconnect, my leftmost and rightmost screens become reversed, what I used to see on the laptop screen is now on the right external monitor. This goes for not only floating windows but also full screen apps. I then need to go into Mission Control to move the windows and full screen apps back to their preferred positions.

So firstly I want to know why this is happening and secondly how I can prevent that from occurring or a tool I can use to restore the windows as expected. I have seen some mention online that it could be related to which monitors are recognized by the computer first, and for sure for about 20 seconds after I plug in the cable I see a crazy dance of windows being resized and sometimes they all restore correctly. Could this be an issue with the dock or is it related to the OS and how it recognizes external monitors?

Thank you in advance!

MacBook Pro having trouble sleeping

Problem

My MacBook Pro seems to have trouble sleeping when closed. I noticed it because it’s hot in the mornings, while the battery is nearly drained. It doesn’t happen all the time, and, unfortunately, I don’t know how to reproduce this behaviour on purpose.

Sometimes I use Caffeine, an app which makes sure Mac won’t go to sleep. I used it with my old MacBook 12′ and it worked well with Caffeine activated (it was sleeping tight). This one though, I can’t leave it in my backpack on (alleged) sleep since I’m afraid of damaging it from excessive heat. However this app seems to be unrelated to be problem, since it occurred without the application as well.

Question

What wakes my Mac and how can I be sure that it’ll sleep for the whole night?

Additional information

MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports), Mojave 10.14.4, 2,3 GHz Intel Core i5, 16 GB 2133 MHz LPDDR3

I did some research, tried to investigate it on my own, but I’m clueless with this output:

$   log show --style syslog # excerpt - the first line is repeated many times during the night 2019-05-21 00:18:57.630795+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630796+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630797+0200  localhost apsd[74]: <private>: Not choosing red list for topic com.apple.Notes because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630798+0200  localhost apsd[74]: <private>: Not choosing red list for topic com.apple.Notes because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630799+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630799+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630800+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630801+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.630965+0200  localhost apsd[74]: (Security) Created Activity ID: 0xe3c85, Description: SecItemCopyMatching 2019-05-21 00:18:57.631108+0200  localhost apsd[74]: (Security) Created Activity ID: 0xe3c86, Description: SecItemCopyMatching 2019-05-21 00:18:57.631112+0200  localhost apsd[74]: (Security) Created Activity ID: 0xe3c87, Parent ID: 0x80000000000e3c86, Description: SecItemCopyMatching_ios 2019-05-21 00:18:57.631166+0200  localhost apsd[74]: (Security) [com.apple.securityd:SecCritical] Failed to talk to secd after 4 attempts. 2019-05-21 00:18:57.631190+0200  localhost apsd[74]: (Security) Created Activity ID: 0xe3c88, Description: SecItemCopyMatching 2019-05-21 00:18:57.631292+0200  localhost apsd[74]: Looking up connection on peer: 5ab15c70   found <private> 2019-05-21 00:18:57.631495+0200  localhost apsd[74]: successful entitlement check 'com.apple.private.push-to-wake' for 263 2019-05-21 00:18:57.631508+0200  localhost apsd[74]: [com.apple.apsd:connectionServer] <private>: connection set push wake topics from <private> to <private> 2019-05-21 00:18:57.631586+0200  localhost apsd[74]: <private>: Filter will potentially be changed by <private> 2019-05-21 00:18:57.631595+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631596+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631598+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631599+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631600+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631601+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631603+0200  localhost apsd[74]: <private>: Not choosing red list for topic com.apple.private.ids because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631604+0200  localhost apsd[74]: <private>: Not choosing red list for topic com.apple.private.ids because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631606+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631606+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake 2019-05-21 00:18:57.631608+0200  localhost apsd[74]: <private>: Not choosing red list for topic <private> because dark wake enabled and in full into dark wake ... 
$   pmset -g assertions Assertion status system-wide:    BackgroundTask                 0    ApplePushServiceTask           0    UserIsActive                   1    PreventUserIdleDisplaySleep    0    PreventSystemSleep             0    ExternalMedia                  0    PreventUserIdleSystemSleep     1    NetworkClientActive            0 Listed by owning process:    pid 286(sharingd): [0x000142480001a7f2] 00:00:38 PreventUserIdleSystemSleep named: "Handoff"    pid 97(hidd): [0x000135310009a2c8] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4295051175.3"     Timeout will fire in 600 secs Action=TimeoutActionRelease Kernel Assertions: 0x104=USB,MAGICWAKE    id=508  level=255 0x100=MAGICWAKE mod=21/05/2019, 15:48 description=en0 owner=en0    id=1165  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.01100000 owner=USB3.0 Hub    id=1167  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.14200000 owner=USB2.0 Hub Idle sleep preventers: IODisplayWrangler 
$   pmset -g System-wide power settings: Currently in use:  standbydelaylow      10800  standby              1  womp                 1  halfdim              1  hibernatefile        /var/vm/sleepimage  proximitywake        1  powernap             1  gpuswitch            2  networkoversleep     0  disksleep            10  standbydelayhigh     86400  sleep                1  hibernatemode        3  ttyskeepawake        1  displaysleep         10  tcpkeepalive         1  highstandbythreshold 50  acwake               0  lidwake              1 

MacBook air k key not working

i’m using the software instrument on Garageband and whenever I try to combine k with any other key it won’t work. i can click it by it’s self but i can’t combine it. i went to an online piano site and experience the same thing. my sticky keys/slow keys are off and i’m not sure what to do