jaared
August 26, 2023, 5:09pm
1
Hi,
I want my laptop to turn off when I close lid so I selected the appropriate option in KDE settings. Sadly it doesn’t occurs. It doesn’t even hibernate or lock the machine.
When I close the lid, there is a blinking led indicator, which means the laptop is in standby mode.
When I open the lid, the screen is black and everything crashed. I am just able to see and move the mouse (on a black screen…).
The result of “sudo journalctl” is : HERE
Here is the journalctl log when, in KDE settings, I chose the suspens system when the lid is closed.
Everything works fine in this situation.
Do you have any idea please ?
It’s not related to hardware because it works on other distro.
Thank you.
Check /etc/systemd/logind.conf
grep "Lid" /etc/systemd/logind.conf
Also what is reported by the following command?
systemd-inhibit
For more info
man logind.conf
1 Like
Some system information may also be useful for others to advise further…
inxi -Faz
1 Like
jaared
August 27, 2023, 6:35am
4
I just find the solution thanks to your comments. Seems not logic to me however…
In logind.conf file I juste edited “#HandleLidSwitch=suspend” to “HandleLidSwitch=ignore”.
I don’t know how this previously commented line can have any affect but apparently it has some.
jaared@localhost:~> grep "Lid" /etc/systemd/logind.conf
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes
jaared@localhost:~> systemd-inhibit
WHO UID USER PID COMM WHAT WHY >
ModemManager 0 root 1030 ModemManager sleep ModemManager needs to reset devices >
NetworkManager 0 root 1139 NetworkManager sleep NetworkManager needs to turn off net>
UPower 0 root 1468 upowerd sleep Pause device polling >
PowerDevil 1000 jaared 1589 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power events >
Écran de verrouillage 1000 jaared 1471 ksmserver sleep S'assure que l'écran est verrouillé >
5 inhibitors listed.
jaared@localhost:~> inxi -Faz
System:
Kernel: 6.4.11-1-default arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
parameters: BOOT_IMAGE=/vmlinuz-6.4.11-1-default
root=UUID=abfe695c-f727-453f-b4e7-4207c4404b91 splash=silent quiet
security=apparmor mitigations=auto
Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: openSUSE Tumbleweed 20230823
Machine:
Type: Laptop System: Acer product: Swift SF314-51 v: V1.08
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Acer model: M3_SK v: V1.08 serial: <superuser required> UEFI: Insyde
v: 1.08 date: 12/30/2016
Battery:
ID-1: BAT0 charge: 10.8 Wh (28.3%) condition: 38.2/48.9 Wh (78.0%)
volts: 14.7 min: 15.2 model: AC14B8K type: Li-ion serial: N/A
status: discharging
CPU:
Info: model: Intel Core i3-6006U bits: 64 type: MT MCP arch: Skylake
gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
model-id: 0x4E (78) stepping: 3 microcode: 0xF0
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: 866 high: 1305 min/max: 400/2000 scaling:
driver: intel_pstate governor: powersave cores: 1: 560 2: 800 3: 800 4: 1305
bogomips: 16006
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 mitigation: Clear CPU buffers; SMT vulnerable
Type: retbleed mitigation: IBRS
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: IBRS, IBPB: conditional, STIBP: conditional,
RSB filling, PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Acer Incorporated ALI
driver: i915 v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
chip-ID: 8086:1916 class-ID: 0300
Device-2: Chicony HD WebCam driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:5 chip-ID: 04f2:b573
class-ID: 0e02
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: modesetting unloaded: fbdev,vesa
alternate: intel dri: iris gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: eDP-1 model: ChiMei InnoLux 0x14c3 built: 2015 res: 1366x768
hz: 60 dpi: 112 gamma: 1.2 size: 309x173mm (12.17x6.81") diag: 354mm (13.9")
ratio: 16:9 modes: 1366x768
API: OpenGL v: 4.6 Mesa 23.1.5 renderer: Mesa Intel HD Graphics 520 (SKL
GT2) direct-render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel alternate: snd_soc_skl, snd_soc_avs,
snd_sof_pci_intel_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70 class-ID: 0403
API: ALSA v: k6.4.11-1-default status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.77 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: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
vendor: Lite-On driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 bus-ID: 02:00.0 chip-ID: 168c:003e class-ID: 0280 temp: 51.0 C
IF: wlp2s0 state: up mac: <filter>
Bluetooth:
Device-1: Lite-On driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-5:3 chip-ID: 04ca:3016 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 233.85 GiB used: 11.35 GiB (4.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: SK Hynix model: HFS128G39TND-N210A
size: 119.24 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 1P10 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: SanDisk model: USB 3.2Gen1
size: 114.61 GiB block-size: physical: 512 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 1.00 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 117.74 GiB size: 117.74 GiB (100.00%)
used: 11.3 GiB (9.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: cr_root
ID-2: /boot raw-size: 1024 MiB size: 1006.7 MiB (98.31%)
used: 55.9 MiB (5.5%) fs: ext2 dev: /dev/sda2 maj-min: 8:2
ID-3: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
used: 5 MiB (1.0%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-4: /home raw-size: 117.74 GiB size: 117.74 GiB (100.00%)
used: 11.3 GiB (9.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: cr_root
ID-5: /opt raw-size: 117.74 GiB size: 117.74 GiB (100.00%)
used: 11.3 GiB (9.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: cr_root
ID-6: /var raw-size: 117.74 GiB size: 117.74 GiB (100.00%)
used: 11.3 GiB (9.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: cr_root
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 41.0 C pch: 42.5 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 211 Uptime: 0h 11m wakeups: 21096 Memory: available: 3.68 GiB
used: 2.14 GiB (58.2%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: N/A Packages: pm: rpm pkgs: N/A note: see --rpm
tools: yast,zypper pm: flatpak pkgs: 16 Shell: Bash v: 5.2.15
running-in: konsole inxi: 3.3.27
The commented lines just reflect the default settings for the given options. By uncommentating and changing the relevant option you changed the behaviour.
So all good now?
1 Like
jaared
August 27, 2023, 7:18am
6
Yes sir. Everything is fine now. Thank you a lot for your help.
Solve my problem and learnt something. I always thought that commented lines are purely ignored…
It’s still weird that KDE do not overwrite these settings. Maybe the default settings in the file should be “ignore” in order to let user pick whatever he want in KDE settings.
Have a good day sir.
They are ignored. They are listed explicitly to help administrators see the default settings.
The KDE utility only changes user-specific settings. Not system-wide settings (that administrators control).