WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline onesixright

  • Newbie
  • *
  • Posts: 10
Blank/black screen after wake-up?
« on: June 15, 2017, 03:03:51 AM »
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!

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Blank/black screen after wake-up?
« Reply #1 on: June 15, 2017, 03:35:55 AM »
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

  • Newbie
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #2 on: June 15, 2017, 03:52:20 AM »
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?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Blank/black screen after wake-up?
« Reply #3 on: June 15, 2017, 03:59:30 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.

Offline onesixright

  • Newbie
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #4 on: June 15, 2017, 04: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: 11050
Re: Blank/black screen after wake-up?
« Reply #5 on: June 15, 2017, 05: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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Blank/black screen after wake-up?
« Reply #6 on: June 15, 2017, 05: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

  • Newbie
  • *
  • Posts: 10
Re: Blank/black screen after wake-up?
« Reply #7 on: June 15, 2017, 05: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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Blank/black screen after wake-up?
« Reply #8 on: June 15, 2017, 06: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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Blank/black screen after wake-up?
« Reply #9 on: June 15, 2017, 08: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, 08:05:24 AM by Juanito »

Offline onesixright

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

What you mean exactly with graphics-kernel?

Basically installing the X package would be enough?

Online Juanito

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

Offline onesixright

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

I go try that!

Offline onesixright

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

Offline Rich

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