mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-07-21 12:45:19 +02:00
nvidia compat
This commit is contained in:
parent
2e22317d5b
commit
2bc2147d5b
@ -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
|
||||
|
||||
# Disable compositing and screen lock
|
||||
if [ ! -f $HOME/.config/kwinrc ]; then
|
||||
kwriteconfig5 --file $HOME/.config/kwinrc --group Compositing --key Enabled false
|
||||
fi
|
||||
@ -8,4 +16,6 @@ if [ ! -f $HOME/.config/kscreenlockerrc ]; then
|
||||
fi
|
||||
setterm blank 0
|
||||
setterm powerdown 0
|
||||
|
||||
# Launch DE
|
||||
/usr/bin/dbus-launch /usr/bin/startplasma-x11 > /dev/null 2>&1
|
||||
|
Loading…
x
Reference in New Issue
Block a user