Page 1 of 1
MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sat Feb 15, 2025 9:34 am
by cancunia
I'm running 23.5 on a Macbook Air and have problems with the system immediately waking from Suspend. Seems that this is a known problem and is due to some issues around the lid sensing in ACPI.
Here's an example, there are plenty more:
https://www.reddit.com/r/Fedora/comment ... ?rdt=59574
I can get around the problem by disabling LID0 within the ACPI settings by issuing the following:
Doing so, will prevent the lid sensing and the system will stay suspended until the power button is pressed.
The problem is that the above will not persist after a reboot. The suggested fix for this is to add a service to SystemD but as MX does not use SystemD this won't work AFIK.
Anyone know where I can tweak the ACPI settings?
Thanks
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sat Feb 15, 2025 11:07 am
by CharlesV
Please post your QSI. ( MX Menu, Quick System Info, Copy for Forum, Paste here )
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sat Feb 15, 2025 11:15 am
by cancunia
CharlesV wrote: Sat Feb 15, 2025 11:07 am
Please post your QSI. ( MX Menu, Quick System Info, Copy for Forum, Paste here )
Apologies, here it is, but, please note that I have booted into Systemd:
Code: Select all
System:
Kernel: 6.1.0-31-amd64 [6.1.128-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-31-amd64 root=UUID=<filter> ro quiet splash
init=/lib/systemd/systemd
Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
dm: LightDM v: 1.32.0 Distro: MX-23.5_x64 Libretto Jan 12 2025 base: Debian GNU/Linux 12
(bookworm)
Machine:
Type: Laptop System: Apple product: MacBookAir6,2 v: 1.0 serial: <superuser required> Chassis:
type: 10 v: Mac-7DF21CB3ED6977E5 serial: <superuser required>
Mobo: Apple model: Mac-7DF21CB3ED6977E5 v: MacBookAir6,2 serial: <superuser required>
UEFI: Apple v: 478.0.0.0.0 date: 01/13/2023
Battery:
ID-1: BAT0 charge: 43.1 Wh (99.5%) condition: 43.3/54.3 Wh (79.7%) volts: 8.5 min: 7.6
model: SMP bq20z451 type: Li-ion serial: N/A status: full cycles: 577
Device-1: hidpp_battery_0 model: Logitech K520 serial: <filter> charge: 70% (should be ignored)
rechargeable: yes status: discharging
Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M310/M310t serial: <filter>
charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
Info: model: Intel Core i5-4250U bits: 64 type: MT MCP arch: Haswell gen: core 4 level: v3
note: check built: 2013-15 process: Intel 22nm family: 6 model-id: 0x45 (69) stepping: 1
microcode: 0x26
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
Speed (MHz): avg: 1300 min/max: 800/2600 scaling: driver: intel_cpufreq governor: ondemand
cores: 1: 1300 2: 1300 3: 1300 4: 1300 bogomips: 15198
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: reg_file_data_sampling status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow status: Not affected
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; IBRS_FW; STIBP: conditional; RSB
filling; PBRSB-eIBRS: Not affected; BHI: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Haswell-ULT Integrated Graphics vendor: Apple driver: i915 v: kernel
arch: Gen-7.5 process: Intel 22nm built: 2013 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1,
HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:0a26 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X:
loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 382x239mm (15.04x9.41") s-diag: 451mm (17.74")
Monitor-1: eDP-1 model: Apple Color LCD built: 2011 res: 1440x900 hz: 60 dpi: 128 gamma: 1.2
size: 286x179mm (11.26x7.05") diag: 337mm (13.3") ratio: 16:10 modes: 1440x900
API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 5000 (HSW GT3)
direct-render: Yes
Audio:
Device-1: Intel Haswell-ULT HD Audio vendor: Apple driver: snd_hda_intel v: kernel
bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403
Device-2: Intel 8 Series HD Audio driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:9c20 class-ID: 0403
Device-3: Broadcom 720p FaceTime HD Camera driver: N/A pcie: gen: 2 speed: 5 GT/s lanes: 1
bus-ID: 02:00.0 chip-ID: 14e4:1570 class-ID: 0480
API: ALSA v: k6.1.0-31-amd64 status: kernel-api tools: alsamixer,amixer
Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Broadcom BCM4360 802.11ac Wireless Network Adapter vendor: Apple driver: wl v: kernel
modules: bcma pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 14e4:43a0
class-ID: 0280
IF: wlan0 state: up mac: <filter>
Bluetooth:
Device-1: Apple Bluetooth USB Host Controller type: USB driver: btusb v: 0.8 bus-ID: 1-3.3:7
chip-ID: 05ac:828f class-ID: fe01
Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.0
sub-v: 4196 hci-v: 4.0 rev: 2466
Info: acl-mtu: 1021:8 sco-mtu: 64:1 link-policy: rswitch sniff link-mode: peripheral accept
service-classes: rendering, capturing, object transfer, audio, telephony
Drives:
Local Storage: total: 931.51 GiB used: 18.41 GiB (2.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SNV3S1000G size: 931.51 GiB
block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
rev: ERFK1N.3 temp: 28.9 C scheme: GPT
Partition:
ID-1: / raw-size: 111.75 GiB size: 109.43 GiB (97.93%) used: 18.23 GiB (16.7%) fs: ext4
dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 809.66 GiB size: 795.88 GiB (98.30%) used: 184.3 MiB (0.0%) fs: ext4
dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
Swap:
Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: file size: 9.81 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
System Temperatures: cpu: 57.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos:
Packages: pm: dpkg pkgs: 2137 libs: 1065 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
pkgs: 0 pm: flatpak pkgs: 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 bookworm-updates main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bookworm main non-free
Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
1: deb https://deb.opera.com/opera-stable/ stable non-free
Info:
Processes: 252 Uptime: 1h 19m wakeups: 16 Memory: 3.77 GiB used: 2.32 GiB (61.5%) Init: systemd
v: 252 target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sat Feb 15, 2025 11:19 am
by CharlesV
So, start MX Boot Options and in the kernel parameters add the following ( space first if there are other entries )
click apply and then reboot. I believe that will do what your after (ie turning off acpi ) and you should be able to run that in both sysvinit and systemd
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sat Feb 15, 2025 12:09 pm
by cancunia
CharlesV wrote: Sat Feb 15, 2025 11:19 am
So, start MX Boot Options and in the kernel parameters add the following ( space first if there are other entries )
click apply and then reboot. I believe that will do what your after (ie turning off acpi ) and you should be able to run that in both sysvinit and systemd
That looks like a fairly radical change. What other things will be disabled / affected by turning off ACPI?
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sat Feb 15, 2025 12:21 pm
by CharlesV
It is and I am not sure what all it affects. There are many articles out there about using it, some appear to be good, some not so good, and it *may not* be something you want to run normally... but you can use it to diagnose and see if that resolves this issue.
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Sun Mar 02, 2025 12:08 pm
by b3ta
cancunia wrote: Sat Feb 15, 2025 9:34 am
The problem is that the above will not persist after a reboot. The suggested fix for this is to add a service to SystemD but as MX does not use SystemD this won't work AFIK.
Anyone know where I can tweak the ACPI settings?
Thanks
Because it's not systemd, you can simply put your
echo line into
/etc/rc.local, then it will get run on every boot. I've had to do that before to run a script to check which network my laptop was on in order to set the correct fixed IP address.
For those who are running systemd, you don't need to add a service — just put
Code: Select all
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
in
/etc/systemd/logind.conf.d/logind.conf. I had to do that on another laptop running Proxmox because when the laptop lid was closed, it would shut down, which was the last thing I wanted with that particular installation.
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Mon Mar 03, 2025 5:11 am
by cancunia
@b3ta Thanks for the info.
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Mon Mar 03, 2025 6:34 am
by Freja
cancunia wrote: Sat Feb 15, 2025 12:09 pm
CharlesV wrote: Sat Feb 15, 2025 11:19 am
So, start MX Boot Options and in the kernel parameters add the following ( space first if there are other entries )
click apply and then reboot. I believe that will do what your after (ie turning off acpi ) and you should be able to run that in both sysvinit and systemd
That looks like a fairly radical change. What other things will be disabled / affected by turning off ACPI?
I tested above method by personal intension, result is fail boot in GUI (booted on "welcome to mx linux!" CUI).
Right none acpi boot parameter is
reference
Boot parameters https://mxlinux.org/wiki/system/boot-parameters/
Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Mon Mar 03, 2025 10:17 am
by b3ta
cancunia wrote: Sat Feb 15, 2025 12:09 pm
That looks like a fairly radical change. What other things will be disabled / affected by turning off ACPI?
This might help someone in the same boat.
I use acpi on my old work laptop, where it's easy to think the power cable is plugged in properly when it isn't. It's a real pain to have the system unexpectedly shut down some time later, so I wrote a short script which I've set as part of the autostart when I log in on Xfce. If the laptop is not on AC power, it makes sure you know about it:
Code: Select all
acpi -a | grep -qiv "off-line"
[ $? -eq 0 ] \
|| echo -e '\n\nON\n\nBATTERY!' \
| yad --text-info </dev/stdin \
--title="" \
--justify=center \
--back=red \
--on-top \
--center \
--no-buttons \
--fontname="Libertinus Sans Bold 50" \
--image=$HOME/g/scream-time.jpg \
--width=1500
This has been really useful to me once I've recovered from the shock

Re: MX 23.5 How do I change / disable ACPI settings (LID0) ?
Posted: Mon Mar 03, 2025 10:40 am
by CharlesV