• Breaking News

    Sunday, February 6, 2022

    macOS Automatic Disable/Enable Bluetooth to 'fix' Monteray sleep issues

    macOS Automatic Disable/Enable Bluetooth to 'fix' Monteray sleep issues


    Automatic Disable/Enable Bluetooth to 'fix' Monteray sleep issues

    Posted: 05 Feb 2022 10:11 PM PST

    If you're like me and you're just about ready to throw your iMac/Macbook out the window because it won't gosh darn go to sleep because it keeps being woken by bluetooth, then this may work as a (hopefully temporary until Apple sorts their shit out...) workaround.

    Basically, use hammerspoon and blueutil to automatically turn off bluetooth when going to sleep and turn it back on again after waking up.

    Before you start

    1. Credits belong to Pierz at stackoverflow - the Hammerspoon lua is entirely based off of his post here
    2. I got this working using sleepwatcher (it works using the exact same .sleep and .wakeup files) but I found it quite opaque and hammerspoon can do a lot more and has better docs and a much bigger community, so if you're going to install something it may as well be hammerspoon
    3. if you do this you won't be able to wake your device from any bluetooth device
    4. if you're not using a laptop then find a mouse (+keyboard ideally) that connects via dongle/USB (i.e. not bluetooth) as you might end up with bluetooth accidentally disabled with no way to turn it back on
    5. test if this applies to you first - disable bluetooth and confirm that your device stays asleep as expected

    Software needed

    1. blueutil - I already had this installed, not sure if it always was there, but it's available through homebrew
    2. Hammerspoon from http://www.hammerspoon.org (also ensure that Hammerspoon has all required accessibility permissions)

    Validate location of blueutil

    Check that blueutil is in the place my scripts below assume it to be:

    which blueutil

    If it's anywhere other than /usr/local/bin/blueutil then adjust the .sleep and .wake scripts below to match

    Create Scripts

    Create ~/.sleep and paste in:

    #!/bin/bash /usr/local/bin/blueutil --power 0 

    Create ~/.wakeup and paste in:

    #!/bin/bash /usr/local/bin/blueutil --power 1 

    make them executable and readable only for yourself:

    chmod 700 ~/.sleep ~/.wakeup 

    Test Scripts

    !!THIS WILL DISABLE YOUR BLUETOOTH!! Make sure that you are able to enable it again with a non-bluetooth device

    ~/.sleep 

    This will re-enable your bluetooth

    ~/.wakeup 

    Setup Hammerspoon

    create/edit ~/.hammerspoon/init.lua and paste in (replacing /Users/YOURNAME with whatever cd ~ && pwd enumerates to)

    -- borrowed/Stolen from https://stackoverflow.com/questions/39459130/sleepwatcher-on-os-x-10-11-not-executing-script-on-wake function caffeinateWatcher(eventType) if (eventType == hs.caffeinate.watcher.systemWillSleep) then print ("WillSleep...") -- Execute sleep script hs.task.new("/Users/YOURNAME/.sleep", nil):start() elseif (eventType == hs.caffeinate.watcher.systemDidWake) then print ("Woken...") -- Execute wake script hs.task.new("/Users/YOURNAME/.wakeup", nil):start() end end sleepWatcher = hs.caffeinate.watcher.new(caffeinateWatcher) sleepWatcher:start() 

    Test it all

    1. Click on the Hammerspoon icon in the menubar and select Console
    2. Press Reload Config and check for errors
    3. Leave the console open and put the system to sleep
    4. hopefully it goes to sleep and stays asleep
    5. upon wake, look at Hammerspoon console and check that no errors occur
    submitted by /u/jimjamjunglejamboree
    [link] [comments]

    Software update catalog url for Monterey?

    Posted: 06 Feb 2022 01:48 AM PST

    I have been using this one for beta,

    https://swscan.apple.com/content/catalogs/others/index-12beta-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

    I thought I could drop the beta for the release version, but that doesn't work. Anyone know what the correct url should be?

    submitted by /u/199ab0fa
    [link] [comments]

    USB not showing up in boot drive selection

    Posted: 05 Feb 2022 09:35 PM PST

    Hi, I recently bought an older MacBook for a good price in order to use it for school. I got the machine for cheap because it has a boot loop issue, and I was hoping to fix it myself. When powered on, the laptop goes to a white screen for about 5 to 10 seconds after it displays many lines of random code. After it runs through the code, the Apple logo shows up and the progress bar starts. After the progress bar is about 60% through, the device restarts and repeats what I described. Firstly, I tried to boot into disk utility using the "command" and "r" in order to reinstall and reset macOS, but the computer does not respond and continues the boot loop process. Next I tried to use a bootable USB with macOS sierra to try and boot up the device in hopes that I will be able to clear the hard drive and install a fresh copy of the OS. After the long process of downloading the bootable ".dmg" file and using the TransMac software on my PC to create the bootable USB, I tried booting up from the USB on the laptop, but it does not show up in the boot drive selection. Does anyone know why the USB is not showing in the boot options? This is my first time dealing with software on a MacBook, so I would appreciate any advice.

    submitted by /u/ayaan780
    [link] [comments]

    How do I type Alt codes on Macbook without Numpad? Codes for ed, Alt + 0150, Alt + 2182

    Posted: 05 Feb 2022 07:15 PM PST

    In windows there's a workaround, by turning 'u,I,o,j,k,l,7,8,9' as numpad when presed with Alt,

    But how do I do with Macbooks?I know the on screen keyboard and special character menu but, shortcuts are way faster for me,
    I want to use these for Illustrator and other designing products.

    submitted by /u/sagunmdr
    [link] [comments]

    Do you cover your web came on your Macbook?

    Posted: 06 Feb 2022 02:34 AM PST

    Very straightforward question for all of you - Either you use a tape of some sort or those plastic web covers that Apple advises not to put on your screen, it all counts as "YES".

    Personally, I do on my 2015 Macbook Pro 15 inches. I have one of those sliding web covers for over 2 years, no issues whatsoever. No cracks, no nothing.

    PS: Sorry for the title typo.

    View Poll

    submitted by /u/lexaleidon
    [link] [comments]

    Keyboard randomly turned off, and Bluetooth disconnected? ( M1 Pro 16) Bug? (Mac OS Monterey 12.2)

    Posted: 06 Feb 2022 02:23 AM PST

    Been enjoying my M1 Pro 16 for awhile. But had the weirdest experience / bug? And wondering if anyone else has experienced the same, on either their m1 14 / 16 or even any other MacBook.

    I was browsing on Safari like normal. Connected my AirPods max, and as soon as I did, my backlight on my keyboard went all dark and the function keys (ex brightness / volume keys) were not responding. Bluetooth disconnected as well. They keys below were working like normal, and the actual MacBook itself was still on, and everything else working as intended.

    About 5 seconds later, my AirPods max reconnected , keyboard backlight came back on, and it hasn't happened since. Just had me a bit worried, hopefully this is a software bug, and not a hardware issue.

    submitted by /u/tiatono
    [link] [comments]

    M1 Air fail to update from 12.0.1 to 12.2

    Posted: 06 Feb 2022 12:25 AM PST

    Anyone experiencing this bug when update is downloaded system restart and nothing happens? Update is still available in settings. Any fix for that?

    Greets Mike

    submitted by /u/kaliszowy
    [link] [comments]

    NEED HELP ASAP

    Posted: 05 Feb 2022 11:52 PM PST

    so i just installed the macOS monterey on my macbook air (2017) model i think.. now it is stuck on less than a minute remaining. I tried shutting down and ejecting the disks but it still keeps on getting stuck there..

    idk what to do and im freaking out bc i use this for school and i have school tomorrow

    submitted by /u/AladdinsSane
    [link] [comments]

    Microsoft Edge menu bar items shifting around the notch

    Posted: 05 Feb 2022 10:23 PM PST

    I bought a 14"MBP today and I'm loving it so far. I was using Microsoft Edge and I noticed that on the 14", 'window' and 'help' are to the right of the notch; when I updated to 12.2 from 12.1 the first opening of Edge had just 'help' to the right (which I thought looked better IMO). Anyway, I cannot recreate just 'help' being to the left, but I'm curious if anyone else has experienced this.

    submitted by /u/Laneelrod
    [link] [comments]

    Best way to remote access to a Mac

    Posted: 05 Feb 2022 10:09 PM PST

    Hi, What is the easiest simplest and freest way to access a Macbook air running Macos Monterey, remotely from a browser/smart phone?

    Thanks

    submitted by /u/rolanddes1
    [link] [comments]

    Start airplay from TV?

    Posted: 05 Feb 2022 10:04 PM PST

    Hi guys,

    I have a macbook air m1 in my room and a large tv in the living room. I can start airplay and cast my macbooks screen to the living room and go there to play.

    But I wonder if there is any way to activate casting/mirroring from the living room tv without touching my mac (off course it is already on)

    I am using Macos Monterey by the way.

    Thanks

    submitted by /u/rolanddes1
    [link] [comments]

    Possible to make mouse cursor transition between displays relative to window size?

    Posted: 05 Feb 2022 06:33 PM PST

    Possible to make mouse cursor transition between displays relative to window size?

    I recently picked up a new monitor (oriented at 90°) and I am really happy with it.
    One small problem that I have is when I want to move my mouse from the long external monitor back to the laptop retina display it will get stuck if I am not aligned to the middle of the screen (see image).

    Does anyone know if there is a way to configure the displays such that if I move the mouse from the long screen back to the retina display it will be positioned relative to the display height? For example, if the mouse is at the bottom left corner of the long screen and I move it to the left some more, it will appear in the bottom right of the retina display.

    Thanks!

    https://preview.redd.it/8zecbm8pi4g81.png?width=1560&format=png&auto=webp&s=5a8e5b313c0a9a28378854349ec354b6c6754095

    submitted by /u/atlasholdme
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel