Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: onesixright on June 15, 2017, 12:03:51 AM

Title: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 12: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):


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!
Title: Re: Blank/black screen after wake-up?
Post by: Juanito on June 15, 2017, 12: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?
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 12: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?
Title: Re: Blank/black screen after wake-up?
Post by: Juanito on June 15, 2017, 12: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.
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 01: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)?
Title: Re: Blank/black screen after wake-up?
Post by: curaga on June 15, 2017, 02:05:48 AM
Video related suspend issues are very common on Linux.
Title: Re: Blank/black screen after wake-up?
Post by: Juanito on June 15, 2017, 02: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"
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 02: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.
Title: Re: Blank/black screen after wake-up?
Post by: Juanito on June 15, 2017, 03: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.
Title: Re: Blank/black screen after wake-up?
Post by: Juanito on June 15, 2017, 05: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
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 05:20:11 AM
Awesome!

What you mean exactly with graphics-kernel?

Basically installing the X package would be enough?
Title: Re: Blank/black screen after wake-up?
Post by: Juanito on June 15, 2017, 05:26:20 AM
At the console prompt "tce-load -i graphics-KERNEL" was enough for things to work
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 05:27:30 AM
Ok, thanks!   8)

I go try that!
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 05:43:46 AM
Which version are you running? I can't find the 'graphics-KERNEL' (also not graphics-KERNEL-tinycore).
Title: Re: Blank/black screen after wake-up?
Post by: Rich on June 15, 2017, 05:52:26 AM
Hi onesixright
The  KERNEL  is actually the kernel version number. Try  graphics-4.8.17-tinycore.tcz
Title: Re: Blank/black screen after wake-up?
Post by: onesixright on June 15, 2017, 05:53:40 AM
Oh, damn. Such a fool i am!  :-[

Thanks!