Discussion:
[BRLTTY] problem with brltty and polkit
Kelly Prescott
2017-04-27 20:50:33 UTC
Permalink
I am running brltty on archlinux.
Text mode works fine, but brlapi which orca needs does not appear to work
anymore.
It worked in 5.4.
When I start the daemon I get:

--log--
Apr 27 15:15:14 io.coolip.net brltty[383]: BrlAPI Server: release 0.6.6
Apr 27 15:15:14 io.coolip.net brltty[383]: unknown
authentication/authorization method: polkit
Apr 27 15:15:14 io.coolip.net brltty[383]: Unable to start auth server
--endlog--
I have the file org.a11y.brlapi.policy in /usr/share/polkit1/actions
When I manually build the package, I can see that polkit support appears
to be included as the config.log says it is.
Any suggestions about how to fix this would be helpful.
kp
Shérab
2017-04-27 21:37:28 UTC
Permalink
Dear Kelly,
Post by Kelly Prescott
I am running brltty on archlinux.
Text mode works fine, but brlapi which orca needs does not appear to work
anymore.
It worked in 5.4.
--log--
Apr 27 15:15:14 io.coolip.net brltty[383]: BrlAPI Server: release 0.6.6
Apr 27 15:15:14 io.coolip.net brltty[383]: unknown
authentication/authorization method: polkit
Apr 27 15:15:14 io.coolip.net brltty[383]: Unable to start auth server
--endlog--
I have the file org.a11y.brlapi.policy in /usr/share/polkit1/actions
When I manually build the package, I can see that polkit support appears to
be included as the config.log says it is.
But then, is it the brltty you have just built that you are running, or
another one?

If it is the one you have just built and if, once it is run it can't
find polkit while configure seemed happy, could it be that the polkit
daemon has not been started on your system?
Post by Kelly Prescott
Any suggestions about how to fix this would be helpful.
I know nothing about polkit unfortunately so I can't help much more with
this.

Another route you could try is using a different authentication method.
For instance, you could run brltty with arguments -A auth=none to
disable authentication completely.

Shérab.
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: ***@brltty.com
For general information, go to: http://
Kelly Prescott
2017-04-27 21:53:36 UTC
Permalink
Sure enough, if I change brltty to use the brlapi.key file, it works fine.
I would like to get the polkit working, however.
Thanks for your suggestion, as I can at least use it while I try to figure
out the correct fix for polkit.

kp
Post by Shérab
Dear Kelly,
Post by Kelly Prescott
I am running brltty on archlinux.
Text mode works fine, but brlapi which orca needs does not appear to work
anymore.
It worked in 5.4.
--log--
Apr 27 15:15:14 io.coolip.net brltty[383]: BrlAPI Server: release 0.6.6
Apr 27 15:15:14 io.coolip.net brltty[383]: unknown
authentication/authorization method: polkit
Apr 27 15:15:14 io.coolip.net brltty[383]: Unable to start auth server
--endlog--
I have the file org.a11y.brlapi.policy in /usr/share/polkit1/actions
When I manually build the package, I can see that polkit support appears to
be included as the config.log says it is.
But then, is it the brltty you have just built that you are running, or
another one?
If it is the one you have just built and if, once it is run it can't
find polkit while configure seemed happy, could it be that the polkit
daemon has not been started on your system?
Post by Kelly Prescott
Any suggestions about how to fix this would be helpful.
I know nothing about polkit unfortunately so I can't help much more with
this.
Another route you could try is using a different authentication method.
For instance, you could run brltty with arguments -A auth=none to
disable authentication completely.
Shérab.
_______________________________________________
This message was sent via the BRLTTY mailing list.
For general information, go to: http://brltty.com/mailman/listinfo/brltty
Shérab
2017-04-27 22:40:23 UTC
Permalink
Post by Kelly Prescott
Sure enough, if I change brltty to use the brlapi.key file, it works fine.
Good. That's the historical way...
Post by Kelly Prescott
I would like to get the polkit working, however.
Sure. Sorry I can't help. Once you have figured it out I'd be interested
to know what the problem was.
Post by Kelly Prescott
Thanks for your suggestion, as I can at least use it while I try to figure
out the correct fix for polkit.
You're very welcome.

