Skip to content

Commit

Permalink
nvidia compat
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed May 23, 2024
1 parent 205cb3e commit ddb6db7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions root/defaults/startwm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

# Enable Nvidia GPU support if detected
if which nvidia-smi; then
export LIBGL_KOPPER_DRI2=1
export MESA_LOADER_DRIVER_OVERRIDE=zink
export GALLIUM_DRIVER=zink
fi

# Launch DE
setterm blank 0
setterm powerdown 0
/usr/bin/icewm-session > /dev/null 2>&1

0 comments on commit ddb6db7

Please sign in to comment.