Just discovered that the value returned by grep .
/var/lib/systemd/backlight/* is ALWAYS the value of cat
/sys/class/backlight/intel_backlight/brightness BEFORE reboot.

So to summarize:

1. the grep . /var/lib/systemd/backlight/* shows the value of the
brightness that was right before the last reboot. That doesn't change
real-time when I change the brightness with the slider. The value appear
to get stored right before the reboot.

2. the cat /sys/class/backlight/intel_backlight/brightness shows
whatever is the current value of the brigtness and is stored/updated
real-time, as soon as I change it with the slider or the hardware key

=== example ===

# brigtness at maxixmum level (1500)

<reboot>

$ cat /sys/class/backlight/intel_backlight/brightness
1500
$ grep . /var/lib/systemd/backlight/*                
1500

<reducing brightness with the slider>

$ cat /sys/class/backlight/intel_backlight/brightness
450
$ grep . /var/lib/systemd/backlight/*                
1500

<reboot>

$ cat /sys/class/backlight/intel_backlight/brightness
1500
$ grep . /var/lib/systemd/backlight/*                
450

<reducing brightness with the slider>
$ cat /sys/class/backlight/intel_backlight/brightness
300
$ grep . /var/lib/systemd/backlight/*                
450


<reboot>

$ cat /sys/class/backlight/intel_backlight/brightness
1500
$ grep . /var/lib/systemd/backlight/*                
300

<reducing brightness with the slider>
$ cat /sys/class/backlight/intel_backlight/brightness
600
$ grep . /var/lib/systemd/backlight/*                
300

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1686268

Title:
  Backlight brightness level not restored after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1686268/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to