From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 80901] [NVCF] PWM fan speed too high
Date: Sat, 14 Mar 2015 10:53:43 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0343733306=="
Return-path:
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Sender: "Nouveau"
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
List-Id: nouveau.vger.kernel.org
--===============0343733306==
Content-Type: multipart/alternative; boundary="1426330423.fdFd53.9290"; charset="UTF-8"
--1426330423.fdFd53.9290
Date: Sat, 14 Mar 2015 10:53:43 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.freedesktop.org/show_bug.cgi?id=3D80901
--- Comment #46 from K.-P. Schrage ---
(In reply to poma from comment #45)
> And try this:
> /etc/systemd/system/gpu-fan.service=20
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [Unit]
> Description=3DGPU fan lower speed
>=20
> [Service]
> Type=3Doneshot
> ExecStart=3D/bin/sh -c '/bin/echo 1 >
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon1/pwm1_enabl=
e'
> ExecStart=3D/usr/local/bin/nvapoke e118 80000002
> StandardOutput=3Dnull
> StandardError=3Dnull
>=20
> [Install]
> WantedBy=3Dbasic.target
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> # systemctl enable gpu-fan.service
> # systemctl start gpu-fan.service
> # systemctl status gpu-fan.service
>=20
> If everything is OK:
> # systemctl reboot
> ...
>=20
> BOOT
> ...
> # systemctl status gpu-fan.service
After reboot:
[root@linux_keller kp]# systemctl status gpu-fan.service
=E2=97=8F gpu-fan.service - GPU fan lower speed
Loaded: loaded (/etc/systemd/system/gpu-fan.service; enabled)
Active: inactive (dead) since Sa 2015-03-14 11:40:03 CET; 33s ago
Process: 683 ExecStart=3D/usr/local/bin/nvapoke e118 80000002 (code=3Dexi=
ted,
status=3D0/SUCCESS)
Process: 672 ExecStart=3D/bin/sh -c /bin/echo 1 >
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon1/pwm1_enable
(code=3Dexited, status=3D0/SUCCESS)
Main PID: 683 (code=3Dexited, status=3D0/SUCCESS)
M=C3=A4r 14 11:40:03 linux_keller systemd[1]: Starting GPU fan lower speed.=
..
M=C3=A4r 14 11:40:03 linux_keller systemd[1]: Started GPU fan lower speed.
---------------
BUT: Fan speed is high, register e118 shows value 000000d8, not 00000002, as
expected. I have to restart the service manually to calm down the fan.
Let me be honest, poma: I am very grateful for all your help, but I think I=
'll
stick to the old-school method rc.local which seems to be rather
straightforward to me (although even that is now governed by systemd and no=
t so
old-school anymore).
--=20
You are receiving this mail because:
You are the assignee for the bug.
--1426330423.fdFd53.9290
Date: Sat, 14 Mar 2015 10:53:43 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Commen=
t # 46
on bug 80901<=
/a>
from =
K.-P. Schrage
(In reply to poma from comment #45)
> And try this:
> /etc/systemd/system/gpu-fan.service=20
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [Unit]
> Description=3DGPU fan lower speed
>=20
> [Service]
> Type=3Doneshot
> ExecStart=3D/bin/sh -c '/bin/echo 1 >
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon1/pwm1_en=
able'
> ExecStart=3D/usr/local/bin/nvapoke e118 80000002
> StandardOutput=3Dnull
> StandardError=3Dnull
>=20
> [Install]
> WantedBy=3Dbasic.target
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> # systemctl enable gpu-fan.service
> # systemctl start gpu-fan.service
> # systemctl status gpu-fan.service
>=20
> If everything is OK:
> # systemctl reboot
> ...
>=20
> BOOT
> ...
> # systemctl status gpu-fan.service
After reboot:
[root@linux_keller kp]# systemctl status gpu-fan.service
=E2=97=8F gpu-fan.service - GPU fan lower speed
Loaded: loaded (/etc/systemd/system/gpu-fan.service; enabled)
Active: inactive (dead) since Sa 2015-03-14 11:40:03 CET; 33s ago
Process: 683 ExecStart=3D/usr/local/bin/nvapoke e118 80000002 (code=3Dexi=
ted,
status=3D0/SUCCESS)
Process: 672 ExecStart=3D/bin/sh -c /bin/echo 1 >
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon1/pwm1_enable
(code=3Dexited, status=3D0/SUCCESS)
Main PID: 683 (code=3Dexited, status=3D0/SUCCESS)
M=C3=A4r 14 11:40:03 linux_keller systemd[1]: Starting GPU fan lower speed.=
..
M=C3=A4r 14 11:40:03 linux_keller systemd[1]: Started GPU fan lower speed.
---------------
BUT: Fan speed is high, register e118 shows value 000000d8, not 00000002, as
expected. I have to restart the service manually to calm down the fan.
Let me be honest, poma: I am very grateful for all your help, but I think I=
'll
stick to the old-school method rc.local which seems to be rather
straightforward to me (although even that is now governed by systemd and no=
t so
old-school anymore).
You are receiving this mail because:
=20=20=20=20=20=20
- You are the assignee for the bug.
--1426330423.fdFd53.9290--
--===============0343733306==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt
YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy
ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK
--===============0343733306==--