Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fan1: N/A
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ups
n00b
n00b


Joined: 06 Sep 2018
Posts: 12

PostPosted: Fri Sep 28, 2018 2:45 pm    Post subject: fan1: N/A Reply with quote

I'm trying to get manual control over my fan. it is working correctly, but I would like to tune it to tolerate higher temperature and be quiet more often.

I'm using lenovo ideapad-320, The 'sensors-detect' detected
Code:
Driver `k10temp' (built-in):
  * Chip `AMD Family 15h thermal sensors' (confidence: 9)

Additionally I added 'thinkpad_acpi' module and my current 'sensors' output looks the following:
Code:
thinkpad-isa-0000
Adapter: ISA adapter
fan1:           0 RPM

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +33.6°C  (high = +70.0°C)
                       (crit = +100.0°C, hyst = +99.0°C)

amdgpu-pci-0008
Adapter: PCI adapter
vddgfx:       +1.55 V 
vddnb:        +1.02 V 
fan1:             N/A
temp1:        +33.0°C  (crit =  +1.0°C, hyst = -273.1°C)
power1:           N/A 

ath10k_hwmon-pci-0100
Adapter: PCI adapter
temp1:        +85.0°C 

fam15h_power-pci-00c4
Adapter: PCI adapter
power1:       30.09 mW (avg =  33.54 mW, interval =   0.01 s)
                       (crit =  15.00 W)

As I've said fan is working, I can hear it, definitely should not be 0 RPM or Non/Available.
I've read that I need to enable pwm first, so I tried:
Code:
$ cat /sys/class/hwmon/hwmon0/pwm1
0
$ cat /sys/class/hwmon/hwmon0/pwm1_enable
0
$ echo 1 > /sys/class/hwmon/hwmon0/pwm1_enable
$ cat /sys/class/hwmon/hwmon0/pwm1_enable
0

So my question is why can't I enable pwm1? Do I need additional kernel settings?
Code:
$  grep '\(fan\|pwm\)=' /usr/src/linux/.config
CONFIG_ACPI_FAN=y
CONFIG_SENSORS_PWM_FAN=m
CONFIG_REGULATOR_PWM=m
CONFIG_GPD_POCKET_FAN=m
CONFIG_PWM=y

Also temperature parameters (crit = +1.0°C, hyst = -273.1°C) looks wrong, but that's minor issue.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1361

PostPosted: Fri Sep 28, 2018 8:44 pm    Post subject: Reply with quote

Hello ups,
I had a similar question recently.
If windows is still installed, check if the sensors are recognized by Win at all.

If they are detected by Windows, then add more information for us.
emerge --info
lspci -vk
dmesg
.config

Please use "app-text / wgetpaste".
Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
ups
n00b
n00b


Joined: 06 Sep 2018
Posts: 12

PostPosted: Fri Sep 28, 2018 10:22 pm    Post subject: Reply with quote

I saw that question, but buying new hardware is not good solution; I don't expect hardware problem, this is new laptop.
As you can see power1 is also N/A and clearly both fan and power is working, I'm just unable to get info/control them.

There is no windows on it, all I can say that ubuntu doesn't see fan either.

The .config parameters are actually what I'm asking for; I've tested many different settings, but nothing works so far (using kernel 4.18.10 currently).
And here is lspci output:
Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1576
   Subsystem: Lenovo Device 380c
   Flags: bus master, fast devsel, latency 0

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1577
   Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1577
   Flags: fast devsel, IRQ 24
   Capabilities: [40] Secure device <?>
   Capabilities: [64] MSI: Enable+ Count=1/4 Maskable- 64bit+
   Capabilities: [74] HyperTransport: MSI Mapping Enable+ Fixed+

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 98e4 (rev ea) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device 39f9
   Flags: bus master, fast devsel, latency 0, IRQ 29
   Memory at e0000000 (64-bit, prefetchable) [size=128M]
   Memory at e8000000 (64-bit, prefetchable) [size=8M]
   I/O ports at 2000 [size=256]
   Memory at e8e00000 (32-bit, non-prefetchable) [size=256K]
   Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: [48] Vendor Specific Information: Len=08 <?>
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
   Capabilities: [270] #19
   Capabilities: [2b0] Address Translation Service (ATS)
   Capabilities: [2c0] Page Request Interface (PRI)
   Capabilities: [2d0] Process Address Space ID (PASID)
   Kernel driver in use: amdgpu

00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15b3
   Subsystem: Lenovo Device 3806
   Flags: bus master, fast devsel, latency 0, IRQ 37
   Memory at e8e60000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [48] Vendor Specific Information: Len=08 <?>
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
   Kernel driver in use: snd_hda_intel

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b
   Flags: fast devsel

00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 26
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   I/O behind bridge: None
   Memory behind bridge: e8800000-e89fffff [size=2M]
   Prefetchable memory behind bridge: None
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Port (Slot+), MSI 00
   Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [c0] Subsystem: Lenovo Device 3816
   Capabilities: [c8] HyperTransport: MSI Mapping Enable+ Fixed+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
   Capabilities: [270] #19
   Kernel driver in use: pcieport

00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 27
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   I/O behind bridge: 00001000-00001fff [size=4K]
   Memory behind bridge: e8d00000-e8dfffff [size=1M]
   Prefetchable memory behind bridge: 00000000e8a00000-00000000e8afffff [size=1M]
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Port (Slot+), MSI 00
   Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [c0] Subsystem: Lenovo Device 3816
   Capabilities: [c8] HyperTransport: MSI Mapping Enable+ Fixed+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
   Capabilities: [270] #19
   Kernel driver in use: pcieport

00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b
   Flags: fast devsel

00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1578
   Subsystem: Lenovo Device 380b
   Flags: fast devsel, IRQ 255
   Memory at e8e40000 (64-bit, prefetchable) [disabled] [size=128K]
   Memory at e8c00000 (32-bit, non-prefetchable) [disabled] [size=1M]
   Memory at e8e6f000 (32-bit, non-prefetchable) [disabled] [size=4K]
   Memory at e8e6a000 (32-bit, non-prefetchable) [disabled] [size=8K]
   Capabilities: [50] MSI-X: Enable- Count=2 Masked-
   Capabilities: [5c] HyperTransport: MSI Mapping Enable+ Fixed+
   Capabilities: [60] Power Management version 3
   Capabilities: [a4] PCI Advanced Features

00:09.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157d
   Flags: fast devsel

00:09.2 Audio device: Advanced Micro Devices, Inc. [AMD] Device 157a
   Subsystem: Lenovo Device 380e
   Flags: bus master, fast devsel, latency 0, IRQ 38
   Memory at e8e64000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [60] Power Management version 3
   Capabilities: [a4] PCI Advanced Features
   Kernel driver in use: snd_hda_intel

00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 20) (prog-if 30 [XHCI])
   Subsystem: Lenovo FCH USB XHCI Controller
   Flags: bus master, fast devsel, latency 0, IRQ 18
   Memory at e8e68000 (64-bit, non-prefetchable) [size=8K]
   Capabilities: [50] Power Management version 3
   Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
   Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [100] Latency Tolerance Reporting
   Kernel driver in use: xhci_hcd

00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 4b) (prog-if 01 [AHCI 1.0])
   Subsystem: Lenovo FCH SATA Controller [AHCI mode]
   Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 30
   I/O ports at 2118 [size=8]
   I/O ports at 2124 [size=4]
   I/O ports at 2110 [size=8]
   I/O ports at 2120 [size=4]
   I/O ports at 2100 [size=16]
   Memory at e8e6c000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [60] Power Management version 3
   Capabilities: [70] SATA HBA v1.0
   Capabilities: [50] MSI: Enable+ Count=1/8 Maskable- 64bit+
   Kernel driver in use: ahci

00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 49) (prog-if 20 [EHCI])
   Subsystem: Lenovo FCH USB EHCI Controller
   Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
   Memory at e8e6d000 (32-bit, non-prefetchable) [size=256]
   Capabilities: [c0] Power Management version 2
   Capabilities: [e4] Debug port: BAR=1 offset=00e0
   Kernel driver in use: ehci-pci

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 4b)
   Subsystem: Lenovo FCH SMBus Controller
   Flags: 66MHz, medium devsel
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c_piix4

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
   Subsystem: Lenovo FCH LPC Bridge
   Flags: bus master, 66MHz, medium devsel, latency 0

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b0
   Flags: fast devsel

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b1
   Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b2
   Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b3
   Flags: fast devsel
   Capabilities: [f0] Secure device <?>
   Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b4
   Flags: fast devsel
   Kernel driver in use: fam15h_power

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b5
   Flags: fast devsel

01:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
   Subsystem: Lenovo QCA9377 802.11ac Wireless Network Adapter
   Flags: bus master, fast devsel, latency 0, IRQ 40
   Memory at e8800000 (64-bit, non-prefetchable) [size=2M]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable+ Count=1/8 Maskable+ 64bit-
   Capabilities: [70] Express Endpoint, MSI 00
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [148] Virtual Channel
   Capabilities: [168] Device Serial Number 00-00-00-00-00-00-00-00
   Capabilities: [178] Latency Tolerance Reporting
   Capabilities: [180] L1 PM Substates
   Kernel driver in use: ath10k_pci
   Kernel modules: ath10k_pci

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
   Subsystem: Lenovo RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
   Flags: bus master, fast devsel, latency 0, IRQ 32
   I/O ports at 1000 [size=256]
   Memory at e8d00000 (64-bit, non-prefetchable) [size=4K]
   Memory at e8a00000 (64-bit, prefetchable) [size=16K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Endpoint, MSI 01
   Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
   Capabilities: [d0] Vital Product Data
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Virtual Channel
   Capabilities: [160] Device Serial Number 01-00-00-00-36-4c-e0-00
   Capabilities: [170] Latency Tolerance Reporting
   Kernel driver in use: r8169


In the dmesg I see this
Code:
[78537.157466] amdgpu: [powerplay] pp_dpm_set_fan_control_mode was not implemented.
[78538.163516] amdgpu: [powerplay] pp_dpm_set_fan_control_mode was not implemented.
[78539.169197] amdgpu: [powerplay] pp_dpm_set_fan_control_mode was not implemented.
[78540.174839] amdgpu: [powerplay] pp_dpm_set_fan_control_mode was not implemented.

everytime I try
Code:
 echo 1 >/sys/class/hwmon/hwmon0/pwm1_enable


Last edited by ups on Fri Sep 28, 2018 10:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3485
Location: Dallas area

PostPosted: Fri Sep 28, 2018 10:27 pm    Post subject: Reply with quote

The fan might not be pwm-able.
Does the bios allow setting the fan speed at all, if not, it's probably locked at a certain speed.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
ups
n00b
n00b


Joined: 06 Sep 2018
Posts: 12

PostPosted: Fri Sep 28, 2018 10:46 pm    Post subject: Reply with quote

Anon-E-moose wrote:
The fan might not be pwm-able.
Does the bios allow setting the fan speed at all, if not, it's probably locked at a certain speed.

No, there are not any bios options for fan or power.
But it is not set to constant value either - I can hear its speed depends on cpu load.
Is bios settings necessary for chip to be controlled or at least return its information?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3485
Location: Dallas area

PostPosted: Fri Sep 28, 2018 10:51 pm    Post subject: Reply with quote

bios setting doesn't necessarily mean that the fan can be controlled, it's just one indicator.

I would imagine that there's some type of temp controlling mechanism for the fan, it get hot it runs faster, it cools down it slows down.
But that's kind of what the fan controlling portion of lm-sensors does anyway.

It's probably not set up to send out what rpm's the fan is running at, no need really if it's got its own controller.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1361

PostPosted: Sat Sep 29, 2018 12:13 am    Post subject: Reply with quote

ups wrote:
...this is new laptop.


Are you sure you have the latest firmware installed?
Motherboard, discs, wi-fi, audio and so on.
(Only updating the BIOS is not enough.)
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
ups
n00b
n00b


Joined: 06 Sep 2018
Posts: 12

PostPosted: Sat Sep 29, 2018 2:35 am    Post subject: Reply with quote

Marlo wrote:
ups wrote:
...this is new laptop.


Are you sure you have the latest firmware installed?
Motherboard, discs, wi-fi, audio and so on.
(Only updating the BIOS is not enough.)

That's good point, my bios is old, just checked there is new one available.
Update is prepared for windows(obviously), so some tweaking is needed, I will report later.
Back to top
View user's profile Send private message
ups
n00b
n00b


Joined: 06 Sep 2018
Posts: 12

PostPosted: Fri Oct 05, 2018 3:42 pm    Post subject: Reply with quote

ups wrote:
Marlo wrote:
ups wrote:
...this is new laptop.


Are you sure you have the latest firmware installed?
Motherboard, discs, wi-fi, audio and so on.
(Only updating the BIOS is not enough.)

That's good point, my bios is old, just checked there is new one available.
Update is prepared for windows(obviously), so some tweaking is needed, I will report later.

So I updated BIOS, lenovo gave only *.exe file as graphical app for windows, so it took me awhile.
In the process I installed windows 7, and to my surprise it recognized way less devices than linux, e.g. usb3 is not working. Fan doesn't show up either.
Unfortunately under linux fan still give N/A. Have no idea how to update other firmware - lenovo prepared only bios update for my laptop.
Perhaps this fan/motherboard just cannot be configured from the OS level.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum