List Info

Thread: Orca Change tty




Orca Change tty
user name
2006-12-09 13:02:48
Hello,

I would like use orca with another tty. What I have change?
Usually I
run two X session, so default is on tty7 but my is on tty8.




-- 

Jan Buchal
Tel: (00420) 24 24 86 008
Mob: (00420) 608023021

_______________________________________________
Orca-list mailing list
Orca-listgnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
Orca Change tty
user name
2006-12-09 19:19:54
Hi Jan:

Currently, there's really not a good platform independent
way to
determine which tty the X Server is on, so we hard code the
default to 7
in Orca.  Samuel gave me a couple ways to try to get the
tty, such as a
the presence and value of property on the root window, and
I'll be
taking a look at that.

In the meantime, I just checked a change to GNOME CVS HEAD
for you - it
allows you to specify the tty.  You can do this in your
~/.orca/user-settings.py file:

orca.settings.tty=7

To be sure this is working, set the debug level in your
~/.orca/user-settings.py file to the following:

orca.debug.debugLevel = orca.debug.LEVEL_CONFIGURATION

You should see a line similar to the following when you run
orca:

Initializing braille on tty=7

Hope this helps.  If things still don't work for you with
braille, we
can try debugging some more.  The good/bad news is that it
works great
for me and others.  We'll just have to do some debugging to
figure out
why it's not working on your machine.

Will

On Sat, 2006-12-09 at 14:02 +0100, Jan Buchal wrote:
> Hello,
> 
> I would like use orca with another tty. What I have
change? Usually I
> run two X session, so default is on tty7 but my is on
tty8.
> 
> 
> 
> 

_______________________________________________
Orca-list mailing list
Orca-listgnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
Orca Change tty
user name
2006-12-09 22:13:06
>>>>> "WW" == Willie Walker
<William.WalkerSun.COM> writes:

    WW> Hi Jan: Currently, there's really not a good
platform
    WW> independent way to determine which tty the X
Server is on, so we
    WW> hard code the default to 7 in Orca. Samuel gave
me a couple ways
    WW> to try to get the tty, such as a the presence and
value of
    WW> property on the root window, and I'll be taking a
look at that.

    WW> In the meantime, I just checked a change to GNOME
CVS HEAD for
    WW> you - it allows you to specify the tty. You can
do this in your
    WW> ~/.orca/user-settings.py file:

    WW> orca.settings.tty=7

    WW> To be sure this is working, set the debug level
in your
    WW> ~/.orca/user-settings.py file to the following:

    WW> orca.debug.debugLevel =
orca.debug.LEVEL_CONFIGURATION

    WW> You should see a line similar to the following
when you run
    WW> orca:

    WW> Initializing braille on tty=7

    WW> Hope this helps. If things still don't work for
you with
    WW> braille, we can try debugging some more. The
good/bad news is
    WW> that it works great for me and others. We'll just
have to do
    WW> some debugging to figure out why it's not working
on your
    WW> machine.

Unfortunatelly not works. I did all what you wrote and here
is the
result:

$ orca
Using speech server factory: orca.speechdispatcherfactory
Speech module has been initialized.
Initializing braille on tty=8

Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/orca/orca.py&qu
ot;, line 859, in loadUserSettings
    braille.init(_processBrailleEvent, settings.tty)
  File
"/usr/local/lib/python2.4/site-packages/orca/braille.py
", line 951, in init
    if brl.init(tty):
StandardError: Failed to find brlapi_initializeConnection in
BrlTTY

Could not initialize connection to braille.
Magnification module has NOT been initialized.
SPEECH OUTPUT: 'Vítá vás Orca.'
BRAILLE LINE:  'Vítá vás Orca.'
     VISIBLE:  'Vítá vás Orca.', cursor=0
SPEECH OUTPUT: 'Switching to focus tracking mode.'
atspi.start: using bonobo.main; gilSleepTime=0.000010
BRAILLE LINE:  'emacs-snapshotferda.buchal.xx.
nepřístupné'
     VISIBLE:  'emacs-snapshotferda.buchal.xx. ',
cursor=0
SPEECH OUTPUT: 'emacs-snapshotferda.buchal.xx.
nepřístupné'

But Emacs under X with brlapi works.
Best.


-- 

Jan Buchal -- ředitel společnosti
Tel: (00420) 24 24 86 008
Mob: (00420) 608023021
http://www.brailcom.org
http://www.nepodpis.cz
http://internet.proslepe.
cz
http://www.freebsoft.org
http://wahelper.brailcom
.org
_______________________________________________
Orca-list mailing list
Orca-listgnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
Orca Change tty
user name
2006-12-10 21:32:19
Hi:

>     WW> Hi Jan: Currently, there's really not a good
platform
>     WW> independent way to determine which tty the X
Server is on, so we
>     WW> hard code the default to 7 in Orca. Samuel
gave me a couple ways
>     WW> to try to get the tty, such as a the
presence and value of
>     WW> property on the root window, and I'll be
taking a look at that.

Just for an update: I checked in some code to do this
yesterday.  It'll
be in Orca v2.17.4.

> Traceback (most recent call last):
>   File
"/usr/local/lib/python2.4/site-packages/orca/orca.py&qu
ot;, line 859, in loadUserSettings
>     braille.init(_processBrailleEvent, settings.tty)
>   File
"/usr/local/lib/python2.4/site-packages/orca/braille.py
", line 951, in init
>     if brl.init(tty):
> StandardError: Failed to find
brlapi_initializeConnection in BrlTTY

Odd.  This means it cannot find the BrlAPI Python bindings
that are in
the latest BrlTTY, so it is falling back to the Python
bindings we built
in to Orca.  Then, it cannot find a particular symbol that
it expects.

I'm going to guess this:  the latest BrlTTY/BrlAPI was
built/installed
on the machine, overwriting the older stuff.  As part of
this, however,
the "--enable-python-bindings" option was not
passed to
autogen.sh/configure.  If this were the case, I believe
BrlAPI's new
Python bindings would not have been built/installed.  The
result is that
you have new libraries, but not new Python bindings.

If this is the case, the solution is to rebuild
BrlTTY/BrlAPI, passing
"--enable-python-bindings" to autogen.

Will

> 
> Could not initialize connection to braille.
> Magnification module has NOT been initialized.
> SPEECH OUTPUT: 'Vítá vás Orca.'
> BRAILLE LINE:  'Vítá vás Orca.'
>      VISIBLE:  'Vítá vás Orca.', cursor=0
> SPEECH OUTPUT: 'Switching to focus tracking mode.'
> atspi.start: using bonobo.main; gilSleepTime=0.000010
> BRAILLE LINE:  'emacs-snapshotferda.buchal.xx.
nepřístupné'
>      VISIBLE:  'emacs-snapshotferda.buchal.xx. ',
cursor=0
> SPEECH OUTPUT: 'emacs-snapshotferda.buchal.xx.
nepřístupné'
> 
> But Emacs under X with brlapi works.
> Best.
> 
> 

_______________________________________________
Orca-list mailing list
Orca-listgnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )