Acer Swift 3 - battery issues - add Kernel parameters

linux518 does resolve the high CPU usage.
Still, Swift 3 is supposed to sport quite a good battery lasting a couple of hours if not more.

The widget/indicator says: remaining time 13 hours, 17 hours, 5 hours etc. It keeps changing, unlike my old Dell where it is stable.

As suggested by bogdancovaciu, I should make modifications to the Kernel parametres.

e.g.
https://wiki.archlinux.org/title/Acer_Swift_5#Kernel_modules_parameters

That seems to mean task.

Am I supposed to find swift3.conf? Should I follow the steps that apply for Swift 5?

/etc/modprobe.d/swift5.conf

options snd-intel-dspcfg dsp_driver=1
options snd-hda-intel model=dell-headset-multi
options snd-hda-intel power_save=1

Hi @korben,

AFAIK by default that directory is empty. mine only has a file created by mwhd in it.

According to me, that means you’ll have to create the file yourself. To do so, open a terminal and run:

sudo nano /etc/modprobe.d/swift5.conf

Insert the following lines:

options snd-intel-dspcfg dsp_driver=1
options snd-hda-intel model=dell-headset-multi
options snd-hda-intel power_save=1

Save, Ctrl+O → Y, and Exit, Ctrl+Y

Then restart to see if it worked.

Hope it helps!

Edit:

For more, see

https://wiki.archlinux.org/title/Kernel_module#Using_files_in_/etc/modprobe.d/

2 Likes

I have created the file however I cannot exit CMD…

ctrl+ O and then Y?

Ctrl + O saves it, and if it asks Y confirms it.
Then Ctrl+X exits the nano editor.
Then you can reboot.

1 Like

Doesn’t work here. The window won’t close at all. The file is there, the peremetres are there.

I forcefully closed the window.
Rebooted.
Got the system working.
How can I tell if it’s A-OK?

Chances are it hasn’t been saved, so not applied. To check, run the following and provide the output, please:

sudo cat /etc/modprobe.d/swift5.conf

nano is very self descriptive
It’s literally all written in the bottom two rows
nearly every important command is a shortcut consisting of pressing CTRL and a letter

^stands for CTRL
^G stands for “get basic help” - it’s also written right above in the middle of the bottom two rows

you try to close it with CTRL+X and it will ask you whether you want to save it and to which filename if you haven’t started it by giving it one.

or you write the file (to disk) with CTRL+O before you exit the editor with CTRL-X

1 Like

@Mirdarthos

The output of the aforementioned command is:

options snd-intel-dspcfg dsp_driver=1
options snd-hda-intel model=dell-headset-multi
options snd-hda-intel power_save=1

Then it has been saved and if you rebooted successfully, it should be applied. To check, run the following:

sudo inxi --admin --verbosity=7 --filter --no-host --width

Provide the output here if you want us to check.

Edit:

Or maybe a better idea is checking the output of:

sudo sysctl -a
1 Like

here goes:

OK, I don’t see anything, so it doesn’t look as if they are applied to me. However, I’m the first to admit that I might be wrong.

So, if someone can confirm or dismiss my findings, that’s be great. Perhaps @bogdancovaciu himself even?

Edit:

WAIT, Please provide the output of:

lsmod
1 Like

