On Fri, 30 Sep 2016 15:04, Anton Aylward wrote:
On 09/30/2016 03:50 AM, Per Jessen wrote:
Hans de Faber wrote:
Using: Leap 42.1
At the end or somewhere else in the bootproces I want to run the command " cpupower frequency-set -g performance".
What is the right method and place to do this ? [snip] HOWEVER ...
If you run systemctl list-units -t service you will see an entry for upower.service which is the daemon for power management. perhaps you need to communicate with that.
I'd certainly make your custom unit dependent on that!
Systemd and the unit model offer a great deal of flexibility about all this. it just requires more forethought, consideration of actions and consequences and planning than the old script based approach. That's often the price you pay for more power.
TBH, "upower" is only usefull with a desktop session. Trying to use it within a "server" envionment leads to frustration. If you try to get a working environment for a specific service / deamon, do a two step: 1. create a custom .service file in /etc/systemd/ with the wanted power cmd. 2. create and a snippet-file in /etc/systemd/<your-deamon>.service.d/[snippet-name].conf to include a added Wants=[your-custom-power-mod].service into the .service of your deamon [newer systemctl versions support the "edit" command, native Leap 42.1 does not] Infos: man systemd.unit man systemd.service https://www.suse.com/documentation/sled-12/book_sle_admin/data/sec_boot_syst... Examples: http://www.wilderssecurity.com/threads/modifying-systemd-unit-files.377427/ Uncle Google Search: systemd edit service.d drop-in YMMV. - Yamaban -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org