Re: Display multiple virtual consoles on multiple displays

2019-08-22 Thread Michael Stone

On Thu, Aug 22, 2019 at 07:58:51PM +0300, Andrei POPESCU wrote:

It should be possible to run something like

   startx -- :1

to open a second X instance on the virtual console. You have to figure
out how to start the second X on the other display.


It's not that easy with one multiport video card, because you'd have two 
things which each expect to have complete control of the video card. 
With two video cards its a more tractable problem. (Though you'd need to 
manually apportion keyboards & mice.)




Re: Display multiple virtual consoles on multiple displays

2019-08-22 Thread Andrei POPESCU
On Mi, 21 aug 19, 16:01:17, Franklin, Jason wrote:
> Greetings,
> 
> I'm working on a project that requires me to debug a running screen locker.
> 
> Currently, my workflow involves switching between the screen locker and 
> virtual 
> console #1 (/dev/tty1) using Ctrl-Alt-F1 and Ctrl-Alt-F7.  This way, I can 
> interact with the screen locker until I hit a break point.  I then return to 
> the first virtual terminal and step through the code.
> 
> This has been very helpful so far, but it's quite slow!
> 
> I have multiple displays, so it seems natural that I'd want to use one 
> display 
> for the screen locker on F7, and one display for vim and gdb on F1.
> 
> Is this possible?  Is it easy or difficult to achieve?

It should be possible to run something like

startx -- :1

to open a second X instance on the virtual console. You have to figure 
out how to start the second X on the other display.

The man page mentions 'startx -- -layout Multihead'. Seems like the 
'-layout' option might be what you need.

Hope this helps,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: Display multiple virtual consoles on multiple displays

2019-08-22 Thread Dan Ritter
rhkra...@gmail.com wrote: 
> On Thursday, August 22, 2019 10:08:16 AM Dan Ritter wrote:
> > Franklin, Jason wrote:
> > > Greetings,
> > > 
> > > I'm working on a project that requires me to debug a running screen
> > > locker.
> > > 
> > > Currently, my workflow involves switching between the screen locker and
> > > virtual console #1 (/dev/tty1) using Ctrl-Alt-F1 and Ctrl-Alt-F7.  This
> > > way, I can interact with the screen locker until I hit a break point.  I
> > > then return to the first virtual terminal and step through the code.
> > > 
> > > This has been very helpful so far, but it's quite slow!
> > > 
> > > I have multiple displays, so it seems natural that I'd want to use one
> > > display for the screen locker on F7, and one display for vim and gdb on
> > > F1.
> > > 
> > > Is this possible?  Is it easy or difficult to achieve?
> > 
> > What you want is called multiseat configuration; it assumes that
> > the N monitors are independent, and need to have their own
> > keyboards and mice (though you can fake this with a KVM switch).
> > 
> > Most multiseat configs are X only.
> > 
> > There were two projects to make the VT system multiseat: kmscon
> > and systemd-consoled. Both are defunct, and probably won't work.
> 
> I am an optimist (at least sometimes) ;-)  It seems to me there should be a 
> way to accomplish what you are trying to accomplish.
> 
> Without really having thought this out (or being able to, due to my lack of 
> facile familiarity with virtual machines and such), I wonder if using a VM 
> would give you a way forward -- maybe doing something like:
> 
> Running either vim and gdb or the screen locker (that would require a VM with 
> X capability, which exists, iiuc) in a VM, and then displaying both on the 
> same screen, with, for example, the screen locker in a separate window.  Hmm, 
> I guess I'm not sure that could be done.

No, that's not run by the VT (kernel console) system.

> I guess another thought (maybe somebody mentioned it?) would be to have two 
> separate computers, each with its own monitor and keyboard (or shared with a 
> KVM switch), run the screen locker in one computer, and ssh from the other 
> computer to access vim and gdb on the machine running the screen locker.

Sure. Or, you could wire up an actual serial terminal, or any
random computer with a serial port or a USB-serial converter.

-dsr-



Re: Display multiple virtual consoles on multiple displays

