Re: [BRLTTY] xbrlapi can't read keys from brlapi

2023-08-23 Thread Samuel Thibault
Hello,

payman shaykhmehdi, le mer. 23 août 2023 10:24:11 +0330, a ecrit:
> > I have reverted the change in [1]https://github.com/brltty/brltty/pull/426
> 
> Yes, this solves the problem.

Dave, this also very well could argue in favor of a 6.6.1 fix release,
since with this bug, keys essentially get ignored by xbrlapi.

Samuel
___
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@brltty.app
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Re: [BRLTTY] xbrlapi can't read keys from brlapi

2023-08-23 Thread payman shaykhmehdi
>
>  I have reverted the change in https://github.com/brltty/brltty/pull/426


Yes, this solves the problem.

Thank you for your help.

On Wed, Aug 23, 2023 at 12:33 AM Samuel Thibault <
samuel.thiba...@ens-lyon.org> wrote:

> payman shaykhmehdi, le mar. 22 août 2023 07:41:44 +0330, a ecrit:
> > What do you actually observe? Do you see warnings from xbrlapi?
> >
> > Running xblapi in verbose mode, it doesn't log any error or warnings.
> And also
> > there no (braille)keypress event log.
>
> Oops.
>
> I indeed erroneously rewrote the key range handling. I have reverted the
> change in https://github.com/brltty/brltty/pull/426
>
> Thanks for the report,
> Samuel
> ___
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY@brltty.app
> For general information, go to: http://brltty.app/mailman/listinfo/brltty
___
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@brltty.app
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Re: [BRLTTY] xbrlapi can't read keys from brlapi

2023-08-22 Thread Samuel Thibault
payman shaykhmehdi, le mar. 22 août 2023 07:41:44 +0330, a ecrit:
> What do you actually observe? Do you see warnings from xbrlapi?
> 
> Running xblapi in verbose mode, it doesn't log any error or warnings. And also
> there no (braille)keypress event log.

Oops.

I indeed erroneously rewrote the key range handling. I have reverted the
change in https://github.com/brltty/brltty/pull/426

Thanks for the report,
Samuel
___
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@brltty.app
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Re: [BRLTTY] xbrlapi can't read keys from brlapi

2023-08-21 Thread payman shaykhmehdi
>
> What do you actually observe? Do you see warnings from xbrlapi?


Running xblapi in verbose mode, it doesn't log any error or warnings. And
also there no (braille)keypress event log.

  Did you really have what xbrlapi needs to synthesize keypresses?
> (libxtst-dev libxfixes-dev)


Yes, I've installed both these libraries. But I will try apt build-dep
command.

Actually I've done some debugging and found that just before reading keys
from brlapi (before brlapi_readKey call), FD_ISSET(brlapi_fd, )
returns false.
But couldn't figure the reason out.

On Mon, Aug 21, 2023 at 8:32 PM Samuel Thibault <
samuel.thiba...@ens-lyon.org> wrote:

> payman shaykhmehdi, le lun. 21 août 2023 15:46:04 +0330, a ecrit:
> > I've compiled brltty 6.6 in ubuntu 20.04.6 LTS. Braille output in X
> windows and
> > graphical apps works great.
> >  But the problem is with braille input. It seems that xbrlapi can not
> read keys
> > from brlapi connection.
>
> What do you actually observe? Do you see warnings from xbrlapi?
>
> Did you really have what xbrlapi needs to synthesize keypresses?
> (libxtst-dev libxfixes-dev). To be sure to have all interesting deps,
> you can use
>
> apt build-dep brltty
>
> Samuel
> ___
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY@brltty.app
> For general information, go to: http://brltty.app/mailman/listinfo/brltty
___
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@brltty.app
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Re: [BRLTTY] xbrlapi can't read keys from brlapi

2023-08-21 Thread Samuel Thibault
payman shaykhmehdi, le lun. 21 août 2023 15:46:04 +0330, a ecrit:
> I've compiled brltty 6.6 in ubuntu 20.04.6 LTS. Braille output in X windows 
> and
> graphical apps works great.
>  But the problem is with braille input. It seems that xbrlapi can not read 
> keys
> from brlapi connection.

What do you actually observe? Do you see warnings from xbrlapi?

Did you really have what xbrlapi needs to synthesize keypresses?
(libxtst-dev libxfixes-dev). To be sure to have all interesting deps,
you can use

apt build-dep brltty

Samuel
___
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@brltty.app
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Re: [BRLTTY] xbrlapi can't read keys from brlapi

2023-08-21 Thread Life in Six Dots
I agree with you. I’m having the same problem with BRLTTY 6.5, and 6.4. I found 
that the sys_admin, cap_sys_tty_config, and cap_mknod have not been granted. If 
I tried the command brltty-setcaps, I error that the command is not found. Here 
is my output when I look at BRLTTY –version:

 

BRLTTY 6.5 rev BRLTTY-6.5 [https://brltty.app/]

brltty: Log Level: none

brltty: Messages Locale: en_US.UTF-8

brltty: Messages Domain: brltty

brltty: Messages Directory: /usr/share/locale

brltty: Autospeak Threshold: none

brltty: Privilege Parameter: path=

brltty: Privilege Parameter: scfmode=

brltty: Privilege Parameter: shell=

brltty: Privilege Parameter: user=

brltty: can't isolate namespaces

brltty: executing as the invoking user: paul

brltty: can't set supplementary groups

brltty: group not joined: 0(root)

brltty: group not joined: 5(tty)

brltty: group not joined: 20(dialout)

brltty: group not joined: 29(audio)

brltty: group not joined: 102(input)

brltty: required capability not granted: cap_sys_admin (for injecting input 
characters typed on a braille device)

brltty: required capability not granted: cap_sys_tty_config (for playing alert 
tunes via the built-in PC speaker)

brltty: required capability not granted: cap_mknod (for creating needed but 
missing special device files)

brltty: Copyright © 1995-2022 by The BRLTTY Developers

brltty: BrlAPI Server: release 0.8.4

brltty:Copyright (C) 2002-2022 by Sébastien Hinderer 
sebastien.hinde...@ens-lyon.org  , 
Samuel Thibault  On Behalf Of payman shaykhmehdi
Sent: Monday, August 21, 2023 1:16 PM
To: Informal discussion between users and developers of BRLTTY. 

Subject: [BRLTTY] xbrlapi can't read keys from brlapi

 

I've compiled brltty 6.6 in ubuntu 20.04.6 LTS. Braille output in X windows and 
graphical apps works great.

 But the problem is with braille input. It seems that xbrlapi can not read keys 
from brlapi connection.

I think that it is a permissions issue, due to usb device permission, I'm 
running brltty with root permission and running xbrlapi with root privileges 
doesn't make any difference.

 

 

Also these logs from brltty doesn't look good :

 

brltty: can't isolate namespaces
brltty: can't set supplementary groups
brltty: group not joined: 5(tty)
brltty: group not joined: 20(dialout)
brltty: group not joined: 29(audio)
brltty: group not joined: 106(input)
brltty: group not joined: 115(pulse-access)

___
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@brltty.app
For general information, go to: http://brltty.app/mailman/listinfo/brltty