Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel i915GM not coming back up from suspend or hibernate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6764
Location: almost Mile High in the USA

PostPosted: Wed Sep 19, 2018 9:58 pm    Post subject: Intel i915GM not coming back up from suspend or hibernate Reply with quote

This is an old machine (laptop/lvds panel) using the i915 chipset using the intel_drv driver.

Graphics seems to work fine, but if I suspend or hibernate the machine, and try to resume, the machine comes back up, but with a black screen.

The only indication is that in Xorg.0.log reporting that the crtc had some invalid state and was stopped. The panel's backlight appears to be off.

The key observations:
- I can control-alt-Fx to a different VT and the machine is definitely alive and usable.
- After ctrl-alt-Fx and logging in, I can restart lightdm/X11 and graphics mode comes up again!
Unfortunately this is a very unusable workaround, but at least it shows the machine is mostly functional.

This is using kernel 4.14.65, i686 32-bit. Both suspend and hibernate have the same behavior. Using intel_drv xf86-video-intel-2.99.917_p20180214-r1 I believe. Not sure if I can use the modesetting driver on this machine.

I also vaguely recall this machine successfully suspending and resuming in the past, over 5 years ago...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
ShadowCat8
Apprentice
Apprentice


Joined: 07 Oct 2008
Posts: 161
Location: San Bernardino, CA, USA

PostPosted: Thu Sep 20, 2018 1:51 am    Post subject: Reply with quote

Greetings,

I have to ask; What happens if you do the "Ctrl+Alt+F[1-6]", and after you are at the console, then hit "Alt+F7"? (I know you have probably already tried that, but you didn't mention it, so I am curious what the results on that were/are since going to the console should restart the backlight.)

And, have you checked the kernel configs for any of the different weird laptop settings that may apply to your laptop?

HTH... Let us know.
_________________
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6764
Location: almost Mile High in the USA

PostPosted: Thu Sep 20, 2018 5:33 pm    Post subject: Reply with quote

The screen goes blank once more, backlight turns off (as far as I can tell).

I can switch back and forth from the dead X11 console and the text consoles at will as far as I can tell. I haven't done it continually to see if it will trigger a crash (if it would prove anything or not), but didn't try it as I wanted to save my backlight's cathodes from turning on and off too often to keep them from wearing out as this machine is already very old. However it appears to be more than just the backlight that's off, shining a bright light into the display shows the screen truly blank/off.

It's a good question what kernel configs would affect suspend/resume, after all, I can get back to running X11 if I kill the X server and starting it back up, so it seems there's a bug restoring state -- unless there's something else I've missed...

The question that burns is if anyone still is using a i915 machine and has suspend/resume working. Last I tried it within the past year, my NM10 (i945GM) chipset laptop works fine, but not the i915 machine.

Incidentally and off topic, I feel this broken suspend-resume Celeron-1.5-i915GM/HDD is faster than my Atom-1.6-i945GM/NM10/SSD when not doing disk intensive stuff. But the Atom suspends/resumes just fine...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6216
Location: Room 101

PostPosted: Thu Sep 20, 2018 7:00 pm    Post subject: Reply with quote

eccerr0r wrote:
The question that burns is if anyone still is using a i915 machine and has suspend/resume working. Last I tried it within the past year, my NM10 (i945GM) chipset laptop works fine, but not the i915 machine.

eccerr0r ... yes, me ... but a couple of things that might make a difference: I'm not using the in-kernel uswsusp, but tuxonice (suspend2), use sys-power/hibernate-script rather than pm-utils, and I'm still on 3.12.x. Don't remember the last time I did an s2ram, but s2disk (hibernate) works flawlessly. If you have any questions then shoot ...

eccerr0r wrote:
Not sure if I can use the modesetting driver on this machine.

You will be able to, but in my experience (confirmed via upstream) you won't get accelerated graphics ... at least that was the case last I tried.

best ... khay
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6764
Location: almost Mile High in the USA

PostPosted: Thu Sep 20, 2018 11:10 pm    Post subject: Reply with quote

Then quite possibly there's a regression somewhere as I distinctly recall the in-kernel suspend/resume routines working just fine with an older version of the kernel .

As far as I know, the current kernel suspend/hibernate routines in 4.14.65-gentoo fail at restoring the CRTCs, along with 4.9.34-gentoo IIRC. However there may be something that works with xf86-video-intel-2.99.917_p20180214-r1 which may explain why the KMS fbcon resumes just fine and switching between VT's after a resume doesn't seem to budge the X11 session... so I suppose the version of xf86-video-intel would be interesting to know too. Then again ideally, all mode setting should have been done in kernel along with VT switches...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6216
Location: Room 101

PostPosted: Fri Sep 21, 2018 7:15 am    Post subject: Reply with quote

eccerr0r wrote:
Then quite possibly there's a regression somewhere as I distinctly recall the in-kernel suspend/resume routines working just fine with an older version of the kernel.

eccerr0r ... that may be the case, but uswsusp had always been hit or miss for me (ie, working 3 out of 4 suspend/resume cycles), and I had switched to tuxonice (suspend2) for that reason.

eccerr0r wrote:
As far as I know, the current kernel suspend/hibernate routines in 4.14.65-gentoo fail at restoring the CRTCs, along with 4.9.34-gentoo IIRC. However there may be something that works with xf86-video-intel-2.99.917_p20180214-r1 which may explain why the KMS fbcon resumes just fine and switching between VT's after a resume doesn't seem to budge the X11 session... so I suppose the version of xf86-video-intel would be interesting to know too. Then again ideally, all mode setting should have been done in kernel along with VT switches...

Here it's likewise 2.99.917_p20180214-r1 ... I've no idea what pm-utils does in terms of pre/post resume, but with hibernate-script it switches vt if X11 is running, and does the same on resume. This allows for the framebuffer driver (if it has issues) to be unloaded/reloaded on the cycle.

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum