Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Need to run a command on a different x-session

    I sometimes hook my PC up to my HDTV and i'm running into problems with the starting screen resolution not being displayed by my monitor.

    So therefore, I would like to know if there is a way to run a command on a different login session or x session. The command in particular I want to run is xrandr -s in order to change the screen resolution.

    Is there any way to do this?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Córdoba (Spain)
    Some programs, xrandr amongst them, let you specify in which display to you want to run the command. Check the xrandr parameters list, particularly -display.

    For the rest, you can always do:

    DISPLAY=:0.1 <progname>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts