Skip to content

Instantly share code, notes, and snippets.

@Vertecedoc4545
Last active January 12, 2024 15:17
Show Gist options
  • Save Vertecedoc4545/07a9624924ac3e03ff0ab2d5e3616955 to your computer and use it in GitHub Desktop.
Save Vertecedoc4545/07a9624924ac3e03ff0ab2d5e3616955 to your computer and use it in GitHub Desktop.

Nvidia building

in ubuntu 23.04 the only thing you need to do at system level is:

  • add nvidia_drm.modeset=1 to /etc/default/grub in GRUB_CMDLINE_LINUX_DEFAULT=, and thats it
  • then you need to run sudo update-grub and reboot

after that we need to apply the patches:

sed 's/glFlush();/glFinish();/g' -i subprojects/wlroots/render/gles2/renderer.c

then we can run the build-ubuntu-23.sh or manually follow the ubuntu 23.04 install guide

the rest of documentation is in the NVIDIA PAGE

@Quvist
Copy link

Quvist commented Jan 3, 2024

Default line is
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Are you supposed to make it
GRUB_CMDLINE_LINUX_DEFAULT="nvidia_drm.modeset=1"

?

@wahyudisfh
Copy link

Default line is GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Are you supposed to make it GRUB_CMDLINE_LINUX_DEFAULT="nvidia_drm.modeset=1"

?

No you just add "nvidia_drm.modeset=1" at the end of the string like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia_drm.modeset=1"

#cmiiw

@thedroiddiv
Copy link

the rest of documentation is in the [NVIDIA PAGE](https://wiki.hyprland.org/Nvidia/)
We just need to add the env vars to hyprland.conf apart from this, right?

I'm having issues, where Hyprland launches with AMD GPU and it crashes.

Logs

GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] [10de:25a2] (rev a1) (prog-if 00 [VGA controller])
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c6) (prog-if 00 [VGA controller])


Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.

os-release:
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

========================



If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/



Current splash: Ding ding pch n daa, bam-ba-ba-re-bam baram bom bom baba-bam-bam-bommm


Creating the HookSystem!
Creating the KeybindManager!
Creating the AnimationManager!
Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 22.12µs. Estimated average calc time: 0.00µs.
Creating the ConfigManager!
Creating the CHyprError!
 [hookSystem] New hook event registered: focusedMon
 [hookSystem] New hook event registered: preRender
Creating the LayoutManager!
Reloading the config!
Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 8.50µs. Estimated average calc time: 0.00µs.
Registered dynamic var "$terminal" -> kitty
Registered dynamic var "$fileManager" -> dolphin
Registered dynamic var "$menu" -> wofi --show drun
Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 8.37µs. Estimated average calc time: 0.00µs.
Invalid rulev2 found: nomaximizerequest
Registered dynamic var "$mainMod" -> SUPER
amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
[1]    9695 segmentation fault (core dumped)  Hyprland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment