You are not logged in.

#1 2021-09-13 02:03:56

Wyboss
Member
Registered: 2021-06-18
Posts: 4

Attempting to change fan policy on Asus laptop permission denied

I own a ROG Zephyrus GX501G, and have been noticing some thermal issues with my computer.
When I checked wiki for fan control, I noticed that my model of laptop has 3 modes of cooling, 0 (medium cooling aggression), 1 (high cooling aggression), and 2 (silent, minimal cooling aggression)
I ran the command 

  cat /sys/devices/platform/asus-nb-wmi/fan_boost_mode 

and got an output of 0.
The way the wiki said you change this on linux is by running the command

echo 1 > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon5/throttle_thermal_policy

but whenever I run this it says

bash: /sys/devices/platform/asus-nb-wmi/hwmon/hwmon5/throttle_thermal_policy: Permission denied

I ran the command as root by running my terminal as sudo, but even then permission was denied.
I also tried running

echo 1 > /sys/devices/platform/asus-nb-wmi/fan-boost-mode

which returned the same error.
I also tried to manually modify the fan_boost_mode text file with the number in it located in /sys/devices/platform/asus-nb-wmi/, but that gave me another set of errors:

The document could not be saved, as it was not possible to write to /sys/devices/platform/asus-nb-wmi/fan_boost_mode.
Check that you have write access to this file or that enough disk space is available.
The original file may be lost or damaged. Don't quit the application until the file is successfully written.

I use the latest version of arch linux, with KDE plasma and kitty as my terminal. Does anyone know how to fix/bypass this issue so I can keep my CPU at an acceptable temp?
Link to arch wiki info I was using: https://wiki.archlinux.org/title/fan_sp … US_laptops

Last edited by Wyboss (2021-09-13 02:07:46)

Offline

#2 2021-09-13 02:24:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Attempting to change fan policy on Asus laptop permission denied

Wyboss wrote:

I ran the command as root by running my terminal as sudo, but even then permission was denied.

sudo works for the invoked process (echo), not the shell's redirection. You need to be root.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-09-13 02:43:11

Wyboss
Member
Registered: 2021-06-18
Posts: 4

Re: Attempting to change fan policy on Asus laptop permission denied

jasonwryan wrote:
Wyboss wrote:

I ran the command as root by running my terminal as sudo, but even then permission was denied.

sudo works for the invoked process (echo), not the shell's redirection. You need to be root.

I tried running it as root, same error

Offline

#4 2021-09-13 02:44:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Attempting to change fan policy on Asus laptop permission denied

Post the exact sequence of commands and the full output. Also, paste the permissions on the file.
See: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2021-09-13 02:51:20

Wyboss
Member
Registered: 2021-06-18
Posts: 4

Re: Attempting to change fan policy on Asus laptop permission denied

jasonwryan wrote:

Post the exact sequence of commands and the full output. Also, paste the permissions on the file.
See: https://bbs.archlinux.org/viewtopic.php?id=57855

[root@wybpc wyboss]# su
[root@wybpc wyboss]# echo 1 > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon5/throttle_thermal_policy
bash: /sys/devices/platform/asus-nb-wmi/hwmon/hwmon5/throttle_thermal_policy: Permission denied

I also tried

[wyboss@wybpc ~]$ sudo su
[sudo] password for wyboss:
[root@wybpc wyboss]# echo 1 > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon5/throttle_thermal_policy
bash: /sys/devices/platform/asus-nb-wmi/hwmon/hwmon5/throttle_thermal_policy: Permission denied
[root@wybpc wyboss]#

does this help?
File permissions are

[wyboss@wybpc asus-nb-wmi]$ ls -l /sys/devices/platform/asus-nb-wmi/fan_boost_mode
-rw-r--r-- 1 root root 4096 Sep 12 19:53 /sys/devices/platform/asus-nb-wmi/fan_boost_mode

Last edited by Wyboss (2021-09-13 02:56:09)

Offline

#6 2021-09-29 21:05:29

baszdmeg
Member
Registered: 2021-09-29
Posts: 2

Re: Attempting to change fan policy on Asus laptop permission denied

On my Strix GL504GM I do the following to change fan modes.

sudo bash -c "echo 1 > /sys/devices/platform/asus-nb-wmi/fan_boost_mode"

Last edited by baszdmeg (2021-09-29 21:15:50)

Offline

#7 2021-09-29 22:25:39

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 442

Re: Attempting to change fan policy on Asus laptop permission denied

Try with tee as root.

If that doesn't work, that might mean that the sys file is not supposed to be written.

Last edited by icar (2021-09-29 22:27:22)

Offline

#8 2021-12-03 19:55:46

mixahlos
Member
Registered: 2021-12-03
Posts: 1

Re: Attempting to change fan policy on Asus laptop permission denied

I think you need mod probe to do this

Try :

sudo modprobe asus-nb-wmi throttle_thermal_policy 1

Offline

Board footer

Powered by FluxBB