You are not logged in.

#1 2017-10-31 01:52:00

nheolinkin
Member
Registered: 2017-04-25
Posts: 6

[SOLVED] Udev not triggered rule

Today, I add a rule to set cpu governor to "performance" in /etc/udev/rule.d/50-scaling-governor.rules like this

SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+=" /bin/sh -c ' echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor ' "
SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+=" /bin/sh -c ' echo performance > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor ' "
SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+=" /bin/sh -c ' echo performance > /sys/devices/system/cpu/cpufreq/policy2/scaling_governor ' "
SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+=" /bin/sh -c ' echo performance > /sys/devices/system/cpu/cpufreq/policy3/scaling_governor ' "

Following to #udev page, it's said that udev automatically detected changes to rules files, so changes took effect immediately without requiring udev to be restarted. But I still did a "system reboot"
After that, nothing changed

So I run this on terminal then reboot again:
sudo udevadm control --reload

But result is still the same.
Do I miss something here? I'm new to Arch btw.

Last edited by nheolinkin (2017-10-31 06:09:11)

Offline

#2 2017-10-31 02:52:15

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Udev not triggered rule

nheolinkin wrote:

After that, nothing changed

What did you expect to change exactly?

Are you sure you are not using intel_pstate?

Last edited by cfr (2017-10-31 02:52:52)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2017-10-31 03:20:20

nheolinkin
Member
Registered: 2017-04-25
Posts: 6

Re: [SOLVED] Udev not triggered rule

cfr wrote:
nheolinkin wrote:

After that, nothing changed

What did you expect to change exactly?

Are you sure you are not using intel_pstate?

No, it was my mistake. I'm using Intel processor so I changed the "KERNEL" option to "intel_pstate".
But it's still "powersave" governor both in /sys/device/system/cpu/cpufreq/policy*/scaling_governor and /sys/device/system/cpu/cpu*/cpufreq/scaling_governor

Offline

#4 2017-10-31 04:00:47

nheolinkin
Member
Registered: 2017-04-25
Posts: 6

Re: [SOLVED] Udev not triggered rule

Ok, so I decided to use "cpupower" instead to switch cpu governor. But if it's possible, allow me to keep this thread "NOT SOLVED" until there is a solution for #udev problem that I mentioned above.
Thank you!

Last edited by nheolinkin (2017-10-31 04:01:48)

Offline

#5 2017-10-31 04:02:56

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Udev not triggered rule

nheolinkin wrote:

But it's still "powersave" governor both in /sys/device/system/cpu/cpufreq/policy*/scaling_governor and /sys/device/system/cpu/cpu*/cpufreq/scaling_governor

https://wiki.archlinux.org/index.php/CP … ncy_driver

nheolinkin wrote:

Ok, so I decided to use "cpupower" instead to switch cpu governor.

The issue isn't udev or cpupower. You cannot control intel_pstate.  You could disable it, if you insisted, but that is not at all recommended. cpupower will tell you what the governor is doing, but you cannot control it. The most you can do is nudge it a little using 'bias' settings.

Last edited by cfr (2017-10-31 04:05:58)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2017-10-31 06:08:20

nheolinkin
Member
Registered: 2017-04-25
Posts: 6

Re: [SOLVED] Udev not triggered rule

cfr wrote:

The issue isn't udev or cpupower. You cannot control intel_pstate.  You could disable it, if you insisted, but that is not at all recommended. cpupower will tell you what the governor is doing, but you cannot control it. The most you can do is nudge it a little using 'bias' settings.

That makes sense
Thank you for that info. QUESTION ANSWERED.

Offline

Board footer

Powered by FluxBB