Question: Q: Mac OS Server - Remote Desktop Screen Size I'm using a Mac Mini (late 2012) as a domestic server running macOS Sierra & Server v5.3. I then use my iMac (27 inch, late 2013) to connect to the Mac Mini. Get the Remote Desktop client. Follow these steps to get started with Remote Desktop on your Mac: Download the Microsoft Remote Desktop client from the Mac App Store. Set up your PC to accept remote connections. (If you skip this step, you can't connect to your PC.) Add a Remote Desktop connection or a remote resource.
Change screen resolution in Terminal | 20 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Is it possible to switch which screen is primary (has the menu bar on top) using the ApplicationServices Framework? Because that would be useful.
I have written a free command line tool for changing screen res and getting information on the attached displays. It is available for download at:
http://www.osxsoft.net/
I see that this is your first post on this site. Welcome.
I see that this isn't your first post. Welcome back.
Apologies, the link I posted in the previous comment does not work, but the following link is okay:
http://www.mowlem-enterprises.co.uk/ScreenUtil_v1.0.zip
What happens with these settings on a headless machine? I have a Mini doing various server tasks in my office, and it behaves strangely without a monitor attached. I can usually choose from 4 different screen resolutions when connected over VNC, but I don't know how these are determined.
On a side note, a physically connected mouse doesn't work, nor does video in iChat, unless an actual monitor is connected.
How do we set the volume via command line?
![]() ![]()
The only way I know of to do this is by calling AppleScript via the osascript command:
sudo osascript -e 'set Volume 0'
The first line will set your Mac's sound to mute. The last one represents maximum volume. You can use any whole number in between. I believe you can use decimals (i.e., 6.5) for finer-grained control also.
For ease you can create aliases:
alias full='sudo osascript -e 'set Volume 4' (4 seems to max out our macs' volume) For true hilarity, ssh into someone's mac, (assuming they aren't playing music) execute the above statement, then do : say -v whisper '<insert funny whispered quote here>' Sit back and watch the hilarity ensue. This works as the speaker is a shared resource between all jobs on the system, rather than the display which is not. So while you can't pop up things on the user's screen, feel free to have a mac talk to them. --- Henry Feldman, MD Medical Informatics NYU School of Medicine
http://xkcd.com/530
:) also, thanks for the tips, guys!
There is an error in the source code.
If you call the program with no arguments, it should display the current resolution settings, but it cannot because the printf parameters are wrong (they expect two integer values, but the variables are floats). To obtain the expected output you have to substitute the following line: printf('%d %dn', screenSize.width, screenSize.height); with this one: printf('%.0f %.0fn', screenSize.width, screenSize.height);
The site killed the backslashes; here is the correct line:
with this one:
I modified the source code to manage two or more monitors, and added some bonus too:
- It shows current main display resolution - It shows current secondary displays resolution - It shows the list of displays found, with their resolution, depth and refresh rate - It sets the resolution of any display connected Help is available with setgetscreenres -? Here is the code: Macos Adjust Screen Resolution For Remote Desktop Windows 7
THANKS A LOT! I have found only an annoying C++ error: But you can avoid it changing lines 101-104 by:
Macos Adjust Screen Resolution For Remote Desktop Windows 10
Ouch, that's true; I didn't get that error because I compiled it under XCode, which accepts that syntax.
I used XCode to be sure it works also on 10.4 and to make it Universal. It even builds a smaller fat binary (38Kb vs. 46Kb). The command line compiling instructions given will generate a binary only for the CPU (and System version) of the Mac used. To compile it as Universal from command line just change the compile command to this: c++ setgetscreenres.m -framework ApplicationServices -o setgetscreenres -arch i386 -arch ppc ...and to make it work from OS X Panther (10.3.9) or newer, just add this flag at the end of the compile command line: -mmacosx-version-min=10.3.9 (obviously if you want to exclude OS X Panther then use: -mmacosx-version-min=10.4 )
Changing my ListDisplays() function with the following, we can see which display is the primary (i.e. the one with the menu bar):
With this mod, the displays listing (using setgetscreenres -l) will look like this one: stating that Display 2 is the main display.
Does anyone know how to reconfigure a display so that it's off/sleeping?
The reason I ask is that most of the time I use my Mac Book Pro in clamshell mode (connected to an external display) but notice it can get a bit warm with the lid closed. So I want to have the lid open but the built-in display turned off. Why not just use the extra screen space? Mainly because the laptop is on a shelf that is too far away to be usable, but also because my 24' monitor is big enough so I might as well save my backlight. Adjust Screen Resolution Mine
Hi - i have been looking for precisely this for SO long - it should be so simple to switch between built-in display, external, both easily...currently passing by the sleep mode (closing lid, waking up, opening it again) is just a pain. Please post here if you find something, and ill do the same with success.
thanks
To put a display to sleep hold control and shift while you press eject.
This would seem to work, but I have a further problem,
using a G4 headless via ARD. Use this utility to set 1280 x 1024, screen goes garbage. Presumably down to ARD expecting the old screen size. I've tried kickstarting ARD after the change to no effect. Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |