Disable power management in KDE by command


Is it possible to disable power management via command? The problem is no matter what after 10 min. the power management set my screen black and I’m confronted with password screen when moving the mouse. Could it be because I have disable TLP?

  [storm@universe ~]$ inxi -Fxza
  Kernel: 5.8.0-2-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=2ec698ec-51e6-4184-87ce-1230c2e2ec28 rw quiet 
  Desktop: KDE Plasma 5.19.4 tk: Qt 5.15.0 info: latte-dock wm: kwin_x11 
  dm: SDDM Distro: Manjaro Linux 
  Type: Desktop Mobo: ASUSTeK model: PRIME X370-A v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 5222 date: 10/15/2019 
  Device-1: hidpp_battery_0 model: Logitech Wireless Solar Keyboard K750 
  serial: <filter> charge: 67% rechargeable: yes status: Charging 
  Device-2: hidpp_battery_1 
  model: Logitech Marathon Mouse/Performance Plus M705 serial: <filter> 
  charge: 100% (should be ignored) rechargeable: yes status: Discharging 
  Topology: 8-Core model: AMD Ryzen 7 1700X bits: 64 type: MT MCP arch: Zen 
  family: 17 (23) model-id: 1 stepping: 1 microcode: 8001138 
  L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 108631 
  Speed: 3446 MHz min/max: 2200/3400 MHz boost: enabled Core speeds (MHz): 
  1: 2830 2: 1746 3: 1746 4: 1742 5: 1874 6: 1878 7: 1995 8: 1882 9: 1746 
  10: 1744 11: 1877 12: 1879 13: 1930 14: 1881 15: 3107 16: 1744 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  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 AMD retpoline, IBPB: conditional, 
  STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
  Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: ASUSTeK driver: nvidia 
  v: 440.100 alternate: nouveau,nvidia_drm bus ID: 09:00.0 
  chip ID: 10de:1b81 
  Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: nvidia 
  display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 95 s-size: 513x292mm (20.2x11.5") 
  s-diag: 590mm (23.2") 
  Monitor-1: DVI-D-0 res: 1920x1080 hz: 60 dpi: 96 
  size: 510x290mm (20.1x11.4") diag: 587mm (23.1") 
  OpenGL: renderer: GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 440.100 
  direct render: Yes 
  Device-1: NVIDIA GP104 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 09:00.1 chip ID: 10de:10f0 
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 0b:00.3 chip ID: 1022:1457 
  Sound Server: ALSA v: k5.8.0-2-MANJARO 
  Device-1: Qualcomm Atheros AR9227 Wireless Network Adapter driver: ath9k 
  v: kernel bus ID: 06:01.0 chip ID: 168c:002d 
  IF: wlp6s1 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: f000 bus ID: 07:00.0 
  chip ID: 10ec:8168 
  IF: enp7s0 state: down mac: <filter> 
  Local Storage: total: 1.14 TiB used: 30.42 GiB (2.6%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
  block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: 2B6Q scheme: GPT 
  ID-2: /dev/sdb vendor: Toshiba model: DT01ACA100 size: 931.51 GiB 
  block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: A750 scheme: GPT 
  ID-1: / raw size: 232.38 GiB size: 227.74 GiB (98.00%) 
  used: 11.31 GiB (5.0%) fs: ext4 dev: /dev/sda2 
  ID-2: /home raw size: 931.51 GiB size: 915.89 GiB (98.32%) 
  used: 19.10 GiB (2.1%) fs: ext4 dev: /dev/sdb1 
  Alert: No Swap data was found. 
  System Temperatures: cpu: 47.8 C mobo: N/A gpu: nvidia temp: 49 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
  Processes: 328 Uptime: 3h 10m Memory: 31.36 GiB used: 5.95 GiB (19.0%) 
  Init: systemd v: 245 Compilers: gcc: 10.1.0 Packages: pacman: 1253 
  lib: 406 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.05 
[storm@universe ~]$ 

I think under ‘energy saving’ you can disable ‘screen energy saving’ and ‘suspend session after 10 min’.

I disabled them - when I leave the desktop it’ll keep running if I don’t hit ‘sleep’ which will sleep for 8 hours and then hibernate.

That’s the problem. Whatever I set in energy saving enable/disabling my screen goes out after 10 min. inactive.

1 Like

I have same problem!