Since 6.3.8 I have also freezes on an amd + nvidia laptop and had to hard reset, with 6.3.9 occurs more often, the issue here : https://gitlab.freedesktop.org/drm/amd/-/issues/2006 gives a workaround to add to the kernel cmd line : amdgpu.dcdebugmask=0x10 so far I'm testing for two days and the hang doesnt occur anymore, maybe it is related for your hardware.
git clone https://github.com/Frogging-Family/linux-tkg
cd linux-tkg
#change customization.cfg, so far I only tested it with 6.2
#create dir for patch
mkdir linux<version that you put in customization.cfg edit -- without . dot>-tkg-userpatches
#download patch, I think this is the last updated patch
curl https://bugzilla.kernel.org/attachment.cgi\?id\=303726\&action\=diff\&collapsed\=\&headers\=1\&format\=raw -o linux<version..see up>-tkg-userpatches/fix_tpm.mypatch
# compile
makepkg
# install
pacman -U *.zst
# configure your boot loader grub,systemd-boot, ...
xf86-video-amdgpu helps when using WM's (i3, bswpm, ..) and not compositor being used (picom, ...) to avoid tearing, if you are using DE's (GNOME, KDE, ..) you dont need it because they have their own compositor, so if you are using DE just leave this section as this:
Section "Device"
Identifier "amdgpu"
Driver "modesetting" #<- change from amdgpu
# Option "TearFree" "true"
# Option "DRI" "3"
# Option "VariableRefresh" "true"
BusID "PCI:6:0:0" #<- change to your amd pci id
EndSection
Do you have xf86-video-amdgpu installed? If not change driver in the conf to modesetting and comment the options parameters. The services that you disable the not needed are switcheroo- and nvidia-persistenced those can be disabled.
When you have prime-offload working, the programs that you need to use the dGPU have to be called with prime-run <program>.
This is my xorg.conf for prime offload for my laptop with amd igpu + nvidia dgpu, replace the amdgpu/nvidia bus id with the ones that you see with lspci:
If you selected as boot loader: systemd when using archinstall, there was an issue a few weeks ago (with the iso at that date) that the systemd boot entry file created in /boot/loader/entries/<date>.conf there was a placeholder not replaced making the installation show that error of mounting /new_root, something like <FSTREE.. , you have to remove that part to boot correctly.
Try downgrading to linux-firmware-20200916.00a84c5-1, and run mkinitcpio -P and reboot , I have also a laptop with amdgpu and the latest firmware versions of this year makes that error appear and/or the amdgpu memory clock go to 100% .
the 495 driver will support GBM. The egl-wayland changes that broke things were in preparation for that. Instead of using EGLStreams to send frames to the compositor it now uses generic DMA-BUFs
I dont know about gnome but in kde wayland or sway (wayland) configured to use the amd gpu you can use the prime-run command to launch a xwayland using the nvidia card , you just have to set correctly some env variables :
You have to have the nvidia modules loaded (via mkinitcpio.conf or in modprobe.d) or in my case I use a simple script to load/unload the modules.
Then prime-run app, should appear in nvidia-smi .
The problem is with my amd/nvidia laptop is that when the nvidia_drm module is loaded the opengl/vulkan games show some kind of stutter/artifacts like showing parts of a previous frame like if is not syncing but with normal/high fps, if the nvidia_drm is not loaded only with nvidia, nvidia_modeset, nvidia_uvm modules runs almost smooth but the fps could be lower and/or without sync. I dont know yet if is the xwayland or the driver.
edit: if nvidia-smi show no process means you are running your de/wm session with the integrated gpu (amdgpu), if the nvidia drivers were not loaded the nvidia-smi will crash with an error, only when using X11 config you will see a xorg process running in the case of prime offload until you launch others using it (prime-run) or many when X11 is configured to use only nvidia.
You can try with zenstates for that cpu, disabling the higher states 2.3Ghz, 1.7Ghz and leaving only the 1.4Ghz similar to what windows does, turbo boost should be disabled too (/sys/devices/system/cpu/cpufreq/boost)
value 2 = Silent, maybe that laptop brand is using the same module or look if there is something similar. I remember that when I got the lap 2019 I could set the usage at ~5W but in later kernels it has been increasing ..
Your school network may have some firewall rules to block not common ports, I think mullvad uses by default tcp ports 51xxx , if the app allows you to modify it try with 443 (if mullvad server allows it). If I remember correctly you can specify the server connection port when creating a wireguard conf on the mullvad website.
There is another way (reverse prime) to use one tty for the igpu with the dgpu suspended, and then with ctrl + alt+ f2 start a x server on tty2 waking up the nvidia card and suspending it after use, is almost the same as logging out and login again the difference is that you dont lose what you were doing in tty1.
Well if unbound is asking and caching a domain with its ip is in fact resolving and acting as middleman between the client (your pc) and the one that has the domain - ip pair (root dns server, other dns server). If you want to set up an authoritative server I think "bind" is the one that you can research.
if you are not downloading all the dns records to your machine you are just doing a dns cache so it needs to forward the resolution to a dns server (8.8.8.8 or other) and then it caches the ip for the next requests .., this is my working config maybe it gives you a hint what is missing in your config:
https://github.com/Frogging-Family/nvidia-all
You can also use asdf to install flutter:
Since 6.3.8 I have also freezes on an amd + nvidia laptop and had to hard reset, with 6.3.9 occurs more often, the issue here : https://gitlab.freedesktop.org/drm/amd/-/issues/2006 gives a workaround to add to the kernel cmd line : amdgpu.dcdebugmask=0x10 so far I'm testing for two days and the hang doesnt occur anymore, maybe it is related for your hardware.
betterlockscreen for Xorg wm, swaylock-effects for Wayland wm
with linux-tkg
xf86-video-amdgpu helps when using WM's (i3, bswpm, ..) and not compositor being used (picom, ...) to avoid tearing, if you are using DE's (GNOME, KDE, ..) you dont need it because they have their own compositor, so if you are using DE just leave this section as this:
Do you have xf86-video-amdgpu installed? If not change driver in the conf to modesetting and comment the options parameters. The services that you disable the not needed are switcheroo- and nvidia-persistenced those can be disabled.
When you have prime-offload working, the programs that you need to use the dGPU have to be called with prime-run <program>.
This is my xorg.conf for prime offload for my laptop with amd igpu + nvidia dgpu, replace the amdgpu/nvidia bus id with the ones that you see with lspci:
For reverse prime you can also use nvidia-xrun or optimus-manager.
3 : take a look at lvmcache https://man7.org/linux/man-pages/man7/lvmcache.7.html
probably, I dont use grub so I cant help with that, maybe the wiki gives you more info howto: https://wiki.archlinux.org/title/GRUB
If you selected as boot loader: systemd when using archinstall, there was an issue a few weeks ago (with the iso at that date) that the systemd boot entry file created in /boot/loader/entries/<date>.conf there was a placeholder not replaced making the installation show that error of mounting /new_root, something like <FSTREE.. , you have to remove that part to boot correctly.
Something like this : https://man7.org/linux/man-pages/man7/lvmcache.7.html, you can put BTRFS over LV's, but regarding performance you will have to check with the hw that you have. Look at the valid strategies on this link : https://btrfs.wiki.kernel.org/index.php/FAQ#Interaction_with_partitions.2C_device_managers_and_logical_volumes
Try downgrading to linux-firmware-20200916.00a84c5-1, and run mkinitcpio -P and reboot , I have also a laptop with amdgpu and the latest firmware versions of this year makes that error appear and/or the amdgpu memory clock go to 100% .
podman, in rootless mode
He confirmed here: https://bbs.archlinux.org/viewtopic.php?pid=1995322#p1995322
I dont know about gnome but in kde wayland or sway (wayland) configured to use the amd gpu you can use the prime-run command to launch a xwayland using the nvidia card , you just have to set correctly some env variables :
In your session (bash, zsh) set :
And prepend to or better create a new prime-run (cause it can be replaced in an update) the same variables but for nvidia:
You have to have the nvidia modules loaded (via mkinitcpio.conf or in modprobe.d) or in my case I use a simple script to load/unload the modules.
Then prime-run app, should appear in nvidia-smi .
The problem is with my amd/nvidia laptop is that when the nvidia_drm module is loaded the opengl/vulkan games show some kind of stutter/artifacts like showing parts of a previous frame like if is not syncing but with normal/high fps, if the nvidia_drm is not loaded only with nvidia, nvidia_modeset, nvidia_uvm modules runs almost smooth but the fps could be lower and/or without sync. I dont know yet if is the xwayland or the driver.
edit: if nvidia-smi show no process means you are running your de/wm session with the integrated gpu (amdgpu), if the nvidia drivers were not loaded the nvidia-smi will crash with an error, only when using X11 config you will see a xorg process running in the case of prime offload until you launch others using it (prime-run) or many when X11 is configured to use only nvidia.
You can try with zenstates for that cpu, disabling the higher states 2.3Ghz, 1.7Ghz and leaving only the 1.4Ghz similar to what windows does, turbo boost should be disabled too (/sys/devices/system/cpu/cpufreq/boost)
In my asus 3750h now I see ~11.xW usage from ~15W, there is also a flag -v to change the voltage? I tested until -v 78
Also for my lap there is a thermal throttle that change the speed of the fans
value 2 = Silent, maybe that laptop brand is using the same module or look if there is something similar. I remember that when I got the lap 2019 I could set the usage at ~5W but in later kernels it has been increasing ..
Your school network may have some firewall rules to block not common ports, I think mullvad uses by default tcp ports 51xxx , if the app allows you to modify it try with 443 (if mullvad server allows it). If I remember correctly you can specify the server connection port when creating a wireguard conf on the mullvad website.
There is another way (reverse prime) to use one tty for the igpu with the dgpu suspended, and then with ctrl + alt+ f2 start a x server on tty2 waking up the nvidia card and suspending it after use, is almost the same as logging out and login again the difference is that you dont lose what you were doing in tty1.
yea that is ok using prime render offload, I got 4W if I use it.
Use https://github.com/Askannz/optimus-manager, just using the intel gpu and suspending the nvidia card can go to 3-4hrs or more.
sway + emacs/spacemacs, asdf to handle different versions of runtimes (programming languages/frameworks)
Well if unbound is asking and caching a domain with its ip is in fact resolving and acting as middleman between the client (your pc) and the one that has the domain - ip pair (root dns server, other dns server). If you want to set up an authoritative server I think "bind" is the one that you can research.
unbound is a recursive dns server so it doesnt have the matches of domain to ip, so it needs to lookup or ask to another dns server (authoritative).
if you are not downloading all the dns records to your machine you are just doing a dns cache so it needs to forward the resolution to a dns server (8.8.8.8 or other) and then it caches the ip for the next requests .., this is my working config maybe it gives you a hint what is missing in your config:
ads.conf the blocked ips, root.hints are downloaded with
curl --output /etc/unbound/root.hints https://www.internic.net/domain/named.cache