Re: why does -sharevts is so important for multseat setup?
Citējot stompdagg...@yahoo.com stompdagg...@yahoo.com: Hello, I have a multiseat setup and where I'm experiencing lose of keystrokes in the second seat. I'm using hotpluged (via udev) feature, what I do noticed that if I press CRTL+ALT+F1on seat 2, seat1 goes to cli. for now I'm putting udev aside on this matter and try to concentrate on X part, while searching the web I've found a article that mentions that such issue can happen due to the -sharevts. I wanted to know, why multiseat setup needs to share vts? why if I take out this feature, one of the seats doesn't lights up? Normally kernel sends key press events to applications via /dev/ttyXX device files. Each Xorg open single /dev/ttyXX file and receive keyboard events. /dev/ttyXX was designed to support single active application like Xorg. When one X became active then another suspended. So single end-user can easy switch between multiple X instances. Multiseat have another mission. That is a reason of -sharevts. Active X does not try to suspend another X via /dev/ttyXX. In reality /dev/ttyXX stay unused under multiseat, because every X receive events from keyboards via /dev/input/eventXX device files. As alternative You can hack the Linux kernel with faketty (outdated) module. Aivils Stoss ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: why does -sharevts is so important for multseat setup?
Thanks for the ansewr. why won't X select different /dev/ttyXX An wise Scandinavian old man once said: in the end, everything is going to be alright From: Aivils Štoss aiv...@latnet.lv To: stompdagg...@yahoo.com stompdagg...@yahoo.com Cc: xorg@lists.x.org xorg@lists.x.org Sent: Tuesday, August 21, 2012 8:44 PM Subject: Re: why does -sharevts is so important for multseat setup? Citējot stompdagg...@yahoo.com stompdagg...@yahoo.com: Hello, I have a multiseat setup and where I'm experiencing lose of keystrokes in the second seat. I'm using hotpluged (via udev) feature, what I do noticed that if I press CRTL+ALT+F1on seat 2, seat1 goes to cli. for now I'm putting udev aside on this matter and try to concentrate on X part, while searching the web I've found a article that mentions that such issue can happen due to the -sharevts. I wanted to know, why multiseat setup needs to share vts? why if I take out this feature, one of the seats doesn't lights up? Normally kernel sends key press events to applications via /dev/ttyXX device files. Each Xorg open single /dev/ttyXX file and receive keyboard events. /dev/ttyXX was designed to support single active application like Xorg. When one X became active then another suspended. So single end-user can easy switch between multiple X instances. Multiseat have another mission. That is a reason of -sharevts. Active X does not try to suspend another X via /dev/ttyXX. In reality /dev/ttyXX stay unused under multiseat, because every X receive events from keyboards via /dev/input/eventXX device files. As alternative You can hack the Linux kernel with faketty (outdated) module. Aivils Stoss ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: stompdagg...@yahoo.com___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: why does -sharevts is so important for multseat setup?
From: Alexandre CONFIANT-LATOUR a...@user-unfriendly.net To: stompdagg...@yahoo.com stompdagg...@yahoo.com Cc: xorg@lists.x.org xorg@lists.x.org Sent: Monday, August 20, 2012 11:25 AM Subject: Re: why does -sharevts is so important for multseat setup? Hello. On 18/08/2012 20:05, stompdagg...@yahoo.com wrote: I'm using hotpluged (via udev) feature, what I do noticed that if I press CRTL+ALT+F1on seat 2, seat1 goes to cli. I dont know if that could help you but it seems to be a VT-Switch related problem. When you hit Ctrl-Alt-FX, a signal (SIGUSR1) is sent to X.org. This signal raise a flag that is handled by xf86Wakeup then xf86VTSwitch. This functions disable IO and framebuffer access for all screens. Then, an ioctl is sent to switch to cli. I'm not familiar with multiseat, but this situation seems normal if your two seats share the same X instance. If not, it is a bit weird that the second X instance got notified. On 18/08/2012 20:05, stompdagg...@yahoo.com wrote: I wanted to know, why multiseat setup needs to share vts? why if I take out this feature, one of the seats doesn't lights up? I think that -sharevts is used to allows multiple X instances to share the same /dev/ttyx but i may be wrong or it can have other uses. -- Alexandre Confiant-Latour @ : a...@user-unfriendly.net Jabber : chouke...@im.apinc.org GPG Key ID: 0x18CA62CC (pgp.mit.edu) Hello, Thanks for the replay, I'm running X for each seat, meaning that any Ctrl-Alt-FX on a seat should not be passed to the other seat. in my case, the signal is passed only to the other seat, not even to the origin seat. why would multiple X instances to share the same /dev/ttyx? what is the gain in that?___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: why does -sharevts is so important for multseat setup?
From: Alexandre CONFIANT-LATOUR a...@user-unfriendly.net To: stompdagg...@yahoo.com stompdagg...@yahoo.com Cc: xorg@lists.x.org xorg@lists.x.org Sent: Monday, August 20, 2012 12:01 PM Subject: Re: why does -sharevts is so important for multseat setup? On 20/08/2012 10:40, stompdagg...@yahoo.com wrote: why would multiple X instances to share the same /dev/ttyx? what is the gain in that? I'm working in the desktop virtualization field and, in my case, it allowed me to start a lot of X.org instances on the same server without running out of tty. I see, still why not increase the number in the kernel?___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: why does -sharevts is so important for multseat setup?
From: Alexandre CONFIANT-LATOUR a...@user-unfriendly.net To: stompdagg...@yahoo.com stompdagg...@yahoo.com Cc: xorg@lists.x.org xorg@lists.x.org Sent: Monday, August 20, 2012 1:03 PM Subject: Re: why does -sharevts is so important for multseat setup? On 20/08/2012 11:32, stompdagg...@yahoo.com wrote: I see, still why not increase the number in the kernel? I needed it to be on-the-fly because i can't know in advance the number of concurrent users. Because X in not ran as root, its process can't add tty. I saw a workaround in the Xdummy code http://www.karlrunge.com/x11vnc/Xdummy. This hack uses LD_PRELOAD to change standard system open function behavior and create a fifo on-the-fly. This fifo is opened in place of the tty. The fifo is only used to trick X and let some test pass. In my case, -sharevts worked well so preferred to avoid this acrobatic hack. I understand but in my case, it renders the second seat almost impossible to work on. ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: why does -sharevts is so important for multseat setup?
Hello. On 18/08/2012 20:05, stompdagg...@yahoo.com wrote: I'm using hotpluged (via udev) feature, what I do noticed that if I press CRTL+ALT+F1on seat 2, seat1 goes to cli. I dont know if that could help you but it seems to be a VT-Switch related problem. When you hit Ctrl-Alt-FX, a signal (SIGUSR1) is sent to X.org. This signal raise a flag that is handled by xf86Wakeup then xf86VTSwitch. This functions disable IO and framebuffer access for all screens. Then, an ioctl is sent to switch to cli. I'm not familiar with multiseat, but this situation seems normal if your two seats share the same X instance. If not, it is a bit weird that the second X instance got notified. On 18/08/2012 20:05, stompdagg...@yahoo.com wrote: I wanted to know, why multiseat setup needs to share vts? why if I take out this feature, one of the seats doesn't lights up? I think that -sharevts is used to allows multiple X instances to share the same /dev/ttyx but i may be wrong or it can have other uses. -- Alexandre Confiant-Latour @ : a...@user-unfriendly.net Jabber: chouke...@im.apinc.org GPG Key ID: 0x18CA62CC (pgp.mit.edu) ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: why does -sharevts is so important for multseat setup?
On 20/08/2012 11:32, stompdagg...@yahoo.com wrote: I see, still why not increase the number in the kernel? I needed it to be on-the-fly because i can't know in advance the number of concurrent users. Because X in not ran as root, its process can't add tty. I saw a workaround in the Xdummy code http://www.karlrunge.com/x11vnc/Xdummy. This hack uses LD_PRELOAD to change standard system open function behavior and create a fifo on-the-fly. This fifo is opened in place of the tty. The fifo is only used to trick X and let some test pass. In my case, -sharevts worked well so preferred to avoid this acrobatic hack. ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com