Closed k-matti closed 4 years ago
I have ux305la and Ubuntu 20.04 and all works without external driver, please run and provide output:
lsmod | grep acpi
ls /sys/bus/acpi/devices/ACPI*
Thanks for answer. These are outputs:
interesting, looks like iio:device0
was removed and all files just put to parent directory, please provide output for uname -a
and I will check my kernel version. Also can you try to run sudo watch cat /sys/bus/acpi/devices/ACPI0008\:00/raw_value
Linux krystian-ubuntu 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
sudo watch cat /sys/bus/acpi/devices/ACPI0008\:00/raw_value
gives me always 0
Maybe the problem is because I was playing with: https://github.com/danieleds/als and https://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller
Maybe the problem is because I was playing with: https://github.com/danieleds/als and
yeah, try remove als driver and check, I have 5.4.0-29, but I don't think it's related.
you can check which driver is providing ACPI0008 by ls /sys/bus/acpi/drivers/*
ls /sys/bus/acpi/drivers/*
gives me this:
Can you tell me how to remove als driver?
yeah, it's als, try sudo rmmod als
and maybe sudo rmmod acpi_als && modprobe acpi_als
ok so I use sudo rmmod als
to remove als but sudo rmmod acpi_als
gives me rmmod: ERROR: Module acpi_als is not currently loaded
After sudo modprobe acpi_als
it is working now :dancers:
Thanks for helping
@mikhail-m1
One more thing: after every restart I have to run sudo rmmod als && sudo rmmod acpi_als && sudo modprobe acpi_als
again to make your script works. Do you know how to make it permanent?
I don't remember how to remove driver correctly, but you can try just to remove file, it should be somewhere in /lib or wait for next kernel update.
You can put a file in /etc/modprobe.d - call it something.conf (.conf part is important). Place there line:
blacklist als
After that rebuild your initrd image - every distro has it's own way.
Or you can try rebooting.
Hi, I tried run command:
sudo watch cat /sys/bus/acpi/devices/ACPI0008\:00/iio\:device0/in_illuminance_raw
but get:cat: '/sys/bus/acpi/devices/ACPI0008:00/iio:device0/in_illuminance_raw': No such file or directory
Tried to install als driver but still no success
I am using ubuntu 20.04