laptop-bits

G14 Specific

Add to /etc/pacman.conf:

[g14]
SigLevel = DatabaseNever Optional TrustAll
Server = https://arch.asus-linux.org

To then install the hardware controls:

current attempt at fixing shit

https://wiki.archlinux.org/title/PRIME

kinda gave up with the above

X11 on a clean boot “works”:

Audio dies a few seconds after idle

Laptop stuck with dGPU disabled

echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/dgpu_disable
echo 1 > sudo /sys/bus/pci/rescan
echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/dgpu_disable

It may take a few tries to enable it, and a reboot is recommended afterwards.

Also tried uninstalling xorg-server xorg-xinit sddm sddm-kcm

… and somehow after all this, and after rebooting, supergfxctl -s told me I can choose from integrated, hybrid, and dedicated. and -S (current status) told me it’s currently off

supergfxctl -V also now shows AMD

Login loop SDDM and xwayland crash

Attached logs:

The following command seemed to run wayland flawlessy. This was tested with supergfxctl and asusctl uninstalled.

In the state where the above command worked and KDE/plasma worked properly, I happened to install a theme and the issue was gone entirely.

And then after playing around in Windows 10, changing power/fan profiles and GPU mode (but reverted it back to the mode it was in - “Optimized”), xwayland started crashing. This was both with the normal sign in and the hacky command above.

Dedicated mode unsupported

Apparently GFX FAIL: Dedicated mode unsupported on AMD dGPU systems

I’ve not tried reproducing this with supergfxctl after reinstall because I don’t wanna break stuff, but it seems toggling the MUX switch in Windows and rebooting keeps it in that mode on Linux.

Network

Requisite

The archiso image comes with what you need, but once you’ve installed Arch to your partition, you’ll need to install extra things and then set up iwctl again.

iwctl connect

If you don’t know your SSID or want to check you’re in range:

Issue 1

I had some major issues with this, and adding the following to /etc/iwd/main.conf seemed to fix it:

[General]
ControlPortOverNL80211=False

References:

iwctl DNS

Add and modify the following in /var/lib/iwd/<YOUR_SSID>.<SECURITY_TYPE>

[IPv4]
Address=192.168.0.10
Netmask=255.255.255.0
Gateway=192.168.0.1
Broadcast=192.168.0.255
DNS=1.1.1.1