Polkit isues/ problems [Solved]

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Polkit isues/ problems [Solved]

#1 Post by manyroads »

I am running MX19 with bspwm, openbox as well as xfce4; none of gnome, mate or lxpolkit function with either openbox or bspwm. On the same setup each work just fine with xfce4.

Code: Select all

System:    Host: mark-latitude Kernel: 5.4.7-antix.1-amd64-smp x86_64 bits: 64 
           Desktop: bspwm 0.9.9 Distro: MX-19_x64 patito feo October 21  2019 
Machine:   Type: Laptop System: Dell product: Latitude E5470 v: N/A 
           serial: <root required> 
           Mobo: Dell model: N/A serial: <root required> UEFI [Legacy]: Dell v: 1.21.6 
           date: 10/02/2019 
Battery:   ID-1: BAT0 charge: 38.8 Wh condition: 43.4/62.0 Wh (70%) 
CPU:       Topology: Dual Core model: Intel Core i5-6300U bits: 64 type: MT MCP 
           L2 cache: 3072 KiB 
           Speed: 2800 MHz min/max: 400/3000 MHz Core speeds (MHz): 1: 2800 2: 2800 
           3: 2800 4: 2800 
Graphics:  Device-1: Intel HD Graphics 520 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) 
           v: 4.5 Mesa 18.3.6 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k5.4.7-antix.1-amd64-smp 
Network:   Device-1: Intel Ethernet I219-LM driver: e1000e 
           IF: eth0 state: down mac: 84:7b:eb:44:da:5d 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
           driver: ath10k_pci 
           IF: wlan0 state: up mac: 68:14:01:57:3d:df 
           Device-3: Qualcomm Atheros type: USB driver: btusb 
Drives:    Local Storage: total: 1008.18 GiB used: 475.02 GiB (47.1%) 
           ID-1: /dev/mmcblk0 model: SD32G size: 30.09 GiB 
           ID-2: /dev/sda vendor: Crucial model: CT1050MX300SSD4 size: 978.09 GiB 
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
Partition: ID-1: / size: 952.83 GiB used: 475.02 GiB (49.9%) fs: ext4 dev: /dev/sda1 
           ID-2: swap-1 size: 9.81 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 54.5 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2533 
Info:      Processes: 181 Uptime: 1h 26m Memory: 23.17 GiB used: 1.40 GiB (6.0%) 
           Shell: bash inxi: 3.0.36 
mark@mark-latitude:~
This same situation exists on a mirror PC.

I have tried all manner of Debian, arch and gentoo guidance (that I could find). I am looking for ideas and clues as to what I might need to do to get things kick started.

Thanks!
Last edited by manyroads on Sat Jan 25, 2020 11:15 am, edited 1 time in total.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Polkit isues/ problems

#2 Post by KoO »

I add this line to i3 config (exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1) password dialog works just fine for me. Have no idea about openbox nor bspwm. Don't use them.
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Polkit isues/ problems

#3 Post by Head_on_a_Stick »

Other graphical polkit authentication agents are available: https://wiki.archlinux.org/index.php/Po ... ion_agents
mod note: Signature removed, please read the forum rules

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Polkit isues/ problems

#4 Post by manyroads »

I have tried several of the agents listed on arch with no success, Matthew. I'll try others. The authorization (pkexec) works fine on xfce4 in the same user account with xfce (but not bspwm, OB) on Debian; and the entire shooting match works fine (all DEs and WMs) on arch (manjaro) with gnome-polkit.

Very strange.... :eek:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Polkit isues/ problems

#5 Post by manyroads »

I ran further tests... lxpolkit & works on hlwm as well.

On bspwm when I run pkexec-synaptic via cli I get:

Code: Select all

polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
I'll look to see what that might mean... :bagoverhead:

Initial examination looks like I may need to run systemd in order for polkit to work. I'm on my way to a test. :crossfingers:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Polkit isues/ problems

#6 Post by Head_on_a_Stick »

manyroads wrote: Sat Jan 25, 2020 8:28 am I have tried several of the agents listed on arch with no success
Oh, sorry, I must have missed that in the OP :p

And what does "tried" mean, exactly? How are you attempting to autostart the agent?
mod note: Signature removed, please read the forum rules

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Polkit isues/ problems

#7 Post by manyroads »

Generally (for hlwm, bspwm, OB) I use autostart (or equivalent file).... the complicated command for lxpolkit:

Code: Select all

lxpolkit &
:bagoverhead:

It seems that I may have encountered a systemd 'shim' problem. Systemd fails to boot at all. I have to rebuild that machine due to its catastrophic failure. I'm running on unit two (my duplicate) right now while Luckybackup restores 600GB of data.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Polkit isues/ problems

#8 Post by Head_on_a_Stick »

manyroads wrote: Sat Jan 25, 2020 9:18 am the complicated command for lxpolkit
My word, that must have taken some Googling to find :-)

But seriously, the polkit-1-gnome package (which is already installed in a stock MX system) has a .desktop file in /etc/xdg/autostart so it might conflict with lxpolkit unless you've either removed it or disabled the autostart (or if you're running bspwm with startx from a ~/.xinitrc file that doesn't autostart polkit-gnome-authentication-agent-1).

And reinstalling because of a minor problem isn't really cricket (IMO): what does "failed to boot" mean, exactly? What do you see? Trobleshooting ftw!
mod note: Signature removed, please read the forum rules

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Polkit isues/ problems

#9 Post by manyroads »

Head_on_a_Stick wrote: Sat Jan 25, 2020 9:37 am
manyroads wrote: Sat Jan 25, 2020 9:18 am the complicated command for lxpolkit
My word, that must have taken some Googling to find :-)

But seriously, the polkit-1-gnome package (which is already installed in a stock MX system) has a .desktop file in /etc/xdg/autostart so it might conflict with lxpolkit unless you've either removed it or disabled the autostart (or if you're running bspwm with startx from a ~/.xinitrc file that doesn't autostart polkit-gnome-authentication-agent-1).

And reinstalling because of a minor problem isn't really cricket (IMO): what does "failed to boot" mean, exactly? What do you see? Trobleshooting ftw!
I agree... but a complete crash is what I got (one of the best I've seen in several years). I was unable to login via cli... I was unable to use any mode to normally boot. Since it only takes me 10 minutes to rebuild my entire system, and 2 hours for my data download, I chose that route. I just took the path of least resistance (work). After all what is a backup good for if you don't use it and test it every now and again. :lipsrsealed: I'm old and lazy, what can I say. :eek:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Polkit isues/ problems

#10 Post by manyroads »

Here are the full suite of polkit commands I have tried....

Code: Select all

############# policykit #############
#/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
#lxpolkit &
#/usr/lib/mate-polkit/polkit-mate-authentication-agent-1
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

Post Reply

Return to “Bugs and Non-Package Requests Forum”