Thelio constant fan noise (working great with PopOS)

Hello!

I just got a thelia for system76 and obviously I have installed straight away NixOS. (conf: dotfiles/nixos/machines/thelio at master · gianarb/dotfiles · GitHub)
Now the problem is, the fan is noisy all the time and it is driving me a bit crazy. I had the time to boot PopOS from live usb and everything is silent and great! I want that!!

I had a look at what PopOS runs and I was not really capable of figuring out something obvious. I saw they have installed upower, so I did the same, but it didn’t change anything. The nvidia GPU driver are installed in NixOS as well and the settings looks the same.

I exported an lsmod from both system and PopOS has way fewer modules, but I can’t really identify how to match them and if it will help to solve my issue.

I am open for ideas!

lsmod from popos

Module                  Size  Used by
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq                81920  7 snd_seq_dummy
isofs                  45056  0
cdrom                  61440  1 isofs
rfcomm                 77824  16
nf_conntrack_netlink    53248  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              45056  1
xfrm_algo              16384  1 xfrm_user
xt_addrtype            16384  2
br_netfilter           32768  0
overlay               135168  0
xt_mark                16384  6
xt_MASQUERADE          20480  3
xt_comment             16384  0
af_packet              53248  12
ip6table_nat           16384  1
iptable_nat            16384  1
nf_nat                 45056  3 ip6table_nat,iptable_nat,xt_MASQUERADE
xt_conntrack           16384  3
nf_conntrack          143360  4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
cmac                   16384  3
ip6t_rpfilter          16384  1
ipt_rpfilter           16384  1
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 24576  6 algif_hash,algif_skcipher
ip6table_raw           16384  1
bnep                   24576  2
iptable_raw            16384  1
xt_pkttype             16384  2
nf_log_ipv6            16384  1
nf_log_ipv4            16384  1
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
xt_LOG                 20480  2
8021q                  28672  0
msr                    16384  0
xt_tcpudp              20480  9
ip6table_filter        16384  1
ip6_tables             32768  5 ip6table_filter,ip6table_raw,ip6table_nat
iptable_filter         16384  1
sch_fq_codel           20480  5
uinput                 20480  0
i8042                  28672  0
nvidia_uvm           1130496  0
ctr                    16384  0
atkbd                  32768  0
libps2                 20480  1 atkbd
serio                  24576  2 atkbd,i8042
iwlmvm                380928  0
snd_hda_codec_realtek   135168  1
nvidia_drm             57344  6
nvidia_modeset       1179648  9 nvidia_drm
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
mac80211              819200  1 iwlmvm
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec_hdmi     69632  1
libarc4                16384  1 mac80211
eeepc_wmi              16384  0
rndis_wlan             61440  0
asus_wmi               40960  1 eeepc_wmi
snd_hda_intel          49152  2
battery                20480  1 asus_wmi
rndis_host             20480  1 rndis_wlan
cdc_ether              24576  1 rndis_host
snd_intel_dspcfg       28672  1 snd_hda_intel
sparse_keymap          16384  1 asus_wmi
video                  49152  1 asus_wmi
wmi_bmof               16384  0
mxm_wmi                16384  0
iwlwifi               348160  1 iwlmvm
snd_usb_audio         270336  1
uvcvideo              110592  0
btusb                  61440  0
snd_hda_codec         135168  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
usbnet                 40960  3 rndis_wlan,rndis_host,cdc_ether
btrtl                  24576  1 btusb
btbcm                  16384  1 btusb
amd64_edac_mod         32768  0
nls_iso8859_1          16384  1
btintel                28672  1 btusb
videobuf2_vmalloc      20480  1 uvcvideo
nls_cp437              20480  1
videobuf2_memops       20480  1 videobuf2_vmalloc
snd_usbmidi_lib        36864  1 snd_usb_audio
edac_mce_amd           32768  1 amd64_edac_mod
snd_hda_core           86016  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
ti_usb_3410_5052       36864  0
videobuf2_v4l2         28672  1 uvcvideo
vfat                   20480  1
snd_rawmidi            40960  1 snd_usbmidi_lib
bluetooth             614400  45 btrtl,btintel,btbcm,bnep,btusb,rfcomm
nvidia              35176448  414 nvidia_uvm,nvidia_modeset
videobuf2_common       53248  2 videobuf2_v4l2,uvcvideo
fat                    81920  1 vfat
edac_core              57344  2 amd64_edac_mod
cfg80211              831488  4 rndis_wlan,iwlmvm,iwlwifi,mac80211
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_seq_device         16384  2 snd_seq,snd_rawmidi
crc32_pclmul           16384  0
sp5100_tco             20480  0
deflate                16384  1
igb                   245760  0
usbserial              53248  1 ti_usb_3410_5052
ecdh_generic           16384  2 bluetooth
ghash_clmulni_intel    16384  0
snd_pcm               114688  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
drm_kms_helper        212992  1 nvidia_drm
videodev              249856  3 videobuf2_v4l2,uvcvideo,videobuf2_common
snd_timer              36864  3 snd_seq,snd_hrtimer,snd_pcm
ptp                    28672  1 igb
snd                    90112  21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
r8169                 102400  0
pps_core               24576  1 ptp
dca                    16384  1 igb
fb_sys_fops            16384  1 drm_kms_helper
joydev                 28672  0
mii                    16384  1 usbnet
syscopyarea            16384  1 drm_kms_helper
mousedev               24576  0
evdev                  24576  35
watchdog               24576  1 sp5100_tco
mc                     53248  5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
ecc                    32768  1 ecdh_generic
realtek                24576  1
mac_hid                16384  0
mdio_devres            16384  1 r8169
uas                    32768  0
efi_pstore             16384  0
i2c_piix4              28672  0
system76_io            16384  0
k10temp                16384  0
sysfillrect            16384  1 drm_kms_helper
rapl                   16384  0
libphy                102400  3 r8169,mdio_devres,realtek
soundcore              16384  1 snd
rfkill                 24576  8 asus_wmi,bluetooth,cfg80211
i2c_algo_bit           16384  1 igb
sysimgblt              16384  1 drm_kms_helper
tiny_power_button      16384  0
wmi                    28672  3 asus_wmi,wmi_bmof,mxm_wmi
pinctrl_amd            32768  0
button                 24576  0
acpi_cpufreq           28672  0
loop                   36864  0
cpufreq_powersave      20480  32
tun                    53248  2
tap                    28672  0
macvlan                28672  0
veth                   32768  0
bridge                241664  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
kvm_amd                98304  0
kvm                   794624  1 kvm_amd
drm                   512000  10 drm_kms_helper,nvidia,nvidia_drm
irqbypass              16384  1 kvm
agpgart                40960  1 drm
backlight              20480  3 video,asus_wmi,drm
fuse                  135168  1
i2c_core               86016  7 videodev,drm_kms_helper,i2c_algo_bit,igb,nvidia,i2c_piix4,drm
pstore                 28672  2 efi_pstore
configfs               49152  1
efivarfs               16384  1
ip_tables              28672  4 iptable_filter,iptable_raw,iptable_nat
x_tables               40960  16 ip6table_filter,xt_conntrack,ip6table_raw,iptable_filter,ip6t_rpfilter,xt_LOG,xt_tcpudp,xt_addrtype,xt_comment,ip6_tables,ipt_rpfilter,xt_pkttype,iptable_raw,ip_tables,xt_MASQUERADE,xt_mark
autofs4                49152  0
ext4                  819200  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  126976  1 ext4
dm_crypt               49152  1
cbc                    16384  0
encrypted_keys         24576  1 dm_crypt
trusted                32768  1 encrypted_keys
tpm                    65536  1 trusted
rng_core               16384  1 tpm
sd_mod                 53248  0
usb_storage            73728  1 uas
input_leds             16384  0
led_class              20480  4 snd_hda_codec_generic,input_leds,iwlmvm,asus_wmi
hid_generic            16384  0
usbhid                 57344  0
hid                   135168  2 usbhid,hid_generic
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci
ahci                   40960  0
xhci_hcd              266240  1 xhci_pci
libahci                36864  1 ahci
libata                249856  2 libahci,ahci
nvme                   45056  2
crc32c_intel           24576  3
usbcore               278528  16 usbserial,rndis_wlan,xhci_hcd,usbnet,ti_usb_3410_5052,snd_usb_audio,usbhid,snd_usbmidi_lib,usb_storage,rndis_host,uvcvideo,system76_io,btusb,xhci_pci,cdc_ether,uas
aesni_intel           368640  6
scsi_mod              229376  4 sd_mod,usb_storage,uas,libata
nvme_core             106496  4 nvme
libaes                 16384  2 bluetooth,aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 20480  4 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
t10_pi                 16384  2 sd_mod,nvme_core
crc_t10dif             20480  1 t10_pi
crct10dif_generic      16384  0
crct10dif_pclmul       16384  1
usb_common             16384  3 xhci_hcd,usbcore,uvcvideo
crct10dif_common       16384  3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
rtc_cmos               28672  1
dm_snapshot            53248  0
dm_bufio               28672  1 dm_snapshot
dm_mod                139264  11 dm_crypt,dm_snapshot,dm_bufio

