Disabling screen timeout for plasma mobile
The power management config file is located here: ~/.config/powermanagementprofilesrc

There are 3 profiles: AC, Battery and LowBattery. Both the DimDisplay and the DPMSControl (Display Power Management Signaling) parameter determines the screen timeout. It appears that DPMSControl sets when the screen turn off, and DimDisplay sets when the screen will be dimmed before being turned off.

To change it, you can edit the 'idleTime=30000' lines in the config file to the value of your choice for each profile (in ms), or use the 'kwriteconfig5' command:

To set the screen timeout to 10 minutes when charging:
kwriteconfig5 --file powermanagementprofilesrc --group AC --group DimDisplay --key idleTime 600000
kwriteconfig5 --file powermanagementprofilesrc --group AC --group DPMSControl --key idleTime 600000

To set the screen timeout to 3 minutes when running on battery:
kwriteconfig5 --file powermanagementprofilesrc --group Battery --group DimDisplay --key idleTime 180000
kwriteconfig5 --file powermanagementprofilesrc --group Battery --group DPMSControl --key idleTime 180000

To set the screen timeout to 1 minute when running on low battery:
kwriteconfig5 --file powermanagementprofilesrc --group LowBattery --group DimDisplay --key idleTime 60000
kwriteconfig5 --file powermanagementprofilesrc --group LowBattery --group DPMSControl --key idleTime 60000

A quick reboot (couldn't find how to reload the config file) and enjoy your PinePhone screen finally staying on for longer than 30s!  Smile

It should also be possible to change the suspend timeout using the same procedure:

kwriteconfig5 --file powermanagementprofilesrc --group Battery --group SuspendSession --key idleTime 600000

Messages In This Thread
RE: Disabling screen timeout for plasma mobile - by JasonG-FR - 02-22-2021, 05:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  screen brightness Uturn 1 769 10-09-2023, 04:38 AM
Last Post: Eugo
  what is wrong with KDE plasma beta15 RC4? Uturn 8 1,770 10-02-2023, 05:07 AM
Last Post: Uturn
  screen brightness locked Uturn 0 700 07-07-2023, 09:38 AM
Last Post: Uturn
Exclamation My short experience with Manjaro Plasma Mobile anonymous 10 5,003 03-02-2023, 07:25 PM
Last Post: Kevin Kofler
  Backup and Home Screen Tinkering on Phosh jakfish 0 897 02-24-2023, 12:56 PM
Last Post: jakfish
  gnome-mobile dev Uturn 1 1,164 02-22-2023, 03:37 AM
Last Post: acrux
  Manjaro plasma-mobile Beta 13 Uturn 13 5,128 01-25-2023, 04:15 PM
Last Post: Kevin Kofler
  Manjaro Plasma busted Chief 2 1,642 11-22-2022, 05:00 PM
Last Post: Chief
  Screen timeout makes alarm and timer unusable... Eugo 9 4,215 10-03-2022, 01:41 AM
Last Post: Eugo
  Screen blocker is damaged ("loginctl unlock-session c1" problem) Gon 2 1,998 09-29-2022, 12:42 PM
Last Post: Firewave

Forum Jump:

Users browsing this thread: 1 Guest(s)