Linux для ноутбука asus

Fedora Silverblue Setup Guide

The following process will help you to setup your Asus machine with Fedora Silverblue.

If you are installing on a Zephyrus G14 (2022), there is a guide here which has lots of information.

🔗Installation

The user may exercise their own discretion with the options given, however be sure to decline the enabling of «third-party» repositories.

🔗Asus-Linux Repository

First we will add the Asus-Linux repository in order to install asusctl and supergfxctl.

Open a terminal window and enter

sudo nano /etc/yum.repos.d/asus.repo 

We can then paste in the following with the key combination ‘control + shift + v’

[copr:copr.fedorainfracloud.org:lukenukem:asus-linux] name=Copr repo for asus-linux owned by lukenukem baseurl=https://download.copr.fedorainfracloud.org/results/lukenukem/asus-linux/fedora-$releasever-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://download.copr.fedorainfracloud.org/results/lukenukem/asus-linux/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1 

We can save and exit with ‘control + x’

🔗Nvidia

We can now start the process of acquiring and installing the NVIDIA drivers.

rpm-ostree install --apply-live https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm 
rpm-ostree update \ --uninstall rpmfusion-free-release-35-1.noarch \ --uninstall rpmfusion-nonfree-release-35-1.noarch \ --install rpmfusion-free-release \ --install rpmfusion-nonfree-release 

Note that the specific rpmfusion release (e.g 35-1) will change with time. Use the command ‘rpm-ostree status’ to ensure you are removing the correct version in the above command.

rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-power asusctl supergfxctl 
rpm-ostree kargs --append=rd.driver.blacklist=nouveau --append=modprobe.blacklist=nouveau --append=nvidia-drm.modeset=1 
systemctl enable --now supergfxd.service 
systemctl mask nvidia-fallback.service 

🔗Optional Optimisations

🔗Install the ROG Kernel

The ROG Kernel often contains patches that may provide benefit for the hardware you are running. The need for this will depend on your use case, your hardware and the current upstream status of these patches.

Читайте также:  Samba arch linux настройка

Unfortunately Silverblue is currently unable to automatically install a kernel from a COPR. Thus we will have to install and update this locally ourselves.

Head over here and grab the following .rpm files from the latest build.

  • kernel
  • kernel-core
  • kernel-devel
  • kernel-modules
  • kernel-modules-extra

We can now use the following syntax to override the default kernel

rpm-ostree override replace

🔗Flatpak Cleaning

In order to streamline our dependency on flatpak it is worthwhile to have everything working with the same fundamentals.

flatpak remove --all flatpak remote-delete fedora flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak update 

🔗Replace Firefox RPM with Flathub Flatpak and Force Wayland

rpm-ostree override remove firefox && flatpak install flathub org.mozilla.firefox flathub org.freedesktop.Platform.ffmpeg-full 
sudo flatpak override --socket=wayland --env=MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox 

🔗Enable hardware decoding in Firefox

Enter about:config into the Firefox address bar. Ensure that the following settings are matched in your setup.

🔗Flatseal and Steam

flatpak install flathub com.github.tchx84.Flatseal flathub com.valvesoftware.Steam 

Open Flatseal and then add the following environment variables for Steam

__NV_PRIME_RENDER_OFFLOAD=1 
__GLX_VENDOR_LIBRARY_NAME=nvidia 

🔗GNOME Shell extension asusctl-gex

A desktop widget to operate some aspects of asusctl and supergfxctl: GNOME Shell extension asusctl-gex

Has this guide helped you set up your machine?

If this site helps you and you want to contribute we welcome you to help with development, search for issues, join the discord, and add to this website.

You can also donate

Your support on Pateron or Paypal helps us buy ASUS devices for development to support new features and drivers.

Patreon button imageor PayPal button image

Источник

Welcome

Asus-Linux.org is an independent community effort that works to improve Linux support for Asus notebooks.

Читайте также:  Создать загрузочную флешку linux терминал

Many but not all ASUS ROG laptops work under Linux quite well. But there are always new models coming out, or older models that got missed. This project aims to solve all the issues you may have, and enable many ROG specific features.

Sound issues are the most common problem , and solving these requires a little more effort and patience — see the blog post about this plus visit the discord for guidance. Do note that the root problem is almost never pulse audio or pipewire — it’s the Realtek codec chip needing specific fixes in the kernel driver.

The second most common issue is that of device feature enablement such as:

  • AniMe Matrix display
  • RGB keyboard LEDs
  • fn+key combos and media controls
  • G-Sync enable on capable laptops
  • Re-enable the dGPU after setting «iGPU On» in Windows
  • and more All of the above is either enabled in asusctl already, or is enabled via patches to the kernel (and we provide pre-built kernels with the patches applied) which are steadily upstreamed.

Extra features we currently support are:

  • Control graphics modes via supergfxctl without reboots for switching between iGPU, dGPU, on-demand, and vfio (for VM pass-through)
  • Set battery charge limit
  • (custom) fan curve control

Want to contribute?

If this site helps you and you want to contribute we welcome you to help with development, search for issues, join the discord, and add to this website.

You can also donate

Your support on Pateron or Paypal helps us buy ASUS devices for development to support new features and drivers.

Читайте также:  Alt linux сбросить пароль root

Patreon button imageor PayPal button image

New kernel patches, new generation

Kernel patches on their way to 6.4, and a general update

2023-06-30 — Reading time: 4 min

Reinstalling GRUB2

How to repair and reinstall a completely messed up GRUB2 in Fedora.

2022-10-29 — Reading time: 5 min

ASUS G14 Speaker Profiles

JamesDSP speaker profiles for the ASUS G14 notebooks (will work on others)

2022-08-27 — Reading time: 3 min

August 2022 Update 2

2022-08-26 — Reading time: 2 min

August 2022 Update Part 2

2022-08-08 — Reading time: 1 min

August 2022 Update

2022-08-03 — Reading time: 3 min

Build a fedora kernel: Updated

Patches you might require won’t always be backported — this post will help you build a kernel with the required patches

2022-08-02 — Reading time: 3 min

July 2022 Update

asusctl updates and changes, supergfxctl updates and changes, community updates

2022-07-16 — Reading time: 7 min

Gaming on Linux

Guide to setting up Steam and Proton for the best linux gaming experience.

2022-04-16 — Reading time: 11 min

September 2021 Update

New kernel patches, asusctl updates and changes, supergfxctl

2021-09-12 — Reading time: 4 min

May 2021 Update

Kernel patches and statuses

2021-05-06 — Reading time: 6 min

April 2021 Update

2021 hardware suspend, project rename, AniMe work

2021-04-16 — Reading time: 6 min

March 2021 Update

2021 hardware, asusctl new features, kernel patches

2021-03-22 — Reading time: 5 min

Feb 2021 Update

Update and status of project

2021-02-19 — Reading time: 3 min

Getting Sound Working

An example of making Realtek Codec work on ASUS GX502

2021-01-11 — Reading time: 12 min

Project Updates

Update and status of project

2021-01-09 — Reading time: 3 min

Источник

Оцените статью
Adblock
detector