LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 06-18-2019, 06:01 PM   #1
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Bodhi Laptop Backlight Slider doesn't work for me


Topic sums it up. The moksha gadget doesn't do anything, slide up, slide down, nothing changes.

It's a sony laptop (VPCF115FM) and fn+f5/fn+f6 also are supposed to adjust it, but they don't do anything under bodhi either.
 
Old 06-18-2019, 07:22 PM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Original Poster
Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Here are some clues.

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).

Obviously, my goal is immediate changes.

Last edited by enigma9o7; 06-18-2019 at 07:23 PM.
 
Old 06-19-2019, 11:37 AM   #3
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
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
 
Old 06-19-2019, 12:31 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
Old 06-20-2019, 02:50 PM   #5
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Original Poster
Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Quote:
Originally Posted by rbtylee View Post
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...

Last edited by enigma9o7; 06-20-2019 at 02:59 PM.
 
Old 06-20-2019, 03:04 PM   #6
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Original Poster
Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Quote:
Originally Posted by BW-userx View Post
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.
Doesn't seem I have any of the applicable files...
https://i.imgur.com/nRrgLMq.jpg
 
Old 06-20-2019, 03:25 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
make google your friend. look at https://wiki.archlinux.org/index.php/Backlight
in the nvidia part, towards the bottom of page and see if that does anything.
 
1 members found this post helpful.
Old 06-20-2019, 03:26 PM   #8
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Original Poster
Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Solved. Once I knew to search Nvidia related, I found a solution.

create /usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf with the following:
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection
 
2 members found this post helpful.
Old 06-20-2019, 03:39 PM   #9
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Good Job Glad you worked it out.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Laptop Backlight Slider Gadget enigma9o7 Bodhi 9 09-27-2018 01:00 AM
ThinkPad T520 backlight brightness hotkeys and Xfce slider not working in Linux (Xubuntu 17.04) Woolie Wool Linux - Laptop and Netbook 11 08-30-2017 06:35 AM
LXer: Bodhi Linux 2.4.0 Released, One Year Left Until Bodhi 3.0.0 LXer Syndicated Linux News 0 09-14-2013 05:21 PM
alsactl wont persist settings and gnome audio slider doesn't work. Recursion Linux - Software 2 06-24-2010 06:58 AM
I installed centOS but the backlight on the monitor doesn't work jmbreija Linux - Desktop 7 12-18-2009 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 09:20 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