lsmod from NixOS

Module                  Size  Used by
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq                81920  7 snd_seq_dummy
isofs                  45056  0
cdrom                  61440  1 isofs
rfcomm                 77824  16
nf_conntrack_netlink    53248  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              45056  1
xfrm_algo              16384  1 xfrm_user
xt_addrtype            16384  2
br_netfilter           32768  0
overlay               135168  0
xt_mark                16384  6
xt_MASQUERADE          20480  3
xt_comment             16384  0
af_packet              53248  12
ip6table_nat           16384  1
iptable_nat            16384  1
nf_nat                 45056  3 ip6table_nat,iptable_nat,xt_MASQUERADE
xt_conntrack           16384  3
nf_conntrack          143360  4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
cmac                   16384  3
ip6t_rpfilter          16384  1
ipt_rpfilter           16384  1
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 24576  6 algif_hash,algif_skcipher
ip6table_raw           16384  1
bnep                   24576  2
iptable_raw            16384  1
xt_pkttype             16384  2
nf_log_ipv6            16384  1
nf_log_ipv4            16384  1
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
xt_LOG                 20480  2
8021q                  28672  0
msr                    16384  0
xt_tcpudp              20480  9
ip6table_filter        16384  1
ip6_tables             32768  5 ip6table_filter,ip6table_raw,ip6table_nat
iptable_filter         16384  1
sch_fq_codel           20480  5
uinput                 20480  0
i8042                  28672  0
nvidia_uvm           1130496  0
ctr                    16384  0
atkbd                  32768  0
libps2                 20480  1 atkbd
serio                  24576  2 atkbd,i8042
iwlmvm                380928  0
snd_hda_codec_realtek   135168  1
nvidia_drm             57344  6
nvidia_modeset       1179648  9 nvidia_drm
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
mac80211              819200  1 iwlmvm
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec_hdmi     69632  1
libarc4                16384  1 mac80211
eeepc_wmi              16384  0
rndis_wlan             61440  0
asus_wmi               40960  1 eeepc_wmi
snd_hda_intel          49152  2
battery                20480  1 asus_wmi
rndis_host             20480  1 rndis_wlan
cdc_ether              24576  1 rndis_host
snd_intel_dspcfg       28672  1 snd_hda_intel
sparse_keymap          16384  1 asus_wmi
video                  49152  1 asus_wmi
wmi_bmof               16384  0
mxm_wmi                16384  0
iwlwifi               348160  1 iwlmvm
snd_usb_audio         270336  1
uvcvideo              110592  0
btusb                  61440  0
snd_hda_codec         135168  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
usbnet                 40960  3 rndis_wlan,rndis_host,cdc_ether
btrtl                  24576  1 btusb
btbcm                  16384  1 btusb
amd64_edac_mod         32768  0
nls_iso8859_1          16384  1
btintel                28672  1 btusb
videobuf2_vmalloc      20480  1 uvcvideo
nls_cp437              20480  1
videobuf2_memops       20480  1 videobuf2_vmalloc
snd_usbmidi_lib        36864  1 snd_usb_audio
edac_mce_amd           32768  1 amd64_edac_mod
snd_hda_core           86016  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
ti_usb_3410_5052       36864  0
videobuf2_v4l2         28672  1 uvcvideo
vfat                   20480  1
snd_rawmidi            40960  1 snd_usbmidi_lib
bluetooth             614400  45 btrtl,btintel,btbcm,bnep,btusb,rfcomm
nvidia              35176448  414 nvidia_uvm,nvidia_modeset
videobuf2_common       53248  2 videobuf2_v4l2,uvcvideo
fat                    81920  1 vfat
edac_core              57344  2 amd64_edac_mod
cfg80211              831488  4 rndis_wlan,iwlmvm,iwlwifi,mac80211
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_seq_device         16384  2 snd_seq,snd_rawmidi
crc32_pclmul           16384  0
sp5100_tco             20480  0
deflate                16384  1
igb                   245760  0
usbserial              53248  1 ti_usb_3410_5052
ecdh_generic           16384  2 bluetooth
ghash_clmulni_intel    16384  0
snd_pcm               114688  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
drm_kms_helper        212992  1 nvidia_drm
videodev              249856  3 videobuf2_v4l2,uvcvideo,videobuf2_common
snd_timer              36864  3 snd_seq,snd_hrtimer,snd_pcm
ptp                    28672  1 igb
snd                    90112  21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
r8169                 102400  0
pps_core               24576  1 ptp
dca                    16384  1 igb
fb_sys_fops            16384  1 drm_kms_helper
joydev                 28672  0
mii                    16384  1 usbnet
syscopyarea            16384  1 drm_kms_helper
mousedev               24576  0
evdev                  24576  35
watchdog               24576  1 sp5100_tco
mc                     53248  5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
ecc                    32768  1 ecdh_generic
realtek                24576  1
mac_hid                16384  0
mdio_devres            16384  1 r8169
uas                    32768  0
efi_pstore             16384  0
i2c_piix4              28672  0
system76_io            16384  0
k10temp                16384  0
sysfillrect            16384  1 drm_kms_helper
rapl                   16384  0
libphy                102400  3 r8169,mdio_devres,realtek
soundcore              16384  1 snd
rfkill                 24576  8 asus_wmi,bluetooth,cfg80211
i2c_algo_bit           16384  1 igb
sysimgblt              16384  1 drm_kms_helper
tiny_power_button      16384  0
wmi                    28672  3 asus_wmi,wmi_bmof,mxm_wmi
pinctrl_amd            32768  0
button                 24576  0
acpi_cpufreq           28672  0
loop                   36864  0
cpufreq_powersave      20480  32
tun                    53248  2
tap                    28672  0
macvlan                28672  0
veth                   32768  0
bridge                241664  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
kvm_amd                98304  0
kvm                   794624  1 kvm_amd
drm                   512000  10 drm_kms_helper,nvidia,nvidia_drm
irqbypass              16384  1 kvm
agpgart                40960  1 drm
backlight              20480  3 video,asus_wmi,drm
fuse                  135168  1
i2c_core               86016  7 videodev,drm_kms_helper,i2c_algo_bit,igb,nvidia,i2c_piix4,drm
pstore                 28672  2 efi_pstore
configfs               49152  1
efivarfs               16384  1
ip_tables              28672  4 iptable_filter,iptable_raw,iptable_nat
x_tables               40960  16 ip6table_filter,xt_conntrack,ip6table_raw,iptable_filter,ip6t_rpfilter,xt_LOG,xt_tcpudp,xt_addrtype,xt_comment,ip6_tables,ipt_rpfilter,xt_pkttype,iptable_raw,ip_tables,xt_MASQUERADE,xt_mark
autofs4                49152  0
ext4                  819200  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  126976  1 ext4
dm_crypt               49152  1
cbc                    16384  0
encrypted_keys         24576  1 dm_crypt
trusted                32768  1 encrypted_keys
tpm                    65536  1 trusted
rng_core               16384  1 tpm
sd_mod                 53248  0
usb_storage            73728  1 uas
input_leds             16384  0
led_class              20480  4 snd_hda_codec_generic,input_leds,iwlmvm,asus_wmi
hid_generic            16384  0
usbhid                 57344  0
hid                   135168  2 usbhid,hid_generic
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci
ahci                   40960  0
xhci_hcd              266240  1 xhci_pci
libahci                36864  1 ahci
libata                249856  2 libahci,ahci
nvme                   45056  2
crc32c_intel           24576  3
usbcore               278528  16 usbserial,rndis_wlan,xhci_hcd,usbnet,ti_usb_3410_5052,snd_usb_audio,usbhid,snd_usbmidi_lib,usb_storage,rndis_host,uvcvideo,system76_io,btusb,xhci_pci,cdc_ether,uas
aesni_intel           368640  6
scsi_mod              229376  4 sd_mod,usb_storage,uas,libata
nvme_core             106496  4 nvme
libaes                 16384  2 bluetooth,aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 20480  4 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
t10_pi                 16384  2 sd_mod,nvme_core
crc_t10dif             20480  1 t10_pi
crct10dif_generic      16384  0
crct10dif_pclmul       16384  1
usb_common             16384  3 xhci_hcd,usbcore,uvcvideo
crct10dif_common       16384  3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
rtc_cmos               28672  1
dm_snapshot            53248  0
dm_bufio               28672  1 dm_snapshot
dm_mod                139264  11 dm_crypt,dm_snapshot,dm_bufio

Ah! I know what it is! system76-power: init at 1.1.16 by jwoudenberg · Pull Request #126656 · NixOS/nixpkgs · GitHub

I just need to figure out how to properly install it!
SOLVED: It is part of the unstable channel right now

3 Likes

Hooray! I’m happy that was useful for someone!

2 Likes

Hey can you explain in more details what exactly you did?

Since NixOS 21.11 you should just enable this option: hardware.system76.power-daemon.enable.

If you use the nixos-hardware module, that will come enabled by default together with the other recommended firmware daemons: nixos-hardware/default.nix at 9d87bc030a0bf3f00e953dbf095a7d8e852dab6b · NixOS/nixos-hardware · GitHub

Can you check my other post, I did a similar thing to what you recommened but still not everything was fixed Very high fan noises on nixOS using a system76 thelio - #2 by spacebuffer