之前因為某些原因不想要開 hal (它實在是開太慢了...) 上網才發現它不是很好找,所以放上先記著(來自這裡): ##ReadMore##
2009年4月8日 星期三
xorg.conf without hal
2009年4月1日 星期三
auto login to X without display manager
內詳:url
方法:
編緝 /etc/inittab (Arch) ##ReadMore##
- boot stage 由 3 改為 5
#id:3:initdefault: id:5:initdefault: - 註掉其他 display manager
#x:5:respawn:/usr/bin/xdm -nodaemon #x:5:respawn:/usr/sbin/gdm -nodaemon #x:5:respawn:/usr/bin/kdm -nodaemon #x:5:respawn:/usr/bin/slim >& /dev/null - 接下來有兩種分別的方式:
方法一- 加入這行
x:5:respawn:/sbin/agetty -8 38400 vc/1 linux -L -n -l /usr/local/sbin/autologin 可以 man agetty 詳細參數,man inittab 詳細這行的意義 - 建立 /usr/local/sbin/autologin,內容為
#!/bin/sh /bin/login -f [user] MAINAPP=true [user] 改為對應使用者名,權限 755
- 修改 ~/.bash_profile 加入下行
[ "$MAINAPP" = "true" ] && startx
x:5:once:/bin/su PREFERED_USER -l -c "/usr/bin/startx >/dev/null 2>&1"x:5:once:/bin/su PREFERED_USER -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1" 將 PREFERED_USER 換成想要登入的使用者,注意被刪的那行不會跑 $HOME/.bash_profile 所以不推薦。 - 加入這行
調整:
如果你平常是登入 tty 後用 startx 執行話,你現在應該可以開機自動進入 X, 關掉 X 後會進入已登入的 tty ,登出就重新登入並進入 X
若想要關 X 馬上自動重開,方法一的,~/.bash_profile 就要長這樣:
2009年2月6日 星期五
xf86-video-ati fine tuning
雖然本人在之前提過,1.5 的 xorg server 基本上已經不太需要 /etc/X111/xorg.conf 檔案,但發現這樣使用某些預設的參數時,會讓 performance 未到其最佳化的部份,故在此做一筆記。##ReadMore##
方法基本上也很土:查看 /var/log/Xorg.0.log 看看哪些參數並未最佳化;同時查看 manpage2008年12月13日 星期六
what the hal with xorg
誠如我在先前幾篇文章中所碰到的問題,發現最新的 hal 和 xorg 的改變,已經讓 xorg.conf 越來越變得沒有存在的必要了。其中最有名的大概就是 fedora,根本沒有那個檔案。
而在我目前的狀況下,也發現有很多設定可以拿掉了(Archlinux, ATi Radeon Xpress 200M, hal 0.5.11, xorg-server 1.5.3),只剩下下面的三行:
Section "DRI"
Mode 0666
EndSection
查看 log 也可以發現,如果可以的話已經的自動開啟 aiglx, 2008年5月22日 星期四
init: Id "x" respawning too fast: disabled for 5 minutes.
是個每次開機還未進到 X (kde) 之前會看到的訊息、在關機/重啟X 時閃過的背景 console message 也不時會看到一串的東西,總覺得非常弔詭,於是上網股溝了下:url
原來是我自己手殘改了 /etc/inittab: 14-18:(Archlinux)
原本預設是 id: 3 的,只是自以為改成 id: 5 才是符合啟動到 X(kdm) 的直覺,而自爆地搞出那個訊息。## Only one of the following two lines can be uncommented! # Boot to console #id:3:initdefault: # Boot to X11 id:5:initdefault:
結論:沒事還是別亂動設定(?)
訂閱:
文章 (Atom)