Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[install][upgrade] Add ASUS ROG laptop support #814

Closed
LukeShortCloud opened this issue Apr 6, 2024 · 14 comments
Closed

[install][upgrade] Add ASUS ROG laptop support #814

LukeShortCloud opened this issue Apr 6, 2024 · 14 comments
Assignees
Labels
enhancement New feature or request

Comments

@LukeShortCloud
Copy link
Owner

Things such as brightness control do not work on all ASUS ROG laptops. I know there is a project with Linux firmware files for ASUS devices. Those will work with the kernel-fsync Linux kernel.

Originally brought up: #813

Related: #809

@LukeShortCloud LukeShortCloud added the enhancement New feature or request label Apr 6, 2024
@LukeShortCloud LukeShortCloud changed the title [install] Add ASUS ROG laptop support [install][upgrade] Add ASUS ROG laptop support Apr 6, 2024
@GuestSneezeOSDev
Copy link

What are the spec's of the ASUS ROG laptop?

@LukeShortCloud
Copy link
Owner Author

Great question! I personally have a relatively new ASUS ROG laptop and it works great. However, there are minor issues with other devices out there.

What I specifically want to tackle in this GitHub Issue is the following:

@GuestSneezeOSDev
Copy link

isn't there like drivers for For Arch Linux based distro's like for example from here or use supergfxctl from aur or from here

@LukeShortCloud
Copy link
Owner Author

Thanks for pointing that out! Sure, we can include the asusctl, rog-control-center, and supergfxctl utilities.

The drivers and firmware are still coming from the ASUS Linux project you mentioned. linux-fsync pulls in the required patches from that project.

@GuestSneezeOSDev
Copy link

Also you havent added storage requirements in the README.md

@LukeShortCloud
Copy link
Owner Author

LukeShortCloud commented Apr 29, 2024

All the requirements, including storage, are listed here:

https://github.com/LukeShortCloud/winesapOS/tree/4.1.0-alpha.0?tab=readme-ov-file#requirements

Do you have any suggestions on where else I should list it?

@GuestSneezeOSDev
Copy link

everythings alright

@LukeShortCloud
Copy link
Owner Author

Good news, audio support for the latest ASUS ROG laptops is coming in upstream Linux 6.10. This will eventually make its way to our separate Linux LTS kernel (we ship two kernels: Nobara/Bazzite and LTS).

https://www.phoronix.com/news/Linux-6.10-ASUS-ROG-2024-13X

@LukeShortCloud
Copy link
Owner Author

Package Notes
asus-firmware Not packaged in the AUR yet
asusctl-git Built in the Chaotic AUR repository
rog-control-center Not in the Chaotic AUR, we need to provide it in the winesapOS repository
supergfxctl Not specific to ASUS but can be used for any laptops, only required to use this for Xorg (not Wayland as it natively supports hybrid GPUs)

@LukeShortCloud
Copy link
Owner Author

I looked at all of the firmware files from the ASUS Linux project. I wrote a small script to find and compare to what the latest winesapOS development builds provide (and we now install literally every available firmware package). These are the missing firmware files:

cs35l41-dsp1-spk-cali-1043123f-spkid1-l0.bin
cs35l41-dsp1-spk-cali-1043123f-spkid1-r0.bin
cs35l41-dsp1-spk-cali-10431473-spkid0-l0.bin
cs35l41-dsp1-spk-cali-10431473-spkid0-r0.bin
cs35l41-dsp1-spk-cali-10431483-spkid0-l0.bin
cs35l41-dsp1-spk-cali-10431483-spkid0-r0.bin
cs35l41-dsp1-spk-cali-10431ee2-spkid1-l0.bin
cs35l41-dsp1-spk-cali-10431ee2-spkid1-r0.bin
cs35l41-dsp1-spk-cali-10431f1f-spkid1-l0.bin
cs35l41-dsp1-spk-cali-10431f1f-spkid1-r0.bin
cs35l41-dsp1-spk-cali-10432004-spkid1-l0.bin
cs35l41-dsp1-spk-cali-10432004-spkid1-r0.bin
cs35l41-dsp1-spk-cali-10432064-spkid1-l0.bin
cs35l41-dsp1-spk-cali-10432064-spkid1-r0.bin
cs35l41-dsp1-spk-prot-1043123f-spkid1-l0.bin
cs35l41-dsp1-spk-prot-1043123f-spkid1-r0.bin
cs35l41-dsp1-spk-prot-10431473-spkid0-l0.bin
cs35l41-dsp1-spk-prot-10431473-spkid0-r0.bin
cs35l41-dsp1-spk-prot-10431483-spkid0-l0.bin
cs35l41-dsp1-spk-prot-10431483-spkid0-r0.bin
cs35l41-dsp1-spk-prot-10431ee2-spkid1-l0.bin
cs35l41-dsp1-spk-prot-10431ee2-spkid1-r0.bin
cs35l41-dsp1-spk-prot-10431f1f-spkid1-l0.bin
cs35l41-dsp1-spk-prot-10431f1f-spkid1-r0.bin
cs35l41-dsp1-spk-prot-10432004-spkid1-l0.bin
cs35l41-dsp1-spk-prot-10432004-spkid1-r0.bin
cs35l41-dsp1-spk-prot-10432064-spkid1-l0.bin
cs35l41-dsp1-spk-prot-10432064-spkid1-r0.bin
cs35l41/v6.39.0/halo_cspl_RAM_revB2_29.41.0.wmfw
cs35l41/v6.47.0/halo_cspl_RAM_revB2_29.49.0.wmfw
cs35l41/v6.61.1/halo_cspl_RAM_revB2_29.63.1.wmfw
cs35l41/v6.63.0/halo_cspl_RAM_revB2_29.65.0.wmfw
cs35l41/v6.68.0/halo_cspl_RAM_revB2_29.70.0.wmfw
cs35l41/v6.78.0/halo_cspl_RAM_revB2_29.80.0.wmfw

@LukeShortCloud
Copy link
Owner Author

For the firmware, this means we only need to provide 34 out of the 182 files that they provide. Most are upstream now in linux-firmware.

@LukeShortCloud
Copy link
Owner Author

I have created a PKGBUILD for linux-firmware-asus and submitted it to the AUR.

https://aur.archlinux.org/packages/linux-firmware-asus

@LukeShortCloud
Copy link
Owner Author

The rog-control-center GUI takes a long time to build and has lots of build issues recently. That is probably why it is not even in the Chaotic AUR repository. We will at least provide the asusctl CLI tool that it uses.

@LukeShortCloud LukeShortCloud self-assigned this May 11, 2024
LukeShortCloud added a commit that referenced this issue May 11, 2024
@GuestSneezeOSDev
Copy link

you could add a systemd service like this:
`/etc/systemd/system/battery-charge-threshold.service
[Unit]
Description=Set the battery charge threshold
After=multi-user.target
StartLimitBurst=0

[Service]
Type=oneshot
Restart=on-failure
ExecStart=/bin/bash -c 'echo value > /sys/class/power_supply/BAT0/charge_control_end_threshold'

[Install]
WantedBy=multi-user.target`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants