Thursday, May 9, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 10274  / 1 Year ago, mon, january 16, 2023, 9:37:23

I have a dual monitor setup and wish to only record the 1st monitor with recordmydesktop, but I am unsure of the settings to do this via the command line. So far I have this:



recordmydesktop --display=1 --width=1920 height=1080 --fps=15 --no-sound --delay=10


But I get this error message:



Cannot connect to X server 1


How do I find the right X server to connect to and are the rest of my settings correct?


More From » multiple-monitors

 Answers
5

You have no need to set the display to 1 since probably you are running a multi- screen setup on the same X server.



The correct command would be:



recordmydesktop --display=0 --width=1920 --height=1080 --fps=15 --no-sound --delay=10


Reduce the width and the height parameters if that is including your 2nd screen.


[#43995] Wednesday, January 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;