LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-23-2016, 01:09 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,710
Blog Entries: 29

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
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?
 
Old 02-23-2016, 01:36 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Hi...

Do any the solutions mentioned here help?

Regards...
 
Old 02-23-2016, 06:45 AM   #3
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 814

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

Last edited by erik2282; 02-23-2016 at 06:46 AM.
 
Old 02-23-2016, 08:25 AM   #4
Ajwad
Member
 
Registered: Feb 2016
Location: Asia
Distribution: Mint
Posts: 30

Rep: Reputation: Disabled
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?
 
Old 02-23-2016, 08:34 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147
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

Last edited by BW-userx; 02-23-2016 at 08:39 AM.
 
Old 02-23-2016, 08:47 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147
Quote:
Originally Posted by TheIndependentAquarius View Post
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...

Last edited by BW-userx; 02-23-2016 at 09:04 AM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Brightness control error hemanth22 Linux - Hardware 3 12-09-2015 07:48 AM
[SOLVED] Brightness control not working. Ipe Slackware 11 10-31-2012 12:01 PM
brightness control issue? vetrib2w Linux - Laptop and Netbook 3 04-13-2010 11:58 PM
Brightness control on laptops. YodaSlack Linux - Hardware 7 01-24-2008 03:56 PM
No more brightness/contrast control for me Sunny Rabbiera Mandriva 1 01-12-2008 01:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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