Display Brightness

Report Bugs, Issues and non- package Requests
Message
Author
linuxcrazy2017
Posts: 6
Joined: Tue Mar 21, 2017 7:58 am

Re: Display Brightness

#11 Post by linuxcrazy2017 »

Please fix that if it is a bug.

User avatar
Jerry3904
Administrator
Posts: 21944
Joined: Wed Jul 19, 2006 6:13 am

Re: Display Brightness

#12 Post by Jerry3904 »

The file was not present so I deleted the link for security reasons.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
asqwerth
Developer
Posts: 7231
Joined: Sun May 27, 2007 5:37 am

Re: Display Brightness

#13 Post by asqwerth »

April 2017 post:
linuxcrazy2017 wrote:Great. I installed that and I can set the display brightness now. Problem solved. Thanks a lot.
I assume xbacklight worked for you in MX16.

MX17:
installed MX 17 yesterday. Facing the same problem on it. I am not able to save the brightness level set in the last login. It gets set to maximum level every time I log in. I didn't find this problem on other distros like Ubuntu. Please suggest a solution for it....Please fix that if it is a bug.
Does that mean xbacklight is not in the MX17 repo? Or that you installed it and it doesn't work in MX17?
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
kmathern
Developer
Posts: 2406
Joined: Wed Jul 12, 2006 2:26 pm

Re: Display Brightness

#14 Post by kmathern »

asqwerth wrote:April 2017 post:
linuxcrazy2017 wrote:Great. I installed that and I can set the display brightness now. Problem solved. Thanks a lot.
I assume xbacklight worked for you in MX16.

MX17:
installed MX 17 yesterday. Facing the same problem on it. I am not able to save the brightness level set in the last login. It gets set to maximum level every time I log in. I didn't find this problem on other distros like Ubuntu. Please suggest a solution for it....Please fix that if it is a bug.
Does that mean xbacklight is not in the MX17 repo? Or that you installed it and it doesn't work in MX17?
Xbacklight is in the Debian Stretch repo: https://packages.debian.org/stretch/xbacklight. It's not installed by default in MX-17 but I don't think it was installed by default in MX-16 either.

linuxcrazy2017
Posts: 6
Joined: Tue Mar 21, 2017 7:58 am

Re: Display Brightness

#15 Post by linuxcrazy2017 »

I am required to set the brightness level every time I log in. I just want MX 17 to remember the brightness level set in the previous login. Please suggest a solution.

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: Display Brightness

#16 Post by dolphin_oracle »

linuxcrazy2017 wrote:I am required to set the brightness level every time I log in. I just want MX 17 to remember the brightness level set in the previous login. Please suggest a solution.
we don't have one at this time. we will look into it.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
ChrisUK
Qualified MX Guide
Posts: 299
Joined: Tue Dec 12, 2017 1:04 pm

Re: Display Brightness

#17 Post by ChrisUK »

linuxcrazy2017 wrote:I am required to set the brightness level every time I log in. I just want MX 17 to remember the brightness level set in the previous login. Please suggest a solution.
For all non-systemd distros, I use the following:

Code: Select all

#!/bin/sh
#Place in /etc/pm/sleep.d/
case "$1" in
    resume|thaw)
        echo 40 > /sys/class/backlight/nv_backlight/brightness
        ;;
esac
Just save it as something like brightness and copy to

Code: Select all

/etc/pm/sleep.d/
and make it executable (chmod +x or do it from permissions tab in Thunar).

You'll need to edit it so it reflects your system (mine is using an Nvidia card - hence the /sys/class/backlight/nv_backlight/brightness) - also you'll want 50 instead of 40.

BTW, this is for resume from sleep, for boot you'll need to copy the echo 40 > /sys/class/backlight/nv_backlight/brightness line to

Code: Select all

/etc/rc.local 
as well
Chris

MX 18 MX 19 - Manjaro

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: Display Brightness

#18 Post by dolphin_oracle »

for those that are wondering, systemd takes care of brightness in most other distros.

you can test it on MX with the systemd boot option in the "Advanced" grub menus.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

linuxcrazy2017
Posts: 6
Joined: Tue Mar 21, 2017 7:58 am

Re: Display Brightness

#19 Post by linuxcrazy2017 »

Can we not get this issue sorted out in MX 17 non-systemd mode?

User avatar
zebedeeboss
Posts: 84
Joined: Mon Dec 27, 2010 1:33 am

Re: Display Brightness

#20 Post by zebedeeboss »

Just write your own simple script that runs at start up containing

Code: Select all

xrandr --output DP-4 --brightness 0.60
Where you change DP-4 for your monitor output and 0.6 to what ever brightness you like.

I don't know if this will last through a suspend and resume on a laptop though ?

Regards Zeb...
Last edited by zebedeeboss on Sun Dec 31, 2017 4:25 am, edited 1 time in total.
Linux User #565092
ASUS Prime X399-A | AMD Ryzen™ Threadripper 2950X Processor | 64GB Corsair VENGEANCE RGB DDR4 3000MHz | Zotac RTX™ 4070 | Gigabyte RTX3050 |49" Samsung Odyssey G9 QLED Dual-QHD 240Hz, Monitor 5120x1440 | Samsung 970 EVO Plus 1Tb

Post Reply

Return to “Bugs and Non-Package Requests Forum”