You are not logged in.

#1 2012-11-14 05:50:10

photon
Member
Registered: 2012-11-01
Posts: 21

When install arch, how to avoid sleep or hibertate state

When I tried to install archlinux on virtualbox, the arch system turns into sleep or hibernate state frequently, this brings some inconvenience and may interfere pacman to update system package. How to avoid this phenomenon?

system sleep or hibernate:
XAiels.jpg


-- mod edit: read the Forum Etiquette and only post thumbnails of blank screens http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by photon (2012-11-14 13:01:47)

Offline

#2 2012-11-14 09:44:54

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: When install arch, how to avoid sleep or hibertate state

I don't see any evidence of sleep/hibernate and VirtualBox says it's "Running" (but I'm not that familiar with VBox's interface). It is common for the screen to be blank after a period of inactivity, but the install should continue. Just hit any key -- or to be safe (and not accidently answer "yes" to a question), toggle numlock or something.

Offline

#3 2012-11-14 09:49:58

photon
Member
Registered: 2012-11-01
Posts: 21

Re: When install arch, how to avoid sleep or hibertate state

Thanks Raynman,

Do you mean that there's no way to remove this black blank screen annoyance? In my opinion, frequent blackout isn't a reasonable idea.
I just post this question to virtual box forum, and someone suggests that it's something related to arch's configuration: https://forums.virtualbox.org/viewtopic.php?f=1&t=52607

Last edited by photon (2012-11-14 13:24:18)

Offline

#4 2012-11-14 14:36:24

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: When install arch, how to avoid sleep or hibertate state

It is dpms, and can be controlled with setterm.  See here.  The wiki to Arch users is like the force to Luke.  Use it!

Offline

#5 2012-11-15 09:00:34

photon
Member
Registered: 2012-11-01
Posts: 21

Re: When install arch, how to avoid sleep or hibertate state

Thanks WonderWoofy, setterm works.

$ setterm -blank 0 -powerdown 0
-blank [0-60|force|poke] (virtual consoles only)
-powerdown [0-60]

The following command may also work, but I didn't try it with restart. And be watchful that it's not semi-column but column between 9 and 0. The content on Wiki should be corrected.
# echo -ne "\033[9:0]" >> /etc/issue
http://linux.die.net/man/1/setterm
https://wiki.archlinux.org/index.php/DP … th_setterm

But another question,why does the following two commands return errors? Are the errors related to wrong configuration or wiki's mistake?
root@archiso ~ # tail: /etc/rc.local
tail: cannot open /etc/rc.local for reading:  No such file or directory
root@archiso ~ # xset s off
zsh: correct ‘xset’ to ‘set’ [nyae]?

Last edited by photon (2012-11-16 05:13:14)

Offline

#6 2012-11-15 19:44:56

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: When install arch, how to avoid sleep or hibertate state

xset is for use with an X server. rc.local is from initscripts, which were recently replaced by systemd.

Offline

#7 2012-11-16 07:54:00

photon
Member
Registered: 2012-11-01
Posts: 21

Re: When install arch, how to avoid sleep or hibertate state

When installing Arch from Virtual Box, do I need to follow the order of wiki's instruction: firstly "Change the language", secondly "Establish an internet connection" and thirdly "Mount the partitions"? Can I mount the partitions first?

By the way, I can already ping through google or archlinux. And I can accept English by now, though I may need to change the language later after installing Arch successfully.

To avoid discussing too many different things under the same thread, I start a new topic, please reply here:
order question on language,internet connection and Mount the partitions

My previous questions:
[solved]pacman base base-dev returns ERROR: /mnt is not a mountpoint!
[solved]order question on language,internet connection and Mount the partition

wiki:
Beginners' Guide
Installation_guide

Last edited by photon (2012-11-21 11:29:23)

Offline

Board footer

Powered by FluxBB