@lolilolicon: Perfect!
*Solved*
Edit: Is there also a way, to read out all running X servers and get the display and vt of it?
]]>ioctl(xf86Info.consoleFd, VT_ACTIVATE, vtno)
Compare this to the chvt code:
ioctl(fd,VT_ACTIVATE,num)
You see how it's done
]]>If you are inside X, then you have to do:
sudo chvt 4
Running X servers can be switched via chvt. For me to change from display 0 to display 1 i just do "chvt 8" as root.
D'oh. Thanks for this explanation.
]]>Shark wrote:You can use "chvt" commnd. For example, command:
chvt 4
will switch to console 4
Not exactly, I get
[karol@black ~]$ chvt 4 chvt: VT_ACTIVATE: Operation not permitted
when running inside X. OP wants to switch between running X servers, not VTs.
If you are inside X, then you have to do:
sudo chvt 4
Running X servers can be switched via chvt. For me to change from display 0 to display 1 i just do "chvt 8" as root.
]]>You can use "chvt" commnd. For example, command:
chvt 4
will switch to console 4
Not exactly, I get
[karol@black ~]$ chvt 4
chvt: VT_ACTIVATE: Operation not permitted
when running inside X. OP wants to switch between running X servers, not VTs.
]]>chvt 4
will switch to console 4
]]>xdotool key ctrl+alt+F1
THX
]]>