Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-10-19 20:19:16

Sharky
Member
Registered: 2014-08-16
Posts: 51

Authentication needed to run xfpm-power-backlight-helper as super user

On startup, any time I hit the brightness function keys, or when the screen tries to autodim after a certain period of time, I get this popup dialog box requiring my password. If I hit brightness up 5 times, I have to enter my password 5 times. Annoying. Power manager runs from startup:
settings > session & startup > application autostart > power manager

Does anyone know how to get xfce4-power-manager to call xfpm-power-backlight-helper as root?

Offline

#2 2016-10-19 21:31:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Which distro?
Which version of Xfce and xfce4-power-manager?
Any error messages in your log files?

One way to debug this is to quit xfce4-power-manager:

xfce4-power-manager -q

...then run it in debug mode:

xfce4-power-manager --no-daemon --debug

...and note the messages that display in the terminal window when the password prompt displays.

Also useful would be the results of:

xfce4-power-manager --dump

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-10-19 21:42:35

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Sorry Toz, shit post by me, no additional detail given!
Xubuntu 16.10 just installed,
xfce4-power-manager 1.6
xfce version: not sure, xfce4 --version & xfce --version return nothing. Just upgraded to 16.10 though so whichever is the latest stable?
Looking through these logs, I wonder if this is related to my issue whereby the laptop was refusing to suspend? Don't know if it's still an issue since the upgrade though...

xfce4-power-manager --no-daemon --debug

** (xfce4-power-manager:22949): WARNING **: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name

** (xfce4-power-manager:22949): WARNING **: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

TRACE[xfpm-main.c:205] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:642] xfpm_xfconf_init(): lock screen FALSE
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for show-tray-icon
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for heartbeat-command

(xfce4-power-manager:22949): GLib-GObject-WARNING **: /build/glib2.0-55kQfG/glib2.0-2.50.0/./gobject/gsignal.c:2523: signal 'Changed' is invalid for instance '0x2153890' of type 'GDBusProxy'
TRACE[xfpm-polkit.c:287] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 22949>, 'start-time': <uint64 604885>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 22949>, 'start-time': <uint64 604885>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 22949>, 'start-time': <uint64 604885>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 22949>, 'start-time': <uint64 604885>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:945] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:907] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:945] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:907] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:917] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0

(xfce4-power-manager:22949): Gtk-WARNING **: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(xfce4-power-manager:22949): Gtk-WARNING **: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(xfce4-power-manager:22949): Gtk-WARNING **: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(xfce4-power-manager:22949): Gtk-WARNING **: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(xfce4-power-manager:22949): Gtk-WARNING **: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(xfce4-power-manager:22949): Gtk-WARNING **: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:22949): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-power.c:219] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 22949>, 'start-time': <uint64 604885>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 22949>, 'start-time': <uint64 604885>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 0
TRACE[xfpm-manager.c:643] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

(xfce4-power-manager:22949): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed

** (xfce4-power-manager:22949): WARNING **: No outputs have backlight property

(xfce4-power-manager:22949): xfce4-power-manager-WARNING **: It seems the kernel brightness switch handling value was not restored properly on exit last time, xfce4-power-manager will try to restore it this time.
xfce4-power-manager-Message: Set kernel brightness switch to 0
TRACE[xfpm-backlight.c:258] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 120
TRACE[xfpm-backlight.c:279] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 120

(xfce4-power-manager:22949): xfce4-power-manager-WARNING **: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.UPower.KbdBacklight' on object at path /org/freedesktop/UPower/KbdBacklight


ON BUTTON PRESS brightness up:
TRACE[xfpm-button.c:118] xfpm_button_filter_x_events(): Key press: ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-backlight.c:187] xfpm_backlight_show(): Level 2702
TRACE[xfpm-manager.c:367] xfpm_manager_button_pressed_cb(): Received button press event: ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-polkit.c:244] xfpm_polkit_free_data(): Destroying Polkit data

