Skip to main content
Solved

Disable shake to locate pointer in JSS?

  • July 28, 2016
  • 4 replies
  • 21 views

Forum|alt.badge.img+8

Has anyone figured out a way to disable this feature which is on by default?

Best answer by jjones11

I might at this if you are looking to do a mass rollout:

#!/bin/sh

#Set arguements for script
loggedInUser=""

#Writes current user that is logged-in into terminal
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

#Use sleep if you are using login trigger, due to login time differences can cause false users
#sleep 2

#Settings Cursor Magnification to off
su -l "$loggedInUser" -c "defaults write ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification -bool YES"

#Checking Cursor Magnification and reporting to Casper logs
su -l "$loggedInUser" -c "defaults read ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification"

4 replies

Forum|alt.badge.img+7
  • Contributor
  • July 28, 2016

Looks like it is in the .GlobalPreferences, you can run this command however it does not take immediate affect unless you logout/reboot.

defaults write ~/Library/Preferences/.GlobalPreferences CGDisableCursorLocationMagnification -bool YES


Forum|alt.badge.img+15
  • Contributor
  • July 28, 2016
defaults read ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification

It's inverted (is disabled), so NO is checked and YES is unchecked.

EDIT: Oops. Sorry, late to the party.


Forum|alt.badge.img+7
  • Contributor
  • Answer
  • July 28, 2016

I might at this if you are looking to do a mass rollout:

#!/bin/sh

#Set arguements for script
loggedInUser=""

#Writes current user that is logged-in into terminal
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

#Use sleep if you are using login trigger, due to login time differences can cause false users
#sleep 2

#Settings Cursor Magnification to off
su -l "$loggedInUser" -c "defaults write ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification -bool YES"

#Checking Cursor Magnification and reporting to Casper logs
su -l "$loggedInUser" -c "defaults read ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification"

Forum|alt.badge.img+8
  • Author
  • Contributor
  • July 29, 2016

Thanks @jjones This worked perfectly