LinuxQuestions.org
Review your favorite Linux distribution.
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 07-16-2013, 10:29 PM   #1
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 344

Rep: Reputation: 84
Contents of /sys/class/backlight vanished due to appended kernel param. ?


I have a Zenbook UX21A with Slackware-current 64 on it. The screen brightness keys did not work out of the box, so for a while I have just been adjusting it manually with the files in /sys/class/backlight. In my case, I usually have

Code:
/sys/class/backlight/acpi_video0/brightness
and
Code:
/sys/class/baclight/intel_brightness/brightness
The brightness file in intel_brightness was the one that controlled my screen brightness. I have been meaning to try to learn what the other one was for.

I was going to write a couple of scripts and attach them to the brightness keys, but yesterday, based on something I read in the Arch wiki, I attempted to add functionality to the keys by adding acpi_osi=\"!Windows 2012\" as a boot parameter in lilo.conf.

This did in fact give brightness control to the hotkeys, but the increments are too wide and inconveniently spaced. It basically gives me pitch black, too dim, too bright, and blinding. So I thought I would go back to /sys/class/backlight and see if I could use it in conjunction with the keys. But the directory is now completely empty.

So now I'm wondering whether or not that was supposed to happen, and if so, why? I didn't really know what I was doing with that kernel parameter, and I haven't been able to find any clues about what occurred.

Thanks for any help.

Last edited by Kallaste; 07-16-2013 at 10:32 PM.
 
Old 07-17-2013, 01:14 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 4,021

Rep: Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966
Accoding to /usr/src/linux-3.2.45/Documentation/kernel-parameters.txt, this command has the effect of removing "Windows 2012" as built-in OS interface string.

But you could try other parameters.

If you didn't look at it yet, output of
Code:
grep /usr/src/linux/Documentation/kernel-parameters.txt
could give you some clues.

See also /usr/src/linux/Documentation/ABI/stable/sysfs-class-backlight.
 
Old 07-17-2013, 01:31 PM   #3
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Pittsburgh, PA
Distribution: Slackware
Posts: 213

Rep: Reputation: 52
Hmm... I'm on slack64-current.. but my backlight is here:

/sys/class/backlight/intel_backlight/brightness


maybe it just moved on you with the new kernel?
 
Old 07-19-2013, 11:19 PM   #4
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 344

Original Poster
Rep: Reputation: 84
Not the Kernel Parameter

Hi,

I am sorry for the delay. Thank you for the documentation. I read all of it and was at a loss for quite some time before I figured out my problem had nothing to do with the kernel parameter, but that in fact something else had happened. I still don't know what it was, but somehow a lot of my file structure got corrupted, including my personal files and other random things. It even broke my wireless driver. If I had checked to see if anything else was off before delving into researching the innocent kernel parameter, I would have noticed the damage a lot sooner.

Anyway, once I saw the damage and spent several hours trying to make heads or tails of it, I finally reinstalled. I would have liked to figure out the mystery, but unfortunately I had a project deadline and needed my laptop to work. So far everything is running smoothly again, but since I cannot think of anything else that could have happened, I am worried about a bad disk. This is my first SSD and I'm not well versed in the mechanics of checking them (smartmontools? manufacturer's tool?), but I will be looking into that soon.

Thanks again.

P.S. @ WhiteWolf1776: Sorry, /sys/class/backlight/intel_backlight/brightness is actually what I meant. Since the backlight directory was empty, I was typing it from memory and got it wrong.

Last edited by Kallaste; 07-19-2013 at 11:22 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] writing to /sys/class/gpio/export sharan013 Linux - Embedded & Single-board computer 5 02-22-2012 11:08 AM
[SOLVED] No backlight controls in /sys/class (ATI Mobility Radeon HD 5650, 3.0.1 kernel) hrasdt Linux - Laptop and Netbook 2 08-30-2011 03:15 AM
sys/class/net/ethx/type What is it? tank junior Linux - Newbie 1 05-03-2011 08:23 PM
/sys/class/hwmon Question Aztral Linux - General 1 08-11-2009 02:00 PM
Kernel Deleted due to Upgrade, Cannot Reinstall Kernel due to Dependency Issues Kenji Miyamoto Debian 2 02-17-2007 09:44 AM


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