View previous topic :: View next topic |
Author |
Message |
Fitap Guru
Joined: 13 Mar 2011 Posts: 437 Location: Rosario, Argentina
|
Posted: Fri Sep 02, 2022 12:54 pm Post subject: KDE pressing buttom event doesn't work. |
|
|
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 |
|
|
etc404 n00b
Joined: 14 Sep 2022 Posts: 7 Location: New Mexico, USA
|
Posted: Wed Sep 14, 2022 11:09 pm Post subject: |
|
|
This is likely due to a permissions error. If you were to type 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 |
|
|
etc404 n00b
Joined: 14 Sep 2022 Posts: 7 Location: New Mexico, USA
|
Posted: Wed Sep 14, 2022 11:51 pm Post subject: |
|
|
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 |
|
|
Fitap Guru
Joined: 13 Mar 2011 Posts: 437 Location: Rosario, Argentina
|
Posted: Tue Sep 20, 2022 1:00 am Post subject: |
|
|
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 |
|
|
|