ON BUTTON PRESS brightness down:
TRACE[xfpm-button.c:118] xfpm_button_filter_x_events(): Key press: ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-backlight.c:187] xfpm_backlight_show(): Level 2259
TRACE[xfpm-manager.c:367] xfpm_manager_button_pressed_cb(): Received button press event: ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.6.0
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True

ToZ: added code tags

Offline

#4 2016-10-19 22:32:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Well, the log files look right. Must be an issue with polkit then,

First, you said you upgraded to 16.10. Did you upgrade from 16.04?

Secondly, some more investigations. Lets start with these:

ps -ef | grep polkit
cat /usr/share/polkit-1/actions/org.xfce.power.policy
apt-cache policy libpolkit-backend-1-0
groups
pkaction | grep xfce
pkaction --action-id org.xfce.power.backlight-helper --verbose

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2016-10-19 22:44:18

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Hi, thanks for the help. I upgraded from 15.10 to 16.04 then immediately to 16.10.

ps -ef | grep polkit
root      1061     1  0 12:54 ?        00:00:01 /usr/lib/policykit-1/polkitd --no-debug
simon     1702  1646  0 12:54 ?        00:00:01 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
simon    24544 24531  0 15:33 pts/6    00:00:00 grep --color=auto polkit
cat /usr/share/polkit-1/actions/org.xfce.power.policy
cat: /usr/share/polkit-1/actions/org.xfce.power.policy: No such file or directory

(had a look, nothing similarly named there either)

apt-cache policy libpolkit-backend-1-0
libpolkit-backend-1-0:
  Installed: 0.105-16git1
  Candidate: 0.105-16git1
  Version table:
 *** 0.105-16git1 500
        500 [url]http://mirror.math.ucdavis.edu/ubuntu[/url] yakkety/main amd64 Packages
        100 /var/lib/dpkg/status
groups
simon adm cdrom sudo dip plugdev lpadmin sambashare uinput-users roccat

(roccat is my mouse, for macros & such)

pkaction | grep xfce
org.xfce.session.xfsm-shutdown-helper
org.xfce.thunar
pkaction --action-id org.xfce.power.backlight-helper --verbose
No action with action id org.xfce.power.backlight-helper

(also tried all dots and all dashes in that name just in case)

It seems to be the notification layer rather than the brightness functionality itself. If I click down 'details' in the offending password box:
Action: org.freedesktop.policykit.exec
Vendor The PolicyKit Project

Contents of that XML file: [ugh jesus it's pasted it as a big block. will try to make it look nice but it won't be correctly indented)

<policyconfig>
 <vendor>The PolicyKit Project</vendor>
 <vendor_url>http://hal.freedesktop.org/docs/PolicyKit/</vendor_url>
 <action id="org.freedesktop.policykit.exec">
  <description>Run programs as another user</description>
  <description xml:lang="da">Kør et program som en anden bruger</description>
  <message>Authentication is required to run a program as another user</message>
  <message xml:lang="da">Autorisering er påkrævet for at afvikle et program som en anden bruger</message>
  <defaults>
   <allow_any>auth_admin</allow_any> 
   <allow_inactive>auth_admin</allow_inactive>
   <allow_active>auth_admin</allow_active>
  </defaults>
 </action>
 <action id="org.freedesktop.policykit.lockdown">
 <description>Configure lock down for an action</description>
 <description xml:lang="da">Konfigurer lock down for en action</description>
 <message>Authentication is required to configure lock down policy</message>
 <message xml:lang="da">Autorisering er påkrævet for at konfigurer lock down</message>
  <defaults>
   <allow_any>no</allow_any>
   <allow_inactive>no</allow_inactive>
   <allow_active>auth_admin</allow_active>
  </defaults>
  <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/pklalockdown</annotate>
 </action>
</policyconfig>

ToZ: added code tags

Offline

#6 2016-10-20 01:26:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

I've added code tags to your above posts to make them more readable (the code parts).

