Bug 103371 - No backlight after system resume and system hang
Summary: No backlight after system resume and system hang
Status: CLOSED MOVED
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Video (show other bugs)
Hardware: Intel Linux
: P1 high
Assignee: Aaron Lu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-23 19:22 UTC by Ghry
Modified: 2015-10-15 02:08 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.18.20, 4.0.9
Subsystem:
Regression: No
Bisected commit-id:


Attachments
acpi dump file (375.52 KB, text/x-log)
2015-08-23 19:22 UTC, Ghry
Details
dmesg since the last kernel panic (os hang totally) (55.10 KB, text/x-log)
2015-08-24 20:56 UTC, Ghry
Details
dmesg made during kernel 3.12.28 running - efi and acpi support (57.11 KB, application/octet-stream)
2015-08-24 21:17 UTC, Ghry
Details
dmesg since the last system hang (55.95 KB, text/x-log)
2015-08-26 15:05 UTC, Ghry
Details
dmesg right after last system freeze (55.64 KB, text/x-log)
2015-09-04 15:11 UTC, Ghry
Details

Description Ghry 2015-08-23 19:22:49 UTC
Created attachment 185561 [details]
acpi dump file

Hi

I have notebook asus x551ma (Intel HD Graphics - Bay Trail - Sandy Bridge); 

I have running kernel(s) 3.18.20 and 4.0.9; Seems like they both have backlight issue on wake up on my notebook; After suspend I can see OS is running but there is no backlight (LED); I tried reboot many times but all the same :P 

The console mode (ctrl+F1) is not accessible bacause of the error "Ignoring BGRT: invalid status 0 (expected 1) " and blinking cursor below :(

I suppose something is wrong with acpi module but still I am not sure so I attach the acpi dump (see attachment);

Please help to fix the issue or advise a more or less optimal workaround;

Thanks
Comment 1 Ghry 2015-08-23 23:31:03 UTC
p.s. sometimes I have kernel panic on kernel 3.18.20 and 4.0.9
Comment 2 Ghry 2015-08-23 23:47:30 UTC
p.p.s. as a guess, some forums say it is the CONFIG_ACPI_BGRT=y config stuff in case of UEFI; I don't know but does this mean that "security boot" should be enabled in BIOS or something? Please give me a tip here
Comment 3 Aaron Lu 2015-08-24 05:14:38 UTC
BGRT is a firmware table and OS doesn't have control of its status, so I don't see a way to fix the "Ignoring BGRT: invalid status 0 (expected 1) " issue.

Regarding the backlight issue, is it that from v3.18 you start to have this problem after resume?
Comment 4 Ghry 2015-08-24 19:02:27 UTC
Yes, I have backlight issue since 3.18; I have tried kernels 3.18 and 4.0.9 and 4.1 and 3.16; Previously 3.16 worked fine (except its bay trail support of course) but I post installed it (after 3.18 the os in-box one) so if I switch to 3.16 it gives backlight issue as well; So to be more specific kernels which have backlight issue are : 

- 3.16.7.15
- 3.18.20
- 4.0.9

it is really annoying cause after suspend the only thing which switch backlight back is total reboot :P BTW 3.18.20 and 4.0.9 sometimes give kernel panic (total system hang)
Comment 5 Ghry 2015-08-24 20:05:52 UTC
I have UEFI which is disabled; What if I set CONFIG_ACPI_BGRT=n will it help somehow, moreover, the backlight is some ACPI problem; so may total bgrt skipping give a hand here?
Comment 6 Ghry 2015-08-24 20:56:44 UTC
Created attachment 185711 [details]
dmesg since the last kernel panic (os hang totally)
Comment 7 Ghry 2015-08-24 20:59:00 UTC
@Aaron Lu
I made dmesg file since the last kernel panic which after a while occur on 3.16,3.18.4.0; Please see the attachment

p.s. as I can see there is an acpi firmware bug but I am not sure; Please give me a tip
Comment 8 Ghry 2015-08-24 21:17:03 UTC
I just checked some previous kernels dmesg like a kernel 3.12.28 for example; Seems like kernel 3.12.28 worked better with EFI and my notebook ACPI tables but what changed since 3.18 and how to choose the correct kernel version then? (see attachment) or I should somehow just reconfigure kernels?
Comment 9 Ghry 2015-08-24 21:17:55 UTC
Created attachment 185721 [details]
dmesg made during kernel 3.12.28 running - efi and acpi support
Comment 10 Aaron Lu 2015-08-25 02:25:38 UTC
Let's be clear of the problem we are dealing with here:
You can do system suspend and resume, the only problem is after resume, the backlight if off, but you are still able to login to the system(by ssh, etc.) and you are able to reboot the system with software, i.e. by issuing the reboot command. Is it the case?
Comment 11 Ghry 2015-08-25 12:41:27 UTC
I am not sure cause ctrl+t does not work and alt+ctrl+F1 has the error "Ignoring BGRT: invalid status 0 (expected 1)"; But still maybe, yes, if to light the lid back with a lighter I could use os %)
Comment 12 Aaron Lu 2015-08-26 03:00:37 UTC
When you press :alt+ctrl+F1, you see the error "Ignoring BGRT: invalid status 0 (expected 1)" on console? I thought the resume doesn't bring the backling on, so how can you see the error on console?
Comment 13 Ghry 2015-08-26 07:47:33 UTC
No, resume really doesn't bring backlight on so I have to reboot; I can see console etc before suspend only; The error Ignoring BGRT: invalid status 0 (expected 1) throws on boot but I have backlight on boot :)
Comment 14 Aaron Lu 2015-08-26 08:14:43 UTC
May I know how did you do the reboot after resume? We need to make sure the system resumed back well except the backlight is off first.
Comment 15 Ghry 2015-08-26 08:53:50 UTC
To reboot I just pushed power button cause I could hardly see graphics to input or use mouse :( 
After resume I can hardly but still see there are windows and apps opened as I had them before resume; I can hardly see them with no backlight but still OS seems back running after resume except the LED backlight :P
Comment 16 Ghry 2015-08-26 08:56:43 UTC
(In reply to Aaron Lu from comment #12)
> When you press :alt+ctrl+F1, you see the error "Ignoring BGRT: invalid
> status 0 (expected 1)" on console? I thought the resume doesn't bring the
> backling on, so how can you see the error on console?

BTW when I press alt+ctrl+F1 in 3.16 mode backlight switches off totally so I have to reboot to switch it back on :(
Comment 17 Ghry 2015-08-26 15:05:07 UTC
Created attachment 185921 [details]
dmesg since the last system hang
Comment 18 Ghry 2015-08-26 15:08:18 UTC
I just generated dmesg since the last system hang during kernel 4.0.9 running; I really hope that also will help to figure out what causes issues (see attachment)
Comment 19 Ghry 2015-08-26 15:24:56 UTC
The ""

$dmesg -t | grep -i 'error\|warn\|exception'

outputs...
-------------
ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 128/32 (20150204/tbfadt-618)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150204/hwxface-580)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150204/hwxface-580)
acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
ACPI Warning: SystemIO range 0x000000000000F000-0x000000000000F01F conflicts with OpRegion 0x000000000000F000-0x000000000000F00F (\_SB_.PCI0.SBUS.SMBI) (20150204/utaddress-254)
---------------

Seems like all related to ACPI :( I am not sure what to do next please guide me
Comment 20 Aaron Lu 2015-08-27 02:27:51 UTC
(In reply to Ghry from comment #19)
> The ""
> 
> $dmesg -t | grep -i 'error\|warn\|exception'
> 
> outputs...
> -------------
> ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 128/32
> (20150204/tbfadt-618)

Looks like a BIOS bug, but may not matter.

> ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_]
> (20150204/hwxface-580)
> ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_]
> (20150204/hwxface-580)

This means your system doesn't suppport S1, S2 as most of the laptops sold today so essentially all laptops have this "error" messages.

> acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM

Your firmware deny giving OS control of PCIe ASPM, which is a power feature and you can ignore it.

> ACPI Warning: SystemIO range 0x000000000000F000-0x000000000000F01F conflicts
> with OpRegion 0x000000000000F000-0x000000000000F00F (\_SB_.PCI0.SBUS.SMBI)
> (20150204/utaddress-254)

Hard to say what problem this may cause, but I also have several such lines in my dmesg so not a big deal.

> ---------------
> 
> Seems like all related to ACPI :( I am not sure what to do next please guide
> me

These are error related to ACPI, but it doesn't mean it has something to do with your problem.
Comment 21 Aaron Lu 2015-08-27 02:37:42 UTC
Please list /sys/class/backlight(In reply to Ghry from comment #0)
> Created attachment 185561 [details]
> acpi dump file
> 
> Hi
> 
> I have notebook asus x551ma (Intel HD Graphics - Bay Trail - Sandy Bridge); 

This laptop is using BayTrail, it doesn't have SandyBridge.
Comment 22 Aaron Lu 2015-08-27 02:38:56 UTC
1 Please list /sys/class/backlight

2 Are you able to adjust backlight when system is running, e.g. is there any backlight hotkey? If so, can you adjust the backlight level after you resume?
Comment 23 Aaron Lu 2015-08-28 02:56:22 UTC
(In reply to Ghry from comment #4)
> Yes, I have backlight issue since 3.18; I have tried kernels 3.18 and 4.0.9
> and 4.1 and 3.16; Previously 3.16 worked fine (except its bay trail support
> of course) but I post installed it (after 3.18 the os in-box one) so if I
> switch to 3.16 it gives backlight issue as well; So to be more specific
> kernels which have backlight issue are : 
> 
> - 3.16.7.15
> - 3.18.20
> - 4.0.9

Since all kernel version has this problem, I don't see why it is a regression? I'll clear that flag.
Comment 24 Ghry 2015-08-28 12:41:45 UTC
(In reply to Aaron Lu from comment #21)
> This laptop is using BayTrail, it doesn't have SandyBridge.

The "Sandy Bridge" is related to Graphics, as I can get it; I have "Sandy Bridge" written in BIOS;

(In reply to Aaron Lu from comment #21)
> Please list /sys/class/backlight(In reply to Ghry from comment #0)
> > Created attachment 185561 [details]
> > acpi dump file

$ls /sys/class/backlight
intel_backlight

So it is the intel backlight;
Comment 25 Ghry 2015-08-28 12:45:18 UTC
(In reply to Aaron Lu from comment #22)
> 2 Are you able to adjust backlight when system is running, e.g. is there any
> backlight hotkey? If so, can you adjust the backlight level after you resume?

No, the Fn+F5 and Fn+F6 does not adjust the backlight; I am using xbacklight to adjust it and the xbacklight works
Comment 26 Ghry 2015-08-30 07:53:20 UTC
Still there is no backlight after suspend :"( How to fix that? I am tried 3.16* 3.18 and 4.0.9 versions; Please guide me
Comment 27 Ghry 2015-08-30 09:25:39 UTC
I just tried to list the backlight folder : 
-------
$ls /sys/class/backlight
acpi_video0
--------
it outputs acpi_video0 but it should be intel_backlight :(
Comment 28 Aaron Lu 2015-08-31 07:23:17 UTC
You have very different output in comment #24 and comment #27, what happened?
Comment 29 Ghry 2015-08-31 18:18:09 UTC
@Aaron Lu

Thanks for your comment; It's OK now; I guess it is the acpid-openrc previous test installation messed something :"( I Just removed it for systemd-sysvcompat so I have ...

$ls /sys/class/backlight
intel_backlight 

...again :)
Comment 30 Aaron Lu 2015-09-01 01:48:07 UTC
We need to make sure if system is alive or not after resume, because if system is hang, no backlight is normal. So is it possible for you to use another computer to ssh into the test machine to see if it is still alive, just no backlight? Another indication is if the keyboard LED still works, like the NumLock key.
Comment 31 Ghry 2015-09-02 11:54:15 UTC
I am sure it is is alive cause I used the OS after resume (with no backlight of course) lightening the display (at the front side) by my mobile phone lighter :) So system is totally fine after resume except the backlight; Where should I look at? Please guide me
Comment 32 Ghry 2015-09-04 07:46:41 UTC
I just found my /var/log/Xorg.0.log contains this line : 

(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)

may this cause the mentioned backlight issue? Give me a tip please
Comment 33 Ghry 2015-09-04 15:11:59 UTC
Created attachment 186731 [details]
dmesg right after last system freeze
Comment 34 Ghry 2015-09-04 15:14:33 UTC
I gene-ed dmesg right after today system total freeze; I attached the file; Watch it please; btw it contains line : 

system wakeup disabled by acpi

...so I am not sure what that means; Please guide me
Comment 35 Aaron Lu 2015-09-06 01:57:34 UTC
(In reply to Ghry from comment #32)
> I just found my /var/log/Xorg.0.log contains this line : 
> 
> (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
> 
> may this cause the mentioned backlight issue? Give me a tip please

No, it doesn't have anything to do with the low backlight after resume.
Comment 36 Aaron Lu 2015-09-06 01:59:28 UTC
Is there any particular reason why you added the "video.use_native_backlight=1" cmdline option?
Comment 37 Ghry 2015-09-06 03:15:36 UTC
see #29 a temp solution not to have acpi_video0; But after reboot intel_backlight class is init-ed again so it may be called as a "workaround artifact" now :) Anyways the backlight does not work on resume with or without the option :P 

Today, as a test, I tried to use pm-utils the pm-suspend to suspend and resume; So the pm-suspend helps to resume more or less fine so the backlight is working (sometimes don't) again after pm-suspend; 

But still if to suspend and resume as usual backlight does not work :(
Comment 38 Aaron Lu 2015-09-07 02:06:43 UTC
(In reply to Ghry from comment #37)
> see #29 a temp solution not to have acpi_video0; But after reboot
> intel_backlight class is init-ed again so it may be called as a "workaround
> artifact" now :) Anyways the backlight does not work on resume with or
> without the option :P 
> 
> Today, as a test, I tried to use pm-utils the pm-suspend to suspend and
> resume; So the pm-suspend helps to resume more or less fine so the backlight
> is working (sometimes don't) again after pm-suspend; 

Maybe the pm-utils has some script to save/restore the backlight?
Did you try to do the suspend from the GUI?

> 
> But still if to suspend and resume as usual backlight does not work :(

By "as usual", do you mean "echo mem > /sys/power/state"?
Comment 39 Ghry 2015-09-07 17:01:03 UTC
(In reply to Aaron Lu from comment #38)

> By "as usual", do you mean "echo mem > /sys/power/state"?

No, I mean using the OS GUI dialog, as you suggested; I am using xfce4 right now;
Comment 40 Ghry 2015-09-08 21:12:59 UTC
I just want to add; after resume I have backlight working : 

- on os boot (grub menu)
- playmouth running
- splash login dialog (sometimes backlight doesn't work)
  
and after I login the backlight LED is off totally :P So what causes the backlight issue how you think?
Comment 41 Aaron Lu 2015-09-09 01:13:23 UTC
(In reply to Ghry from comment #40)
> I just want to add; after resume I have backlight working : 

Why? What has changed to make it work?

> 
> - on os boot (grub menu)
> - playmouth running
> - splash login dialog (sometimes backlight doesn't work)
>   
> and after I login the backlight LED is off totally :P So what causes the
> backlight issue how you think?

No idea, is it always the case or it's something new?
Comment 42 Ghry 2015-09-10 17:45:52 UTC
(In reply to Aaron Lu from comment #41)
> (In reply to Ghry from comment #40)
> > I just want to add; after resume I have backlight working : 
> 
> Why? What has changed to make it work?
> 

It still doesn't work; I just wanted to add that sometimes (sometimes not) after resume when login dialog is open I have backlight on but after I logged-in the backlight switches off :( So why the backlight disappears after user authentification I don't get it :( ?

I am using pm-utils right now so I have to use terminal to suspend like a

$sudo pm-suspend

but still I'd like to have correct suspend/resume with my os GUI :( Please help me analyze what causes the issue I really want to have it solved or at lease a workaround it; I like kernel 4.0.9 (I am running right now) cause it works much much better on my notebook in compare with the previous ones cause of its bay trail support I guess; 

p.s. I just want to ask may OS buggy theme cause xorg total freeze?
Comment 43 Aaron Lu 2015-09-11 01:01:01 UTC
Can you try another GUI, say GNOME?
Comment 44 Ghry 2015-09-13 05:37:26 UTC
(In reply to Aaron Lu from comment #43)
> Can you try another GUI, say GNOME?

No, I can't right now :( I've been thinking may the backlight off issue be caused by some service or manager or kernel module not-reinit-ed for example? How to check this out?
Comment 45 Aaron Lu 2015-09-14 02:32:33 UTC
Boot a distro's livecd isn't a big trouble, please use that to test, e.g. Fedora's workstation livecd, it comes with GNOME and a relatively new kernel.
Comment 46 Ghry 2015-09-14 06:08:26 UTC
(In reply to Aaron Lu from comment #45)
> Boot a distro's livecd isn't a big trouble, please use that to test, e.g.
> Fedora's workstation livecd, it comes with GNOME and a relatively new kernel.

What xfce gui uses command to suspend? How to check it out?
Comment 47 Aaron Lu 2015-09-14 06:11:57 UTC
(In reply to Ghry from comment #46)
> (In reply to Aaron Lu from comment #45)
> > Boot a distro's livecd isn't a big trouble, please use that to test, e.g.
> > Fedora's workstation livecd, it comes with GNOME and a relatively new
> kernel.
> 
> What xfce gui uses command to suspend? How to check it out?

Google?
Comment 48 Ghry 2015-09-18 06:37:09 UTC
But still what if it is some service disabled on suspend? Is there a way to check that?

I found this services which mention light are running : 

-----------
$systemctl
...
 lightdm-plymouth.service             loaded active running   Light Display Manager
...
systemd-backlight@backlight:intel_backlight.service loaded active exited    Load/Save Screen Backlight Brightness
...
systemd-backlight@backlight:intel_backlight.service loaded active exited    Loaded active active    system-systemd\x2dbacactive active    system-systemd\x2dbacklight.
...
-------------

Is there a way to find out which of them or maybe there are some more are buggy? Please guide me;
Comment 49 Aaron Lu 2015-09-18 07:34:41 UTC
This is an user space issue so please ask in your distro's support forum or mailing list.
Comment 50 Ghry 2015-09-19 20:22:17 UTC
No, I mean how to check it is not lightDM etc services issue(s)?
Comment 51 Aaron Lu 2015-09-21 02:04:10 UTC
Right, the lightDM etc services are user space programs, pleask seek help on your distro's user support forum or mailing list.
Comment 52 Aaron Lu 2015-10-15 02:08:45 UTC
Close due to user space involved.

Note You need to log in before you can comment on or make changes to this bug.