LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2021, 01:09 PM   #1
robert1234
LQ Newbie
 
Registered: Nov 2021
Distribution: Gentoo
Posts: 5

Rep: Reputation: Disabled
Fake Secondary Xorg Server


Would it be possible to make a second fake xorg server such that:
  • There is no real physical monitor that it connects to, but the GPU can still do the calculations to render to a fake or "dummy" monitor?
  • I can still use another xorg server to display use my actual physical monitors normally
  • I can take a screenshot from the fake secondary server and get the picture that would be rendered to a monitor if there was a real monitor being rendered to?
  • I can use a NVIDIA graphics card to drive this secondary fake xorg server and the normal one simultaneously?
If so, how would I go about doing this monitorless, simulated graphics environment? I currently most often use GNU/Linux, but I would be open to doing it on Windows, BSD as well if GNU/Linux is not possible.

Last edited by robert1234; 11-10-2021 at 01:11 PM.
 
Old 11-10-2021, 01:31 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
A nested X server like Xephyr or Xnest?

https://www.dedoimedo.com/computers/xephyr.html

Last edited by shruggy; 11-10-2021 at 01:32 PM.
 
Old 11-10-2021, 01:54 PM   #3
robert1234
LQ Newbie
 
Registered: Nov 2021
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
I guess I should have been more specific in my original question, but would I be able to have a mouse cursor inside of the xephyr window doing its own thing (say, controlled by pyautogui https://pyautogui.readthedocs.io/en/latest/) and then simultaneously use the mosuse normally outside of xephyr without disturbing the one inside of xepyhr?

Would this be possible with a qemu virtual machine? I know this would not be possible with a virtualbox one, since the mouse pointer can only be either in or out of the virtual machine in virtualbox, plus I wouldn't be able to use my NVIDIA card in virtualbox because it does not have GPU passthrough to my knowledge.

Last edited by robert1234; 11-10-2021 at 02:33 PM.
 
Old 11-10-2021, 06:24 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
A alternative might be to create an additional user on your system. You can be logged in normally, but then switch to a second tty, login as the additional user and do what you want in there. You could then switch between the ttys as desired.
If screenshots were saved to a shared directory, e.g. /tmp, they would be available to both users.

The key strokes to switch ttys can vary between distributions. Here, Ctrl-Alt-F1 and Ctrl-Alt-F2 are used and it seems to be the same for Ubuntu.
 
Old 11-10-2021, 06:46 PM   #5
robert1234
LQ Newbie
 
Registered: Nov 2021
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
That sounds like it would work. I'll try this sometime soon. Thanks!
 
Old 11-11-2021, 01:28 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by robert1234 View Post
I guess I should have been more specific in my original question, but would I be able to have a mouse cursor inside of the xephyr window doing its own thing (say, controlled by pyautogui https://pyautogui.readthedocs.io/en/latest/) and then simultaneously use the mosuse normally outside of xephyr without disturbing the one inside of xepyhr?
This sounds very much like an X-Y problem: You want to achieve Y, and you think X is the right way to achieve it. You ask a question about X, instead of Y.
So, what are you really trying to achieve? What is your Y?
 
  


Reply

Tags
graphics, xorg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration