jcdole
October 9, 2014, 9:22pm
1
Hello.
I try to control fan speed via nouveau driver.
find /sys -name pwm1_enable return :
/sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/hwmon/hwmon0/pwm1_enable
readlink /sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/driver return :
../../../../bus/pci/drivers/nouveau
Data from /sys/class/hwmon/hwmon0 show :
./name : nouveau
./pwm1 : 100
./pwm1_enable : 0
./pwm1_max : 100
./pwm1_min : 0
./uevent :
./update_rate : 1000
Following this paragraph “Fan Control” from https://wiki.archlinux.org/index.php/Nouveau I try to set pwm1_enable parameter to 1 (manual settings); and then set fan speed to 30% by issuing the following command :
echo 30 > /sys/class/hwmon/hwmon0/pwm1
but get the following error
bash: echo: write error: Operation not permitted
Any help is welcome.
since you did not provide the full line it is not possible to know if you did the command as user or root???
jcdole:
Hello.
I try to control fan speed via nouveau driver.
find /sys -name pwm1_enable return
readlink /sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/driver return
Any help is welcome.
Those command really works for you?
hcvv
October 10, 2014, 9:12am
4
Please always post complete: prompt, command, output, next prompt. I little larger move with the mouse and such much more information for those who try to help you.
jcdole
October 10, 2014, 5:49pm
5
Sorry yes I did ( by typing the command in konsole in super user mode)
linux-rgbr:~ # find /sys -name pwm1_enable
/sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/hwmon/hwmon0/pwm1_enable
linux-rgbr:~ # readlink /sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/driver
../../../../bus/pci/drivers/nouveau
linux-rgbr:~ # echo 30 > /sys/class/hwmon/hwmon0/pwm1
-bash: echo: write error: Operation not permitted
linux-rgbr:~ #
jcdole
October 10, 2014, 5:52pm
6
I don’t n know
.
But should : Following this paragraph “Fan Control” from Nouveau - ArchWiki
hcvv
October 10, 2014, 6:00pm
7
It might sound stupid. but the first thing I always do in such a case is checking the permissions:
ls -ls /sys/class/hwmon/hwmon0/pwm1
jcdole
October 10, 2014, 6:55pm
8
linux-rgbr:~ # ls -ls /sys/class/hwmon/hwmon0/pwm1
0 -rw-r–r-- 1 root root 4096 Oct 10 18:51 /sys/class/hwmon/hwmon0/pwm1
linux-rgbr:~ # ls -ls /sys/class/hwmon/hwmon0/pwm1_enable
0 -rw-r–r-- 1 root root 4096 Oct 10 18:14 /sys/class/hwmon/hwmon0/pwm1_enable
linux-rgbr:~ #
hcvv
October 10, 2014, 7:31pm
9
Looks as if root has w access, but I do not know what the 0 type is???
BTW, where are your CODE tags
jcdole
October 10, 2014, 11:00pm
10
Here is journalctl ( nouveau part only )
http://paste.opensuse.org/56660361
and Xorg.0.log
http://paste.opensuse.org/52529502
/etc/X11/xorg.conf.d is not in use for graphic conf.
/etc/X11/xorg.conf : http://paste.opensuse.org/26692869
If that could help.
jcdole
October 27, 2014, 2:45pm
11
I am surprised that it is possible on ArchLinux and not on opensuse.
Any help is welcome
Tyler_K
October 27, 2014, 7:00pm
12
run “uname -r” on your Arch install, then read the kernel commits that occurred, for the nouveau DRM, between the 3.11 openSUSE kernel and that arch kernel you’re running, and i imagine you’ll find the answer
jcdole
December 6, 2014, 8:02pm
13
Tyler_K:
run “uname -r” on your Arch install, then read the kernel commits that occurred, for the nouveau DRM, between the 3.11 openSUSE kernel and that arch kernel you’re running, and i imagine you’ll find the answer
I am not running Arch linux. As said in the title, I am running opensuse 13.1.
So my question is still : Why I am unable to command fan speed with opensuse “nouveau” driver.
By the way :
uname -r
3.11.10-21-desktop
and
rpm -qa | grep nouveau
libdrm_nouveau2-32bit-2.4.46-3.2.2.x86_64
libdrm_nouveau2-2.4.46-3.2.2.x86_64
xorg-x11-driver-video-nouveau-1.0.9-3.1.2.x86_64