FrameworkComputer / linux-docs

Linux Markdown Guides
108 stars 20 forks source link

Ubuntu/Mint: Disable ALS through modprobe.d #22

Closed biinari closed 5 months ago

biinari commented 5 months ago

Use a separate file to disable the Ambient Light Sensor (ALS) by blacklisting the hid_sensor_hub module.

This is safer and simpler than editing the grub default file.

It also separates this from the mechanism to notify users of an updated OEM kernel.

Currently testing on Framework 13, 13th Gen Intel using Ubuntu 22.04.3 LTS.

biinari commented 5 months ago

It seems the hid_sensor_hub module (and hid_sensor_als) are compiled into the kernel rather than loaded from separate files. This means that we need to run sudo update-initramfs -u afterward.

Given there are other kernel parameters being added for many versions, it does not seem worth making this change, so I am closing it.