LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 09-11-2012, 11:58 PM   #1
adrian_m
LQ Newbie
 
Registered: Sep 2012
Location: Middle Tennessee
Distribution: Peppermint 3
Posts: 3

Rep: Reputation: Disabled
Question Fn brightness controls don't work


Salutations!

I recently bought an Acer Aspire ONE D270-1824 netbook and installed Peppermint 3 on it. I've not had any problems except when using Fn + the left or right arrow keys to control the screen brightness. Now, I found (I think on this website) a command work-around, along the lines of: sudo setpci -s 00:02.0 F4.b=BRIGHTNESSLEVEL (I use 50 as it's the easiest on my eyes.)

What I'm wanting to know is this: is there away to make it so that I don't have to enter this command every time I wake my computer from suspension or boot it up? I continue to issue this command to save my eyes and battery, but it's getting a little old.

Thanks to any of your gurus out there who can help and offer it!
 
Old 09-13-2012, 09:16 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
I am not familiar with Peppermint but nobody has answered ...

For boot, there will likely be a boot script for local extensions, something like /etc/rc.d/rc.local or /etc/init/local. You could put the command in there.

For resume, if you have a /usr/lib/pm-utils/sleep.d/ directory, you could try adding a script in there containing the command. With a bit of luck the directory exists and has at least one script already there that you can use as a template.
 
Old 09-13-2012, 11:25 AM   #3
adrian_m
LQ Newbie
 
Registered: Sep 2012
Location: Middle Tennessee
Distribution: Peppermint 3
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks Catkin, I'll take a look and see if I can find it!
 
Old 11-30-2012, 01:53 AM   #4
alpo85
Member
 
Registered: Nov 2012
Posts: 30

Rep: Reputation: Disabled
Yo, adrian!

You specify your vid card is Intel. You may want to consider this post: http://www.linuxquestions.org/questi...74#post4839974

I had the same problem, and nothing seemed to work. When I did find the solution, I had to enter a similar command like you EVERY. TIME. I. BOOTED. F That. So I wrote a Python script to do it for me. Hope it helps.
 
Old 12-01-2012, 10:16 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,624

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
I had this and sorted it as follows. It can vary with your laptop's dsdt but I have the file
/sys/devices/virtual/backlight/acpi_video0/brightness

10 = full brightness - 0 = zero brightness. I have this
Quote:
#!/bin/sh

BRIGHTNESS = { cat /sys/devices/virtual/backlight/acpi_video0/brightness}
BRIGHTNESS = [ $BRIGHTNESS + 1 ]
echo -n $BRIGHTNESS > /sys/devices/virtual/backlight/acpi_video0/brightness
You need an event in /etc/acpi/events, like this
Quote:
# /etc/acpi/events/video_brightnessup
event=video.* 00000086
action=/etc/acpi/video_brightnessup.sh
To name the event, restart acpid with the -l option (log events to syslog) and name each event from the log entry for that event. I grabbed a set of debian and a set of fedora scripts, and hacked my own. They had the hard work done. Nobody else hands out decent scripts to my knowledge
 
1 members found this post helpful.
  


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 controls don't work on HP laptop leibnizster Linux - Laptop and Netbook 4 09-12-2012 01:54 PM
XFCE Xubuntu (12.04) Keyboard music controls don't work when player unfocused geokker Linux - Desktop 1 05-22-2012 03:30 AM
Acer 5755G-6823 Laptop brightness buttons don't work Lumify Linux - Hardware 5 03-21-2012 07:25 AM
How can i adjust brightness of a CRT with no physical controls on it? Stevithen Linux - Hardware 2 01-02-2010 05:19 PM
Audacity volume controls don't work in Lenny - did in Etch Zelator Debian 4 07-15-2009 01:26 AM


All times are GMT -5. The time now is 10:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration