sudo apt install tdepowersave-trinity
Once installed you should have an icon in your system tray which will likely look like an electrical plug, you can right click it and select from the options there to configure it to your liking.
]]>Thank You
]]>