JafarAkhondali / acer-predator-turbo-and-rgb-keyboard-linux-module

Linux kernel module to support Turbo mode and RGB Keyboard for Acer Predator notebook series
GNU General Public License v3.0
358 stars 66 forks source link

Predator G9-793 - POP OS 21.04 #20

Open kroaton opened 2 years ago

kroaton commented 2 years ago

RGB seems to be working but the default turbo button (pressing red button 1) does nothing.

Product name: Predator G9-793

sudo dmidecode | grep "Product Name" -B 2 -A 4

System Information
    Manufacturer: Acer
    Product Name: Predator G9-793
    Version: V1.01
    Serial Number: NHQ17EX005638089677200
    UUID: c3a94130-8423-81e6-31cf-88ad43fb7b3e
    Wake-up Type: Power Switch
--
Base Board Information
    Manufacturer: Acer
    Product Name: Challenger2_SKS
    Version: V1.01
    Serial Number: NBQ171100163704CA27200
    Asset Tag: Type2 - Board Asset Tag
    Features:

sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.aml - doesn't return anything.

I tried manually going into the DSDT folder but it won't allow me to do so. Any ideas on what to try next?

JafarAkhondali commented 2 years ago

Hi Above command puts DSDT data in a file called dsdt.aml in your current working directory. Please press your red button several times, then report the output of this command:
sudo dmesg | tail | grep "Unknown function number"

Also I haven't check codes for your laptop, so it will be just a trial\error process to enable turbo mode

kroaton commented 2 years ago

[ 141.540666] acer_wmi: Unknown function number - 7 - 2 [ 141.732746] acer_wmi: Unknown function number - 7 - 2

JafarAkhondali commented 2 years ago

Change this line: https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module/blob/c0f99438d7f684d12b03ff811705ca80f7ecf51a/src/facer.c#L2549

to: if (return_value.key_num == 0x2)

and add this:

{
                .callback = dmi_matched,
                .ident = "Acer Predator G9-793",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
                        DMI_MATCH(DMI_PRODUCT_NAME, "Predator G9-793"),
                },
                .driver_data = &quirk_acer_predator_pt917_71,
        },

after line 770 in facer.c.

Do a reboot, then try installing.

I have no idea if it would work, I just used similar code for your laptop. Use at your own risk.

kroaton commented 2 years ago

I'll give it a shot when I get back in town. Cheers!