Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Synergy to control both of my desktops from the same keyboard and mouse. Is there a way to send Alt+Ctrl+F1 (or related combinations) to the client desktop using Synergy?

I tried using the suggestion below, but got:

$ chvt 1
Couldn't get a file descriptor referring to the console

Other ideas? I would still prefer a way to send the actual keystrokes over synergy, but if that's not possible, a work around that works will be accepted.

share|improve this question
up vote 2 down vote accepted

You need to run:

sudo chvt 1

Changing virtual tty's requires administrative privileges.

share|improve this answer
Ah. This did switch terminals. HOWEVER, synergy stops working. With a little digging, this is because synergy requires X, so it can't work in a non-X environment, like one of the other virtual TTY's... Thanks for your answer! – David Oneill May 12 '12 at 17:32

I don't know Synergy, but...

I guess with Alt+Ctrl+F1 you intend to switch from the X-Screen to the console. First guess for synergy: that will not work. But to answer that particular: you can open up a terminal on the computer you want to invoke Alt+Ctrl+F1 and enter

chvt 1

to change to virtual terminal number 1.

share|improve this answer
sorry, not sure if this really IS an answer to your question, I should have commented on your question instead... – Tobias Apr 11 '12 at 11:45
Yes, I am trying to switch to console number 1. However, this didn't work. See my edit... – David Oneill Apr 16 '12 at 19:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.