Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

20 Posts

10-21-2019

India

8 Signins

277 Page Views

  • Posts: 20
  • Registered: ‎10-21-2019
  • Location: India
  • Views: 277
  • Message 1 of 4

No kernel support available for natacpi for TLP for Lenovo Legion Y540 - Manjaro OS

2019-12-06, 17:31 PM

Hello Community Members,

 

I've installed Manjaro 18.1.3 Juhraya [XFCE] OS on my Legion Y540.

I've got most of the things working, except for charging thresholds using TLP on Kernel 4.19 and 5.3.

 

I need some help with setting charge thresholds for my lenovo legion Y540. I have tried to achieve the same using TLP and TLPUI, but it won't work. Also, tlp battery stats shows No kernel support for natacpi. As far as I know, natacpi should be supported by default for kernel > 4.17. Still for 4.19 and 5.3 it says not supported.

 

Please find the below details of my machine:

$ inxi -Fxxxza --no-host

System:    Kernel: 5.3.12-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.3-x86_64 root=UUID=9d3c96e7-82ea-4b79-ad94-ae1745a997aa rw quiet 
           udev.log_priority=3 
           Desktop: Xfce 4.14.1 tk: Gtk 3.24.12 info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 81SY v: Lenovo Legion Y540-15IRH-PG0 serial: <filter> Chassis: type: 10 
           v: Lenovo Legion Y540-15IRH-PG0 serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0Q55722 WIN serial: <filter> UEFI: LENOVO v: BHCN32WW date: 08/29/2019 
Battery:   ID-1: BAT0 charge: 53.0 Wh condition: 53.0/52.5 Wh (101%) volts: 12.9/11.3 model: LGC L17L3PG1 type: Li-poly 
           serial: <filter> status: Full cycles: 23 
CPU:       Topology: Quad Core model: Intel Core i5-9300H bits: 64 type: MT MCP arch: Kaby Lake family: 6 model-id: 9E (158) 
           stepping: A (10) microcode: CA L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38408 
           Speed: 4061 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 4067 2: 4063 3: 4059 4: 4093 5: 4082 6: 4096 7: 4009 
           8: 4006 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA vendor: Lenovo driver: nvidia v: 440.31 bus ID: 01:00.0 chip ID: 10de:1f91 
           Display: x11 server: X.Org 1.20.5 driver: modesetting,nvidia resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 440.31 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a348 
           Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10fa 
           Sound Server: ALSA v: k5.3.12-1-MANJARO 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
           chip ID: 8086:a370 
           IF: wlp0s20f3 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 3000 
           bus ID: 07:00.0 chip ID: 10ec:8168 
           IF: enp7s0 state: down mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 64.67 GiB (13.6%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L2 size: 476.94 GiB block size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 3L1QEXF7 scheme: GPT 
Partition: ID-1: / raw size: 247.23 GiB size: 242.35 GiB (98.03%) used: 41.46 GiB (17.1%) fs: ext4 dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 64.0 C mobo: N/A gpu: nvidia temp: 57 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 244 Uptime: 17m Memory: 7.66 GiB used: 1.55 GiB (20.3%) Init: systemd v: 242 Compilers: gcc: 9.2.0 
           alt: 7/8 Shell: bash v: 5.0.11 running in: xfce4-terminal inxi: 3.0.36
$ systemctl status systemd-modules-load

● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
   Active: active (exited) since Fri 2019-12-06 10:05:32 IST; 10h left
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
 Main PID: 304 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/systemd-modules-load.service

Dec 06 10:05:31 AndroITKing-009 systemd-modules-load[304]: Inserted module 'nvidia'
Dec 06 10:05:32 AndroITKing-009 systemd-modules-load[304]: Inserted module 'nvidia_drm'
Dec 06 10:05:32 AndroITKing-009 systemd-modules-load[304]: Inserted module 'acpi_call'
Dec 06 10:05:32 AndroITKing-009 systemd-modules-load[304]: Inserted module 'crypto_user'
Dec 06 10:05:32 AndroITKing-009 systemd-modules-load[304]: Inserted module 'uinput'
Dec 06 10:05:32 AndroITKing-009 systemd[1]: Started Load Kernel Modules.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
sudo tlp-stat -b
[sudo] password for PC:
 
--- TLP 1.2.2 --------------------------------------------

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = inactive (no kernel support)
tpacpi-bat = inactive (laptop not supported)
tp-smapi   = inactive (laptop not supported)

+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = LGC
/sys/class/power_supply/BAT0/model_name                     = L17L3PG1
/sys/class/power_supply/BAT0/cycle_count                    =     23
/sys/class/power_supply/BAT0/energy_full_design             =  52500 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  53000 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  53000 [mWh]
/sys/class/power_supply/BAT0/power_now                      =      0 [mW]
/sys/class/power_supply/BAT0/status                         = Full


Charge                                                      =  100.0 [%]
Capacity                                                    =  101.0 [%]

 

Reply
Options

4 Posts

12-07-2019

Germany

15 Signins

167 Page Views

  • Posts: 4
  • Registered: ‎12-07-2019
  • Location: Germany
  • Views: 167
  • Message 2 of 4

Re: No kernel support available for natacpi for TLP for Lenovo Legion Y540 - Manjaro OS

2019-12-07, 15:10 PM

What you want is impossible, because charge thresholds are a "ThinkPad only" feature. The fact is all over the documentation and in the config file itself.

 

(I'm TLP's author)

--- Open source enthusiast, author of TLP --- https://linrunner.de/tlp
Reply
Options

20 Posts

10-21-2019

India

8 Signins

277 Page Views

  • Posts: 20
  • Registered: ‎10-21-2019
  • Location: India
  • Views: 277
  • Message 3 of 4

Re: No kernel support available for natacpi for TLP for Lenovo Legion Y540 - Manjaro OS

2019-12-09, 15:23 PM

Hi Linrunner,

 

Thanks for the reply. I tried to reach you at manjaro forums.

Coming back to the question, I read it somewhere at a Q&A site, that it was now possible to set charge thresholds for non -thinkpad laptops via `natacpi`. That's why I asked the question.

 

Since you say it yourself, I'll take your word for it. Also, as vantage supports it for windows for this particular model, I think at hardware level it should be possible. Is there any possiblilty to add this functionality for non thinkpad models?

 

As you have the knowledge of the topic, can you let me know why `natacpi` is not shown as supported? It should have been supported by this versions of the kernels.

 

Thanks for your help.

Reply
Options

0 Posts

02-14-2020

United States of America

1 Signins

0 Page Views

  • Posts: 0
  • Registered: ‎02-14-2020
  • Location: United States of America
  • Views: 0
  • Message 4 of 4

Re: No kernel support available for natacpi for TLP for Lenovo Legion Y540 - Manjaro OS

2020-02-16, 0:25 AM

so how can we set the threshold for the battery please ? 

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms