Skip to content

Commit

Permalink
fix: use default nvidia driver power management
Browse files Browse the repository at this point in the history
This fixes power management on optimus laptops, specifically for Ampere+
where the specified config was preventing D3cold state.

Upstream negativo17 should be notified of this change, too.

Fix: #290
  • Loading branch information
bsherman committed Oct 28, 2024
1 parent e2db1aa commit 373f932
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nvidia-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ sed -i 's@omit_drivers@force_drivers@g' /usr/lib/dracut/dracut.conf.d/99-nvidia.
# as we need forced load, also mustpre-load intel/amd iGPU else chromium web browsers fail to use hardware acceleration
sed -i 's@ nvidia @ i915 amdgpu nvidia @g' /usr/lib/dracut/dracut.conf.d/99-nvidia.conf

# delete forced power managemant to instead allow driver default (fixes ampere+ optimus D3cold state)
sed '/^.*NVreg_DynamicPowerManagement.*/d' /usr/lib/modprobe.d/nvidia.conf

if [[ "${IMAGE_NAME}" == "sericea" ]]; then
mv /etc/sway/environment{,.orig}
install -Dm644 /usr/share/ublue-os/etc/sway/environment /etc/sway/environment
Expand Down

0 comments on commit 373f932

Please sign in to comment.