LukeShortCloud / winesapOS

winesapOS - Game with Linux anywhere, no installation required!
GNU General Public License v3.0
879 stars 30 forks source link

[install][setup] Add support for the Framework 16 laptop #784

Closed LukeShortCloud closed 4 months ago

LukeShortCloud commented 6 months ago

At the very least, we need to document how to enable Linux speaker support via the BIOS.

https://community.frame.work/t/arch-linux-on-the-framework-laptop-16/44854

LukeShortCloud commented 6 months ago

Sometimes the BIOS update does not work. For the best results, run:

$ sudo fwupdmgr refresh --force
$ sudo fwupdmgr update

It was also noted that the nvme.noacpi=1 Linux kernel boot argument is only needed for Intel CPUs. With the new AMD Frameworks, this actually causes sleep issues.

https://community.frame.work/t/amd-ryzen-7040-series-bios-3-03-and-driver-bundle-release/38655/107

LukeShortCloud commented 6 months ago

The Arch Wiki recommends using NetworkManager with the IWD back-end for better Wi-Fi support which we are already doing.

The iio-sensor-proxy package needs to be installed for the ambient light sensor to work.

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

LukeShortCloud commented 4 months ago

Allow the touchpad to be disabled when typing on the keyboard:

$ sudo vim /usr/share/libinput/50-framework.quirks
[Framework Laptop 16 Keyboard Module]
MatchName=Framework Laptop 16 Keyboard Module*
MatchUdevType=keyboard
MatchDMIModalias=dmi:*svnFramework:pnLaptop16*
AttrKeyboardIntegration=internal

Enable fan control (this is the only fan service that works on the Framework 16 currently):

$ yay -S fw-fanctrl-git
$ sudo systemctl enable --now fw-fanctrl

Add a fine tuned audio configuration for Framework laptops (works on both the 13 and 16): https://github.com/cab404/framework-dsp

Configure the Wi-Fi region for enabling Wi-Fi >= 5:

# Temporarily
$ sudo iw reg set <COUNTRY_CODE>
# Permanently
$ sudo pacman -S wireless-regdb
$ sudo vim /etc/conf.d/wireless-regdom
WIRELESS_REGDOM="<COUNTRY_CODE>"

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

LukeShortCloud commented 4 months ago

The LED matrix support is handled via this program:

https://github.com/FrameworkComputer/inputmodule-rs/blob/main/ledmatrix/README.md https://aur.archlinux.org/packages/inputmodule-control

LukeShortCloud commented 4 months ago

I have ran into dependency hell when trying to build fw-fanctrl-git. It requires ectool but the packages on the AUR that provide it are all broken. Most are outdated, too. I did a quick test and found the default fan behavior on the Framework 16 (with the dGPU add-on) to be perfectly fine.