顯示具有 X 標籤的文章。 顯示所有文章
顯示具有 X 標籤的文章。 顯示所有文章

2009年4月8日 星期三

xorg.conf without hal


之前因為某些原因不想要開 hal (它實在是開太慢了...) 上網才發現它不是很好找,所以放上先記著(來自這裡): ##ReadMore##

# xorg.conf (X.Org X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc104" Option "XkbLayout" "us" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" EndSection Section "Device" Identifier "Configured Video Device" Driver "intel" #Option "AccelMethod" "XAA" Option "AccelMethod" "UXA" #Option "XAANoOffscreenPixmaps" EndSection Section "Monitor" Identifier "Configured Monitor" EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" SubSection "Display" Virtual 3160 1050 EndSubSection EndSection Section "ServerLayout" Identifier "Default Layout" Option "AutoAddDevices" "off" EndSection 當然,只是個參考,要用對基本上還是需要問問 man xorg.conf 領悟它設定的精神才行。

2009年4月1日 星期三

auto login to X without display manager


內詳:url

方法:
編緝 /etc/inittab (Arch) ##ReadMore##

  1. boot stage 由 3 改為 5 #id:3:initdefault: id:5:initdefault:
  2. 註掉其他 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
  3. 接下來有兩種分別的方式:
    方法一
    1. 加入這行 x:5:respawn:/sbin/agetty -8 38400 vc/1 linux -L -n -l /usr/local/sbin/autologin 可以 man agetty 詳細參數,man inittab 詳細這行的意義
    2. 建立 /usr/local/sbin/autologin,內容為 #!/bin/sh /bin/login -f [user] MAINAPP=true [user] 改為對應使用者名,權限 755
    3. 修改 ~/.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 就要長這樣:

if [ "$MAINAPP" = "true" ] ; then startx logout fi 方法二的話就直接把 once 改成 respawn 即可

2009年2月6日 星期五

xf86-video-ati fine tuning


雖然本人在之前提過,1.5 的 xorg server 基本上已經不太需要 /etc/X111/xorg.conf 檔案,但發現這樣使用某些預設的參數時,會讓 performance 未到其最佳化的部份,故在此做一筆記。##ReadMore##

方法基本上也很土:查看 /var/log/Xorg.0.log 看看哪些參數並未最佳化;同時查看 manpage man radeon 先確認自己的型號,然後開始一一試選項,看看那些沒有開的打開是否 OK,其中幾個比較重要選項簡單列表: Section "Screen" Identifier "Default Screen" SubSection "Display" Virtual 1280 800 EndSubSection EndSection 減小 Virtual Desktop size, 減輕 GPU 負擔達到加速的效果 Section "Device" Identifier "Configured Video Device" Driver "radeon" Option "AccelMethod" "EXA" EndSection 開啟 EXA 硬體加速,某些卡預設是跑 XAA ,EXA 會比較有效率。如果會花屏,可以考慮換回。 其他的部份可以參考 arch wiki 上的資料(url) 調整,需要 xorg.conf 模版可以在這篇找到,把 AutoAddDevices 選項打開即可自動抓輸入裝置

2008年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, 跑特效應該沒有問題是的確沒問題,compiz 比 kwin 順多。

2008年5月22日 星期四

init: Id "x" respawning too fast: disabled for 5 minutes.


是個每次開機還未進到 X (kde) 之前會看到的訊息、在關機/重啟X 時閃過的背景 console message 也不時會看到一串的東西,總覺得非常弔詭,於是上網股溝了下:url
原來是我自己手殘改了 /etc/inittab: 14-18:(Archlinux)

## Only one of the following two lines can be uncommented! # Boot to console #id:3:initdefault: # Boot to X11 id:5:initdefault:
原本預設是 id: 3 的,只是自以為改成 id: 5 才是符合啟動到 X(kdm) 的直覺,而自爆地搞出那個訊息。

結論:沒事還是別亂動設定(?)