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

2010年12月3日 星期五

nvidia dual head with one rotation in X


First, use nvidia-settings to generate xorg.conf with the following settings:

  • Check "Enable Xinerama"
  • Set every screen to "Separate X Screen"
  • set relative position (left of, right of, etc.) in "X Screen" tab
Then edit /etc/X11/xorg.conf, add the following line in Monitor Section:
    Option         "Rotate" "left"
Tested on debian lenny(stable), glx-nvidia, XServer 1.4.2.

2009年11月22日 星期日

xorg force VGA output only


or say, disable/ignore LVDS output, referred from X Quirks - Ubuntu wiki:

  1. use the command to generate an xorg.conf (from Xorg - ArchWiki): Xorg -configure mv /root/xorg.conf.new /etc/X11/xorg.conf
  2. In section "Section "Device"" of xorg.conf add the line: Option "monitor-LVDS" "LVDS"
  3. Then the following new section: Section "Monitor" Identifier "LVDS" Option "Ignore" "True" EndSection
Why should I do this? Well, when you mess up your display panel of your laptop and get a radeon driver which binds LVDS and VGA together...

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年11月30日 星期日

xorg 7.4, hal 0.5.9.1 : synaptics, default mount path


主要是在最新的 hal 和 xorg 下的一些變動 ##ReadMore##

  • hal mounting options
  • 此篇的 Changing default mount options 中可以知道,過往要設定一個指定裝置的 mount option 是透過更改 hal policy 來完成的,但這很明顯不甚符合 hal 的精神:其目的即在於能提供使用者自由使用可移除裝置,所以現在新版的就把設定 mount point 的 policy 拿掉了,而需要讓 desktop environment 自己去指定 mount point,但很不幸地,目前似乎只有 gnome 可以辦到這件事....

  • synaptics
  • wiki 得知,在 Xorg 7.4 中觸控板現在也算成是 hal 的熱插拔元件,因此不需在 xorg.conf 中做設定,「理論上」是可以讓你在 desktop environment 中做自由調整,無奈此功能才剛出,根本無任何 de 有配套。目前解法如下,在 /etc/hal/fdi/policy 中建立 11-x11-synaptics.fdi:

    <!--xml version="1.0" encoding="ISO-8859-1"?--> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.touchpad"> <match key="info.product" contains="Synaptics TouchPad"> <merge key="input.x11_driver" type="string">synaptics</merge> <merge key="input.x11_options.MinSpeed" type="string">0.09</merge> <merge key="input.x11_options.MaxSpeed" type="string">0.18</merge> <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge> <merge key="input.x11_options.SHMConfig" type="string">true</merge> <merge key="input.x11_options.AccelFactor" type="string">0.032</merge> <merge key="input.x11_options.LeftEdge" type="string">1700</merge> <merge key="input.x11_options.RightEdge" type="string">5300</merge> <merge key="input.x11_options.TopEdge" type="string">1700</merge> <merge key="input.x11_options.BottomEdge" type="string">4200</merge> <merge key="input.x11_options.FingerLow" type="string">25</merge> <merge key="input.x11_options.FingerHigh" type="string">30</merge> <merge key="input.x11_options.MaxTapTime" type="string">180</merge> <merge key="input.x11_options.MaxTapMove" type="string">220</merge> <merge key="input.x11_options.HorizEdgeScroll" type="string">true</merge> <merge key="input.x11_options.HorizScrollDelta" type="string">100</merge> <merge key="input.x11_options.VertEdgeScroll" type="string">true</merge> <merge key="input.x11_options.VertScrollDelta" type="string">100</merge> <!-- Restore old synaptics driver defaults removed by Fedora/RH patch --> <merge key="input.x11_options.RTCornerButton" type="string">2</merge> <merge key="input.x11_options.RBCornerButton" type="string">3</merge> <merge key="input.x11_options.TapButton1" type="string">1</merge> <merge key="input.x11_options.TapButton2" type="string">2</merge> <merge key="input.x11_options.TapButton3" type="string">3</merge> <!-- Arbitrary options can be passed to the driver using the input.x11_options property since xorg-server-1.5. --> <!-- EXAMPLE: <merge key="input.x11_options.LeftEdge" type="string">120</merge> --> </match> <match key="info.product" contains="AlpsPS/2 ALPS"> <merge key="input.x11_driver" type="string">synaptics</merge> </match> <match key="info.product" contains="appletouch"> <merge key="input.x11_driver" type="string">synaptics</merge> </match> <match key="info.product" contains="bcm5974"> <merge key="input.x11_driver" type="string">synaptics</merge> </match> </match> </device> </deviceinfo> 如此,大部份觸控版功能才能正常使用