2019-08-22 Thread rhkramer
On Thursday, August 22, 2019 10:08:16 AM Dan Ritter wrote:
> Franklin, Jason wrote:
> > Greetings,
> > 
> > I'm working on a project that requires me to debug a running screen
> > locker.
> > 
> > Currently, my workflow involves switching between the screen locker and
> > virtual console #1 (/dev/tty1) using Ctrl-Alt-F1 and Ctrl-Alt-F7.  This
> > way, I can interact with the screen locker until I hit a break point.  I
> > then return to the first virtual terminal and step through the code.
> > 
> > This has been very helpful so far, but it's quite slow!
> > 
> > I have multiple displays, so it seems natural that I'd want to use one
> > display for the screen locker on F7, and one display for vim and gdb on
> > F1.
> > 
> > Is this possible?  Is it easy or difficult to achieve?
> 
> What you want is called multiseat configuration; it assumes that
> the N monitors are independent, and need to have their own
> keyboards and mice (though you can fake this with a KVM switch).
> 
> Most multiseat configs are X only.
> 
> There were two projects to make the VT system multiseat: kmscon
> and systemd-consoled. Both are defunct, and probably won't work.

I am an optimist (at least sometimes) ;-)  It seems to me there should be a 
way to accomplish what you are trying to accomplish.

Without really having thought this out (or being able to, due to my lack of 
facile familiarity with virtual machines and such), I wonder if using a VM 
would give you a way forward -- maybe doing something like:

Running either vim and gdb or the screen locker (that would require a VM with 
X capability, which exists, iiuc) in a VM, and then displaying both on the 
same screen, with, for example, the screen locker in a separate window.  Hmm, 
I guess I'm not sure that could be done.

Maybe someone else has some suggestions along this line, or some other line.

I guess another thought (maybe somebody mentioned it?) would be to have two 
separate computers, each with its own monitor and keyboard (or shared with a 
KVM switch), run the screen locker in one computer, and ssh from the other 
computer to access vim and gdb on the machine running the screen locker.



Re: Display multiple virtual consoles on multiple displays

2019-08-22 Thread Dan Ritter
Franklin, Jason wrote: 
> Greetings,
> 
> I'm working on a project that requires me to debug a running screen locker.
> 
> Currently, my workflow involves switching between the screen locker and 
> virtual 
> console #1 (/dev/tty1) using Ctrl-Alt-F1 and Ctrl-Alt-F7.  This way, I can 
> interact with the screen locker until I hit a break point.  I then return to 
> the first virtual terminal and step through the code.
> 
> This has been very helpful so far, but it's quite slow!
> 
> I have multiple displays, so it seems natural that I'd want to use one 
> display 
> for the screen locker on F7, and one display for vim and gdb on F1.
> 
> Is this possible?  Is it easy or difficult to achieve?

What you want is called multiseat configuration; it assumes that
the N monitors are independent, and need to have their own
keyboards and mice (though you can fake this with a KVM switch).

Most multiseat configs are X only.

There were two projects to make the VT system multiseat: kmscon
and systemd-consoled. Both are defunct, and probably won't work.

-dsr-



Re: Display multiple virtual consoles on multiple displays

2019-08-21 Thread Michael Stone

On Wed, Aug 21, 2019 at 04:01:17PM -0400, Franklin, Jason wrote:

I'm working on a project that requires me to debug a running screen locker.

Currently, my workflow involves switching between the screen locker and virtual
console #1 (/dev/tty1) using Ctrl-Alt-F1 and Ctrl-Alt-F7.  This way, I can
interact with the screen locker until I hit a break point.  I then return to
the first virtual terminal and step through the code.

This has been very helpful so far, but it's quite slow!

I have multiple displays, so it seems natural that I'd want to use one display
for the screen locker on F7, and one display for vim and gdb on F1.

Is this possible?  Is it easy or difficult to achieve?


Simplest is to ssh from another machine. You also may be able to use 
multiple video cards, but I don't think you can do what you're trying to 
do with multiple monitors attached to one video card.




Display multiple virtual consoles on multiple displays

2019-08-21 Thread Franklin, Jason
Greetings,

I'm working on a project that requires me to debug a running screen locker.

Currently, my workflow involves switching between the screen locker and virtual 
console #1 (/dev/tty1) using Ctrl-Alt-F1 and Ctrl-Alt-F7.  This way, I can 
interact with the screen locker until I hit a break point.  I then return to 
the first virtual terminal and step through the code.

This has been very helpful so far, but it's quite slow!

I have multiple displays, so it seems natural that I'd want to use one display 
for the screen locker on F7, and one display for vim and gdb on F1.

Is this possible?  Is it easy or difficult to achieve?

Thanks,
Jason Franklin