Your system appears to be missing a required policykit action file: /usr/share/polkit-1/actions/org.xfce.power.policy

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>

  

  <vendor>XFCE Power Manager</vendor>
  <vendor_url>http://goodies.xfce.org/projects/applications/xfce4-power-manager</vendor_url>
  <icon_name>battery</icon_name>

  <action id="org.xfce.power.backlight-helper">
    
    <description>Modify the laptop display brightness</description>
    <message>Authentication is required to modify the laptop display brightness</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/xfpm-power-backlight-helper</annotate>
  </action>

  <action id="org.xfce.power.xfce4-pm-helper">
    
    <description>Suspend or hibernate the system</description>
    <message>Authentication is required to place the system in suspend or hibernate mode</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/xfce4-pm-helper</annotate>
  </action>

This is the file that defines access to the backlight helper executable allowing you to change the backlight without needing to specify the root password. Try creating the file with root privileges. You may need to log out and back in again for it to take effect. You can test if polkit is processing it via the two pkaction commands above, which should return:

$ pkaction | grep xfce
...
org.xfce.power.backlight-helper
...
$ pkaction --action-id org.xfce.power.backlight-helper --verbose
org.xfce.power.backlight-helper:
  description:       Modify the laptop display brightness
  message:           Authentication is required to modify the laptop display brightness
  vendor:            XFCE Power Manager
  vendor_url:        http://goodies.xfce.org/projects/applications/xfce4-power-manager
  icon:              battery
  implicit any:      no
  implicit inactive: no
  implicit active:   yes
  annotation:        org.freedesktop.policykit.exec.path -> /usr/sbin/xfpm-power-backlight-helper

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2016-10-20 02:55:51

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Huh, strange. Tried all that, added </policyconfig> at the end of the first code block as that was chopped off, restarted, no change.
Changed

<defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>

to

<defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>

restarted, no change. Though that change affects the outcome of the verbose code line, changing the implicit any & inactives to yes, as you'd expect...

Last edited by Sharky (2016-10-20 02:56:11)

Offline

#8 2016-10-20 10:24:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

It should definitely be "no no yes" as that's what the file in the package has.

What do the following commands return:

pkaction | grep xfce
pkaction --action-id org.xfce.power.backlight-helper --verbose

The other thing you could try is to reinstall the power-manager package:

apt-get install --reinstall xfce4-power-manager

...as well as the policykit packages:

apt-get install --reinstall policykit-1

Edit:
Can you also post back:

apt-cache policy xfce4-power-manager

Last edited by ToZ (2016-10-20 10:26:34)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2016-10-21 14:58:35

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Thanks again, sorry slow reply, had to paint my outside steps (!).

 pkaction | grep xfce
org.xfce.power.backlight-helper
org.xfce.power.xfce4-pm-helper
org.xfce.session.xfsm-shutdown-helper
org.xfce.thunar


pkaction --action-id org.xfce.power.backlight-helper --verboseorg.xfce.power.backlight-helper:
  description:       Modify the laptop display brightness
  message:           Authentication is required to modify the laptop display brightness
  vendor:            XFCE Power Manager
  vendor_url:        http://goodies.xfce.org/projects/applications/xfce4-power-manager
  icon:              battery
  implicit any:      no
  implicit inactive: no
  implicit active:   yes
  annotation:        org.freedesktop.policykit.exec.path -> /usr/sbin/xfpm-power-backlight-helper

apt-cache policy xfce4-power-manager
xfce4-power-manager:
  Installed: 1.4.4-4ubuntu2
  Candidate: 1.4.4-4ubuntu2
  Version table:
 *** 1.4.4-4ubuntu2 500
        500 http://mirror.math.ucdavis.edu/ubuntu yakkety/universe amd64 Packages
        100 /var/lib/dpkg/status

Just done the reinstalls, rebooting now, posting this so it's not lost.

Offline

#10 2016-10-21 15:03:29

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

No improvement sad
Code in case it changed:

