LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-04-2015, 09:21 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Brightness/Dim setting lost on reboot


Problem: I can dim my screen using System Settings > Brightness & lock, and sliding the Brightness slider. That works. The problem is that the setting is lost when I reboot and the brightness goes to max. How can I fix this?

I have a HP 2000 Notebook PC running Ubuntu 14.04.3. I have both Unity and Cinnamon desktops.
 
Old 11-04-2015, 09:50 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Lightbulb Bad joke using this light icon...

Hi.

Do you have a Fn key for that?

You could try setting up
Code:
xbacklight
or
Code:
xrandr
or like to run on boot?

Last edited by jamison20000e; 11-04-2015 at 09:52 PM.
 
Old 11-05-2015, 01:28 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks! The xbacklight did nothing and the /sys/class/backlight/ didn't seem to do anything. I didn't try the `setpci -s 00:02.0 F4.B=80` or `xgamma -gamma .75` suggestions. The xrandr did work!

I tried setting this up in rc.local for boot time, but it doesn't work yet. the `xrandr -q` command produces no output in rc.local. My guess is that the X system is not up yet. Do you know how to check for this? I've done some searching (and will continue), but I've turned up nothing so far.
 
Old 11-05-2015, 11:19 AM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I did not play with /etc/rc.local much after failing my first couple of attempts... vi /etc/init.d/myscript looks promising tho? I used a GUI "System Settings" \ "Startup and Shutdown (Autostart, Service Manager, Session Management)" and it worked fine for me. All tho in KDE?
 
Old 11-05-2015, 03:00 PM   #5
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
I'm running 14.04.3 on an old ThinkPad and Fn + Home raises and lowers brightness levels on mine, and sticks with reboots.
 
Old 11-05-2015, 03:08 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Off topic:

I've got a T20 and T420 both dirt cheep, think' I like the T20 more?
 
Old 11-05-2015, 10:38 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by mjolnir View Post
I'm running 14.04.3 on an old ThinkPad and Fn + Home raises and lowers brightness levels on mine, and sticks with reboots.
Well, maybe it's an idiosyncrasy with my HP 2000, dunno.

Turns out the xrandr doesn't work in a boot script because it never finds a display. Even after the system is up and running with a desktop showing. I tested this by having rc.local launch a script in the background that runs the `xrandr -q` command every 10 seconds for 5 minutes. I can tail the log it creates after the system is up and I've logged in and started a terminal session. It just keeps giving the message "no display found".

The other suggestion from that link did work.

Code:
$ ls /sys/class/backlight/
acpi_video0  radeon_bl0

$ cat /sys/class/backlight/acpi_video0/max_brightness
10

$ echo 7 > /sys/class/backlight/acpi_video0/max_brightness
I have 2 displays, so I had to experiment to determine which one was the laptop display (acpi_video0). I put that last `echo` command into my /etc/rc.local and it finally works on reboot!

Thanks for the help on this one!
 
1 members found this post helpful.
  


Reply

Tags
brightness, dim, screen



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
Lost Laptop Brightness Control with latest Kernel staus Slackware 6 09-24-2014 11:14 PM
Dim display brightness on dual head setup TheOracle Linux - Hardware 2 11-16-2006 10:01 AM
Screen dim/negative after reboot from winXP michaeltherobot Linux - Laptop and Netbook 1 05-10-2005 04:36 AM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM
xine brightness and contrast control lost QuiB Linux - Software 3 08-22-2004 10:25 AM

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

All times are GMT -5. The time now is 11:07 AM.

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