Tiny Core Base > TCB Q&A Forum

[SOLVED] suspend workaround

(1/4) > >>

jur:
I'd like to do a poor man's suspend to ram. The reason is to work around the problem of the Xorg page render error

So the plan is

--- Code: ---killall Xorg
echo "mem" > /sys/power/state
startx;;

--- End code ---
but when coming out of suspend, Xorg starts as root.

How can I execute startx as user tc?

[edit] this scripts is executed by acpid so is root.

curaga:
su tc -c startx


btw which error? Is a driver update needed?

jur:
The problem that was discussed in this thread, last page.
http://forum.tinycorelinux.net/index.php?topic=6326.45

curaga:
Hmm, that was kernel-related. And according to the Fedora bug, still appears.

jur:
I am closer to a good solution but it's not there yet.

When I do su tc -c startx, it no longer starts as root but is still not the same as manually running startx from the prompt after resuming from suspend. The prompts is not the same, lacking tc@box, and the path excludes  .local/bin and /OnDemand.

Any tips how to resolve this?

I agree that the bug is probably kernel-related, as I sill see the page render error message but it no longer hangs, instead it manages to make it to the terminal screen (is that what it is called?). From there I can type startx and have a perfectly working X as after a boot.

Actually this workaround seems even better as suspend from X as there is less to store and the ram gets cleared etc, so it is like a mega-fast boot.

Navigation

[0] Message Index

[#] Next page

Go to full version