Shérab.
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: ***@brltty.com
For general info
Dave Mielke
2017-04-29 17:33:51 UTC
Permalink
[quoted lines by Kelly Prescott on 2017/04/27 at 15:50 -0500]
Post by Kelly Prescott
Text mode works fine, but brlapi which orca needs does not appear to
work anymore.
It worked in 5.4.
--log--
Apr 27 15:15:14 io.coolip.net brltty[383]: BrlAPI Server: release 0.6.6
Apr 27 15:15:14 io.coolip.net brltty[383]: unknown
authentication/authorization method: polkit
Apr 27 15:15:14 io.coolip.net brltty[383]: Unable to start auth server
--endlog--
I have the file org.a11y.brlapi.policy in /usr/share/polkit1/actions
When I manually build the package, I can see that polkit support
appears to be included as the config.log says it is.
My initial guess is that you aren't building on a system that has polkit's
development package. Do you have the header /usr/include/polkit-1/polkit.h on
the system wehreon you did your manual build?
--
Dave Mielke | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: ***@Mielke.cc | Canada K2A 1H7 | The Bible is the very Word of God.
Kelly Prescott
2017-04-29 18:14:57 UTC
Permalink
I do have polkit.h, but it lives in /usr/include/polkit-1/polkit on my
system.
Here is what config.log says on my system:
This are the lines concerning polkit:
configure:7095: polkit package: polkit-gobject-1
configure:7099: polkit includes: -I/usr/include/polkit-1
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
configure:7103: polkit libs: -lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0
-lglib-2.0
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
| #define HAVE_PKG_POLKIT 1
| #define USE_POLKIT 1
polkit: yes
polkit_includes='-I/usr/include/polkit-1 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include'
polkit_libs='-lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0'
polkit_package='polkit-gobject-1'
#define HAVE_PKG_POLKIT 1
#define USE_POLKIT 1
Post by Dave Mielke
[quoted lines by Kelly Prescott on 2017/04/27 at 15:50 -0500]
Post by Kelly Prescott
Text mode works fine, but brlapi which orca needs does not appear to
work anymore.
It worked in 5.4.
--log--
Apr 27 15:15:14 io.coolip.net brltty[383]: BrlAPI Server: release 0.6.6
Apr 27 15:15:14 io.coolip.net brltty[383]: unknown
authentication/authorization method: polkit
Apr 27 15:15:14 io.coolip.net brltty[383]: Unable to start auth server
--endlog--
I have the file org.a11y.brlapi.policy in /usr/share/polkit1/actions
When I manually build the package, I can see that polkit support
appears to be included as the config.log says it is.
My initial guess is that you aren't building on a system that has polkit's
development package. Do you have the header /usr/include/polkit-1/polkit.h on
the system wehreon you did your manual build?
--
Dave Mielke | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
_______________________________________________
This message was sent via the BRLTTY mailing list.
For general information, go to: http://brltty.com/mailman/listinfo/brltty
Dave Mielke
2017-04-29 18:21:18 UTC
Permalink
[quoted lines by Kelly Prescott on 2017/04/29 at 13:14 -0500]
Post by Kelly Prescott
I do have polkit.h, but it lives in /usr/include/polkit-1/polkit on
my system.
...
Post by Kelly Prescott
configure:7099: polkit includes: -I/usr/include/polkit-1
In other words, your brltty's config.log says it's where I'm saying it should
be but you're saying that, on your system, it's somewhere else.

What does the USE_POLKIT line in your brltty's config.h say? For 5.5, I'd
expect it to be on line 444.
--
Dave Mielke | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: ***@Mielke.cc | Canada K2A 1H7 | The Bible is the very Word of God.
Kelly Prescott
2017-04-29 19:12:06 UTC
Permalink
starting on line 440:
/* Define this if the Polkit authorization manager is to be used. */
#define USE_POLKIT 1
Post by Dave Mielke
[quoted lines by Kelly Prescott on 2017/04/29 at 13:14 -0500]
Post by Kelly Prescott
I do have polkit.h, but it lives in /usr/include/polkit-1/polkit on
my system.
...
Post by Kelly Prescott
configure:7099: polkit includes: -I/usr/include/polkit-1
In other words, your brltty's config.log says it's where I'm saying it should
be but you're saying that, on your system, it's somewhere else.
What does the USE_POLKIT line in your brltty's config.h say? For 5.5, I'd
expect it to be on line 444.
--
Dave Mielke | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
_______________________________________________
This message was sent via the BRLTTY mailing list.
For general information, go to: http://brltty.com/mailman/listinfo/brltty
Dave Mielke
2017-04-29 19:19:37 UTC
Permalink
[quoted lines by Kelly Prescott on 2017/04/29 at 14:12 -0500]
Post by Kelly Prescott
/* Define this if the Polkit authorization manager is to be used. */
#define USE_POLKIT 1
So polkit support was indeed included. As I recall (I didn't keep a copy of the
original error), you were getting something like "polkit is an unknown
authroization method". That means that the running brltty doesn't include
polkit support. Does your brltty log show that you were indeed running the 5.5
that you'd built?

You said that it worked with 5.4. One of the changes in 5.5 was that polkit
authorization became enabled by default - it wasn't enabled by default in 5.4.
--
Dave Mielke | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: ***@Mielke.cc | Canada K2A 1H7 | The Bible is the very Word of God.
Kelly Prescott
2017-04-30 15:42:13 UTC
Permalink
Dave, it looks like when I use ldd on the brltty which is packaged for
arch, it does not include the polkit libraries.
My version does.
I think, I might have a conflict between my version and the arch version.
I am going to rebuild the original package, making sure to include the
polkit libraries, and then I will let you know the results.
Thanks for your patients. I am familiar with C, but I am not used to
working with such large projects.
-- Kelly Prescott
Post by Kelly Prescott
/* Define this if the Polkit authorization manager is to be used. */
#define USE_POLKIT 1
Post by Dave Mielke
[quoted lines by Kelly Prescott on 2017/04/29 at 13:14 -0500]
Post by Kelly Prescott
I do have polkit.h, but it lives in /usr/include/polkit-1/polkit on
my system.
...
Post by Kelly Prescott
configure:7099: polkit includes: -I/usr/include/polkit-1
In other words, your brltty's config.log says it's where I'm saying it should
be but you're saying that, on your system, it's somewhere else.
What does the USE_POLKIT line in your brltty's config.h say? For 5.5, I'd
expect it to be on line 444.
--
Dave Mielke | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
_______________________________________________
This message was sent via the BRLTTY mailing list.
For general information, go to: http://brltty.com/mailman/listinfo/brltty
_______________________________________________
This message was sent via the BRLTTY mailing list.
For general information, go to: http://brltty.com/mailman/listinfo/brltty
Loading...