Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:

doneill@dsktp:~$ 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
add comment

2 Answers

up vote 1 down vote accepted
+50

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
add comment

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 the 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
add comment

Your Answer

 
discard

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.