So I followed this post but I am stuck because of this output:
ln: failed to create symbolic link '/sys/class/brightness': Operation not permitted.
What I wanted to try is:
$ cd /sys/class
This directory should contain a soft link calledbrightness
to the brightness device discovered in the previous step. Should it be missing, create it:$ sudo ln -s /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness /sys/class/brightness
Note that: There is no "brightness" folder inside /sys/class. But there is "backlight" folder. What should I do? Should "brightness" folder/file?
Creating the file, gives me, "Operation not permitted". I used "cat > brightness" command. It didn't work. Now the only option I have is to create a folder.
Meanwhile, I can't control the brightness through the "brightness" button. Even moving the "Brightness bar" manually doesn't respond.
Brightness button & bar used to work, but dunno what happened. How do I resolve this issue?
sudo su
followed byln -s /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness /sys/class/brightness
(that is, if the directory exists. The poster of the answer only used it as an example.) – Jos Apr 23 '19 at 09:04sudo su
. You type your password and the prompt changes from$
to#
to indicate you are now root. Then enter the second commandln -s etc
. – Jos Apr 23 '19 at 10:54/sys
nowadays has its own file systemsysfs
and it is mountednosuid
, meaningsudo
does not have effect there. Your instructions must have been written before that. – Jos Apr 23 '19 at 11:22