to get my dotfiles, type
git clone --depth 1 https://github.com/pinitik1906/dotfiles.git ~/git/dotfiles
to update my dotfiles (either check it weekly or monthly), type
cd ~/git/dotfiles && git pull
for grub
in /etc/default/grub, copy my kernel parameters
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 console=tty12 udev.log_level=0 nmi_watchdog=0 nowatchdog modprobe.blacklist=iTCO_wdt modprobe.blacklist=sp5100_tco intel_iommu=igfx_off clocksource=tsc tsc=reliable preempt=full msr.allow_writes=on i915.enable_fbc=1 i915.enable_guc=3 i915.fastboot=1 i915.enable_dc=4 i915.enable_psr=2 cryptomgr.notests initcall_debug kvm-intel.nested=1 no_timer_check noreplace-smp page_alloc.shuffle=1 rcupdate.rcu_expedited=1 mitigations=off"
then do,
sudo update-grub
it is a program gammastep
helps your eye with less eye-strains. if you want to remove, use the command below:
artix
sudo pacman -Rns gammastep
void
sudo xbps-remove -R gammastep
add this to your kernel parameters (grub)
GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.dcdebugmask=0x400"
and do not forget to regenerate it
sudo update-grub
this is needed to make wayland compositors to function properly, referencing this website but friendly since I did some preconfiguration. (i will choose neovim for this tutorial)
uncomment inside my .bash_profile
in nvidia tweaks
and direct backend for nvidia
by removing a hashtag and rename in vaapi & vdpau env
from both i965,va_gl
to nvidia
, so it will look like this
nvim $HOME/.bash_profile
ex.
# nvidia tweaks
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
# vaapi & vdpau env
export LIBVA_DRIVER_NAME=nvidia
export VDPAU_DRIVER=nvidia
# direct backend for nvidia
export NVD_LOG=0
export NVD_BACKEND=direct
put this on /etc/mkinitcpio.conf
with your favorite terminal editor and find & remove kms
in HOOKS
section
sudo nvim /etc/mkinitcpio.conf
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
and then do,
sudo mkinitcpio -P
next, go to your kernel parameters (i will choose grub)
sudo nvim /etc/default/grub
and then copy & paste this
GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1 nvidia_drm.fbdev=1"
regenerate it
sudo update-grub
finally, reboot your pc and check if NVIDIA DRM were set correctly
sudo cat /sys/module/nvidia_drm/parameters/modeset
edit in .bash_profile
from your home directory
find a line below and replace it from startx
to river
or vice-versa
# autostart your WM here
if [ "$(tty)" = "/dev/tty1" ]; then
startx &>/dev/null
fi
taken from the void-xmirror
"The tier 1 mirrors sync directly from the build servers and will always have the latest packages available. While tier 2 mirrors are not managed by Void and do not have any guarantees of freshness or completeness of packages, nor are they required to sync every available architecture or sub-repository."