mikhail-m1 / illuminanced

Ambient Light Sensor Daemon for Linux
GNU General Public License v3.0
51 stars 16 forks source link

Asus zenbook ux305LA need help #10

Closed k-matti closed 4 years ago

k-matti commented 4 years ago

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

mikhail-m1 commented 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*
k-matti commented 4 years ago

Thanks for answer. These are outputs:

Screenshot from 2020-06-02 08-51-47 Screenshot from 2020-06-02 08-52-29

mikhail-m1 commented 4 years ago

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

k-matti commented 4 years ago

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

mikhail-m1 commented 4 years ago

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/*

k-matti commented 4 years ago

ls /sys/bus/acpi/drivers/* gives me this:

image

Can you tell me how to remove als driver?

mikhail-m1 commented 4 years ago

yeah, it's als, try sudo rmmod als and maybe sudo rmmod acpi_als && modprobe acpi_als

k-matti commented 4 years ago

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

k-matti commented 4 years ago

@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?

mikhail-m1 commented 4 years ago

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.

CapSel commented 4 years ago

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.