LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2014, 11:55 AM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
Controlling Laptop Screen Brightness in Slackware-14.1/x86_64 with Xfce4


We have a Sony Vaio model PCG-61A14 and the screen brightness plugin does not work; the slider doesn't. It sits there. A few related threads here do not appear to be applicable; different distributions and hardware.

A couple of folks running Arch Linux suggested changing a sys file for screen brighness but I did not find apci_video when I looked for it.

Where in a Slackware system could I hard-set the brightness since the user has no control over this?

TIA,

Rich
 
Old 03-10-2014, 06:33 PM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
It would help if you list what have you already tried.

You may try to pass following option combinations to kernel at boot

acpi_osi=Linux acpi_backlight=legacy
or
acpi_osi="!Windows 2012" acpi_backlight=legacy
or
acpi_osi=Linux acpi_backlight=vendor
or
acpi_osi="!Windows 2012" acpi_backlight=vendor

It did worked in similar situations many times.
 
Old 03-11-2014, 12:26 AM   #3
mfrias
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 7
Quote:
Originally Posted by rshepard View Post
We have a Sony Vaio model PCG-61A14 and the screen brightness plugin does not work; the slider doesn't. It sits there. A few related threads here do not appear to be applicable; different distributions and hardware.
I also have sony vaio, but I loaded the kernel module "sony_laptop" to control function keys and other details. You should try load (as root):

Code:
modprobe sony_laptop
And again try to add the plugin. Don't forget "Brightness is controlled by vendor-specified hotkey or by the OS(ACPI or graphic driver)"

Quote:
Originally Posted by rshepard View Post
A couple of folks running Arch Linux suggested changing a sys file for screen brighness but I did not find apci_video when I looked for it.
It's another option. XFCE4 in Slackware 14.0 still doesn't keep the brightness level when the laptop is power off, so I create a rule in rc.local file to adjust the brightness when power on. Try running this in the console (as root):

get max brightness of acpi_video0 (first video card):
Code:
# cat /sys/class/backlight/acpi_video0/max_brightness
15
set value of brightness to 1st video card (acpi_video0):
Code:
# echo n > /sys/class/backlight/acpi_video0/brightness
Where "n" is a value between 0 to 15 (max brightness), n=7 is a good start. If you have a 2nd video card again repeat and changing "acpi_video0" to "acpi_video1". When you have the optimal value write it in the rc.local file (in my case):

Code:
# Set Brightness:
echo 7 > /sys/class/backlight/acpi_video0/brightness
echo 7 > /sys/class/backlight/acpi_video1/brightness
And enjoy!
 
Old 03-11-2014, 04:02 AM   #4
Perceptor
Member
 
Registered: Jul 2007
Location: the Future
Distribution: Slackware
Posts: 128

Rep: Reputation: 64
Which Slackware version you are using? On my vaio I had to install the proprietary video drivers to control brightness with 14.0; on 14.1 everything worked out of the box.

Edit: sorry, saw the title. I think installing the proprietary driver should work.

Last edited by Perceptor; 03-11-2014 at 04:05 AM.
 
Old 03-11-2014, 03:22 PM   #5
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
I added acpi_osi=Linux acpi_backlight=legacy to lilo.conf'd Append line and it appears to work. At least, the slider on the widget moves up and down.

This is on Slackware-14.1/x86_64.

Thanks, all,

Rich
 
  


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
Samsung laptop screen brightness control? erik2282 Linux - Laptop and Netbook 1 08-21-2012 04:03 AM
Does anyone have laptop-mode-tools screen brightness ability working in Slackware? kevin01123 Slackware 5 03-16-2010 10:19 PM
[SOLVED] adjusting screen brightness does not work in slackware 13.0 on asus laptop M70 series nezdravanul Linux - Laptop and Netbook 3 09-15-2009 05:39 AM
Laptop screen brightness; constantly reverts to minimum gbloon Slackware 7 01-23-2009 07:25 AM
unable to adjust screen brightness on my laptop after installing 10.3 vitalstrike82 SUSE / openSUSE 7 07-26-2008 01:22 PM

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

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