LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to control brightness on Linux desktop through terminal? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-control-brightness-on-linux-desktop-through-terminal-4175572982/)

TheIndependentAquarius 02-23-2016 01:09 AM

How to control brightness on Linux desktop through terminal?
 
I have Ubuntu 14.04.3 LTS on a desktop.


I tried the following and none of them worked for me:
Code:

xbacklight -dec 10
Code:

xdotool key "alt+r" XF86MonBrightnessDown
Code:

echo 400 | sudo tee /sys/class/backlight/intel_backlight/brightness tee: /sys/class/backlight/intel_backlight/brightness: No such file or directory 400
First two didn't throw any errors. They just didn't work.

What am I supposed to do now?

ardvark71 02-23-2016 01:36 AM

Hi...

Do any the solutions mentioned here help? :)

Regards...

erik2282 02-23-2016 06:45 AM

On a Desktop? You mean like with a separate monitor? Wouldn't you just change the brightness with the buttons on the monitor?

Ajwad 02-23-2016 08:25 AM

When I tried to run the first command it said that xbrightlight command hasnt been installed, install it by "sudo apt-get install xbacklight" so maybe try that?

BW-userx 02-23-2016 08:34 AM

Code:

#!/bin/bash
sudo tee  /sys/class/backlight/radeon_bl0/brightness <<< 255  255

But,you,will,need,to,investagte,your,file,sys,to,get,your,
correct,directory,name,should,be,in

/sys/class/...

use

ls

that,will,help,you,along,the,way
google,your,devices,limitations,then,modify,as,needed,then,make,
it,executable,then,run,it,off,the,command line --you,can,set,it,for,what,you,want,mine,is,max,settings,
100%,brightness

I,keep,it,in,~/

I,only,use,it,when,needed,by,writting,this,in,the,command line

./setbl

BW-userx 02-23-2016 08:47 AM

Quote:

Originally Posted by TheIndependentAquarius (Post 5504624)
I have Ubuntu 14.04.3 LTS on a desktop.


I tried the following and none of them worked for me:
Code:

xbacklight -dec 10
Code:

xdotool key "alt+r" XF86MonBrightnessDown
Code:

echo 400 | sudo tee /sys/class/backlight/intel_backlight/brightness tee: /sys/class/backlight/intel_backlight/brightness: No such file or directory 400
First two didn't throw any errors. They just didn't work.

What am I supposed to do now?

you,really,need,to,learn,how,to,inVestagte,a,situation

if,you'd,just,used,
ls
you,then,could,haVe,used,that,to,find,out,what,is,really,going,on.
(oh,and,the,wildcard,*)
using,ls,working,your,way,back,or,forward,with,what,someone,else,told,you,where,it,is,
you,could,haVe,discoVered,it,is,there,just,the,worng,absolute,path,address...(because,not,eVery,sys, is,completely,the,same.Using,basename,
inVestagating,by,using,ls,and,the, command line,would,get,you,the,path,to,your,directory,you,need

That,is,
how,I,did,it,to,get,the,path,to,nnine.

you,are,seeing,the,results,of,nny,inVestagation,using,ls,and,google,in,prior,post,in
,here.

Code:

ls /sys/class/*
#or/and
ls /sys/class/backlight/*

I'nn,KeyBoard,HandyCapped...:banghead:


All times are GMT -5. The time now is 04:56 PM.