-
Notifications
You must be signed in to change notification settings - Fork 28
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
[UNSUPPORTED HARDWARE ZenBook3U] modprobe: ERROR: could not insert 'asus_fan': No such device #39
Comments
please try building the most recent git version by yourself using Further you may pass |
ok so I have done this: sudo su
cd /usr/src
git clone https://github.com/daringer/asus-fan.git
cd asus-fan # make DEBUG=1
make -C /lib/modules/4.4.0-51-generic/build M=$PWD modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-4.4.0-51-generic »
CC [M] /usr/src/asus-fan/asus_fan.o
/usr/src/asus-fan/asus_fan.c:44:0: warning: "DEBUG" redefined
#define DEBUG (true)
^
<command-line>:0:0: note: this is the location of the previous definition
/usr/src/asus-fan/asus_fan.c: In function ‘__fan_get_cur_state’:
/usr/src/asus-fan/asus_fan.c:294:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
int rpm = __fan_rpm(fan);
^
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from include/linux/list.h:8,
from include/linux/module.h:9,
from /usr/src/asus-fan/asus_fan.c:8:
/usr/src/asus-fan/asus_fan.c: In function ‘__fan_set_cur_state’:
include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:13:19: note: in expansion of macro ‘KERN_SOH’
#define KERN_INFO KERN_SOH "6" /* informational */
^
/usr/src/asus-fan/asus_fan.c:49:23: note: in expansion of macro ‘KERN_INFO’
if (DEBUG) printk(KERN_INFO "asus-fan (debug) - " fmt "\n", ##__VA_ARGS__);
^
/usr/src/asus-fan/asus_fan.c:314:3: note: in expansion of macro ‘dbg_msg’
dbg_msg("set fan-id: %d to state: %d", fan, state);
^
include/linux/kern_levels.h:4:18: warning: too many arguments for format [-Wformat-extra-args]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:22: note: in expansion of macro ‘KERN_SOH’
#define KERN_WARNING KERN_SOH "4" /* warning conditions */
^
/usr/src/asus-fan/asus_fan.c:64:12: note: in expansion of macro ‘KERN_WARNING’
printk(KERN_WARNING "asus-fan (" title ") - " fmt "\n", ##__VA_ARGS__); \
^
/usr/src/asus-fan/asus_fan.c:317:5: note: in expansion of macro ‘warn_msg’
warn_msg("set pwm", "illegal value provided: %d ", fan, (unsigned int) stat
^
/usr/src/asus-fan/asus_fan.c: In function ‘__fan_set_cur_control_state’:
include/linux/kern_levels.h:4:18: warning: too many arguments for format [-Wformat-extra-args]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:13:19: note: in expansion of macro ‘KERN_SOH’
#define KERN_INFO KERN_SOH "6" /* informational */
^
/usr/src/asus-fan/asus_fan.c:49:23: note: in expansion of macro ‘KERN_INFO’
if (DEBUG) printk(KERN_INFO "asus-fan (debug) - " fmt "\n", ##__VA_ARGS__);
^
/usr/src/asus-fan/asus_fan.c:333:3: note: in expansion of macro ‘dbg_msg’
dbg_msg("set fan-id: %d control-state", fan, state);
^
/usr/src/asus-fan/asus_fan.c: In function ‘fan_set_speed’:
/usr/src/asus-fan/asus_fan.c:343:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
union acpi_object args[2];
^
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from include/linux/list.h:8,
from include/linux/module.h:9,
from /usr/src/asus-fan/asus_fan.c:8:
/usr/src/asus-fan/asus_fan.c: In function ‘fan_set_max_speed’:
include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:13:19: note: in expansion of macro ‘KERN_SOH’
#define KERN_INFO KERN_SOH "6" /* informational */
^
/usr/src/asus-fan/asus_fan.c:49:23: note: in expansion of macro ‘KERN_INFO’
if (DEBUG) printk(KERN_INFO "asus-fan (debug) - " fmt "\n", ##__VA_ARGS__);
^
/usr/src/asus-fan/asus_fan.c:489:3: note: in expansion of macro ‘dbg_msg’
dbg_msg("set max speed to: %d, force reset: %d", state, (unsigned int) reset)
^
include/linux/kern_levels.h:4:18: warning: too many arguments for format [-Wformat-extra-args]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
#define KERN_ERR KERN_SOH "3" /* error conditions */
^
/usr/src/asus-fan/asus_fan.c:59:12: note: in expansion of macro ‘KERN_ERR’
printk(KERN_ERR "asus-fan (" title ") - " fmt "\n", ##__VA_ARGS__); \
^
/usr/src/asus-fan/asus_fan.c:533:7: note: in expansion of macro ‘err_msg’
err_msg("set_max_speed",
^
Building modules, stage 2.
MODPOST 1 modules
CC /usr/src/asus-fan/asus_fan.mod.o
LD [M] /usr/src/asus-fan/asus_fan.ko
make[1] : on quitte le répertoire « /usr/src/linux-headers-4.4.0-51-generic » # make install
make -C /lib/modules/4.4.0-51-generic/build M=$PWD modules_install
make[1] : on entre dans le répertoire « /usr/src/linux-headers-4.4.0-51-generic »
INSTALL /usr/src/asus-fan/asus_fan.ko
At main.c:222:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.4.0-51-generic
make[1] : on quitte le répertoire « /usr/src/linux-headers-4.4.0-51-generic »
depmod -a # modprobe asus_fan
modprobe: ERROR: could not insert 'asus_fan': No such device
# modprobe asus_fan force_load=1 And the dmesg: # dmesg | grep asus
[ 2.799287] asus_fan: module verification failed: signature and/or required key missing - tainting kernel
[ 3.113174] asus_wmi: ASUS WMI generic driver loaded
[ 3.113964] asus_wmi: Initialization: 0x1
[ 3.113996] asus_wmi: BIOS WMI version: 9.0
[ 3.114019] asus_wmi: SFUN value: 0x21
[ 3.114649] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input6
[ 3.114746] asus_wmi: Number of fans: 0
[ 988.965255] asus-fan (debug) - starting init procedure
[ 988.965324] asus-fan (debug) - dmi sys info: 'ASUSTeK COMPUTER INC.'
[ 988.965334] asus-fan (debug) - get fan-id: 0 rpm
[ 1003.897986] asus-fan (debug) - starting init procedure
[ 1003.897997] asus-fan (init) - forced loading of module: USE WITH CARE
[ 1003.898003] asus-fan (debug) - register asus fan driver
[ 1003.898217] asus-fan (debug) - probe for device
[ 1003.898224] asus-fan (debug) - init hwmon device
[ 1003.898454] asus-fan (init) - finished init, found 2 fan(s) to control
[ 1007.031174] asus-fan (debug) - get fan-id: 0 rpm
[ 1007.031809] asus-fan (debug) - get fan-id: 1 rpm
[ 1007.032456] asus-fan (debug) - get temperature 1 from acpi
[ 1007.032968] asus-fan (debug) - get temperature 1 from acpi
[ 1012.088359] asus-fan (debug) - get fan-id: 0 rpm
[ 1012.088975] asus-fan (debug) - get fan-id: 1 rpm
[ 1012.089563] asus-fan (debug) - get temperature 1 from acpi
[ 1012.090008] asus-fan (debug) - get temperature 1 from acpi
[ 1017.151279] asus-fan (debug) - get fan-id: 0 rpm
[ 1017.152246] asus-fan (debug) - get fan-id: 1 rpm
[ 1017.152927] asus-fan (debug) - get temperature 1 from acpi
[ 1017.153449] asus-fan (debug) - get temperature 1 from acpi
[ 1022.211033] asus-fan (debug) - get fan-id: 0 rpm
[ 1022.211665] asus-fan (debug) - get fan-id: 1 rpm
[ 1022.212261] asus-fan (debug) - get temperature 1 from acpi
[ 1022.212739] asus-fan (debug) - get temperature 1 from acpi EDIT: # sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +38.0°C (crit = +103.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +39.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +37.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +38.0°C (high = +100.0°C, crit = +100.0°C)
asus_fan-isa-0000
Adapter: ISA adapter
CPU Fa: -1 RPM (min = 10 RPM)
GFX Fa: -1 RPM (min = 10 RPM)
gfx_tem: +0.0°C (crit = +0.1°C)
I reboot and post other comment with debug. |
After rebooting:
No more asus_fan :(
|
mmmmh,
cd misc
./asus-fan-create-symlinks.sh /tmp/asus-test-dir # as root Afterwards check inside $ echo 1 > fan_cpu_manual_mode
$ echo 20 > fan_cpu_speed
$ echo 255 > fan_cpu_speed If you hear the fan changing its speed we might be lucky. (Also check with the "gpu" symlinks please)
Two things to get more details on this: \_SB.PCI0.LPCB.EC0.SFNV
\_SB.PCI0.LPCB.EC0.TACH <---- this one seems to fail
\_SB.ATKD.QMOD
\_SB.PCI0.LPCB.EC0.ST98
\_SB.PCI0.LPCB.EC0.SFNV
\_SB.PCI0.LPCB.EC0.TH1R On Linux you can directly interact with acpi through the proc filesystem, therefore you need to install acpi_call, if not already existing, just check Once this is done, just do the following as root: echo '\_SB.PCI0.LPCB.EC0.TACH' > /proc/acpi/call
cat /proc/acpi/call; echo -e "\n" If things are there as expected, you should see something like: -$ cat /proc/acpi/call; echo -e "\n"
0xcb4lled On the other side, if the path is not valid for some reason (laptop model, whatever...) you will see something like that: -$ cat /proc/acpi/call; echo -e "\n"
Error: AE_BAD_PATHNAME You could also check the other calls, mainly if any of those leads to a bad path name. Once we know this I can at least try to avoid these calls (sacrificing features most likely) but this will bring us closer to loading the module without forcing it. (2) Further, please pull again from the asus-fan repository and repeat the process above (no need for rebooting). I've added some more debug output into the suspected parts of the code, maybe this could also help. |
Symlink seems to work:
And more info:
Also, I found the control folder:
No fan running/sound but the sensors tells us that it's at maximum speed:
perhaps, I have misunderstood how to manually set the fan... So I retried all the process with your new commit:
And now I heard the fan working very slowly when my temperature is over 40°C \o/
Next now, I have not acpi_call installed, so I will install it: https://github.com/mkottman/acpi_call Tell me if you need more debug, I come back with more info about acpi_call. |
For acpi_call, it seems I have the same problem to make install (SSL error):
|
Also reboot, make, make install, modprobe asus_fan force_load=1 And I can hear the fan running when the temperature increase over 40°C (or 42°C).
|
I have reboot and this time I haven't make, make install and modprobe asus_fan and I can hear the fan start running when the temperature increase over 40°C. So now it's just a matter of modprobe in order to control and monitor properly fan. |
I was already wondering about the ssl error in your first post, but apparently this has not much to do with our problem here. The reason for this ssl error is that ubuntu (thus also Mint) requires signed modules, this leads to this error. See here about secure boot and some more discussions specifically about module signing. So your distribution simply forbids to copy non-signed modules into your kernel-module directory, so this is also the reason why The same will happen for Now again back to the actual topic: I totally forgot that there is also a test bash script, which uses all the possible interfaces. So please make sure a recent (debug) version of cd /tmp
git clone https://github.com/daringer/asus-fan.git
cd asus-fan
make DEBUG=1
bash misc/test_module.sh force_load=1 The output shall be something like this. Further you should listen, because the script will try to adjust the fan speed from nearly off up to the maximum, so if you hear a changing fan-speed during this test-module.sh run, there is a good chance we can make it work. |
Thanks a lot for your explaination! I tried the test_modules script but unfortunately my fan not started...
|
mmh really doesn't look good, |
oh ok, thank you for your help anyway. Keep in touch :) |
Nope no ASUS contact here, but yes any contribution is highly appreciated, just ask if I can support... |
First of all: Thansk for your work!
But the fan never changes its speed... |
This is the NotebookFanControl xml file found in a forum that is said to be able to control the fan: |
I toyed around a bit with acer_ec.pl: |
Hey @HorstBaerbel, as it looks like we are talking about another hardware / product here, can we please continue here in another issue to keep them in separated issues #39 + #44 (even if the visible immediate error is the same: module load fails). Looks like we might need some automation to debug hardware, which is not supported out of the box. Feature request here: #46 |
seems to be covered by the other issues, please re-open if not |
Hi,
I try to make my fan works on my ASUS ZenBook3U.
My configuration:
I know my MB model is not supported by your code but there no driver for model UX390UAK...
So, I download the the code in /usr/src:
And I installed with DKMS:
Everything works fine at this point.
Reboot.
And after reboot:
Any idea? At this moment, I have no fan control and it's quite dangerous... Or I can contribute in testing and/or developing the compatibility of this driver with the model UX390UAK.
Thanks in advance!
The text was updated successfully, but these errors were encountered: