Coder Social home page Coder Social logo

marcolaux / asus-g14-fedora Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 5.0 81.88 MB

Make things work with the ASUS Zephyrus G14 2020 on Fedora 35 including GPU Switching and automatic power management. Such wow!

linux gnome-shell-extension zephyrus g14 optimus optimus-laptops power-management

asus-g14-fedora's Introduction

Fedora 35 Setup with an ASUS Zephyrus G14 2020 model


This Git repo describes how I setup the ASUS Zephyrus G14 (GA401IV) with Fedora 35 including a GNOME Shell extension to switch between GPUs and ROG profiles.

This is not for the 2021 model

This is my personal config, no official guide.
If you want support from the asus-linux community please have a look at the official install guide here: https://asus-linux.org/wiki/fedora-guide/
This guide will also get you a fully functional 2021 G14 if you are looking for this.

Installation process

1. Follow the guide on https://asus-linux.org/wiki/fedora-guide/

2. copy all the files to the appropriate directories

git clone https://github.com/hyphone/asus-g14-fedora.git
cd asus-g14-fedora
cp -R etc/* /etc/
systemd-hwdb update
udevadm trigger
systemctl enable asusctl_hibernate.service

we clone this repo

we go to the repo directory

we copy everything in this repo of etc to /etc/

mod the keyboard that page up / down is mapped to fn+up/down while home (pos1) / end is mapped to fn+left/right

you can use brightnessctl -d asus::kbd_backlight s +1 and brightnessctl -d asus::kbd_backlight s 1- and map this to a key of your choice in your desktop environment

asus_hibernate.service restarts asusd after hibernation to re-apply the battery charge limit.

3. install brightnessctl

dnf install brightnessctl

brightnessctl is used for controlling the keyboard backlight as I'm overriding the default keys with page up / down before. you can map brightnessctl then in your DE to a key you want.

4. Reboot

5. You can switch your prefered graphics mode via the GNOME Shell extension "asusctl-gex" or with "supergfxctl -m (graphics mode)"


GUI for controlling asusctl

asusctl

for more information on asusctl have a look here: asus-linux.org)

also custom fan curves are supported via the kernel now.

asus-g14-fedora's People

Contributors

marcolaux avatar tashi-iu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

asus-g14-fedora's Issues

system hang when unbinding nvidia gpu

I can't poweroff my g14 and it complains amdgpuboot service wont stop
When I tried the script step by step I found
echo -n "0000:01:00.0" > /sys/bus/pci/drivers/nvidia/unbind
hanged

[Not an issue] Add info to Readme

Hello! Could you add some info about:

  1. GPU switching, preferable way
  2. How do you launch gpu apps?
  3. Is gpu offloading working?
    Thank you for your work!

Graphics mode not initialized

Hello Everyone,

I have a issue with nvidia profile, i cant selected
image

asusctl graphics -m nvidia

image

image
image

Installed
image

Kernel:
image

Grup:
image

Can anyone help me?
Regards

README.md requires an update

Currently you have added that once you copy etc and usr are done, we should update the systemctl - however the name of the file is wrong in the doc. The actual name is "asusctl_hibernate.service" while you have indicated "asus_hibernate.service"

External displays

Is there special configs for offloading nvidia on external displays? DP, hdmi?
Thank you!

Kernel modules?

Hi! I saw you just removed the kernel folder and added the lukenukem/asus-linux custom kernel. I had manually added your kernel modules from a few days ago (that worked great in making my 2021 G14 trackpad and wake from sleep work). At the time, I noticed though that - I am on rawhide - one of them was replacing a previous kernel module, that I had to update back to the newer one supplied in rawhide (the other kernel modules didn't. Would now using the lukenukem/asus-linux kernel be safe in rawhide too? I am forced to use rawhide because of some openvpn3 issues that have only been fixed there.

Kernel update to 5.11

Hello!
I believe there is no need in some packages with release 5.11 kernel (dkms-hid-asus-rog i.e). Could you rescan your .md and remove obsolete things?
Also I am sure we have need in kernel update procedure with nvidia dkms-ing and such things. Almost every time updating kernel I do smth wrong, drivers broke, no gpu etc., so proper instructions needed.
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.