Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE pressing buttom event doesn't work.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Fitap
Guru
Guru


Joined: 13 Mar 2011
Posts: 437
Location: Rosario, Argentina

PostPosted: Fri Sep 02, 2022 12:54 pm    Post subject: KDE pressing buttom event doesn't work. Reply with quote

I have configured the power button to turn off in the power states. On battery, on low battery and on AC power but doesn't work.

Where sould I check?

Regards.
Back to top
View user's profile Send private message
etc404
n00b
n00b


Joined: 14 Sep 2022
Posts: 7
Location: New Mexico, USA

PostPosted: Wed Sep 14, 2022 11:09 pm    Post subject: Reply with quote

This is likely due to a permissions error. If you were to type
Code:
shutdown now
in a terminal, does it say something about not being root? If so, I would try adding the following lines to your /etc/sudoers file:
Code:
<your username> ALL=(root) NOPASSWD: /sbin/shutdown

and if you would like to use reboot, poweroff, and halt:
Code:
<your username> ALL=(root) NOPASSWD: /sbin/reboot
<your username> ALL=(root) NOPASSWD: /sbin/poweroff
<your username> ALL=(root) NOPASSWD: /sbin/halt


I would recommend then adding an alias along the lines of
Code:
alias shutdown="sudo shutdown now"


Hope this helps!
Back to top
View user's profile Send private message
etc404
n00b
n00b


Joined: 14 Sep 2022
Posts: 7
Location: New Mexico, USA

PostPosted: Wed Sep 14, 2022 11:51 pm    Post subject: Reply with quote

Scratch that, my apologies, I was working on an assumption that may not apply to your system. More importantly, have you made sure you've installed the packages kde-plasma/powerdevel and sys-power/upower?
Back to top
View user's profile Send private message
Fitap
Guru
Guru


Joined: 13 Mar 2011
Posts: 437
Location: Rosario, Argentina

PostPosted: Tue Sep 20, 2022 1:00 am    Post subject: Reply with quote

Thanks for response etc404, I've been bussy in this days.

I've already installed kde-plasma/powerdevil and sys-power/upower

May be is about with this new laptop, no one other notebook either desktop I had this issue.

Regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum