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 09-23-2016, 12:13 PM   #1
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Rep: Reputation: Disabled
Power detection issue in slackware 14.2 (laptop connected and charging but screen is dim)


below is the issue i face:

my adapter is plugged to my system, but still when i switch it on, i face a dimlit screen (brightness is very less)

i have to manually switch off and switch on my plug switch (and my monitor is lit up again properly to the right settings)

the laptop is being charged properly and i have tested with ON & OFF state and it is being detected correctly...the only issue is when i boot i get a low light and need to manually switch off and on my adapter switch to get a normal well lit display

Code:
cat /sys/class/power_supply/AC/online shows 0 (when unplugged) and 1 (when plugged)

Last edited by nitecrawler; 09-23-2016 at 12:34 PM.
 
Old 09-23-2016, 12:57 PM   #2
the3dfxdude
Member
 
Registered: May 2007
Posts: 735

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Are you using XFCE? How did you install your system? Are you able to use software control or brightness keys?
 
Old 09-23-2016, 01:16 PM   #3
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
i use fluxbox...

well i havent tried it with
Code:
Fn + brightness
keys as i have my laptop keyboard disabled on startup....only my usb keyboard works on startup which doesnt have the brightness keys to test the same...

i can control my brightness
Code:
inserting into /sys/class/backlight
but i am looking for auto-detection of adapter and resume brightness and vice-versa...

if i switch my laptop on, get the same brightness even if i unplug later (screen doesnt goes to dim state)

is power on/off not recognized or supported?

PFB some findings:
Code:
lspci | grep -i radeon
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics]

grep -i "\bconnected" /var/log/Xorg.0.log
[    59.667] (II) RADEON(0): Output eDP connected
 
Old 09-23-2016, 01:27 PM   #4
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
here is my dmesg log which i think should be my issue related to brightness

Code:
~[3]#dmesg | grep -i brightness
[    0.359788] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.360116] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    8.845155] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[   13.461976] dell_laptop: Keyboard brightness level control not supported
 
Old 09-23-2016, 01:32 PM   #5
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
nitecrawler,
Is this a new problem that started after some kind of software update or upgrade?

My first advice is to check your BIOS for screen brightness settings.
Also, in my experience, it's very unusual for a laptop's AC adapter to have a switch on it.
Are you using the manufacturer approved AC adapter?
 
Old 09-23-2016, 01:43 PM   #6
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by STDOUBT View Post
nitecrawler,
Is this a new problem that started after some kind of software update or upgrade?
well, i had upgraded to 14.2 recently, but not really sure if it was there before or popped up after the upgradation

Quote:
Originally Posted by STDOUBT View Post
Also, in my experience, it's very unusual for a laptop's AC adapter to have a switch on it.
Are you using the manufacturer approved AC adapter?
yes, it is the manufacturer AC adapter...and no, there is no switch for the adapter, what i meant was the power source switch (the switch besides the socket i plug my adapter to)
 
Old 09-23-2016, 01:50 PM   #7
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
very useful link (though outdated now as dsdt ships with the linux kernel now (correct me if i am wrong..thats the idea i got)

Code:
https://cannibalcandy.wordpress.com/2011/02/18/dsdt-editing-put-an-end-to-your-acpi-woes/
 
Old 09-23-2016, 02:10 PM   #8
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
So are you going to go ahead and recompile your DSDT?
Another option might be to upgrade the BIOS on your laptop, assuming there is a "fixed" one available. It does look like you're dealing with a firmware bug.
It might also be advisable to reboot to another (older) kernel if you have one installed to see if the problem is some kind of regression in your currently-working kernel firmware.
 
Old 09-23-2016, 02:20 PM   #9
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
well for a hackish note, i have just added this line to rc.local

Code:
echo 255 > /sys/class/backlight/radeon_bl0/brightness
and it gets me to max brightness everytime i boot....( use redshift so it doesnt burn my eyes and thats precisely why i need max brightness )

Quote:
Originally Posted by STDOUBT View Post
So are you going to go ahead and recompile your DSDT?
i need to spend time reading through them before i try compiling...understand dsdt better and so on....

Quote:
Originally Posted by STDOUBT View Post
Another option might be to upgrade the BIOS on your laptop, assuming there is a "fixed" one available. It does look like you're dealing with a firmware bug.
dont know how to do this either....unless i am sure a "fixed" bios is available (by googling more and more), i am not going to interfere with bios as of now....

Quote:
Originally Posted by STDOUBT View Post
It might also be advisable to reboot to another (older) kernel if you have one installed to see if the problem is some kind of regression in your currently-working kernel firmware.
i do not have an older verison but a newer version yes....shall boot into it and check but for now i need to get some rest and come back later on this.....
 
Old 09-23-2016, 04:27 PM   #10
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,255

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by nitecrawler View Post
well for a hackish note, i have just added this line to rc.local

Code:
echo 255 > /sys/class/backlight/radeon_bl0/brightness
That will do for your machine. An example of more general solution:
Code:
cd /sys/class/backlight
 for i in $(ls); do
   if [ -e $i/max_brightness ]; then
     if [ -e $i/brightness ]; then
       cat $i/max_brightness > $i/brightness
     fi
   fi
 done
.

Last edited by zk1234; 09-23-2016 at 04:30 PM.
 
Old 09-24-2016, 08:52 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

I am curious as to if you have tried without the USB keyboard to see if the brightness stays to the preset value?

 
  


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
[SOLVED] Screen dim time is very little. Whenever I pause to read whatever is on my screen or whatever the screen dims after about 3-5 seconds Ajwad Linux - Newbie 26 02-21-2016 01:45 PM
Laptop power setting issue - laptop won't sleep on critical bettery __spc__ Linux - Laptop and Netbook 1 09-17-2013 01:21 PM
[SOLVED] Automating Xorg RandR turning laptop screen off if external monitor is connected Nylex Slackware 5 08-02-2010 11:20 AM
Dell Latitude stops charging/ can't use with power cable connected Ollir Linux - Laptop and Netbook 0 08-07-2004 01:39 AM

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

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