Disabling screen timeout for plasma mobile
#1
Hi everyone, I just thought I would share something I stumbled across the other day, which seems very difficult to find on the web?

How to disable the very short screen timeout for plasma on the pinephone.

-This can be an incredibly distracting issue, -maybe it needs dealing with?

I happened to long-press the desktop, and "Add Widgets" appeared
I pressed this, and tried adding the "Display Configuration" widget.
It had something called "Enable Presentation Mode", which I tried.

This seemed to work, and the screen then stayed on indefinately -Yay!

Perhaps this is helpful to someone else?

Regards.
  Reply
#2
It's not quite what I'm looking for. I'd like to just adjust the timeout value. It's nowhere to be found. One would think there'd be a power-settings, lock screen settings, or display settings section in the "Settings" app... but I guess not. Still searching....
  Reply
#3
(02-19-2021, 12:59 AM)pagesix1536 Wrote: It's not quite what I'm looking for.  I'd like to just adjust the timeout value.  It's nowhere to be found.  One would think there'd be a power-settings, lock screen settings, or display settings section in the "Settings" app... but I guess not.  Still searching....

rp3's tip has been very handy.  It seems that there are still some power management problems when the phone is on standby.  I have just left the widget on the screen and made sure presentation mode was selected.  It leaves the modem on even if you turn off the screen.

If you are having trouble finding it, just open the phone to the main screen.  Then press and hold the main screen.  An "add widgets" button will appear at the bottom.  Press that button, then select the monitor icon.  The widget will attach to the main screen and will give you the option to select Presentation Mode.
  Reply
#4
@pagesix1536
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:
Code:
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:
Code:
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:
Code:
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:

Code:
kwriteconfig5 --file powermanagementprofilesrc --group Battery --group SuspendSession --key idleTime 600000
  Reply
#5
Manually modifying the files is a nice workaround. But is not a good long term solution. A lonng term solution would need to pass the “grandma test”
  Reply
#6
(02-22-2021, 08:14 PM)jbloodwo Wrote: Manually modifying the files is a nice workaround.  But is not a good long term solution.  A lonng term solution would need to pass the “grandma test”

I absolutely agree, this was only meant to be a temporary workaround for those that can't / doesn't want to wait. It's definitely not a good long term solution.

Manjaro Plasma is still an early beta version though, so quite far from the "grandma friendly version" Wink

Joke aside, the KDE Plasma devs are apparently actively working on it: https://invent.kde.org/plasma-mobile/pla...equests/77

I'm sure the Power management options will appear in the settings sooner or later on Manjaro, we just have to be patient.

But that doesn't mean that we have to keep using our devices with the 30s timeout until then.
  Reply
#7
Well I just gave this a try manually using a text editor. I have everything shutdown for the night so ssh was not an option. I may give this another go tomorrow. With ssh. Appers to de staying on for a minuet at 57%. What is he low battery threshold.

EDIT

opp I missed a line now at 3 min or so
  Reply
#8
(01-27-2021, 05:40 AM)rp3 Wrote: Hi everyone, I just thought I would share something I stumbled across the other day, which seems very difficult to find on the web?

How to disable the very short screen timeout for plasma on the pinephone.

-This can be an incredibly distracting issue, -maybe it needs dealing with?

I happened to long-press the desktop, and "Add Widgets" appeared
I pressed this, and tried adding the "Display Configuration" widget.
It had something called "Enable Presentation Mode", which I tried.

This seemed to work, and the screen then stayed on indefinately -Yay!

Perhaps this is helpful to someone else?

Regards.
Respects; I have not used my P64 for awhile and hit the fast time out first thing. Angry Thanks to your post, I rectified it. Of course, as I followed our instructions, it started to come back to me (DOH!) but you got me going. Thanks!
  Reply


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

Forum Jump:


Users browsing this thread: 2 Guest(s)