pkaction | grep xfce
org.xfce.power.backlight-helper
org.xfce.power.xfce4-pm-helper
org.xfce.session.xfsm-shutdown-helper
org.xfce.thunar


pkaction --action-id org.xfce.power.backlight-helper --verboseorg.xfce.power.backlight-helper:
  description:       Modify the laptop display brightness
  message:           Authentication is required to modify the laptop display brightness
  vendor:            XFCE Power Manager
  vendor_url:        http://goodies.xfce.org/projects/applications/xfce4-power-manager
  icon:              battery
  implicit any:      no
  implicit inactive: no
  implicit active:   yes
  annotation:        org.freedesktop.policykit.exec.path -> /usr/sbin/xfpm-power-backlight-helper


apt-cache policy xfce4-power-manager
xfce4-power-manager:
  Installed: 1.4.4-4ubuntu2
  Candidate: 1.4.4-4ubuntu2
  Version table:
 *** 1.4.4-4ubuntu2 500
        500 http://mirror.math.ucdavis.edu/ubuntu yakkety/universe amd64 Packages
        100 /var/lib/dpkg/status

edit: doesn't look like it's changed. This seems super weird!

Last edited by Sharky (2016-10-21 15:07:33)

Offline

#11 2016-10-21 16:47:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

That output looks fine.

I'm not sure how much farther I'm going to be able to go with this as I am by no means a policykit guru, but I can offer a couple more suggestions:

1. Since your install of xfce4-power-manager was missing a file, purging and re-installing it might help:

sudo apt-get purge xfce4-power-manager
sudo apt-get install xfce4-power-manager

...log out and back in again to test.

2. Perhaps if you tried to get some more policykit debug information, it might identify where the issue is. To do so, edit the file /lib/systemd/system/polkitd.service, comment out the "ExecStart=" line and add the following directly below it:

ExecStart=/bin/sh -c 'G_MESSAGES_DEBUG=all /usr/lib/policykit-1/polkitd > /tmp/polkitd.log 2>&1' 

...then kill the process:

sudo killall polkitd

...then try to adjust the brightness and have a look at the /tmp/polkitd.log file to see what debug information was displayed.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#12 2016-10-21 17:10:39

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Interesting, right so purge removed the problem, install reintroduced it, so at least that confirms this is the culprit.
log file:

