LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-18-2022, 04:55 PM   #1
winger9
Member
 
Registered: Jan 2014
Posts: 85

Rep: Reputation: 1
How do I stop the screen brightness being set at DIFFERENT time-points during the boot on Debian 9?


1. On my Acer laptop, on Debian 9, out of the box, the screen brightness is set
during the boot - you can see the screen dim.

Well, during SOME boots the brightness is set EARLY in the boot process, before
X is started; but during other boots, it is set about 10 seconds later, after X
and lxpanel are fully up and running.

2. My Questions:

a) How can I make the dimming occur consistently EARLY in the boot?
b) What is causing the brightness to be set at DIFFERENT times?
c) My system is systemd. What controls WHEN processes and actions are performed
at boot, and where in my filesystem do I look to find the thing that is setting
the screen brightness?

3. To help you fathom things out, it might help to say that after the boot, I
can MANUALLY set the screen brightness with the following command:

Code:
$ sudo sh -c "echo 400 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-
LVDS-1/intel_backlight/brightness"
where the "400" can be a value from 0 to 976.
 
Old 10-20-2022, 06:54 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Distribution: CRUX 3.7
Posts: 6,592

Rep: Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708Reputation: 4708
I can't speak for what debian/systemd does as I have little experience with it, but on my systems I use a custom udev rules file to set the backlight value very early during boot when the blacklight device is detected by udev.

/etc/udev/rules.d/81-backlight.rules:
Code:
# Set the initial backlight level.

SUBSYSTEM!="backlight", GOTO="backlight_end"
ACTION!="add", GOTO="backlight_end"

# Don't use the intel_backlight if the acpi backlight control is present:
TEST=="/sys/class/backlight/acpi_video0/brightness", GOTO="backlight_acpi"

KERNEL=="intel_backlight", ATTR{brightness}="364"

LABEL="backlight_acpi"
SUBSYSTEM=="backlight", KERNEL=="acpi_video0", ATTR{brightness}="39"

LABEL="backlight_end"
You might want to also grep for 'backlight' in /lib/udev/rules.d/* (or whatever location debian puts those files) just to see if there's anything similar already in there for the backlight.

Other than that, an xbacklight command may be being executed as part of the X11/DisplayManager startup scripts, but that's likely distro specific, so again, I'm not best placed to help you track that one down.

Hopefully, that gives you some starting points for your search, until someone with a debian background can offer more specific advice.
 
  


Reply

Tags
boot, brightness, debian 9


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change brightness percentage that screen brightness keys increase/decrease MozillaUser3172 Slackware 5 03-24-2020 07:07 PM
Can't adjust brightness with function key and can't adjust brightness after suspend. QuarkDev Linux Deepin 2 03-19-2015 11:46 AM
Mint 15 = black screen (brightness = 0) on start up - have to manually set brightness Netnovice Linux Mint 4 01-16-2014 09:46 PM
Is it possible to prevent the screen brightness from resetting during boot? Quon Linux - General 4 04-04-2012 11:46 PM
[SOLVED] Brightness set to zero: moved to http://www.linuxquestions.org/questions/slackware-14/brightness-set Z0K4 Linux - Laptop and Netbook 5 09-15-2011 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration