Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-11-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 76
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?
- 09-16-2009 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
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:
Code:DISPLAY=:0.1 <progname>


Reply With Quote
