Page 1 of 1

MX-21 laptop will not work on battery power

Posted: Mon Dec 12, 2022 8:02 pm
by MikeComm
New dual boot system with Windows 11 works fine except I discovered when I removed the charger cable the mouse became unresponsive, same with the touchpad. Only way out is with power button. System boots on battery only but no input device works. Started by adding noacpi to grub, then with 5.18 AHS kernal and tried 5.19 and 5.14 kernels with no results. I disabled the touch pad with MX Tools - no results. I don't see any unusual items in any of the log files, but then I am not very proficient in linux.

Would appreciate any input. Thanks

Code: Select all

[CODE]System:    Kernel: 5.19.0-2mx-amd64 [5.19.11-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.19.0-2mx-amd64 
           root=UUID=<filter> ro quiet splash noacpi 
           init=/lib/systemd/systemd 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2.1_ahs_x64 Wildflower September 18  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: Acer product: Aspire A515-46 v: V1.05 serial: <filter> 
           Mobo: PK model: Calla_PK v: V1.05 serial: <filter> UEFI: Insyde v: 1.05 
           date: 07/12/2021 
Battery:   ID-1: BAT1 charge: 52.8 Wh (100.0%) condition: 52.8/53.2 Wh (99.1%) volts: 13.1 
           min: 11.6 model: AP20CBL type: Li-ion serial: <filter> status: Full 
           Device-1: hidpp_battery_0 model: Logitech Marathon Mouse/Performance Plus M705 
           serial: <filter> charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Info: Quad Core model: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx bits: 64 
           type: MT MCP arch: Zen family: 17 (23) model-id: 18 (24) stepping: 1 microcode: 8108109 
           cache: L2: 2 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 36799 
           Speed: 1686 MHz min/max: 1400/2300 MHz boost: enabled Core speeds (MHz): 1: 2927 
           2: 2927 3: 2372 4: 2611 5: 1685 6: 1685 7: 2853 8: 2479 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed mitigation: untrained return thunk; SMT vulnerable 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB 
           filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] 
           vendor: Acer Incorporated ALI driver: amdgpu v: kernel bus-ID: 05:00.0 
           chip-ID: 1002:15d8 class-ID: 0300 
           Device-2: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 3-1.2:4 
           chip-ID: 0408:a061 class-ID: 0e02 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") 
           diag: 395mm (15.5") 
           OpenGL: 
           renderer: AMD Radeon Vega 10 Graphics (raven LLVM 14.0.5 DRM 3.47 5.19.0-2mx-amd64) 
           v: 4.6 Mesa 22.0.5 direct render: Yes 
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus-ID: 05:00.1 chip-ID: 1002:15de class-ID: 0403 
           Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor 
           vendor: Acer Incorporated ALI Raven/Raven2/FireFlight/Renoir Processor 
           driver: snd_pci_acp3x v: kernel alternate: snd_rn_pci_acp3x,snd_pci_acp5x,snd_pci_acp6x 
           bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480 
           Device-3: AMD Family 17h/19h HD Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403 
           Sound Server-1: ALSA v: k5.19.0-2mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter vendor: Lite-On 
           driver: mt7921e v: kernel modules: wl bus-ID: 02:00.0 chip-ID: 14c3:7961 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 2000 bus-ID: 03:00.0 
           chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Bluetooth: Device-1: Lite-On Wireless_Device type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 
           chip-ID: 04ca:3802 class-ID: e001 serial: <filter> 
           Report: hciconfig ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2 
           sub-v: 2206 hci-v: 5.2 rev: 821 
           Info: acl-mtu: 1021:6 sco-mtu: 240:8 link-policy: rswitch sniff link-mode: slave accept 
           service-classes: rendering, capturing, object transfer, audio 
Drives:    Local Storage: total: 238.47 GiB used: 10.42 GiB (4.4%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
           model: PC SN530 SDBPNPZ-256G-1114 size: 238.47 GiB block-size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 21113000 
           temp: 39.9 C scheme: GPT 
Partition: ID-1: / raw-size: 24.7 GiB size: 24.15 GiB (97.75%) used: 8.95 GiB (37.1%) fs: ext4 
           dev: /dev/nvme0n1p5 maj-min: 259:5 
           ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 54.3 MiB (56.5%) fs: vfat 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
           ID-3: /home raw-size: 58.18 GiB size: 56.97 GiB (97.91%) used: 1.42 GiB (2.5%) fs: ext4 
           dev: /dev/nvme0n1p7 maj-min: 259:7 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 7.93 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/nvme0n1p6 maj-min: 259:6 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A gpu: amdgpu temp: 51.0 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2014 lib: 1045 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://la.mxrepo.com/mx/repo/ bullseye main non-free
           2: deb http://la.mxrepo.com/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 309 Uptime: 17m wakeups: 3 Memory: 5.74 GiB used: 2.05 GiB (35.7%) 
           Init: systemd v: 247 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A alt: 10 
           Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
[/code]

Re: MX-21 laptop will not work on battery power

Posted: Mon Dec 12, 2022 8:15 pm
by Huckleberry Finn

Code: Select all

sudo sysv-rc-conf
Uncheck all the TLP columns, close, reboot, try.

Re: MX-21 laptop will not work on battery power

Posted: Mon Dec 12, 2022 10:16 pm
by MikeComm
No glory. Unchecked all, closed, reboot and same result.
Additional info: The problem is already prevelant at the logon screen. Pulling the charge cable at this point kills the mouse.

Re: MX-21 laptop will not work on battery power

Posted: Mon Dec 12, 2022 10:31 pm
by rokytnji.1
Maybe the battery in your mouse is dead.

Code: Select all

           Device-1: hidpp_battery_0 model: Logitech Marathon Mouse/Performance Plus M705 

Re: MX-21 laptop will not work on battery power

Posted: Mon Dec 12, 2022 10:47 pm
by MikeComm
It even happens with a corded mouse, and on any usb port.

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 4:13 am
by Huckleberry Finn
Just to make it clear/sure:

Is it the same when on Windows or no problems there?

Just in case: If you haven't: Disable "Fast Startup" in Windows (as it keeps devices busy for it doesn't really shutdown).

Is it the same when on live session (say, with the usb you installed MX, the official iso)? (Or maybe with any other distro on live session).

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 8:46 am
by j2mcgreg
Have a look at this post from the Acer forums:

https://community.acer.com/en/discussio ... e-limit-on

Apparently in Acer's proprietary bloatware "Acer Care", there is an app that lets a user configure the discharge and recharge functions for a laptop's battery. The suggestion in the link is that, in instances where the battery is not properly recharging, this app should be disabled. I suspect that this app is another thing that should be disabled in Windows (along with Quick Boot) prior to installing MX or Linux in general.

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 12:21 pm
by MikeComm
Windows works fine.
Confirmed in Bios -
Fast Boot: Off Secure Boot: Disabled AMD Secure Virtual Machine: Enabled AMD Virtualization Function Switch: Enabled (Could not yet find a way to disable these - and should I?)

In Windows Settings I set -
Unwanted Apps: Off Control Flow: Off Data Execution (DEP): Off Memory Integrity: Off

This machine came with Norton Security Ultra Ultra installed and active (Windows fire wall and Defender off). I would never install this product and plan to remove it later. I normally use Malwarebytes with Browser Guard and Windows fire wall and Defender for security.

I read the Acer Care on Acer Community Forum but have not deleted the battery drivers - I did l turn off "Battery Saver" in Windows Settings.

I also installed and tried kernel 6.0 with no change. I went back to 5.18 kernel.
Think I have replied to all helps so far - and not improvement. Thank you all.

Any more thoughts?

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 12:25 pm
by Huckleberry Finn
Just, the "Fast Startup" I mentioned is the one in Windows. (not just Bios).

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 2:16 pm
by MikeComm
Well you raised my hopes but that did not do the trick either. I'm beginning to think I may have to keep my wife on Windows. Is this a first from your experience?
Any chance a non-AHS distro would work?

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 3:54 pm
by davidy
This is an acer problem. Have you tried a different distro other than MX? Plus, if you are using a default windows OS that came with the pc, they usually come with loads of bloatware, norton being one. Try a different windows iso if so, and then reinstall MX in dualboot. It rather sounds like acer in conjunction with MS is preventing other OS's from being run. I mean if it works in windows but not else?
Make a backup of windows with veeam or clonezilla first though so you don't have to start completely over.

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 7:58 pm
by MikeComm
I have learned a little about "tlp" module installed in this laptop and it appears that the orig configuration called for USB ports to be suspended after 2 seconds on battery power.
I edited tlp.conf to "
USB_DENYLIST="1d6b:0002 1d6b:0003 046d:c52b 04f3:0c4f"
which seemed to result in the usb2 and usb3 ports to be denied (not suspended???). This did not fix the problem - mouse still dies when charge cable is removed.

Am I not understanding the application of tlp?

This is the result of the terminal

Code: Select all

tlp-stat -u
[code--- TLP 1.5.0 --------------------------------------------
+++ USB

Autosuspend = enabled
Device allowlist = (not configured)
Device denylist = 1d6b:0002 1d6b:0003 046d:c52b 04f3:0c4f
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled

Bus 004 Device 001 ID 1d6b:0003 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 004 ID 04f3:0c4f control = on, autosuspend_delay_ms = 2000 -- Elan Microelectronics Corp. ELAN:Fingerprint (no driver)
Bus 003 Device 003 ID 0408:a061 control = auto, autosuspend_delay_ms = 2000 -- Quanta Computer, Inc. HD User Facing (uvcvideo)
Bus 003 Device 002 ID 05e3:0608 control = auto, autosuspend_delay_ms = 0 -- Genesys Logic, Inc. Hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 003 ID 04ca:3802 control = auto, autosuspend_delay_ms = 2000 -- Lite-On Technology Corp. Wireless_Device (btusb)
Bus 001 Device 002 ID 046d:c52b control = on, autosuspend_delay_ms = 2000 -- Logitech, Inc. Unifying Receiver (usbhid)
Bus 001 Device 001 ID 1d6b:0002 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

][/code]

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 8:16 pm
by Huckleberry Finn

Re: MX-21 laptop will not work on battery power

Posted: Tue Dec 13, 2022 10:55 pm
by MikeComm
I do not see an entry for tlp and did not keep a record of the boxes I unchecked, so how do I get back to original?
Sorry, but I am still learning

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 4:34 am
by Huckleberry Finn
The entry should be still there (unless you uninstall it).

Check the columns 2, 3, 4, 5 (either with mouse or using the space bar), close, reboot.

(However I "purposely" suggested to disable it completely rather than suggesting playing with the options in it, to make it sure it works without trying to save power for anything.. as if working plugged)

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 11:55 am
by MikeComm
Mouse is now working on battery. I still don't know why the mouse was not working because the /etc/tlp.conf file was entirely commented out.
It took a while, but I finally got the right settings in the conf file. Subsequently the battery monitor icon disappeared. So I wonder if other functions are not working.
It looks like I can make other settings in /etc/tlp.conf to monitor the battery.
In the meanwhile I added a 3rd party battery monitor that I like better anyway. My question to you is:
Where else can the kernel get power monitor/saving function? Are there default settings?
Thanks for all your help. Great and frustrating learning experience. Now looks like this Acer is a keeper. Looks like we can consider this thread as solved.

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 12:57 pm
by Huckleberry Finn
"ACPI" (however you already tried with noacpi )


From antiX Linux pages:

ACPI (Advanced Configuration and Power Interface) is a standard that defines power and configuration management interfaces between an operating system and the BIOS. By default, acpi is switched on when boot detects a BIOS newer than the year 2000. There are several commonly used parameters to control the behavior of ACPI:

pci=noacpi -- do not use ACPI to route PCI interrupts
acpi=off -- turn off ACPI completely
acpi=force -- turn on ACPI, for pre-2000 BIOS


( acpi=off is not recommended, however (if you like only) you can try temporarily just one boot: Press E on Grub , add after ... ro quiet splash ... press F10 to go on boot. Also you can try nvme.noacpi=1 this way, once)


In the meantime, you can install the GUI for tlp: tlp-ui

Code: Select all

sudo apt update ; sudo apt install tlpui -y

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 1:27 pm
by timkb4cq
Since ACPI modifies its behaviour depending on which OS is running, and Windows 10 doesn't exhibit the problem, you might try this boot parameter

Code: Select all

acpi_osi="Windows 2020"
or if that doesn't work this one

Code: Select all

acpi_osi=! acpi_osi="Windows 2020"
Ordinarily the first is enough to get ACPI to behave. The second adds acpi_osi=! which removes the linux kernel's built in identification before adding the Windows 10 ID.

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 1:32 pm
by timkb4cq
Correction, I thought you were running Windows 10. Going back I see it's 11 so acpi_osi="Windows 2021" would be the better match - though 2020 would still likely work.

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 1:35 pm
by Huckleberry Finn
Just to add a bit more:

Code: Select all

OSI String          	Target OS

Windows 2000       	Windows 2000
Windows 2001       	Windows XP
Windows 2001 SP1	Windows XP SP1
Windows 2001.1     	Windows Server 2003
Windows 2001 SP2	Windows XP SP2
Windows 2001.1 SP1 	Windows Server 2003 SP1
Windows 2006       	Windows Vista
Windows 2006 SP1	Windows Vista SP1
Windows 2006.1     	Windows Server 2008
Windows 2009       	Windows 7, Win Server 2008 R2
Windows 2012       	Windows 8, Win Server 2012
Windows 2013       	Windows 8.1
Windows 2015       	Windows 10
Windows 2016       	Windows 10, version 1607
Windows 2017       	Windows 10, version 1703
Windows 2017.2     	Windows 10, version 1709
Windows 2018      	Windows 10, version 1803
Windows 2018.2          Windows 10, version 1809
Windows 2019		Windows 10, version 1903
Windows 2020		Windows 10, version 2004
Windows 2021	        Windows 11
Windows 2022	        Windows 11, version 22H2
:)

Re: MX-21 laptop will not work on battery power

Posted: Wed Dec 14, 2022 10:32 pm
by MikeComm
Thanks all for your help. I finally learned enough to make settings in tlp.conf allowing the mouse to work.
Now if I can learn to use this forum.....

Thanks again