Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zamboknee

macrumors 6502
Original poster
Aug 10, 2009
294
13
Is there an application that will automatically (or at least keystroke) change my monitor's orientation from portrait to landscape?
I need to rotate my monitor 90 degrees every once and a while and was curious if there was an app to help change orientation.
Thanks
 
Google displayplacer. It's not automatic but it's a command line program to rotate the screen. You can then write a little apple script and bind the command to a keyboard shortcut
 
There used to be a piece of software that could do this, although it required the display to report its orientation. I remember my brother had it: when you physically rotated the screen, everything got reoriented. This was probably in the PowerPC days though, so I have no idea whether it ever survived all of Apple's backward-compatibility butchering.
 
Google displayplacer. It's not automatic but it's a command line program to rotate the screen. You can then write a little apple script and bind the command to a keyboard shortcut
Thanks. I'll check that out
 
Every display I've ever had rotates the screen automatically when I rotate the actual display. Out of curiosity, what Mac, OS version and display are you using?
 
Thanks. I'll check that out
As I already use https://github.com/jakehilborn/displayplacer in an AppleScript LaunchAgent, here's an example:
AppleScript:
-- set the path to the downloaded displayplacer executable
set displayplacer_path to "/Users/Shared/displayplacer"
-- get unique displayplacer ID
set displayplacer_id_command to displayplacer_path & " list | awk '/Persistent screen id: /{print $4}'"
set displayplacer_id to (do shell script displayplacer_id_command) as string
-- example for a 4K screen in HiDPI mode "looks like 1080p" (scaling:on)
-- rotate 90° counter clockwise
set displayplacer_rotate90_command to displayplacer_path & " \"id:" & displayplacer_id & " res:1920x1080 hz:60 color_depth:8 scaling:on origin:(0,0) degree:90\""
try
    do shell script displayplacer_rotate90_command
end try
-- wait 5 seconds
delay 5
-- restore rotation to 0°
set displayplacer_rotate0_command to displayplacer_path & " \"id:" & displayplacer_id & " res:1920x1080 hz:60 color_depth:8 scaling:on origin:(0,0) degree:0\""
try
    do shell script displayplacer_rotate0_command
end try
 
We use - among others - Acer monitors with M-series Macs, and as @MacGizmo wrote, as always, the image is rotated automatically when the hardware is pivoted. What monitor model do you use? Is it directly connected to your Mac or via some dock? How - via which ports - is it connected?

And out of curiosity: what happens when you rotate the hardware - you are left with only some part of the desktop visible?
 
I’m asking because I don’t know.
How does a monitor communicate the change in orientation to the computer? Over what connection? I presume HDMI-HDMI or USB-C to USB-C, but not through an adapter like USB-C on the Mac to DP on the monitor.

More, all VESA monitors can be fixed in a rotating stand, but I presume not all have an accelerometer or some other way of telling the change in orientation and communicating it to the computer.

VESA Monitor Bracket 360° Rotation https://www.amazon.com/Mount-Single-Monitor-Desk-Mount/dp/B0DYG8R8KX/
 
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.