t-8ch / linux-gigabyte-wmi-driver

Linux Driver for WMI on Gigabyte Mainboards. LEGACY. New development happens in mainline Linux.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/gigabyte-wmi.c
30 stars 4 forks source link

X570S Aorus Pro AX rev 1.0 (debian 11 - linux5.10) not working #16

Closed ProductiveAsparagus56 closed 2 years ago

ProductiveAsparagus56 commented 2 years ago

make:

make -C /lib/modules/`uname -r`/build M=$PWD modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-15-amd64'
  CC [M]  /root/dev/linux-gigabyte-wmi-driver/gigabyte-wmi.o
  MODPOST /root/dev/linux-gigabyte-wmi-driver/Module.symvers
  CC [M]  /root/dev/linux-gigabyte-wmi-driver/gigabyte-wmi.mod.o
  LD [M]  /root/dev/linux-gigabyte-wmi-driver/gigabyte-wmi.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-15-amd64'

sudo insmod ./gigabyte-wmi.ko force_load=1:

insmod: ERROR: could not insert module ./gigabyte-wmi.ko: File exists
ProductiveAsparagus56 commented 2 years ago

Figured out that it was already loaded, so i tried the following commands: cat /sys/class/wmi_bus/wmi_bus-PNP0C14\:00/DEADBEEF-2001-0000-00A0-C90629100000/hwmon/hwmon*/temp?_input:

cat: '/sys/class/wmi_bus/wmi_bus-PNP0C14:00/DEADBEEF-2001-0000-00A0-C90629100000/hwmon/hwmon*/temp?_input': No such file or directory

sensors:

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +16.8°C  (crit = +20.8°C)

Sensors included k10temp and nvme temps as well but i left those out.

t-8ch commented 2 years ago

Then try to reload the builtin module with force_load:

# modprobe -r gigabyte_wmi
# modprobe gigabyte_wmi force_load=1

And look at dmesg.

ProductiveAsparagus56 commented 2 years ago

I remember doing that, don't remember the output sadly. I returned the motherboard for a non-gigabyte one, thanks for the help though!