Module Size Used by
ccm 20480 3
cdc_mbim 20480 0
cdc_wdm 36864 1 cdc_mbim
cdc_ncm 45056 1 cdc_mbim
cdc_ether 24576 1 cdc_ncm
rfcomm 94208 16
ntfs3 274432 0
cmac 16384 2
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 36864 6 algif_hash,algif_skcipher
snd_sof_pci_intel_tgl 16384 0
snd_sof_intel_hda_common 139264 1 snd_sof_pci_intel_tgl
bnep 32768 2
soundwire_intel 53248 1 snd_sof_intel_hda_common
soundwire_generic_allocation 16384 1 soundwire_intel
soundwire_cadence 45056 1 soundwire_intel
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
btusb 65536 0
snd_sof_xtensa_dsp 20480 1 snd_sof_intel_hda_common
snd_sof 237568 2 snd_sof_pci,snd_sof_intel_hda_common
btrtl 28672 1 btusb
btbcm 20480 1 btusb
btintel 49152 1 btusb
snd_sof_utils 20480 1 snd_sof
btmtk 16384 1 btusb
joydev 28672 0
snd_soc_hdac_hda 28672 1 snd_sof_intel_hda_common
bluetooth 876544 44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
mousedev 24576 0
snd_hda_ext_core 36864 3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
qrtr 57344 4
intel_tcc_cooling 16384 0
snd_soc_acpi_intel_match 65536 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
ecdh_generic 16384 1 bluetooth
x86_pkg_temp_thermal 20480 0
iTCO_wdt 16384 0
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
spi_nor 110592 0
intel_powerclamp 20480 0
intel_pmc_bxt 16384 1 iTCO_wdt
iTCO_vendor_support 16384 1 iTCO_wdt
mtd 90112 3 spi_nor
ax88179_178a 40960 0
soundwire_bus 122880 3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
hid_multitouch 32768 0
coretemp 20480 0
snd_hda_codec_hdmi 86016 1
usbnet 57344 4 cdc_mbim,cdc_ncm,cdc_ether,ax88179_178a
mei_pxp 20480 0
mei_hdcp 24576 0
mii 16384 2 usbnet,ax88179_178a
wmi_bmof 16384 0
snd_soc_core 393216 4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
acer_wmi 36864 0
kvm_intel 389120 0
snd_ctl_led 24576 0
snd_compress 28672 1 snd_soc_core
vfat 24576 1
fat 90112 1 vfat
intel_rapl_msr 20480 0
snd_hda_codec_realtek 172032 1
kvm 1118208 1 kvm_intel
ac97_bus 16384 1 snd_soc_core
uvcvideo 155648 0
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
snd_pcm_dmaengine 16384 1 snd_soc_core
ledtrig_audio 16384 3 snd_ctl_led,snd_hda_codec_generic,snd_sof
snd_hda_intel 61440 2
irqbypass 16384 1 kvm
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
crct10dif_pclmul 16384 1
snd_intel_dspcfg 36864 2 snd_hda_intel,snd_sof_intel_hda_common
videobuf2_v4l2 40960 1 uvcvideo
crc32_pclmul 16384 0
snd_intel_sdw_acpi 20480 2 snd_sof_intel_hda_common,snd_intel_dspcfg
ghash_clmulni_intel 16384 0
snd_hda_codec 184320 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
videobuf2_common 86016 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
aesni_intel 380928 5
videodev 311296 3 videobuf2_v4l2,uvcvideo,videobuf2_common
snd_hda_core 118784 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
crypto_simd 16384 1 aesni_intel
iwlmvm 532480 0
cryptd 28672 3 crypto_simd,ghash_clmulni_intel
snd_hwdep 16384 1 snd_hda_codec
intel_cstate 20480 0
mc 69632 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
mac80211 1249280 1 iwlmvm
intel_uncore 212992 0
snd_pcm 172032 11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
pcspkr 16384 0
snd_timer 49152 1 snd_pcm
ucsi_acpi 16384 0
i2c_i801 45056 0
typec_ucsi 53248 1 ucsi_acpi
snd 126976 16 snd_ctl_led,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
spi_intel_pci 16384 0
spi_intel 28672 1 spi_intel_pci
i2c_smbus 20480 1 i2c_i801
typec 69632 1 typec_ucsi
soundcore 16384 2 snd_ctl_led,snd
mei_me 53248 2
roles 16384 1 typec_ucsi
libarc4 16384 1 mac80211
i2c_hid_acpi 16384 0
mac_hid 16384 0
i915 3428352 33
i2c_hid 40960 1 i2c_hid_acpi
iwlwifi 487424 1 iwlmvm
int3403_thermal 20480 0
wmi 45056 2 acer_wmi,wmi_bmof
iwlmei 53248 2 iwlmvm,iwlwifi
xt_hl 16384 22
processor_thermal_device_pci_legacy 16384 0
processor_thermal_device 20480 1 processor_thermal_device_pci_legacy
ip6t_rt 20480 3
processor_thermal_rfim 16384 1 processor_thermal_device
drm_buddy 20480 1 i915
ip6t_REJECT 16384 3
tpm_crb 20480 0
video 57344 2 acer_wmi,i915
cfg80211 1085440 4 iwlmvm,iwlmei,iwlwifi,mac80211
processor_thermal_mbox 16384 2 processor_thermal_rfim,processor_thermal_device
ttm 86016 1 i915
nf_reject_ipv6 20480 1 ip6t_REJECT
tpm_tis 16384 0
processor_thermal_rapl 20480 1 processor_thermal_device
int3400_thermal 20480 0
rfkill 36864 11 acer_wmi,iwlmvm,bluetooth,cfg80211
intel_rapl_common 32768 2 intel_rapl_msr,processor_thermal_rapl
tpm_tis_core 28672 1 tpm_tis
intel_lpss_pci 28672 0
drm_dp_helper 167936 1 i915
intel_hid 28672 0
xt_LOG 20480 10
mei 172032 6 mei_hdcp,iwlmei,mei_pxp,mei_me
acpi_pad 24576 0
acpi_thermal_rel 16384 1 int3400_thermal
thunderbolt 389120 0
tpm 102400 3 tpm_tis,tpm_crb,tpm_tis_core
intel_lpss 16384 1 intel_lpss_pci
int340x_thermal_zone 20480 2 int3403_thermal,processor_thermal_device
intel_gtt 28672 1 i915
nf_log_syslog 20480 10
intel_soc_dts_iosf 20480 1 processor_thermal_device_pci_legacy
rng_core 20480 1 tpm
idma64 20480 0
igen6_edac 32768 0
sparse_keymap 16384 2 intel_hid,acer_wmi
acer_wireless 20480 0
xt_limit 16384 13
xt_addrtype 16384 4
xt_tcpudp 20480 18
xt_conntrack 16384 16
nf_conntrack 180224 1 xt_conntrack
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
libcrc32c 16384 1 nf_conntrack
ipt_REJECT 16384 3
nf_reject_ipv4 16384 1 ipt_REJECT
ip6table_filter 16384 1
ip6_tables 36864 53 ip6table_filter
iptable_filter 16384 1
fuse 176128 5
crypto_user 24576 0
bpf_preload 24576 0
ip_tables 36864 9 iptable_filter
x_tables 57344 13 ip6table_filter,xt_conntrack,iptable_filter,xt_LOG,xt_tcpudp,xt_addrtype,ip6t_rt,ip6_tables,ipt_REJECT,ip_tables,xt_limit,xt_hl,ip6t_REJECT
ext4 1015808 1
crc32c_generic 16384 0
crc16 16384 2 bluetooth,ext4
mbcache 16384 1 ext4
jbd2 192512 1 ext4
nvme 61440 3
nvme_core 176128 5 nvme
serio_raw 20480 0
atkbd 36864 0
libps2 20480 1 atkbd
vivaldi_fmap 16384 1 atkbd
xhci_pci 20480 0
crc32c_intel 24576 3
vmd 24576 0
xhci_pci_renesas 24576 1 xhci_pci
i8042 45056 1 acer_wmi
serio 28672 4 serio_raw,atkbd,i8042

