From: ChenQi <Qi.Chen@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: qingtao.cao@windriver.com, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] xserver-nodm: change start runlevel from 2 5 to 2 3 4 5
Date: Wed, 27 Mar 2013 16:27:29 +0800 [thread overview]
Message-ID: <5152AD71.7000303@windriver.com> (raw)
In-Reply-To: <1364339479.28471.0.camel@ted>
[-- Attachment #1: Type: text/plain, Size: 2141 bytes --]
On 03/27/2013 07:11 AM, Richard Purdie wrote:
> On Tue, 2013-03-26 at 15:18 +0800, Qi.Chen@windriver.com wrote:
>> From: Chen Qi <Qi.Chen@windriver.com>
>>
>> This script is intended to start at runlevel 2 3 4 5, as specified
>> in its HEAD INFO area.
> Perhaps the header is wrong?
>
>> The fact that it was not started at runlevel 3 caused splash screen
>> not going away when booting into runlevel 3.
> I thought psplash was meant to timeout and switch to the console, or
> switch there at boot completion anyway. I suspect the bug is somewhere
> else.
>
> Cheers,
>
> Richard
Thank you for reminding me of this.
I've sent another patch to fix this problem.
The root cause is in the rc script.
#Uncomment to cause psplash to exit manually, otherwise it exits when it
sees a VC switch
/*if [ "x$runlevel" != "xS" ] && [ ! -x /etc/init.d/xserver-nodm ]; then*/
if type psplash-write >/dev/null 2>&1; then
TMPDIR=/mnt/.psplash psplash-write "QUIT" || true
umount /mnt/.psplash
fi
fi
So psplash doesn't exit even when xserver-nodm is not started, for
example, at runlevel 3.
I changed it to:
/*if [ "x$runlevel" != "xS" ] && [ ! -x
/etc/rc${runlevel}.d/S??xserver-nodm ]; then*/
Best Regards,
Chen Qi
>> [YOCTO #3904]
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> .../x11-common/xserver-nodm-init.bb | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
>> index eab76c5..9faeb99 100644
>> --- a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
>> +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
>> @@ -26,7 +26,7 @@ do_install() {
>> inherit update-rc.d useradd
>>
>> INITSCRIPT_NAME = "xserver-nodm"
>> -INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
>> +INITSCRIPT_PARAMS = "start 9 2 3 4 5 . stop 20 0 1 6 ."
>>
>> # Use fixed Xusername of xuser for now, this will need to be
>> # fixed if the Xusername changes from xuser
>
>
>
[-- Attachment #2: Type: text/html, Size: 3323 bytes --]
prev parent reply other threads:[~2013-03-27 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 7:18 [PATCH 0/1] xserver-nodm: change start runlevel from 2 5 to 2 3 4 5 Qi.Chen
2013-03-26 7:18 ` [PATCH 1/1] " Qi.Chen
2013-03-26 23:11 ` Richard Purdie
2013-03-27 8:27 ` ChenQi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5152AD71.7000303@windriver.com \
--to=qi.chen@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=qingtao.cao@windriver.com \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox