LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-30-2015, 03:04 AM   #1
amenos42
Member
 
Registered: Jun 2013
Location: USA
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled
Screen brightness does not revert after opening screen


I just installed the newest set of updates, so I am running Slackware Current. My hardware is a Panasonic CF-29 Toughbook.

Since the update, closing the screen while X is running has caused the screen to become irreversibly dark. The virtual console where X was running is completely black. The ttys are just barely readable. I'm able to use them to shut down the computer.

Does anyone know what's causing this or what could be causing this?

EDIT: The keyboard brightness controls do not work when I open the monitor. After restarting the computer, they do work again. When lilo loads, the brightness is at minimum. During lilo, I can use <Fn> + <F2> to increase the brightness to a reasonable level.

Last edited by amenos42; 10-30-2015 at 03:13 AM.
 
Old 10-30-2015, 09:40 PM   #2
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163
Blog Entries: 9

Rep: Reputation: Disabled
Just out of curiosity, when that next happens, if you then ctrl-alt-backspace to forcibly exit x-windows and return to the console, is the screen then visible?

Edit: I expect your screen will remain dark, but you never know.

Last edited by pzognar; 10-30-2015 at 09:42 PM.
 
Old 10-31-2015, 12:01 AM   #3
amenos42
Member
 
Registered: Jun 2013
Location: USA
Distribution: Slackware
Posts: 47

Original Poster
Rep: Reputation: Disabled
No, in fact, ctr-alt-backspace works properly. Except the console's brightness is now set to minimum. Apparently the Fn+[F1/F2] doesn't work in the console, so I have to reopen X to fix the brightness.

I understand this is a difficult problem to diagnose. I already sold this computer, and I would feel like a much better person if I could fix this problem within the next 24 hours.

Last edited by amenos42; 10-31-2015 at 12:03 AM.
 
Old 10-31-2015, 01:12 AM   #4
amenos42
Member
 
Registered: Jun 2013
Location: USA
Distribution: Slackware
Posts: 47

Original Poster
Rep: Reputation: Disabled
I would even be happy if someone had a vague idea of how I could begin to diagnose this problem.

I am attaching the results of
Code:
lspci -vv
.
Attached Files
File Type: txt 20151031-lspci-vv.txt (12.6 KB, 18 views)
 
Old 10-31-2015, 06:26 AM   #5
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163
Blog Entries: 9

Rep: Reputation: Disabled
Sorry man, I'm out of ideas. I had a similar problem but that was caused by nvidia gfx which you do not have.
 
Old 10-31-2015, 07:38 AM   #6
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
I also have noticed some oddities with my backlight recently (also i915). But it wasn't such a bother that I'd actually take action. After suspending, the backlight will be at the lowest state. If I press a button however or move the mouse, it will recover. This rather new but I don't remember where it started.

In your case, I'd try some i915 kernel parameters (see modinfo i915) and check dmesg/Xorg.0.log. Furthermore I'd inspect /sys/class/backlight/ to see if the actual brightness is recognized by the drivers and/or can be set there.

Is the backlight actually off or just set to lowest power?

Does the problem also occour when X is not involved (e.g. suspending in console in runlevel 3).

Does xbacklight work?
 
Old 10-31-2015, 10:00 AM   #7
fiddlesean
LQ Newbie
 
Registered: Oct 2015
Distribution: Slackware Current
Posts: 7

Rep: Reputation: Disabled
I've also been having trouble with the backlight staying dark after resume, also on i915 hardware (2008 black MacBook4,1). I'm upgrading right now to try the latest -current, but I can tell you that for me the problem first appeared with the 3.18.11 kernel that appeared in -current a while ago, so I've just been running the 3.14.18 kernel that was the last version to work for me. I have also tried 4.0.6 and 4.1.3 kernels that did not work.

One thing that I've noticed, is that with the 3.14.18 kernel, I see messages like this in /var/log/messages:

Oct 28 20:33:12 shams kernel: [69910.541117] video LNXVIDEO:00: Restoring backlight state

but I don't see those messages with the 3.18.11 and later kernels.

As soon as I'm booted into the 4.1.12 kernel, I'll give you an update.
 
Old 10-31-2015, 08:53 PM   #8
fiddlesean
LQ Newbie
 
Registered: Oct 2015
Distribution: Slackware Current
Posts: 7

Rep: Reputation: Disabled
Sorry for the delay, the upgrades caused some (third party) breakage that I needed to fix.

When I run the -current kernel-generic-smp-4.1.12_smp-i686-1 kernel, my backlight also fails to re-light on resume.

Answering eldercitizen's questions: the backlight does appear to be completely off, the problem happens without X (suspend from console), and none of the following work:

xbacklight -set 100
xset dpms force off ; xset dpms force on
echo 12 >/sys/class/backlight/apple_backlight/brightness
echo 100 >/sys/class/backlight/apple_backlight/bl_power

I've also tried adding both 'video.use_native_backlight=1' and 'video.use_native_backlight=0' to the kernel command line (different boots, of course), and neither seem to have any effect. I tried this after noticing that under the 3.14.18 kernel, I have these two directories:

/sys/class/backlight/apple_backlight
/sys/class/backlight/intel_backlight

but under the 4.1.12 kernel, only the apple_backlight one appears.

I'm at a loss where to go next with this, so if anyone has any suggestions, I'd really appreciate them.

Last edited by fiddlesean; 10-31-2015 at 08:54 PM. Reason: poor proofreading
 
