Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started 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):
- 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!
-
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?
-
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?
-
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.
-
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)?
-
Video related suspend issues are very common on Linux.
-
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"
-
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.
-
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.
-
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
-
Awesome!
What you mean exactly with graphics-kernel?
Basically installing the X package would be enough?
-
At the console prompt "tce-load -i graphics-KERNEL" was enough for things to work
-
Ok, thanks! 8)
I go try that!
-
Which version are you running? I can't find the 'graphics-KERNEL' (also not graphics-KERNEL-tinycore).
-
Hi onesixright
The KERNEL is actually the kernel version number. Try graphics-4.8.17-tinycore.tcz
-
Oh, damn. Such a fool i am! :-[
Thanks!