Entering main event loop
Connected to the system bus
Registering null backend at priority -10
** (polkitd:3021): DEBUG: Using config directory `/etc/polkit-1/localauthority.conf.d'
** (polkitd:3021): DEBUG: Added `/var/lib/polkit-1/localauthority/10-vendor.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/etc/polkit-1/localauthority/10-vendor.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/var/lib/polkit-1/localauthority/20-org.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/etc/polkit-1/localauthority/20-org.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/var/lib/polkit-1/localauthority/30-site.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/etc/polkit-1/localauthority/30-site.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/var/lib/polkit-1/localauthority/50-local.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/etc/polkit-1/localauthority/50-local.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/var/lib/polkit-1/localauthority/90-mandatory.d' as a local authorization store
** (polkitd:3021): DEBUG: Added `/etc/polkit-1/localauthority/90-mandatory.d' as a local authorization store
** (polkitd:3021): DEBUG: Monitoring `/var/lib/polkit-1/localauthority' for changes
** (polkitd:3021): DEBUG: Monitoring `/etc/polkit-1/localauthority' for changes
Using authority class PolkitBackendLocalAuthority
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:   0x7f9b580050d0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/var/lib/polkit-1/localauthority/10-vendor.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/etc/polkit-1/localauthority/10-vendor.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/var/lib/polkit-1/localauthority/20-org.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/etc/polkit-1/localauthority/20-org.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/var/lib/polkit-1/localauthority/30-site.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/etc/polkit-1/localauthority/30-site.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/var/lib/polkit-1/localauthority/50-local.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/etc/polkit-1/localauthority/50-local.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/var/lib/polkit-1/localauthority/90-mandatory.d'
** (polkitd:3021): DEBUG: Dropping all .pkla caches for directory `/etc/polkit-1/localauthority/90-mandatory.d'
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:   0x7f9b58006180
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-network
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-network
** (polkitd:3021): DEBUG:   0x7f9b58007d20
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.sleep-wake
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.sleep-wake
** (polkitd:3021): DEBUG:   0x7f9b58008980
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  not authorized
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wifi
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wifi
** (polkitd:3021): DEBUG:   0x7f9b58004500
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wwan
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wwan
** (polkitd:3021): DEBUG:   0x7f9b58005aa0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wimax
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wimax
** (polkitd:3021): DEBUG:   0x7f9b58015840
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.network-control
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.network-control
** (polkitd:3021): DEBUG:   0x7f9b5800b440
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:   0x7f9b5800bf20
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:   0x7f9b5800a790
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.system
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.system
** (polkitd:3021): DEBUG:   0x7f9b580098a0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.own
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.own
** (polkitd:3021): DEBUG:   0x7f9b58008890
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.hostname
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.hostname
** (polkitd:3021): DEBUG:   0x7f9b5800ab60
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin_keep)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.reload
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.reload
** (polkitd:3021): DEBUG:   0x7f9b58005350
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin_keep)
** (polkitd:3021): DEBUG:  
Acquired the name org.freedesktop.PolicyKit1
** (polkitd:3021): DEBUG: Added authentication agent for unix-session:c1 at name :1.37 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_IE.UTF-8
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:   0x7f9b58014660
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:   0x7f9b58015b20
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-network
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-network
** (polkitd:3021): DEBUG:   0x7f9b58009ac0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.sleep-wake
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.sleep-wake
** (polkitd:3021): DEBUG:   0x7f9b58009960
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  not authorized
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wifi
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wifi
** (polkitd:3021): DEBUG:   0x7f9b58011ea0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wwan
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wwan
** (polkitd:3021): DEBUG:   0x7f9b5800e390
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wimax
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.enable-disable-wimax
** (polkitd:3021): DEBUG:   0x7f9b58011b60
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.network-control
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.network-control
** (polkitd:3021): DEBUG:   0x7f9b580158a0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.protected
** (polkitd:3021): DEBUG:   0x7f9b5800bf20
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.wifi.share.open
** (polkitd:3021): DEBUG:   0x7f9b5800bec0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.system
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.system
** (polkitd:3021): DEBUG:   0x7f9b58005190
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.own
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.own
** (polkitd:3021): DEBUG:   0x7f9b5800d840
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  is authorized (has implicit authorization local=1 active=1)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.hostname
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.settings.modify.hostname
** (polkitd:3021): DEBUG:   0x7f9b5800d870
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin_keep)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.10 is inquiring whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.reload
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1448:3605 is authorized for org.freedesktop.NetworkManager.reload
** (polkitd:3021): DEBUG:   0x7f9b58009660
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin_keep)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG: system-bus-name::1.153 is inquiring whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:   0x5584442bf350
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin)
** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success

** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success

** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success

** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success

** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG:  using authentication agent for challenge
** (polkitd:3021): DEBUG: In authentication_agent_response for cookie '1-ebbaef2bbbfaad4cb2fa830eb00b90d9-1-60cac7c0014d34e8cf33362061b56cad' and identity unix-user:simon
** (polkitd:3021): DEBUG: Authentication complete, is_authenticated = 1
** (polkitd:3021): DEBUG: In check_authorization_challenge_cb
  subject                unix-process:1425:3574
  action_id              org.freedesktop.policykit.exec
  was_dismissed          0
  authentication_success 1

