View previous topic :: View next topic |
Author |
Message |
kickhead13 n00b
Joined: 22 Jun 2024 Posts: 27 Location: /home/ana
|
Posted: Thu Jun 27, 2024 3:34 pm Post subject: |
|
|
Ok I finally solved it and everything works as I wanted (GPU included).
Solution:
I added
Code: | xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto |
to .xinitrc. Now it looks like this:
Code: | #!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -n "`/etc/X11/chooser.sh`" ]; then
command="`/etc/X11/chooser.sh`"
else
failsafe="yes"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
echo $failsafe
echo "dicc"
if [ -n "$failsafe" ]; then
exec /usr/bin/i3
fi
|
Thank you netfab for the help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|