Re: [orca-list] problem using xclip on a regular tty



Hello Janina,

Also you can have several "virtual" monitors as you can have several
workspaces, all using the same physical screen.

For instance, if I type startx from tty1, an X server will start with a
display bound to tty7 and $DISPLAY=:0

Now I can go back to, say, tty2 (Ctrl+Alt+F2) and start another X server
like this:
DISPLAY=:1 startx

The new X server starts with a display bound to tty8.

I can switch between displays with Ctrl+Alt+F7 or Ctrl+Alt+F8

This is illustrated by this command's output:
didier[~]$ ps -ef |grep X
didier    1465  1446  0 mai04 tty1     00:00:00 xinit /home/didier/.xinitrc -- /usr/bin/X :0 -auth 
/home/didier/.serverauth.1446
root      1466  1465  5 mai04 tty7     01:33:50 /usr/libexec/Xorg :0 -auth /home/didier/.serverauth.1446
didier   23238 23219  0 13:22 tty2     00:00:00 xinit /home/didier/.xinitrc -- /usr/bin/X :1 -auth 
/home/didier/.serverauth.23219
root     23239 23238  0 13:22 tty8     00:00:03 /usr/libexec/Xorg :1 -auth /home/didier/.serverauth.23219
didier   23677 21788  0 13:33 pts/1    00:00:00 grep X
didier[~]$

All that using only the screen of my laptop.

But you can have only one orca running at a given time, so only one
"screen" can be read at a time, AFAIK.  

Best,

Didier

PS It also works with more displays, I just tried:

didier    1465  1446  0 mai04 tty1     00:00:00 xinit /home/didier/.xinitrc -- /usr/bin/X :0 -auth 
/home/didier/.serverauth.1446
root      1466  1465  5 mai04 tty7     01:33:58 /usr/libexec/Xorg :0 -auth /home/didier/.serverauth.1446
didier   23238 23219  0 13:22 tty2     00:00:00 xinit /home/didier/.xinitrc -- /usr/bin/X :1 -auth 
/home/didier/.serverauth.23219
root     23239 23238  0 13:22 tty8     00:00:05 /usr/libexec/Xorg :1 -auth /home/didier/.serverauth.23219
didier   24395 24376  0 13:40 tty3     00:00:00 xinit /home/didier/.xinitrc -- /usr/bin/X :2 -auth 
/home/didier/.serverauth.24376
root     24396 24395  4 13:40 tty9     00:00:01 /usr/libexec/Xorg :2 -auth /home/didier/.serverauth.24376
didier   24689 21788  0 13:41 pts/1    00:00:00 grep X
didier[~]$

But of course there are limitations, like the number of ttys available
and the amount of available RAM <smile>


On 05/05/2019 11:11, Janina Sajka via orca-list wrote:
Is there no way to query for that data?

Somewhere there must be a howto that would be informative. It strikes me
that many power users who are sighted use multiple monitors, so there
would indeed bevalues other than :0.

Note, the =: part of the setting reflects localhost. I thought I should
just note that fact for completeness here, because it seems it's
possible there'd be an ip address between the equals sign and the colon.

hth

Janina

Storm Dragon writes:
Howdy,

Sometimes your display is not :0. Try :1, :2, etc. If you get to :9 and it hasn't worked, that is most 
likely not the issue.

Thanks,
Storm

On Fri, May 03, 2019 at 09:31:15AM -0400, John covici wrote:
I tried exactly that, still get the error.

On Fri, 03 May 2019 08:26:16 -0400,
Willem van der Walt wrote:

John,
You must be the same user iI think.
I.E. startx as user john in one tty and in another, log in as john.
Then do export DISPLAY=:0
Then:
echo 'some string'|xclip -i
What to do in X itself, follow Janina's instructions, as you
might have gathered, I am no gui guru.
HTH, Willem


On Fri, 3 May 2019, John Covici wrote:

I am trying to get data from the speakup clipboard to the X
clipboard.  If I do
xclip -i <string>
it says cannot open display.  If I do
DISPLAY=:0;xclip -i <string> I get the following error:
Invalid MIT-MAGIC-COOKIE-1 keyError: Can't open display: :0

How can I get this to work, or is it impossible?

Thanks in advance for any suggestions.

--
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

        John Covici wb2una
        covici ccs covici com
_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html
Log bugs and feature requests at http://bugzilla.gnome.org


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

        John Covici wb2una
        covici ccs covici com
_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html
Log bugs and feature requests at http://bugzilla.gnome.org

-- 
Storm Dragon
Linux accessibility community: https://linux-a11y.org/
24 hour IRC support: irc.linux-a11y.org #a11y
Voice chat and support: mumble.linux-a11y.org



_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html
Log bugs and feature requests at http://bugzilla.gnome.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]