** (polkitd:3021): DEBUG: system-bus-name::1.155 is inquiring whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:   0x5584442bf260
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG:  using authentication agent for challenge
** (polkitd:3021): DEBUG: In authentication_agent_response for cookie '1-ebbaef2bbbfaad4cb2fa830eb00b90d9-2-e6764256380bb833b35985dca52f1ed0' and identity unix-user:simon
** (polkitd:3021): DEBUG: Authentication complete, is_authenticated = 1
** (polkitd:3021): DEBUG: In check_authorization_challenge_cb
  subject                unix-process:1425:3574
  action_id              org.freedesktop.policykit.exec
  was_dismissed          0
  authentication_success 1

** (polkitd:3021): DEBUG: system-bus-name::1.157 is inquiring whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:   0x5584442bdcd0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG:  using authentication agent for challenge
** (polkitd:3021): DEBUG: In authentication_agent_response for cookie '1-ebbaef2bbbfaad4cb2fa830eb00b90d9-3-e154be0945f6da000f79ce215a115ee3' and identity unix-user:simon
** (polkitd:3021): DEBUG: Authentication complete, is_authenticated = 1
** (polkitd:3021): DEBUG: In check_authorization_challenge_cb
  subject                unix-process:1425:3574
  action_id              org.freedesktop.policykit.exec
  was_dismissed          0
  authentication_success 1

** (polkitd:3021): DEBUG: system-bus-name::1.160 is inquiring whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:   0x7f9b58004b50
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG:  using authentication agent for challenge
** (polkitd:3021): DEBUG: In authentication_agent_response for cookie '1-ebbaef2bbbfaad4cb2fa830eb00b90d9-4-
** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success

** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success

These last two are both backlight presses. One I entered password, the second I didn't:

** (polkitd:3021): DEBUG: system-bus-name::1.164 is inquiring whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:   0x5584442be6f0
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG:  using authentication agent for challenge
** (polkitd:3021): DEBUG: In authentication_agent_response for cookie '1-ebbaef2bbbfaad4cb2fa830eb00b90d9-6-73ab09217af65d5e037842aabdcb23d8' and identity unix-user:simon
** (polkitd:3021): DEBUG: Authentication complete, is_authenticated = 1
** (polkitd:3021): DEBUG: In check_authorization_challenge_cb
  subject                unix-process:1425:3574
  action_id              org.freedesktop.policykit.exec
  was_dismissed          0
  authentication_success 1

** (polkitd:3021): DEBUG: system-bus-name::1.172 is inquiring whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:  user of caller is unix-user:root
** (polkitd:3021): DEBUG:  user of subject is unix-user:simon
** (polkitd:3021): DEBUG: checking whether unix-process:1425:3574 is authorized for org.freedesktop.policykit.exec
** (polkitd:3021): DEBUG:   0x5584442ab010
** (polkitd:3021): DEBUG: Checking whether session c1 is active.
** (polkitd:3021): DEBUG: Session c1 has UID 1000.
** (polkitd:3021): DEBUG: UID 1000 has state active.
** (polkitd:3021): DEBUG:  subject is in session c1 (local=1 active=1)
** (polkitd:3021): DEBUG:  challenge (implicit_authorization = auth_admin)
** (polkitd:3021): DEBUG:  
** (polkitd:3021): DEBUG:  using authentication agent for challenge
** (polkitd:3021): DEBUG: In authentication_agent_response for cookie '1-ebbaef2bbbfaad4cb2fa830eb00b90d9-7-3782301c60953811cd3cfb37c6c16222' and identity unix-user:simon
** (polkitd:3021): DEBUG: Authentication complete, is_authenticated = 1
** (polkitd:3021): DEBUG: In check_authorization_challenge_cb
  subjec
** (polkitd:3021): WARNING **: Error parsing identity unix-group:admin: No UNIX group with name admin: Success
Error performing authentication: GDBus.Error:org.freedesktop.PolicyKit1.Error.Cancelled: Authentication dialog was dismissed by the user (polkit-error-quark 1)

Offline

#13 2016-10-21 17:44:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Does the /usr/share/polkit-1/actions/org.xfce.power.policy file still exist? Are its contents the same as the ones in post #6?

