How do I change screen resolution in command line?

Hi, I was controlling a remote server by Apple Remote Desktop and have lost control of it after changing the resolution. Is there a way to change the resolution in the command line, without restarting?
If I can screen resolution in the command line I can send the unix command to the remote server and hopefully fix my problem.

Hi, I'm not aware of a way to do it without a little work. For example, I found some code at Mac OS X Hints that will change the screen resolution from a command line, but you'd have to compile it. It compiled for me on 10.4.11, and the poster there said it compiles on 10.5 for him.
If you have the Xcode tools installed on your Mac, just copy that code into a plain text file, then save it as "main.c". Then, in Terminal, change directory to the same directory as that file and compile it:
<pre class="command">gcc -o newscreen main.c -framework ApplicationServices</pre>
Then copy it to your server and try running it there:
<pre class="command">./newscreen -h nnnn -v nnnn</pre>
where "nnnn" is the desired resolution...
I hope that works, anyway, since I'm still using Tiger...
charlie

Similar Messages

  • How can i change printer settings from command line

    hello 
    i want to use command that changes printer to print grayscale or color 
    the best i find is to use: rundll32 printui.dll,PrintUIEntry
    but i cant find color settings there 
    i would like your help with that 
    thanks alot !

    We may have to wait for an update.  Aside from changing the country, I'm not sucre this can be done.  There is no Health App in the System preferences and no  way to modify from within the app.  Weird.
    If you go to Language & Region under general settings and choose any other country, you will get Metric.  I have the opposite problem.  I live in a Metric country and want my health app to be in lbs and inches which is what I am used to.

  • How do i change the resolution of my screen shots that i captured from my desktop?

    How do i change the resolution of my screen shots that i captured from my desktop?
    Thanks.

    Do you mean you want it saved with the resolution set to something other than 72 dpi when the capture is made, or do you mean you want your capture saved at a higher resolution than the captured area?
    1) If the first, there are ways to change the default capture format .png to something else, such as .jpg, .tif and a few others, but as far as I know, the resolution will always be 72 dpi. You can use Preview to change the resolution of the captured image under Tools > Adjust Size. You will get this:
    If your intention is to set the resolution for professional printing defaults, then change the resolution to 300. Turn off Resample image to prevent the image from actually having more pixels added. The resolution will simply be reset from 72 to 300 dpi without changing the actual number of pixels in the image. It will also print a lot smaller since the output device will now use 300 pixels per linear inch instead of 72.
    Leave Resample image on if you need to maintain the dimensions. Be aware however that scaling the image (resampling) will add a lot more pixels to the image than are there to maintain size. Expect the image to get very soft and pixelated looking when adding 417% more data to the image than it currently has.
    2) If you mean you want the OS to actually save the captured area as a high resolution image at size, that can't happen. A capture is a 1:1 grab of the display buffer. It can only capture what's there. So if you capture a 700 pixel x 500 pixel area, that's all the bigger it can be without scaling it afterwards.

  • How to change screen resolution on touchpad

    how to change screen resolution on touchpad ?i was working on my tp and out of the blues  my screen looks like it is at 800*600
    or is this the screen itself that went bad?
    can someboby please tell me the procedure to use the 12 mt warranty..
    tia
    Post relates to: HP TouchPad (WiFi)

    Sorry to say reloading WebOS did not help this issue on my TP. contacted Support and was told to send it.Even sorrier to say that my TP is now lost. My tracking number reports it as delievered on Dec 5, but HP has no record of it.When I got back on Chat they  are now also telling me that my TP serial number is a EU model, even though my box clearly states HP Touchpad ,US, 1.20,32gb,Wifi.
    Not sure what that even has to do with it being lost now..if it is as they say and no warranty on it in US I just want it sent back.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Change Screen Resolution GNU/linux

    hi everyone
    i need to change screen resolution for my linux box.
    with command #xrandr
    showing only 640 X 480,can i add more size?how to add?
    tq

    Hi,
    Use this forum for feedback about OTN programs, Web site content, and systems - product-related questions will be deleted.
    Please post your question in the appropriate forum.
    Oracle Enterprise Linux
    Oracle Linux
    Linux (non-OEL)
    Generic Linux
    Thanks,
    Hussein

  • How do i change the resolution on my apple tv

    how do i change the resolution on my apple tv  i need to see prompts that are half on the screen

    I don't believe changing resolution will help. Try turning on the overscan correction.

  • Changed screen resolution in error

    I accidentally changed the screen display for the mac mini and it went black and now says "please change display resolution." How can I change the resolution without seeing the display?

    Hi
    I have the same problem as Henryhbmains and I have tried exactly what you describe without positive result.
    One thing I do not understand is that Apple OSX does not have a "safety switch" like in other operating systems where you have to confirm within 15 seconds or the screen resolution will automatically switch back.
    I have now wasted a lot of time and what I hoped to be my first time happily with a Mac turned out to be my first time with a Mac wasting a lot of time and getting so disappointed.
    Would you have any other suggestions - that would be very helpful
    Thank you

  • Qosmio X500 - How to increase the screen resolution?

    Hi,
    Does anybody know how to increase the screen resolution? My qosmio X500 is 1920 x 1080 and I want to raise it to 1920 x 1200.
    Thank you/Red

    Hey
    1) I think the screen brightness is about 180 nits for this qosmio model. If I change the graphics card, can I increase the brightness to 300 NITS levels? If yes, which card do you suggest? If not, how can I achieve this?
    2) When I view the screen in 100 % magnitude, then the texts are too small to read. But then when I view the screen in 125 % or higher, then the texts go blurry. Is there a way to avoid this?

  • How to change fcalias www via command line & particular port performance status

    how to change fcalias www via command line & particular port performance status

    how to change fcalias www via command line & particular port performance status

  • Problem to change screen resolution in MB Intel DG41 with video on board

    Hi, I need some help as soon as possible because this problem it´s make me difficult my job. I have installed the MAC OS Snow Leopard 10.6.2 in a Motherboard Intel DG41 with micro Core2Duo and video on board of this motherboard and don´t let me change screen resolution. I have a display of 22´ inches and the panel to change the screen resolution only mark 1024x768. I think the more likely it is that the system does not recognize me the drivers to this chipset of video. I searched everywhere on the internet but I have not found the solution.
    Thanks Fernando

    First of all sorry for my English is not very good. My PC is an Intel MotherBoard DG41 with onboard video and a micro Core2Duo. The system is MAC OS Snow Leopard 10.6.2.
    Thanks for replying

  • How we will maintain screen resolution for tmaintaining able control in BDC

    how we will maintain screen resolution for tmaintaining able control in BDC. can you give the code or how we have to set it

    Hi,
    You need to use the CTU_PARAM options with the call transaction method.This is used if you would like to do a commit work once call trnasaction is done. This has also got very important property, for example if your Screen resolution is different from others then the screen (Application) will be different that is you'll be having say 5 lines in your screen where as your friend will be having 8 or 10 so your program might fail in this case. If you set variable DEFSIZE as 'X' it will always use the default screen size and hence avoids error.
    Use CALL TRANSACTION 'XXX' OPTIONS FROM w_ctu_params.( type CTU_PARAMS)
    This structure contains the follwing.
    DISMODE : Display mode (like the MODE addition)
    UPDMODE: Update mode (like the UPDATE addition)
    CATTMODE: CATT mode (controls a CATT)
    CATT mode can have the following values:
    ' ' No CATT active
    'N' CATT without single-screen control
    'A' CATT with single-screen control
    DEFSIZE : Use default window size (Here we are handling those transaction by giving default window size)
    RACOMMIT: Do not end transaction at COMMIT WORK
    NOBINPT : No batch input mode (that is, SY-BINPT = SPACE)
    NOBIEND : No batch input mode after the end of BDC data.
    The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
    'X' Yes
    This might help u in better understanding...
    Re: regarding bdc
    Re: ctu_params
    Regards
    Sudheer

  • Change Screen Resolution or not Change Screen Resolution?

    I mean is it possible to change screen resolution with Java?
    I read some topics (not in this forum) that is impossible. I know there is a method to set at full screen a frame with the favourite resolution but does it effectively exist a method to set the screen with a favourite resolution?
    For example:
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setUndecorated(true);
            frame.setIgnoreRepaint(true);
            device.setFullScreenWindow(frame);
            if (displayMode != null && device.isDisplayChangeSupported()) {
                try {
                    device.setDisplayMode(displayMode);
                } catch (IllegalArgumentException iae) {
                    System.err.println("EX: " + iae);
            ...the device.setDisplayMode(displayMode) always throw me an exception: Invalid Display Mode (or something like that) with all permitted display modes (640by480, 800by600, 1024by768, etc...), with all permitted refresh rates, with all permitted color depths.
    Illuminate me please!
    Thanx in advance!

    Hi,
    I think i you should check this link
    http://forum.java.sun.com/thread.jspa?threadID=624649&messageID=3554316
    with help of above link you solve your problem of screen resolution
    but problem with above code is when you apply on frame that's ok but is you add any JDialog to that frame then JDialog and move JDialog with mouse dragged and dropped
    then dialog is invisibly run .
    you check this i you find any solution please post that it's urgent

  • HOW DO YOU CHANGE THE RESOLUTION TO A HIGHER SETTING

    How do you change the resolution to a higher setting with a macbook pro?

    hey
    this is nice post acctually i was looking for the same..
    thanks for sharing...

  • How can we change screen appearance option in PSE10?

    How can we change screen appearance option in PSE10?

    It's been on my wants list forever, but I don't work for Adobe. This is a user to user forum and the few employees who post here are labeled as such.

  • How can I change screen capture format from .png to .jpg in LION

    how can I change screen capture format from .png to .jpg in LION. The "terminal" suggestions of the past don't work? Thanks!

    This works for me:
    defaults write com.apple.screencapture type XXX
    where XXX is one of png, pdf, jpeg-jfif, jpeg 2000, tiff, pict, bmp, gif, psd, sci, or tga. You need to log out and back in for the change to take effect.

Maybe you are looking for

  • Why is the free trial asking me for a serial number?

    I have tried installing Photoshop CC and the Creative Suite for the free trial and it keeps asking me for a serial number. Do I receive one through email? How do I get the free trial?

  • How do I get rid of viruses on my MAcBook Pro

    How do I get rid of viruses on my MAcBook Pro

  • Transfer MS Office to a new MBP

    A friend of mine bought Office a while back and they had a thing where you could install it on up to 3 machines or something like that, so he let me put it on my machine. I'm looking to get a new MBP, and so I want to know if they'll be able to trans

  • Urgent: Report Painter Column

    Hi, I added a new column to the report painter report. it just has a single company code selection in it for the selected Key figure. when i execute the report the new column is not showing up. do i have do any specific setting. Thank you, sam

  • How do I disable or change Safari's default "upload" folder?

    Here's the deal: Whenever on my brand new iMac I go to, for example, upload a photo in Tumblr or add an attachment in gmail, the box that opens in Safari always opens in the "documents" folder. This is a change for me from the older version of Safari