I am thankful!

I know it is from the Arch wiki, but is this actually correct?

The names of those two modules are:
snd_hda_intel
and
snd_intel_dspcfg

You would load the modules using those names.
Why supply the options to those modules using a different name which only looks similar?

1 Like

with kernel parameters you meant these, from the bogdancovaciu link:

  • i915.i915_enable_rc6=1
    to enable deeper sleep states (power saving)
  • i915.i915_enable_fbc=1
    to enable framebuffer compression (power saving)

the modprobe swift conf is related to your previous issue with high cpu audio usage, that was fixed with switching kernels…

1 Like

Mirdarthos & CO, you guys speak English here, but it beats me about the next step…

looks like @brahma had seen and remembered a previous issue of yours - and saw it solved

This whole thread therefore went down the wrong rabbit hole right from the start, it seems.

It’s not about the audio system’s modules energy savings options like here discussed.

Instead you should try to address the issue
by adding some options to your kernel command line
in /etc/default/grub

i915.i915_enable_rc6=1
and
i915.i915_enable_fbc=1
are related to your graphics card
not to the sound system

1 Like

That would explain a lot. All in all it’s my fault.

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR=“Manjaro”
GRUB_CMDLINE_LINUX_DEFAULT=“quiet udev.log_priority=3”
GRUB_CMDLINE_LINUX=“”
i915.i915_enable_rc6=1
i915.i915_enable_fbc=1

Is this the proper layout, my dear persevering forumers?

no this is wrong … remove the
i915.i915_enable_rc6=1
i915.i915_enable_fbc=1
and put them inside this line to look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1"

save the file, run this command:
sudo update-grub
reboot

1 Like

Before I reboot…

/usr/bin/grub-probe: warning: unknown device type nvme0n1

ignore and continue?

yes continue

1 Like