Also, did you re-install policykit-1 as per post #8?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#14 2016-10-21 21:06:49

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

It was the same yeah. I didn't reinstall polkit but have now. Both times I've done this i've had to use sudo - I assume this isn't indicative of a problem, but just in case. Restarting now.

Edit: no change. Man.... I'm surprised that this is so tough. Tempted to just purge it to get rid of the annoying boxes each time, though I imagine that means I have no power indicator or anything else...

Last edited by Sharky (2016-10-21 21:30:01)

Offline

#15 2016-10-23 00:12:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Can you post back the contents of these files:

- /etc/polkit-1/localauthority.conf.d/50-localauthority.conf 
- /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#16 2016-10-23 16:38:15

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

50:

# Configuration file for the PolicyKit Local Authority.
#
# DO NOT EDIT THIS FILE, it will be overwritten on update.
#
# See the pklocalauthority(8) man page for more information
# about configuring the Local Authority.
#

[Configuration]
AdminIdentities=unix-user:0

51:

[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin

Thanks mate!

Offline

#17 2016-10-23 21:37:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Something interesting:

In post #3, "xfce4-power-manager --dump" showed version 1.6.0, but in post #10, "apt-cache policy xfce4-power-manager" is showing 1.4.4 installed.

Can you confirm which version is installed? Run both commands again.
Did you manually or somehow else install version 1.6.0 of the power-manager at any time on this system?
What does this return?

locate xfce4-power-manager | grep bin

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#18 2016-10-23 22:43:57

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

You're a bloody genius. So yeah, related to my comment earlier about the power manager being a pain and not suspending, I tried to manually install a newer version of power manager to see if it fixed it. It didn't. But that might explain bits of different versions lying around my system. Brilliant deduction dude.

locate xfce4-power-manager | grep bin
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.1.gz
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.2.gz
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.3.gz
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.4.gz
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.5.gz
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.6.gz
/home/simon/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_xfce4-power-manager.1000.crash.log.7.gz
/usr/bin/xfce4-power-manager
/usr/bin/xfce4-power-manager-settings
/usr/local/bin/xfce4-power-manager
/usr/local/bin/xfce4-power-manager-settings

Here's v1.6:

xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.6.0
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True

Here's v1.4.4-4:

apt-cache policy xfce4-power-manager
xfce4-power-manager:
  Installed: 1.4.4-4ubuntu2
  Candidate: 1.4.4-4ubuntu2
  Version table:
 *** 1.4.4-4ubuntu2 500
        500 http://mirror.math.ucdavis.edu/ubuntu yakkety/universe amd64 Packages
        100 /var/lib/dpkg/status

So what do we think, can I somehow purge 1.4.4-4 and have everything 1.6? Or vice-versa?

Thank you so much for your continued persistence!

Offline

#19 2016-10-24 10:37:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

How did you install 1.6.0? Can you use the same method to uninstall?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#20 2016-10-26 00:59:42

Sharky
Member
Registered: 2014-08-16
Posts: 51

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Awesome. I installed (configure/autogen, make, make install) 1.6 to try to fix the hibernate bug, which it didn't. But I guess installing it this way didn't properly install it everywhere. Which may have been why it didn't fix the hibernate bug, but wonderfully not only did it not solve one problem, it later created another. Weird. Just did

sudo make uninstall

in the 1.6 folder in home, and restarted, and voila, sorted.
A thousand thank-yous. Please PM me your paypal address so I can send you some Molsons (or Kokanees)
edit: p.s. how can I mark this solved?

Last edited by Sharky (2016-10-26 01:00:36)

Offline

#21 2016-10-26 02:37:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Authentication needed to run xfpm-power-backlight-helper as super user

Glad to hear.

To mark this thread as solved, edit your first post and prepend [SOLVED] to the subject line.
As for the beers, buy yourself some Canadians and enjoy. I'll do the same.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 881.52 KiB (Peak: 958.37 KiB) ]