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

Add fullscreen troubleshooting directions #3

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

manikmakki
Copy link

@manikmakki manikmakki commented Oct 11, 2024

I struggled with this on my Pi4 running Raspbian after installing with the ovos-installer in using the virtualenv option. The ovos-gui-app displayed as a "window in window" with 2 sets of window controls.

Summary by CodeRabbit

  • New Features

    • Introduced a new section in the README for enabling fullscreen mode on Linux with Wayland for the ovos-gui-app.
  • Documentation

    • Updated installation instructions and improved the organization of the troubleshooting section.
    • Minor formatting adjustments for clarity throughout the document.

Copy link

coderabbitai bot commented Oct 11, 2024

Walkthrough

The changes in this pull request primarily involve updates to the README.md file for the Mycroft GUI project. A new section has been added to address fullscreen mode for the ovos-gui-app, specifically for Linux users utilizing Wayland. This section outlines a workaround involving modifications to the QT_QPA_PLATFORM variable. Additionally, minor formatting and clarification adjustments have been made throughout the document, particularly in the installation and troubleshooting sections.

Changes

File Change Summary
README.md Added a section on "Fullscreen Mode for ovos-gui-app" addressing Wayland issues; minor formatting adjustments and clarifications throughout.

Poem

In the realm of code where rabbits play,
A new fullscreen guide has hopped our way!
With tweaks and tips for Wayland's embrace,
Our GUI shines bright, a joyful space.
So let’s celebrate this change with cheer,
For every little fix brings us near! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
README.md (2)

142-144: Excellent addition addressing the fullscreen issue.

This new section directly addresses the PR objectives by providing a solution for the fullscreen mode issue on Linux systems using Wayland. The information is relevant and actionable.

To make this even more helpful, consider expanding the instructions with the following details:

  1. Exact file name of the systemd unit file (e.g., ovos-gui-app.service).
  2. Step-by-step instructions on how to edit the file and restart the service.
  3. A note on potential side effects of changing this variable.

For example:

### Fullscreen Mode for ovos-gui-app 

On some Linux OSs using Wayland as the Window Manager, the `ovos-gui-app` doesn't natively run in fullscreen mode. Here's a solution:

1. Locate the systemd unit file: `/home/<user>/.config/systemd/user/ovos-gui-app.service`
2. Edit the file (use sudo if necessary) and find the `Environment` line.
3. Change the `QT_QPA_PLATFORM` variable from `wayland;xcb` to `eglfs`:

Environment=QT_QPA_PLATFORM=eglfs

4. Save the file and restart the service:

systemctl --user daemon-reload
systemctl --user restart ovos-gui-app.service


Note: Changing to `eglfs` might affect other Qt applications. If you experience issues, revert the change.
🧰 Tools
🪛 Markdownlint

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)


142-142: Consider project's markdown style preferences for headings.

The static analysis tool suggests using setext-style headings (underlined with === or ---) instead of the current atx-style (#) for consistency. However, both styles are widely supported and the current style doesn't impact readability.

Unless there's a specific project style guide that mandates setext-style headings, it's reasonable to ignore this suggestion. If you decide to change it, ensure consistency throughout the document.

🧰 Tools
🪛 Markdownlint

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between d0a27f9 and 9656e80.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🧰 Additional context used
🪛 Markdownlint
README.md

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)

🔇 Additional comments (1)
README.md (1)

Line range hint 1-144: Overall, great improvements to the README!

The changes effectively address the PR objectives by adding clear instructions for troubleshooting fullscreen mode issues. The document maintains good structure and readability. With the suggested minor enhancements, this update will significantly improve the user experience for those encountering similar issues.

🧰 Tools
🪛 Markdownlint

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)


145-145: Expected: setext; Actual: atx_closed
Heading style

(MD003, heading-style)


145-145: null
Multiple headings with the same content

(MD024, no-duplicate-heading)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9656e80 and 4ba2b61.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🧰 Additional context used
🪛 Markdownlint
README.md

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)

🔇 Additional comments (2)
README.md (2)

142-142: Maintain consistent heading style

The static analysis tool suggests changing the heading style, but I recommend keeping it as is. The current atx-style heading (using #) is consistent with the rest of the document. Changing only this heading would introduce inconsistency.

🧰 Tools
🪛 Markdownlint

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)


Line range hint 1-144: Overall assessment: Valuable addition to documentation

The changes in this PR successfully address the stated objective of providing troubleshooting directions for fullscreen display issues. The new section is well-integrated into the existing document structure and provides helpful information for users experiencing the described problem.

The modifications maintain the overall integrity and formatting of the README, which is commendable. With the suggested enhancements to the new section, this PR will significantly improve the user experience for those encountering fullscreen mode issues.

🧰 Tools
🪛 Markdownlint

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)


145-145: Expected: setext; Actual: atx_closed
Heading style

(MD003, heading-style)


145-145: null
Multiple headings with the same content

(MD024, no-duplicate-heading)

Comment on lines +142 to +144
### Fullscreen Mode for ovos-gui-app
On some Linux OSs using Wayland as the Window Manager, the `ovos-gui-app` doesn't natively run in fullscreen mode. One possible solution is to change the `QT_QPA_PLATFORM` variable from something like `wayland;xcb` to `eglfs` in the systemd unit file located in `/home/<user>/.config/systemd/user`.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance the fullscreen troubleshooting instructions

The new section addressing fullscreen mode issues is a valuable addition that directly addresses the PR objective. To make it even more helpful, consider the following improvements:

  1. Provide step-by-step instructions for modifying the systemd unit file.
  2. Include a command to locate the correct systemd unit file.
  3. Add a note about potential risks of changing system configurations.
  4. Suggest reverting the changes if they don't solve the issue.

Here's a suggested expansion of the section:

### Fullscreen Mode for ovos-gui-app 

On some Linux OSs using Wayland as the Window Manager, the `ovos-gui-app` doesn't natively run in fullscreen mode. Here's a potential workaround:

1. Locate the systemd unit file:

systemctl --user cat ovos-gui-app.service

If this command doesn't work, the file might be in `/home/<user>/.config/systemd/user/ovos-gui-app.service`.

2. Edit the file using your preferred text editor (e.g., nano):

nano /home//.config/systemd/user/ovos-gui-app.service


3. Find the `Environment` line and change the `QT_QPA_PLATFORM` variable from `wayland;xcb` to `eglfs`:

Environment=QT_QPA_PLATFORM=eglfs


4. Save the file and exit the editor.

5. Reload the systemd daemon:

systemctl --user daemon-reload


6. Restart the ovos-gui-app service:

systemctl --user restart ovos-gui-app.service


Note: Modifying system configurations can have unintended consequences. If this change doesn't resolve the issue or causes other problems, revert the changes and seek further assistance.

This expanded section provides more detailed guidance while maintaining the original information.

🧰 Tools
🪛 Markdownlint

142-142: Expected: setext; Actual: atx
Heading style

(MD003, heading-style)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant