WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Blank/black screen after wake-up?  (Read 640 times)

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Blank/black screen after wake-up?
« on: June 14, 2017, 11:03:51 PM »
Hi,

I'm trying to put my laptop to sleep (TC8) via the CLI (not running X).

When i run:
cat /sys/power/state

I get 3 options: freeze mem disk

Then, when i do:
echo mem > /sys/power/state

This works fine, the laptop goes to sleep. Power button starts blinking. Now, when I wake-it-up (press the power button), it comes to life but the screen stays black. I need to keep to power button pressed for a few seconds and then it switches off. I tried this on 3 different laptops (all a bit older):

  • Sony Vaio - PCG-882M
  • Toshiba - Satellite Pro A200 (PSAE4E-04L0251G)
  • Dell - Latitude E6400

acapid is running (and seems to work, checked acapi_listen)

I also looked in the BIOS of each machine, but there is not much related to ACAPI that i can set there.

Thanks!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9606
Re: Blank/black screen after wake-up?
« Reply #1 on: June 14, 2017, 11:35:55 PM »
Some older machines need various "video quirks" to be applied so that the screen wakes-up after suspend.

This might need pm-utils, suspend-utils or similar?

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #2 on: June 14, 2017, 11:52:20 PM »
Some older machines need various "video quirks" to be applied so that the screen wakes-up after suspend.

This might need pm-utils, suspend-utils or similar?

Ah, thanks. Are these packages I can install ?

I checked http://tinycorelinux.net/8.x/x86/tcz/ but i don't see any of them listed?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9606
Re: Blank/black screen after wake-up?
« Reply #3 on: June 14, 2017, 11:59:30 PM »
There is a suspend-utils in the tc-4.x x86 repo, but I don't know how useful this would be with a more modern kernel.

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #4 on: June 15, 2017, 12:14:56 AM »
There is a suspend-utils in the tc-4.x x86 repo, but I don't know how useful this would be with a more modern kernel.

Thanks again. Are you saying that on more modern systems it should work and this is more a legacy related issue (the laptops i have tested are pretty old)?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9611
Re: Blank/black screen after wake-up?
« Reply #5 on: June 15, 2017, 01:05:48 AM »
Video related suspend issues are very common on Linux.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9606
Re: Blank/black screen after wake-up?
« Reply #6 on: June 15, 2017, 01:33:20 AM »
When I first tried suspend to ram it didn't work, which is why I created the suspend-utils extension.

At some point the vanilla kernel suspend to ram started to work, but now with tc-8.x and my dell e7240 it wakes up with a blank screen with no apparent way to fix it (in the back of my mind there is a way, but I've forgotten).

I tried suspend-utils with tc-8.x, but it doesn't help

Note that this is checking with "base norestore"

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #7 on: June 15, 2017, 01:42:43 AM »
At some point the vanilla kernel suspend to ram started to work, but now with tc-8.x and my dell e7240 it wakes up with a blank screen with no apparent way to fix it (in the back of my mind there is a way, but I've forgotten).

If i understand correctly its basically a kernel issue (not a distro. issue)? So changing distro. will probably not change anything?

Do you know which version of TC has the vanilla kernel? I tried TC5 and TC8 but both give problems.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9606
Re: Blank/black screen after wake-up?
« Reply #8 on: June 15, 2017, 02:25:06 AM »
By vanilla kernel, I meant an unmodified tinycore kernel - if other distros have patched their kernels to address suspend problems, they may work.

As said, suspend to ram worked for me at one time, but I cannot remember which hardware or tinycore version I was using at the time.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9606
Re: Blank/black screen after wake-up?
« Reply #9 on: June 15, 2017, 04:00:55 AM »
Ah-ha - if graphics-KERNEL is loaded suspend to ram works for me  8)

Tested from the console prompt, the screen comes back on resume.

Edit: and also from a terminal prompt using Xorg, it resumes to X with the screen working
« Last Edit: June 15, 2017, 04:05:24 AM by Juanito »

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #10 on: June 15, 2017, 04:20:11 AM »
Awesome!

What you mean exactly with graphics-kernel?

Basically installing the X package would be enough?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9606
Re: Blank/black screen after wake-up?
« Reply #11 on: June 15, 2017, 04:26:20 AM »
At the console prompt "tce-load -i graphics-KERNEL" was enough for things to work

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #12 on: June 15, 2017, 04:27:30 AM »
Ok, thanks!   8)

I go try that!

Offline onesixright

  • WikiUser
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #13 on: June 15, 2017, 04:43:46 AM »
Which version are you running? I can't find the 'graphics-KERNEL' (also not graphics-KERNEL-tinycore).

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5470
Re: Blank/black screen after wake-up?
« Reply #14 on: June 15, 2017, 04:52:26 AM »
Hi onesixright
The  KERNEL  is actually the kernel version number. Try  graphics-4.8.17-tinycore.tcz