Skip to content

Nvidia support for omarchy - #13

Merged
dhh merged 6 commits into
omacom:masterfrom
Kn0ax:master
Jul 2, 2025
Merged

dhh merged 6 commits into
omacom:masterfrom
Kn0ax:master

Conversation

@Kn0ax

@Kn0ax Kn0ax commented Jun 29, 2025 •

Copy link
Copy Markdown
Contributor

This PR attempts to implement automatic NVIDIA detection in Omarchy. For cards newer than the GTX 1000 series, nvidia-open-dkms should be used, while older cards should use nvidia-dkms, along with additional packages for a more seamless NVIDIA + Hyprland setup.
This is untested, please test it and let me know!

You can try to install with:
wget -qO- https://raw.githubusercontent.com/Kn0ax/omarchy/refs/heads/patch-install/boot.sh | bash

this commit tries to add nvidia suppport.
it's not tested yet.
@Kn0ax Kn0ax mentioned this pull request Jun 29, 2025
@icehunt

icehunt commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

I tested it, and it works.
2025-06-29-163330_hyprshot
2025-06-29-163252_hyprshot

@dhh dhh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome! Thanks for working on this! Left a few comments to tidy things up.

Comment thread install/nvidia
"egl-wayland"
"libva-nvidia-driver" # For VA-API hardware acceleration
"qt5-wayland"
"qt6-wayland"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How does the q5*-wayland packages relate to this nvidia stuff?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

some old qt apps used require to be installed for Nvidia setups, i can check it again.

Comment thread install/nvidia Resolved
Comment thread install/nvidia Resolved
Comment thread install/nvidia Resolved
Comment thread install/nvidia Resolved
Comment thread install/nvidia Outdated
)

if ! yay -Syu --needed --noconfirm "${PACKAGES_TO_INSTALL[@]}"; then
echo -e "${C_RED}${C_BOLD}[ERROR]${C_RESET} Failed to install NVIDIA packages. Please check the output for errors." >&2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why would this ever fail? We're not doing defensive package installations in the other installers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wanted the error output to be understandable to the user.
When it comes to Arch or Linux in general, Nvidia drivers sometimes have random installation issues or dependency problems.

Comment thread install/nvidia Resolved
Comment thread install/hyprlandia.sh Resolved
@icehunt

icehunt commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

I can do one more test later tonight (pacific time) to make sure nothing got broken by the changes.

@Kn0ax

Kn0ax commented Jun 30, 2025

Copy link
Copy Markdown
Contributor Author

I can do one more test later tonight (pacific time) to make sure nothing got broken by the changes.

i pushed changes to installer branch. you can use the same command above to test.

Comment thread install/nvidia.sh Resolved
Comment thread install/nvidia.sh Resolved
Comment thread install/nvidia.sh Resolved
@icehunt

icehunt commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

@Kn0ax I fixed the stuff dhh asked for, and tested it, put a pr up against your fork.

@jopesh

jopesh commented Jul 1, 2025 •

Copy link
Copy Markdown
Contributor

Thanks for saving a lot of work! I've used the script on a clean install and it seems that the combination nvidia+chromium+webgl is an issue at the moment. I am digging right now, but can't find an ad hoc solution.

about:gpu result:
20250701_14h06m34s_grim

UPDATE:
After digging, it seems to be related to iGPUs. Disabling the iGPU in BIOS fixed it for me. Maybe it's worth a note in the manual.

@dhh

dhh commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

Looks like we are there on the code side. Can someone verify that what we have now works? Then I'll merge. Thanks for all the work on this, gang! Will be super nice if things just work out the box with Nvidia.

@ehutzelman

Copy link
Copy Markdown

I will run a clean install with this script tonight on my 4070 build to test it out and report back.

@jakubhrstka

jakubhrstka commented Jul 2, 2025 •

Copy link
Copy Markdown

I just ran clean install on my machine (rtx 2070, ryzen 5 2600) using the command from the original comment and it went smooth, everything looks alright, scaling is ok (using 1 monitor - 2560x1440)

@kmckelvin

Copy link
Copy Markdown

I ran this on an existing install by just running nvidia.sh, after reverting the commands in the Getting Started guide.

Idle battery usage has come down to about 8W, where it was about 16-20W before. Everything worked.

Intel Core i9 8950HK
GeForce GTX 1050 Ti Mobile

Thanks for working on this!

@dhh
dhh merged commit 14fe67e into omacom:master Jul 2, 2025
@ehutzelman

Copy link
Copy Markdown

Ran this on a fresh install on Z790 intel build and Nvidia 4070 was setup correctly out of the gate, no issues. Thanks!

@ludgerpaehler

Copy link
Copy Markdown

Looking back through this PR, is there any reason it does not automatically add the NVIDIA kernel parameter flag recommended by Hyprland in its Nvidia docs? I.e.

nvidia.NVreg_PreserveVideoMemoryAllocations=1

@Kn0ax

Kn0ax commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor Author

Looking back through this PR, is there any reason it does not automatically add the NVIDIA kernel parameter flag recommended by Hyprland in its Nvidia docs? I.e.

nvidia.NVreg_PreserveVideoMemoryAllocations=1

It's done by nvidia-dkms package byself.

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.

8 participants