AlmaLinux / AlmaLinux/almalinux-deploy

[BUG]: modeset not configured after installing nvidia-open

Open
#272 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
597
Forks
80
Avg merge
6d 9h
Merged PRs (30d)
1

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

## Summary

After a fresh install of AlmaLinux 9.8 and installation of `nvidia-open` via the `almalinux-release-nvidia-driver` repo, the system boots to a black screen following the post-driver-install reboot. The `nvidia`, `nvidia_modeset`, and `nvidia_drm` kernel modules are loaded successfully, but DRM kernel mode setting is not active, and no configuration enabling it is present anywhere in the boot chain. Manually creating a modprobe.d config to set `nvidia_drm modeset=1` and rebuilding the initramfs resolves the issue. This suggests the package/repo does not set modeset on by default, and nothing in the install/setup flow prompts the user to do so, leaving the driver in a non-functional state out of the box.

## Environment

- **OS:** AlmaLinux release 9.8 (Olive Jaguar)
- **Kernel:** `5.14.0-687.15.1.el9_8.x86_64`
- **Driver package:** `nvidia-open-610.43.02-1.el9_8.x86_64`
- **GPU:** NVIDIA GTX 1660
- **Install method:** Fresh AlmaLinux 9 install, driver installed via:
```
sudo dnf install almalinux-release-nvidia-driver
sudo dnf install nvidia-open
```

### Expected Behavior

## Expected Behavior

After reboot, the system should boot to a working graphical session (display manager / Plasma), or at minimum the nvidia driver stack should be in a state capable of providing kernel mode setting out of the box, or the install flow should prompt/document that this configuration step is required.

### Steps To Reproduce

## Steps to Reproduce

1. Install AlmaLinux 9 from the official ISO.
2. `sudo dnf upgrade` followed by reboot.
3. `sudo dnf install almalinux-release-nvidia-driver`
4. `sudo dnf install nvidia-open`
5. Reboot.

### Anything else?

## Actual Behavior

System boots to a black screen. Dropping to a TTY and inspecting the system shows:

- `lsmod | grep nvidia` shows `nvidia`, `nvidia_modeset`, and `nvidia_drm` all loaded.
- `cat /etc/modprobe.d/*.conf | grep -i nvidia` returns nothing, no nvidia-related modprobe configuration exists.
- `cat /proc/cmdline` contains no `nvidia_drm.modeset=1` (or equivalent) kernel parameter.
- Attempting `startx` manually fails; `Xorg.0.log` shows the X server terminating with error (1).
- The kernel/Xorg log contains the error `could not find NvKmsKapiDevice`, indicating `nvidia_drm` could not obtain a kernel-mode-setting capable device handle from `nvidia-modeset`, consistent with KMS not being enabled.

## Workaround

Manually creating `/etc/modprobe.d/nvidia-drm.conf`:

```
options nvidia_drm modeset=1
```

followed by:

```
sudo dracut -f --kver $(uname -r)
reboot
```

resolves the issue and the system boots to a working graphical session.

## Notes

- The nvidia kernel modules load successfully and are present at boot; this is not a missing-driver or kmod-build-failure issue. The driver stack is present but non-functional for display purposes without the above manual step.
- Neither `almalinux-release-nvidia-driver` nor `nvidia-open` appear to set `nvidia_drm.modeset=1` by default via modprobe.d or kernel cmdline, and no warning or post-install message indicates this step is required.
- This was reproduced twice (across two separate fresh installs), with the same root cause and same fix both times.

### Search terms

nvidia modeset nvidia-open nvidia_drm nvidia driver nvidia_driver nvidia-driver

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.