[SOLVED] Bodhi Laptop Backlight Slider doesn't work for me
BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I press FN+F5 a bunch of times,then reboot, my backlight is quite dim. Slider is still all the way up. [I must then FN+f6 a bunch of times then reboot to get bright again.]
If I turn the slider all the way down, then reboot, my backlight is quite dim. Slider is back to the top tho. [I must then FN+f6 a bunch of times then reboot to get bright again.]
Basically, my conclusion is that backlight changes don't take effect until after reboot, and the slider (moksha module) apparently can't read the current state (on my hardware).
Do the backlight buttons work in any other distro? I mean everything is working ok here, or as programmers are fond of saying it is working on my machine
I hope you have learned how to use a terminal and some basic cli commands, if you are willing to looking your system file-system to be sure of correct paths/dir you can use this or at least check to see if your system is even willing to turn up your lights.
Code:
#!/bin/bash
# for use to set laptop backlight on
# hp 8460p with ATI graphics card, and hp 840 g2
#
# Ran with user with sudo permissions
# set at nopasswd
# put in $HOME/bin
#set in .bashrc
#if [ -d "$HOME/bin" ] ;
#then PATH="$HOME/bin:$PATH"
#fi
#Monday Feb 18, 2019
#set -x
if [[ -z $1 ]] ; then
#check for hp 8460p setting or hp 840 g2 setting
[[ -d /sys/class/backlight/radeon_bl0/brightness ]] && \
{ sudo su -c ' echo 200 > /sys/class/backlight/radeon_bl0/brightness' ; \
echo "Backlight Max setting is $(cat /sys/class/backlight/radeon_bl0/max_brightness)" ; \
echo "Backlight is set at $(cat /sys/class/backlight/radeon_bl0/brightness) " ; }
[[ -d /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight ]] && \
{ sudo su -c 'echo 800 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness' ; \
echo "Backlight Max setting is $(cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/max_brightness)" ; \
echo "Backlight is set at $(cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness)" ; }
else
[[ -d /sys/class/backlight/radeon_bl0/brightness ]] && { sudo su -c 'echo "$1" > /sys/class/backlight/radeon_bl0/brightness' ;
echo "Backlight Max setting is $(cat /sys/class/backlight/radeon_bl0/max_brightness)" ;
echo "Backlight is set at $(cat /sys/class/backlight/radeon_bl0/brightness) " ; }
[[ -d /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight ]] && { sudo su -c 'echo $1 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness' ;
echo "Backlight Max setting is $(cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/max_brightness)" ; \
echo "Backlight is set at $(cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness)" ; }
fi
[[ $? -gt '0' ]] && { echo $? ; }
you should just use this as a template to your own systems blacklight dir and look at the files within it to get the right ones to use , you max and current light settings, then just run it according to you system, not mine. It will brighten up your day if you get it to work.
Do the backlight buttons work in any other distro? I mean everything is working ok here, or as programmers are fond of saying it is working on my machine
Under windows 10, the slider works fine. The function keys don't do anything but I believe that's due to lack of Sony software installed.
I booted puppy. There is no built in slider. However I did learn something useful when I searched how to set brightness in puppy. By changing /sys/class/backlight/acpi_video0/brightness it works. (I didn't think to check the F-keys)
Back in my Bodhi installation, I see the slider is adjusting that the value in that file too. One difference is I'm using nvidia drivers under bodhi, whereas puppy was just live usb using noveau.
So I booted Bodhi live usb. Slider works fine. So I think it's somehow nvidia driver related...
you should just use this as a template to your own systems blacklight dir and look at the files within it to get the right ones to use , you max and current light settings, then just run it according to you system, not mine. It will brighten up your day if you get it to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.