acer-predator-turbo-and-rgb-keyboard-linux-module icon indicating copy to clipboard operation
acer-predator-turbo-and-rgb-keyboard-linux-module copied to clipboard

Predator G9-793 - POP OS 21.04

Open kroaton opened this issue 2 years ago • 4 comments

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?

kroaton avatar Oct 10 '21 13:10 kroaton

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

JafarAkhondali avatar Oct 10 '21 14:10 JafarAkhondali

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

kroaton avatar Oct 10 '21 19:10 kroaton

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.

JafarAkhondali avatar Oct 14 '21 12:10 JafarAkhondali

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

kroaton avatar Oct 14 '21 13:10 kroaton