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

Complete system-info compatibility with Steam System Information and ProtonDB #236

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

flexiondotorg
Copy link
Contributor

@flexiondotorg flexiondotorg commented Jul 28, 2022

Extends system-info so it produces output that is 100% compatible with what Steam System Information produces, including the inconsistent double and single character spacing. The resulting output is also compatible with ProtonDB. Best efforts are made to automatically hunt for an accessible DISPLAY.

Unlike Steam System Information on Linux, this system-info will correctly identify touch devices and correctly count HDDs and SSDs.

Motivations for creating this patch are that system-info might be more useful as a general information gathering tool for users reporting issues and that system-info might now be suitable for integrating into the Chimera web app, allowing ChimeraOS users an easy way to add their consoles to their ProtonDB profile.

flexiondotorg added a commit to flexiondotorg/chimeraos that referenced this pull request Jul 28, 2022
Add xorg-dpyinfo to the PACKAGES manifest so that the proposed changes to system-info (ChimeraOS/chimera#236) closely match what Steam System Information generates.
@alkazar
Copy link
Member

alkazar commented Jul 28, 2022

Great work!

Two things I noticed while testing:

  • the script fails when running gamescope/gamepad ui with the error: ERROR! Failed to find an accessible display.
  • the form factor entry always seems to be empty (I tried 2 different computers, a handheld and a desktop)

@flexiondotorg
Copy link
Contributor Author

flexiondotorg commented Jul 28, 2022

@alkazar I've forced pushed a fix for ERROR! Failed to find an accessible display on Wayland/Xwayland.

@flexiondotorg
Copy link
Contributor Author

@alkazar The form factor is gathered via hostnamectl chassis. If that comes back empty system-info will now report the form factor as unknown.


# Dump data
for CMD in glxinfo xdpyinfo xrandr; do
Copy link
Contributor

Choose a reason for hiding this comment

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

We should make chimera dependent on xdpyinfo for this or at least an optional dependency. Maybe the script should check if it present?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Great. Thanks for that.
The package dependency should be managed in packaging of chimera app. Not necessary to add to the image, would be added by pacman when needed.

…ProtonDB

Extends system-info so it produces output that is 100% compatible with what Steam System Information produces, including the inconsistent double and single character spacing. The resulting output is also compatible with ProtonDB. Best efforts are made to automatically hunt for an accessible DISPLAY. 

Unlike Steam System Information on Linux, this system-info will correctly identify touch devices and correctly count HDDs and SSDs.
  - ValveSoftware/steam-for-linux#5881
  - ValveSoftware/steam-for-linux#8412

Motivation for creating patch are that system-info might be more useful a general information gathering tool for users reporting issues and that system-info might now be suitable for integrating in the Chimera webapp, allowing ChimeraOS users an easy way to add their consoles to their ProtonDB profile.
  - ChimeraOS#231

Make the DISPLAY accessibility checks work on Wayland/Xwayland


If form factor is empty, report it as unknown.


Make the DISPLAY accessibility tests a noop


Correct typo
@Samsagax
Copy link
Contributor

LGTM. And is a significant improvement, we could use this to show system info on the web interface.

@alkazar
Copy link
Member

alkazar commented Aug 3, 2022

Tested on both big picture and gamepad ui. It is working great. Nice work!

@alkazar alkazar merged commit 285ff6b into ChimeraOS:master Aug 3, 2022
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.

3 participants