LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 07-28-2012, 10:54 AM   #1
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 168

Rep: Reputation: 16
Less backlight steps after current upgrades


Hi,

After upgrading to all the latest stuff, there are only 4 backlight steps using Fn-Home and Fn-End keys in my X60s Lenovo baby.

Normally, there should be 8 of them.
I have 8 while booting my machine, but after running XFCE, only 4 are left.... :-(

Any ideas folks ?
 
Old 07-28-2012, 01:18 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,638

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
On a T61 I have 16 steps (0 to 15) all accessible under Fluxbox, and less (but bigger) under KDE or XFCE.

It seems that both KDE and XFCE make "big steps" in grouping it somehow.

But you can set it yourself in a terminal or xterm, e.g.

Code:
bash-4.2# pwd
/sys/class/backlight/acpi_video0
bash-4.2# ls
actual_brightness  bl_power  brightness  device  max_brightness  power  subsystem  type  uevent
bash-4.2# cat max_brightness 
15
bash-4.2# cat brightness 
3
bash-4.2# echo 10 > brightness 
bash-4.2# cat brightness 
10
bash-4.2#
The exact directory differ upon models, there is a /proc interface also but which could be deprecated.

To know more, read /usr/src/linux-3.2.23/Documentation/laptops/thinkpad-acpi.txt

PS You can set some parameters when loading the driver, see the documentation and (as root) "modinfo thinkad-acpi" for a summary.

Last edited by Didier Spaier; 07-28-2012 at 01:22 PM.
 
1 members found this post helpful.
Old 07-29-2012, 08:47 AM   #3
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 168

Original Poster
Rep: Reputation: 16
Code:
bash-4.2# pwd
/sys/class/backlight/acpi_video0
bash-4.2# ls
actual_brightness  bl_power  brightness  device  max_brightness  power  subsystem  type  uevent
bash-4.2# cat max_brightness 
15
bash-4.2# cat brightness 
3
bash-4.2# echo 10 > brightness 
bash-4.2# cat brightness 
10
bash-4.2#
This works, thanks.

Is it possible to correct/patch the sources of "xfce4-power-manager-1.2.0" in order to
get those 8 steps back again ?
Seems that today's state (4 steps) is little abnormal - I never messed with acpi through the years of using Slack on my Thinkpads ...
 
Old 07-29-2012, 12:40 PM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,638

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
Quote:
Originally Posted by brodo View Post
[CODE]
Is it possible to correct/patch the sources of "xfce4-power-manager-1.2.0" in order to
get those 8 steps back again ?
I think that the suspect is src/xfpm-backlight-helper.c.

Unfortunately I am not able to find out why the level can't be incremented or decremented by value of one.

Maybe somebody here is better at reading C code than I am, or you could ask in a xfce mailing-list or forum...

I just noticed that, as the programmer has to cope with a lot of different models of laptops, he or she tries no less than 11 kernel interfaces, fortunately all located in /sys/class/backlight.

Last edited by Didier Spaier; 07-29-2012 at 12:49 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware64-current Xfce-4.6.2 backlight control longus Slackware 0 02-07-2012 04:21 PM
backlight adjustment Knightron Slackware 6 07-24-2011 05:44 PM
Wine & the latest current upgrades problem /32-bit/ brodo Slackware 12 11-27-2010 05:12 AM
libgmp and libpng in latest -current upgrades dive Slackware 37 03-05-2010 11:40 AM
LXer: Shuttleworth steps down as Ubuntu 10.04 alpha steps up LXer Syndicated Linux News 0 12-18-2009 09:50 AM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
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