Page 2 of 4

Posted: Sat Apr 26, 2003 7:26 am
by scrazy
breaking wrote:
coollinuxer wrote:然後編譯核心
Console drivers ->
Frame-Buffer support ->
<*>Use splash screen instead of boot logo
在我的ck-sources-2.4.20-r6中,似乎沒有這個選項的說..... :cry:

有人用ck6成功的麼???
沒錯 我的也一樣找不到這一項
所以只有開機時出現boot logo...

Posted: Sat Apr 26, 2003 7:58 am
by coollinuxer
breaking wrote:
coollinuxer wrote:然後編譯核心
Console drivers ->
Frame-Buffer support ->
<*>Use splash screen instead of boot logo
在我的ck-sources-2.4.20-r6中,似乎沒有這個選項的說..... :cry:

有人用ck6成功的麼???
我就是用CK6編的呀
不要忘記了
#cd /usr/src/linux/
#patch -p1 < /usr/share/bootsplash/bootsplashXXXXXXXXXX.diff
這個步驟很重要
PS.我也忽略他很久,去看他的ebuild才不小心瞄到的...

Posted: Sat Apr 26, 2003 5:21 pm
by breaking
果然是這個步驟沒有做....... :oops:

已經ok囉,多謝...... :D

Posted: Tue Apr 29, 2003 3:11 pm
by pahud
對了,有誰知道那個initrd的splash image是在那裡控制的?
bootsplash image可以在/etc/bootsplash/底下調整,
但initrd的splash image要在那調整呢?我把initrd.1024給
loop mount起來,但還找不到任何線索。

Posted: Tue Apr 29, 2003 3:18 pm
by pahud
pahud wrote:對了,有誰知道那個initrd的splash image是在那裡控制的?
bootsplash image可以在/etc/bootsplash/底下調整,
但initrd的splash image要在那調整呢?我把initrd.1024給
loop mount起來,但還找不到任何線索。
似乎用splash指令可以解決
這裡有HOWTO
http://forums.gentoo.org/viewtopic.php?t=49036

Posted: Wed Apr 30, 2003 6:08 pm
by pahud
更深入玩了一下bootsplash,發現有兩個問題。

1. silent mode沒作用
我在我的nb上用grub boot可以進入silent mode,
看不到開機的文字訊息,不過status bar不會動。
另外在一台P4 1.6G的機器,grub設定方式一樣,但
silent mode怎樣都沒有作用。

2. 不是每張.jpg圖片都可以用
去網路上抓全智賢的照片,用splash來處理,沒辦法用,
會有這樣的kernel message

Code: Select all

Looking for splash picture.... no good signature found.

Posted: Wed Apr 30, 2003 6:51 pm
by 【Palatis】
splash 討厭全智賢ㄇ....

純灌水, 別打我......

Posted: Thu May 01, 2003 2:07 pm
by pahud
【Palatis】 wrote:splash 討厭全智賢ㄇ....

純灌水, 別打我......

但我還是把她搞定了..哈哈
http://openbazaar.net/4images/details.php?image_id=60

找時間再來把silent mode and progree bar搞定。

Posted: Sun May 04, 2003 2:32 am
by breaking
silent及bootsplash的畫面不是可以設不一樣麼?

為何我一設不一樣的圖,reboot後,就一定抓不到的說.... :?

而且.....是變成兩張圖都抓不到的說....

設回來就又可以了.....怪...

Code: Select all

jpeg=/etc/bootsplash/gentoo/images/mybootsplash-1024x768.jpg
silentjpeg=/etc/bootsplash/gentoo/images/mysilent-1024x768.jpg
這我檢查過了....

Code: Select all

/sbin/splash -s -f /etc/bootsplash/default/config/bootsplash-1024x768.cfg > /boot/initrd-1024x768
這我也做過.....還是一樣....why???


p.s.順便問問....關於http://forums.gentoo.org/viewtopic.php? ... 68f52fbb3c
上有一為mojo所發表的So guys this is for everyone who wants to have a progressbar at boottime有兩段如下

Code: Select all

I came up with the number "2849" by adding the number of scripts that were called after the shared memory (/dev/shm) was mounted, added one to that number, and divided 65536 by it. Eg. 65536/(number_of_scripts + 1).
這段我看得不是很懂.....有人可以指導我一下麼?thX

p.s.因為我的bar有在跑....只是只跑到三分之二......

Posted: Sun May 04, 2003 9:14 am
by pahud
breaking wrote:silent及bootsplash的畫面不是可以設不一樣麼?

為何我一設不一樣的圖,reboot後,就一定抓不到的說.... :?

而且.....是變成兩張圖都抓不到的說....

設回來就又可以了.....怪...
你要先確定這些圖片可以bootsplash正常顯示才行,
你可以設定好之後,執行

Code: Select all

 # bootsplash /etc/bootsplash/default/config/bootsplash-xxxxxxxx.cfg 
看看是否立刻更新,是的話,再用
bootsplash -s -f產生initrd檔。

progress bar我也還沒弄出來。

Posted: Sun May 04, 2003 2:44 pm
by breaking
<1>
加入這段到/sbin/functions.sh中的eend(){}

Code: Select all

if [ "${BOOT}" = "yes" ] && [ -z "${EBUILD}" -a -w /proc/splash ] && [ -s /dev/shm/ ]
    then
        if ! [ -e /dev/shm/progress_bar_counter ] ; then echo 0 > /dev/shm/progress_bar_counter ; fi
        NEW_VALUE=$(( `cat /dev/shm/progress_bar_counter` + 2849 ))
        echo "$NEW_VALUE" > /dev/shm/progress_bar_counter
        echo "show $NEW_VALUE" > /proc/splash
fi
應該變成如下

eend(){
這裡加上以上那段codes!!!
而這是原本的codes.....
}

<2>
記得修改/etc/fstab
加入

Code: Select all

none                    /dev/shm        tmpfs           defaults               0 0
<3>
如果你想讓你的每個console都有bootslpash image
修改/etc/init.d/bootsplash中的這一段

Code: Select all

 /sbin/splash -s -u $TTY /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
加入-n在$TTY之後

Code: Select all

/sbin/splash -s -u $TTY -n /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
p.s.這樣bar就會動囉,只是2849是怎得來的.....我不是很懂的說.....
因為我不知道如何得知number_of_scripts???

Posted: Wed May 14, 2003 8:58 pm
by ckchen
[quote="pahud"][quote="【Palatis】"]splash 討厭全智賢ㄇ....

純灌水, 別打我......[/quote]


但我還是把她搞定了..哈哈
http://openbazaar.net/4images/details.php?image_id=60

找時間再來把silent mode and progree bar搞定。[/quote]


靠...超炫的...
怎麼有這種東東...

Posted: Tue May 27, 2003 4:31 am
by ckchen
我跑出來的都只有60Hz耶,
很傷眼睛,
在/boot/grub/grub.conf裡,
我有試過1024x768跟1280x1024 16K色的那兩項(vga=0x317跟0x31A)
也有試過在vesa:後面加入1024x768@72或其它頻率值,
可是不管我怎麼改都沒用,
我的卡是nVidia Geforce2 32M那張,
有解嗎?

還有一些小的問題:
1.怎麼讓滑鼠動起來啊?還能copy paste之類的
2.我覺得鍵盤repeat很慢,要去那裡調呢?
3.有些字的顏色跟背景很像看不清楚,要去那裡改呢?

謝謝大家的回答

Posted: Tue May 27, 2003 9:27 pm
by maxdj
ckchen wrote: 還有一些小的問題:
1.怎麼讓滑鼠動起來啊?還能copy paste之類的
2.我覺得鍵盤repeat很慢,要去那裡調呢?
3.有些字的顏色跟背景很像看不清楚,要去那裡改呢?

謝謝大家的回答
1.應該要先啟動gpm 這個服務

Posted: Tue May 27, 2003 10:23 pm
by ckchen
maxdj wrote:
ckchen wrote: 還有一些小的問題:
1.怎麼讓滑鼠動起來啊?還能copy paste之類的
2.我覺得鍵盤repeat很慢,要去那裡調呢?
3.有些字的顏色跟背景很像看不清楚,要去那裡改呢?

謝謝大家的回答
1.應該要先啟動gpm 這個服務
3Q,滑鼠可以了