Skip to content

Fix RAM type not showing on FPS counter in Linux - #1041

Open
ACoolioDude wants to merge 6 commits into
CodenameCrew:mainfrom
ACoolioDude:main
Open

Fix RAM type not showing on FPS counter in Linux#1041
ACoolioDude wants to merge 6 commits into
CodenameCrew:mainfrom
ACoolioDude:main

Conversation

@ACoolioDude

@ACoolioDude ACoolioDude commented Aug 1, 2026

Copy link
Copy Markdown
  • Hello there! If you know me, i am Stefan2008 (aka. ACoolioDude) and i decided to fix RAM type on Linux by telling engine to execute pkexec (you need to have policy polkit rule and any polkit package in your distro in order to get this working otherwise engine will ignore if you don't have polkit installed and now show total RAM text in framerate) and fixed code (not using AI at all!) and fixed byte thing because it caused to simply give different bytes and not giving actual system RAM value, so hope this gets merged!

  • Example of polkit pop-up when you open game

Screenshot_2026-08-01_18:43:54
  • Example of preview in-game
Screenshot_2026-08-01_16:06:02
  • Example of ignoring pop-up and not crashing engine which hides Total MEM info from framerate interface
2026-08-01.18-51-58.mp4

- Hello there! If you know me, i am Stefan2008 (aka. ACoolioDude) and i decided to fix RAM type on Linux by telling engine to execute pkexec and fixed code (not using AI at all!) and fixed byte thing because it caused to simply give different bytes and not giving actual system RAM value, so hope this gets merged!
@ACoolioDude

Copy link
Copy Markdown
Author

If you have any questions, ask!

@ACoolioDude ACoolioDude changed the title Fix RAM type on Linux Fix RAM type showing on FPS counter in Linux Aug 1, 2026
@ACoolioDude ACoolioDude changed the title Fix RAM type showing on FPS counter in Linux Fix RAM type not showing on FPS counter in Linux Aug 1, 2026
@r6915ee

r6915ee commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Hm, I'm not exactly sure. Perhaps this can be opt-in through a define? I personally really don't want to run anything in Codename with root privileges on my own PC, nor do I think we need to introduce any dependency on Polkit.

@ACoolioDude

Copy link
Copy Markdown
Author

Hm, I'm not exactly sure. Perhaps this can be opt-in through a define? I personally really don't want to run anything in Codename with root privileges on my own PC, nor do I think we need to introduce any dependency on Polkit.

Hi there. Unfortunately there is no other way to get this working, but it is what it is. I tried my best

@r6915ee

r6915ee commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Hi there. Unfortunately there is no other way to get this working, but it is what it is. I tried my best

This should at the very least be possible, it's possible to run rootless inxi and get the device type from there:

$ inxi --ms
Memory:
  System RAM: total: 32 GiB available: 31.26 GiB used: 11.19 GiB (35.8%)
  Report: arrays: 1 capacity: 64 GiB installed: 32 GiB slots: 4 active: 2
    type: DDR4 eec: None

@ACoolioDude

Copy link
Copy Markdown
Author

Hi there. Unfortunately there is no other way to get this working, but it is what it is. I tried my best

This should at the very least be possible, it's possible to run rootless inxi and get the device type from there:

$ inxi --ms
Memory:
  System RAM: total: 32 GiB available: 31.26 GiB used: 11.19 GiB (35.8%)
  Report: arrays: 1 capacity: 64 GiB installed: 32 GiB slots: 4 active: 2
    type: DDR4 eec: None

I think i should see to get that working

@ACoolioDude

Copy link
Copy Markdown
Author

Do not merge this yet! I am currently busy and i will try to get rootless method working

@Raltyro
Raltyro marked this pull request as draft August 4, 2026 10:39
@MRK2009

MRK2009 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Ralty drafted your pr, since it's still wip.

@moxie-coder

Copy link
Copy Markdown
Contributor

Ralty drafted your pr, since it's still wip.

yes, thank you Captain Obvious

@MRK2009

MRK2009 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Just letting him know (in case if drafting didn't notify him) anyway, bruh.

@ACoolioDude

Copy link
Copy Markdown
Author

Just letting him know (in case if drafting didn't notify him) anyway, bruh.

I just disabled notifications on Gmail because they bother me sometimes

@MRK2009

MRK2009 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Ah make sense

@ACoolioDude

Copy link
Copy Markdown
Author

Hi there. Unfortunately there is no other way to get this working, but it is what it is. I tried my best

This should at the very least be possible, it's possible to run rootless inxi and get the device type from there:

$ inxi --ms
Memory:
  System RAM: total: 32 GiB available: 31.26 GiB used: 11.19 GiB (35.8%)
  Report: arrays: 1 capacity: 64 GiB installed: 32 GiB slots: 4 active: 2
    type: DDR4 eec: None

I think i should see to get that working

@r6915ee I got it working with inxi method

- Using pkexec gives root access to game which can cause security issues which people don't really want that!
@ACoolioDude
ACoolioDude marked this pull request as ready for review August 4, 2026 21:07
@ACoolioDude

Copy link
Copy Markdown
Author
2026-08-04.23-09-37.mp4

Preview of using rootless method

@ACoolioDude

Copy link
Copy Markdown
Author

Ralty drafted your pr, since it's still wip.

yes, thank you Captain Obvious

LOL

ACoolioDude and others added 2 commits August 5, 2026 00:05
The `--mm` flag filters out devices with no module installed, unlike
the `-m` flag, which would just place a warning that the module was
not installed... right in the type field, for that matter.
@r6915ee

r6915ee commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

It works correctly. However, it gets the first device type, not the first installed module type, so inxi displays the type field as an error in this case.

image

It might be a good idea to replace the -m flag in the command with the --mm flag so that inxi filters out devices with no module installed. I'll see if I can get a pull request up to your branch for this.

image

Replace `inxi -m` with `inxi --mm` when getting memory type on Linux
@ACoolioDude

ACoolioDude commented Aug 4, 2026

Copy link
Copy Markdown
Author

It works correctly. However, it gets the first device type, not the first installed module type, so inxi displays the type field as an error in this case.

image It might be a good idea to replace the `-m` flag in the command with the `--mm` flag so that `inxi` filters out devices with no module installed. I'll see if I can get a pull request up to your branch for this. image

A, yes! You're right. Mine just showed LPDDR5 with -m flag fine, but for other cases, --mm flag works better

@ACoolioDude

Copy link
Copy Markdown
Author

Do not merge this yet! I am currently busy and i will try to get rootless method working

Now you can merge or if there's any issue, just say. I may not reply if i get any answer because i am gonna be busy

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.

4 participants