Just to confirm black-listing the hid_sensor_hub as described above along with running the update-initramfs -u before the reboot fixed both screen brightness buttons and the airplane mode button on Ubuntu 22.04 LTS.
Thanks everyone for the thread.No further issues on my 12gen Intel MOBO upgrade.everything seems to be working as far as I can tell since yesterday.
@ConfuSomu It’s working here on my Arch, did you forget to run mkinitcpio -p linux ?
I’m on Arch Linux as well and tried both
blacklist hid-sensor-hub
and
blacklist hid_sensor_hub
each followed by sudo mkinitcpio -p linux, shutting down the laptop and booting it up again. Unfortunately neither worked (I checked with sudo evtest /dev/input/event2 and verified that nothing happens when press the brightness up/down keys.)
I get a few warnings during sudo mkinitcpio -p linux about ‘Possibly missing firmware …’; could that have anything to do with the problem?
If your input devices are anything like mine where 2 is the keyboard then you’re testing the wrong device. The brightness buttons are on a different input device. On my machine it’s /dev/input/event4
I think I had to fix the permissions as well of the backlight device.
I’ve added my user to the video group and created the following udev rule to make it permanent:
SUBSYSTEM=="backlight", ACTION=="add", \
RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness",
Probably not but depends what exactly is missing. On newer kernels it usually shows up for amdgpu but that doesn’t matter.
Hi there,
As anyone sent a ticket to Framework for it to be corrected ?
For me it is anoying because in the morning I want to set it below 3% and I am afraid to set it to 0 and then to get a dark screen. Without a hardware key to set it back !
What’s the point of a ticket to Framework? Since @Kieran_Levin posted about it, Framework definitely knows about the problem and gave a simple to implement workaround.
If you want it to work OOTB you’re best off submitting a ticket to your distro since if you want a fix that works automatically you’d not only need to release an upstream kernel patch, but also would need to make sure your distro adopts it and rolls it out in an auto-update.
I’d suggest you just use the workaround as the easiest and fastest way to fix things, but in case you do get your backlight stuck at 0% you could also learn the shortcut to open a terminal and make sure you have a command line app like light to change the backlight (this of course can be done through SSH or sending a value to the proper sysfs device path as well. I’d suggest SSH is a better option than typing blind). I’ve also noticed that if the backlight is set to 0% and I suspend the laptop it tends to come back at 100%, but maybe that’s a peculiarity of how Arch does suspend/resume.
ADIT 13rd sept : updated the ubuntu 22 default kernel via update center… today and now nowit works on 5.15 ! (?)
EDIT: booting on kernel 5.15 instead of 5.18 reset the behaviour. Trying to do sudo update-initramfs -u again and reboot but it didn t work with htis kernel
So it worked for me on Ubunru Mate 22.04 using kernel 5.18
sudo nano /etc/modprobe.d/framework-als-blacklist.conf
=> it creates an empty file.
Then add:
blacklist hid_sensor_hub
Then do :
sudo update-initramfs -u
What a joy to have a fully functionnal Framework laptop ! I tend to use brightness every 30 minutes especially in the morning.
OK, that worked form me as well (after the usual update-initramfs -u). I already had module_blacklist=hid_sensor_hub kernel parameter set, but that didn’t help despite the fact that the module was not actually loaded. Not sure why
Is there a way to set the lowest brightnes lower ?
I mean to change the behaviour of the + / - brightness to increment in 1%.
Currentely on my Ubuntu mate when using the buttons it increments by 5% which is fine on the highest values, but in the morning I like to reach 1% 2% 3% gradually as the sun goes up . For now my work arround is to go in battery settings and move slider to 2%.
On my previous E590 the max brightness was less so the scale would benefit more to lower values, therefore this was not anoying in the morning.
I’m seeing this thread being shared around quite a bit when this question pops up elsewhere.
Having the workaround is great, but it’s still unfortunate to have to choose between either having the automatic light sensor or the brightness keys working. Is there any update on having both work at the same time without needing the workaround?
I added module_blacklist=hid_sensor_hub to my grub file… not works
How do I know what is my device ? (EDIT: seems to be event2) sudo evtest to list all…
Now its works…
I try add :
vim /etc/modprobe.d/framework-als-blacklist.conf
blacklist hid_sensor_hub
Is this something that’s actually being worked on? Anyone running Debian right now is going to encounter this problem and will think that key is broken until they find this forum post and figure out how to use vi.
I noticed here some use of sudo update-initramfs -u
on Arch (Mnajaro) I use sudo mkinitcpio -P
I suppose it do the same job (carefulle, -P is for “all profiles” : all images)
I finaly follow this :
Are you saying you do not to blacklist the hid_sensor_hub module for the brightness keys to work when the “GPU driver” (which? xf86-intel-driver?) is installed? Because I have what i think is the equivalent of that driver here (xserver-xorg-video-intel, in Debian), and I did need to block the module from loading to get the keys to work (and therefore the light sensor doesn’t work…)
It is not at all advisable to use the intel Xorg driver, as it lags behind the modesetting driver, which is the basically the same but relying on the version of the GPU driver upstreamed into the official kernel tree, the drm module.
The intel Xorg driver has many shortcomings, and on the other hand there are not at all any performance disadvantages in using the modesetting one.
So, maybe it would seem to temporarily fix the problem by using the intel driver right now, but it would be a much better solution to just blacklist the ambient light sensor module and stick to using the modesetting driver.
And hopefully any time soon a fix will be provided to not have to blacklist the light sensor.
But not looking more working apps…
So I go back and try using Intel…
I use sudo mhwd -a pci free 0300 for an auto-install (of video-linux)
and add /etc/X11/xorg.conf.d/20-intel.conf