Solved KDE/Plasma5 power buttons MISSING!!!!

bullittman281

New Member


Messages: 18

Hello,
I'm running freebsd12 using slim to launch kDE/Plasma5 and the restart/shutdown buttons have vanished. If I log in as root (i know, don't) they are there so I'm guessing is a permission problem. It used to work until I updated freebsd and rebuilt the out of date ports. I think that's when it broke. The computer spends a majority of the time on so what clued me in was when the screen lock and blank screen stopped working. I have not checked that functionality with a root login. I've been searching the net for solutions and have tried a bunch of the policykit rules but I haven't been successful in fixing it. Its interesting because I don't recall those buttons ever not working. After a fresh install it all just works. I'd rather NOT have to reinstall to fix it. My login belongs to wheel and operator so I know its not that, or at least should not be that. Does anybody have advice on how to fix this??? Please help!!!

Thanks,
bullittman
 

malavon

Well-Known Member

Reaction score: 153
Messages: 251

If I'm correct this has to do with not running hald. Had it before myself and there's some information about it on the forum (too lazy to look for it myself).
Just add
Code:
hald_enable="YES"
to /etc/rc.conf or do a
sysrc hald_enable=YES
and restart.
 

shurik

Member

Reaction score: 6
Messages: 20

Check if your user is a member of group wheel and create /usr/local/etc/polkit-1/rules.d/40-wheel-group.rules with
Code:
polkit.addRule(function(action, subject) {
    if (subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});
 
OP
B

bullittman281

New Member


Messages: 18

Hello,
shurik, you've fixed it!!! I now have all the power buttons back. I'm mystified how it used to work and then stopped. Other than an update nothing changed. Or, if it required the policykit rule, why did it used to work??? Its all magic to me. I am curious how you and others know so much about how freebsed works. Is there a better methodology to figuring out problems than googling forums for answers? Somehow all of the experts on here know this stuff..... Anyway, thanks for your assistance. Same for all of the other replies with recommendations to try.

Bullittman
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,376
Messages: 33,972

I am curious how you and others know so much about how freebsd works. Is there a better methodology to figuring out problems than googling forums for answers? Somehow all of the experts on here know this stuff.....
Every expert was once a noob too. Nobody became an expert overnight. We have all spent countless hours trying to figure things out, just like you.
 
Top