Old 11-02-2015, 10:45 AM   #9
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
Probably false-alarm from my side. I had a "xset dpms force off" in my standby-script right before going standby. I just noticed this because with the 4.3.0 kernel it stayed dark after standby (whereas it was only dim with older kernels). Disabling the command solved my problems for the current kernel as well as for the older ones.

fiddlesean: Do you have acpi_video loaded? This is what normally gives off the "LNXVIDEO:00: Restoring backlight state" message.
Any mentioning of i915 in the dmesg (because intel-backlight)?
What kind of suspend are you using? (I simply "echo mem > /sys/power/state")

Care to share your dmesg (after suspend)?
 
Old 11-02-2015, 02:58 PM   #10
fiddlesean
LQ Newbie
 
Registered: Oct 2015
Distribution: Slackware Current
Posts: 7

Rep: Reputation: Disabled
> Do you have acpi_video loaded? This is what normally gives off the "LNXVIDEO:00: Restoring backlight state" message.

Code:
$ lsmod | grep video
video                  11067  1 i915
thermal_sys            22729  2 video,processor
> Any mentioning of i915 in the dmesg (because intel-backlight)?

Code:
$ sudo dmesg | grep i915
[   13.207662] [drm] Initialized i915 1.6.0 20150327 for 0000:00:02.0 on minor 0
[   14.026459] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[   14.026505] i915 0000:00:02.0: registered panic notifier
[   16.292082] [drm] GMBUS [i915 gmbus dpc] timed out, falling back to bit banging on pin 4
[   16.356057] [drm] GMBUS [i915 gmbus dpd] timed out, falling back to bit banging on pin 6
> What kind of suspend are you using? (I simply "echo mem > /sys/power/state")

pm-suspend from /etc/acpi/acpi_handler.sh, triggered by lid close.

> Care to share your dmesg (after suspend)?

Attached (4.1.12-after_suspend.txt). I've also attached the dmesg from my last-known-working kernel (3.14.48-after_suspend.txt) for comparison and an lspci to help interpret device numbers, in case that's useful.

Thanks for any help you can offer!
Attached Files
File Type: txt 4.1.12-after_suspend.txt (6.3 KB, 14 views)
File Type: txt 3.14.48-after_suspend.txt (5.7 KB, 13 views)
File Type: txt lspci.txt (2.1 KB, 14 views)
 
Old 11-03-2015, 08:38 AM   #11
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
I think it's that: https://bugzilla.kernel.org/show_bug.cgi?id=99801
 
Old 11-03-2015, 03:05 PM   #12
fiddlesean
LQ Newbie
 
Registered: Oct 2015
Distribution: Slackware Current
Posts: 7

Rep: Reputation: Disabled
Thanks, eldercitizen. That bug looks similar to mine, but differs in these ways:

- The person filing the bug can get his backlight to switch back on by pressing one of the function keys. I have yet to find any way to get my backlight to come back on, short of rebooting.

- His backlight problem appears to be intermittent, mine always.

What is really interesting is that adding 'acpi_backlight=native' to his boot command line appears to have solved the problem for him (the discussion is unclear). The 'native' option is only available in 4.2 and later kernels, so I think my next step will be to try one of those.
 
Old 11-03-2015, 08:39 PM   #13
fiddlesean
LQ Newbie
 
Registered: Oct 2015
Distribution: Slackware Current
Posts: 7

Rep: Reputation: Disabled
Darn. Running kernel 4.3.0 with 'acpi_backlight=native' on the boot command line does not help. Neither does replacing 'native' with 'vendor', 'video', or 'none'. Same thing, no /sys/class/backlight/intel_backlight, backlight does not light on resume from suspend.

Anybody know how much disk space a kernel git bisect needs?
 
Old 11-05-2015, 01:36 AM   #14
ill323
Member
 
Registered: Jul 2010
Posts: 43

Rep: Reputation: 11
I'm attaching my 4.1.12 kernel config, and you can try it.
Do not add any kernel parameters.

The config supports ext4 filesystems, and NOT support your network cards.
02:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8058 PCI-E Gigabit Ethernet Controller (rev 13)

I think maybe it's a kernel config problem, cause

# ls /sys/class/backlight/
acpi_video0@ intel_backlight@

And backlight works very well.

Dmesg indicates that acpi_video handles it properly.

[ 5763.046987] video LNXVIDEO:00: Restoring backlight state
Attached Files
File Type: txt 4.1-config.txt (81.1 KB, 27 views)
 
Old 11-05-2015, 07:57 PM   #15
fiddlesean
LQ Newbie
 
Registered: Oct 2015
Distribution: Slackware Current
Posts: 7

Rep: Reputation: Disabled
Thanks, ill323, but with your config, I get nothing in /sys/class/backlight. What sort of hardware are you running on?
 
  


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
Mint 15 = black screen (brightness = 0) on start up - have to manually set brightness Netnovice Linux Mint 4 01-16-2014 08:46 PM
Screen brightness changes twice in Xubuntu 12.04 crosstalk Ubuntu 1 07-03-2012 12:32 PM
Screen Brightness Adjustment GRAHAM HAMILTON Linux - Newbie 4 11-22-2010 04:47 AM
Screen Brightness issues gambleb Linux - Laptop and Netbook 3 11-17-2007 03:06 AM
screen brightness control arunsri Slackware 4 10-20-2005 03:35 AM

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

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