Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface becomes unusable if 'Power Saver' power profile is active. #969

Closed
tomicakorac opened this issue Oct 27, 2022 · 11 comments
Closed
Labels
bug Something isn't working

Comments

@tomicakorac
Copy link
Contributor

tomicakorac commented Oct 27, 2022

Describe the bug
GNOME version 41 has introduced the Power Profiles feature. One of its presets, 'Power Saver' specifically, causes a number of operation critical issues with Foliate's graphical interface. More information is available in #879.

Workaround
Before running Foliate, select any Power Profile other than 'Power Saver', for example 'Balanced' or 'Performance'.

Steps to reproduce

  1. Activate 'Power Saver' Power Profile (can be done in multiple ways, for example Ubuntu Settings > Power > Power Profile > Power Saver)
  2. Run Foliate and load any .epub file (only .epub is tested, possibly the bug exists for other formats too)

Expected behavior
Foliate should load the file, display its content, and accept navigation through the loaded file by clicking on respective gui elements and using mouse & keyboard shortcuts/commands.

What happens instead

  • The file is stuck in endless loading until focus is switched away from Foliate and back to it again
  • GUI navigation elements (mostly) do not accept clicks, with few exceptions; This is most noticeable when quickly clicking many times on one of the buttons.
  • Keyboard & mouse shortcuts/commands do not work

Version:

  • Foliate version: 2.6.3, 2.6.4
  • OS/Distribution and version: Ubuntu 22.04 and later
  • Desktop environment: GNOME 41 and later
  • Installation method: PPA, Flatpak

Additional context
This bug was first reported in #879 but it took some time to track down the actual causes. The original thread is now closed because it contains a number of outdated and potentially harmful assumptions, and to allow for better prioritisation of debugging.

Since there is an easy workaround, there is no urgency to fix this bug. Also, because GNOME's Power Profile feature is not well documented (we don't know what exactly the "Power Saver" preset does), it is at this time difficult to debug it. For these two reasons, this bug should have a relatively low priority in fixing.

@tomicakorac tomicakorac added the bug Something isn't working label Oct 27, 2022
@tomicakorac
Copy link
Contributor Author

Potentially relevant information was added to another topic here.

@Tuba2
Copy link

Tuba2 commented Nov 23, 2022

I'm having the same problem. Almost gave up on the app before finding this issue, since I had no idea of what was the problem. Glad I didn't, since the app is great. Thanks for finding and reporting!

And I believe it is indeed a low priority bug, but also something that will improve the user experience a lot, since Power Saving mode is great for this app's use case: reading books on your computer.

@johnfactotum johnfactotum pinned this issue Dec 6, 2022
@emes81
Copy link

emes81 commented Jan 12, 2023

Thanks for everyone's efforts identifying this. Would an in-app notification be feasible to alert users to this issue until it is resolved? Foliate is particularly likely to be used by non-technical users who are less likely to be able to find the workaround here.

@Tuba2
Copy link

Tuba2 commented Jan 12, 2023

Sounds great. The Gtk-banner widget seems the most appropriate way to give this alert, appearing only when Power Saving mode is on. A button to disable Power Saving mode can be made available and be pressed directly from the banner.

@wimdows
Copy link

wimdows commented Apr 23, 2023

I have the exact same problem on a Librem5 running PureOS. The L5 does not have a Power Saver mode.

@iiiian
Copy link

iiiian commented May 22, 2023

After reading the source code of power profile daemon, I find that by default it use platform profile. I believe that means power saving is implemented by firmware.

@tomicakorac
Copy link
Contributor Author

@iiiian thanks for replying. To be honest, I fail to see the relevance of your comment to the topic. Can you please elaborate further? How does the knowledge you shared contribute to resolving this issue?

@johnfactotum
Copy link
Owner

Tried the gtk4 branch. Unlike previous versions, it can open and render books normally for the most part.

The only thing that's broken now seems to be the new sliding animation (see #188 and #862). This occurs in Epiphany as well. Upon closer examination, it appears that requestAnimationFrame() is broken in WebKitGTK when power saver mode is active.

@tomicakorac
Copy link
Contributor Author

tomicakorac commented Oct 17, 2023 via email

@jistr
Copy link

jistr commented Oct 17, 2023

I can confirm this seems fixed now on Fedora Silverblue 38.20231015.0 and flatpaks (Foliate + runtime) updated to latest.

@emes81
Copy link

emes81 commented Oct 17, 2023

Fixed on Arch updated to latest

@johnfactotum johnfactotum unpinned this issue Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants