SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:guides:xorg-xvesa [2010/06/20 18:53]
seawolf improved Intel and 'restarting X' sections
en:guides:xorg-xvesa [2010/09/12 15:49] (current)
linea
Line 1: Line 1:
 ====== Xorg & XVesa ====== ====== Xorg & XVesa ======
  
-By default, SliTaz v3 uses Xorg 7.4 with the //​xorg-xf86-video-vesa//​ v2.0.0 driver. This basic driver can cause problems with certain hardware combinations and can sometimes result in a very low resolution. ​Occaisionally, X does not start at all and instead falls back to the log-in screen or to a text-based prompt. There are some simple solutions that can yield major improvements:​+By default, SliTaz v3 uses Xorg 7.4 with the //​xorg-xf86-video-vesa//​ v2.0.0 driver. This basic driver can cause problems with certain hardware combinations and can sometimes result in a very low resolution. ​Occasionally, X does not start at all and instead falls back to the log-in screen or to a text-based prompt. There are some simple solutions that can yield major improvements:​
  
   * check that you have enough RAM to run the default ISO. If not, use the [[http://​mirror.slitaz.org/​iso/​3.0/​flavors/​|Low RAM ISO]] instead.   * check that you have enough RAM to run the default ISO. If not, use the [[http://​mirror.slitaz.org/​iso/​3.0/​flavors/​|Low RAM ISO]] instead.
Line 65: Line 65:
 === Intel cards === === Intel cards ===
  
-The xorg-xf86-video-vesa 2.0.0 driver has a lot of trouble with Intel chips. For exmaple, on a 82945GM chipset it does not display 1280x1024 and 1024x768, but 1600x1200 is not a problem.+The xorg-xf86-video-vesa 2.0.0 driver has a lot of trouble with Intel chips. For example, on a 82945GM chipset it does not display 1280x1024 and 1024x768, but 1600x1200 is not a problem.
  
 Use "​tazx"​ to select the intel driver, then "tazhw detect-pci",​ solve the dri problem and load drm and restart X - normally that's it (perhaps you must change your xorg.conf too). Use "​tazx"​ to select the intel driver, then "tazhw detect-pci",​ solve the dri problem and load drm and restart X - normally that's it (perhaps you must change your xorg.conf too).
Line 71: Line 71:
 Some users may need to add the "​intel_agp"​ module to the xorg.conf file: Some users may need to add the "​intel_agp"​ module to the xorg.conf file:
  
-<code>+<file>
 Section "​Module"​ Section "​Module"​
         ...         ...
Line 77: Line 77:
  ...  ...
 EndSection EndSection
-</code>+</file>
  
 for the driver to work. for the driver to work.
Line 101: Line 101:
 === nVidia cards === === nVidia cards ===
  
-Slitaz ​provides automatic configuration for nvidia ​cards. ​ +SliTaz ​provides automatic configuration for nVidia ​cards. ​There are two drivers ​availablethe Xorg-provided //[[#free-driver-nv|nv]]//​ and the nVidia-provided,​ non-free //​[[#​non-free-driver-nvidia|nvidia]]//. The //nv// driver should be tried first as this has been compiled for SliTaz, whereas the nVidia-supplied driver is a //binary blob// that tries to fit each and every Linux distribution. 
-For free nvidia ​drivers, ​do: +\\
-<​code>​tazhw setup nvidia ​</code>+
  
-For non-free nvidia drivers ​(supplied by NVIDIA), do: +== Free Driver ​(nv==
-<​code>#​ tazhw setup nvidia --non-free </​code>​+
  
-**To setup non-free nvidia manually:**+To set-up the free nVidia drivers, use the SliTaz Hardware Configuration tool: 
 +<​code>#​ tazhw setup nvidia </​code>​
  
-First download: mesa mesa-demos linux-agp ​nvidia +Alternatively,​ you can do this process manually: 
-<​code>#​ tazpkg get-install ​nvidia+  * Download the following packages: 
 +    *  ​mesamesa-demoslinux-agp, xorg-xf86-video-nv 
 +<​code>#​ tazpkg get-install ​xorg-xf86-video-nv
 # tazpkg get-install mesa # tazpkg get-install mesa
 # tazpkg get-install mesa-demos # tazpkg get-install mesa-demos
 # tazpkg get-install linux-agp</​code>​ # tazpkg get-install linux-agp</​code>​
-Load modules+ 
 +  * Load the kernel ​modules ​
 <​code>#​ tazhw detect-pci</​code>​ <​code>#​ tazhw detect-pci</​code>​
-To configure nvidia automatically ​ 
-<​code>#​ nvidia-xconfig</​code>​  
-To test if rendering is working 
-<​code>​glxinfo | grep render</​code>​ 
-To change nvidia settings  
-<​code>#​ nvidia-settings</​code>​ 
  
-For no logo at bootup, add the following to xorg.conf +  * Replace ​the standard //vesa// driver with //nv// 
-<​code>​Option "​NoLogo"​ "​True"​+<​code>​# sed -i '​s/​vesa/​nv/'​ /​etc/​X11/​xorg.conf
 </​code>​ </​code>​
  
-**To setup free nvidia ​manually:**+== Non-Free Driver (nvidia) ==
  
-First download: mesa mesa-demos linux-agp ​xorg-xf86-video-nv +To set-up the non-free nVidia drivers, use the SliTaz Hardware Configuration tool with the //​--non-free//​ switch: 
-<​code>#​ tazpkg get-install ​xorg-xf86-video-nv+<​code>#​ tazhw setup nvidia --non-free </​code>​ 
 + 
 +Alternatively,​ you can do this process manually: 
 +  * Download the following packages: 
 +    *  ​mesa mesa-demos linux-agp ​nvidia 
 +<​code>#​ tazpkg get-install ​nvidia
 # tazpkg get-install mesa # tazpkg get-install mesa
 # tazpkg get-install mesa-demos # tazpkg get-install mesa-demos
 # tazpkg get-install linux-agp</​code>​ # tazpkg get-install linux-agp</​code>​
-Load modules ​+ 
 +  * Load the kernel ​modules ​
 <​code>#​ tazhw detect-pci</​code>​ <​code>#​ tazhw detect-pci</​code>​
-Replace vesa with nv + 
-<​code># ​sed -'s/vesa/nv/' ​/​etc/​X11/​xorg.conf +  * Attempt to configure the card with nVidia'​s tool: 
-</code>+<​code># ​nvidia-xconfig</​code>​ 
 +  * To test if rendering is working,  
 +<​code>#​ glxinfo | grep render</​code>​ 
 +  * To change nVidia'​s ​settings, use nVidia'​s Settings tool: 
 +<​code>#​ nvidia-settings<​/code> 
 + 
 +== Hiding the Logo == 
 +To hide the nVidia logo when the system boots, add the following to ///​etc/​X11/​xorg.conf// at the end of the //Device// section: 
 +<​file>​Option "​NoLogo"​ "​True"​</file>
  
  
 === ATI cards === === ATI cards ===
  
-For free ati drivers ​(preferred)do: +SliTaz provides automatic configuration for ATI cards. There are two drivers ​availablethe Xorg-provided //[[#free-driver-radeon|radeon]]//​ and the ATI-provided, non-free //​[[#​non-free-driver-catalyst|catalyst]]//​. The //ati// driver should be tried first as this has been compiled for SliTaz, whereas the ATI-supplied driver is a //binary blob// that tries to fit each and every Linux distribution. 
-<​code>​tazpkg get-install linux-agp +\\
-tazpkg get-install linux-drm +
-tazhw setup ati</code>+
  
-- but perhaps this is not enough - check /​var/​log/​Xorg.0.log to see if other modules must be loaded: See **DRI / DRM Problem** ​+== Free Driver (radeon) ==
  
-For non-free ati catalyst ​drivers ​(known to be not so good)do: +To set-up the free ATI drivers, ​install the AGP & DRM modules, then use the SliTaz Hardware Configuration tool:
-<​code>​ tazhw setup ati --non-free </​code>​+
  
-**To setup free ati manually:**+<​code>#​ tazpkg get-install linux-agp 
 +# tazpkg get-install linux-drm 
 +# tazhw setup ati</​code>​
  
-First download: xorg-xf86-video-ati mesa-dri-ati mesa-demos linux-agp+- but perhaps this is not enough - check /​var/​log/​Xorg.0.log to see if other modules must be loadedSee [[#​dri-drm-problem | DRI / DRM Problem ]] 
 + 
 +Alternatively,​ you can do this process manually: 
 +  * Download the following packages: 
 +    *  ​xorg-xf86-video-ati mesa-dri-ati mesa-demos linux-agp
 <​code>#​ tazpkg get-install xorg-xf86-video-ati <​code>#​ tazpkg get-install xorg-xf86-video-ati
 # tazpkg get-install mesa-dri-ati # tazpkg get-install mesa-dri-ati
Line 162: Line 175:
 # tazpkg get-install linux-agp # tazpkg get-install linux-agp
 # tazpkg get-install linux-drm</​code>​ # tazpkg get-install linux-drm</​code>​
-Load modules+ 
 +  * Load the kernel ​modules ​
 <​code>#​ tazhw detect-pci</​code>​ <​code>#​ tazhw detect-pci</​code>​
-The free ati driver ​is called ​radeon, replace vesa with radeon + 
-<​code>#​ sed -i '​s/​vesa/​radeon/'​ /​etc/​X11/​xorg.conf +  * To install the free ATI driver radeon, replace ​//vesa// with //radeon// in the ///​etc/​X11/​xorg.conf//​ file: 
-</​code>​+<​code>#​ sed -i '​s/​vesa/​radeon/'​ /​etc/​X11/​xorg.conf</​code>​ 
 + 
 + 
 +== Non-Free Driver (catalyst) == 
 + 
 +To set-up the non-free ATI drivers, use the SliTaz Hardware Configuration tool with the //​--non-free//​ switch: 
 +<​code>#​ tazhw setup ati --non-free ​</​code>​
  
  
 === Modifying the Xorg Configuration === === Modifying the Xorg Configuration ===
  
-Normally Xorg will start successfully,​ but perhaps not with the correct resolution. See the tips at the end of this page or sometimes search the Internet for the xorg.conf for your card and your monitor - or use another LiveCD and copy the working configuration file to SliTaz.+Normally Xorg will start successfully,​ but perhaps not with the correct resolution. See the [[#​adding-resolutions|tips]] at the end of this page or sometimes search the Internet for the xorg.conf for your card and your monitor - or use another LiveCD and copy the working configuration file to SliTaz.
  
  
Line 180: Line 200:
  
 === Adding Resolutions === === Adding Resolutions ===
 +1. Include //​HorizSync//​ and //​VertRefresh//​ (refresh timings) in the //Monitor// section:
  
-  - Include //​HorizSync//​ and //​VertRefresh//​ (refresh timings) in the //Monitor// section: +<file>
-<code>+
 Section "​Monitor"​ Section "​Monitor"​
  Identifier ​  "​Monitor0"​  Identifier ​  "​Monitor0"​
Line 190: Line 210:
  VertRefresh ​ 60  VertRefresh ​ 60
 EndSection EndSection
-</code>+</file>
  
-  - Include a //​DefaultDepth//​ in the //Screen// section: +2. Include a //​DefaultDepth//​ in the //Screen// section: 
- +  
-<code>+<file>
 Section "​Screen"​ Section "​Screen"​
  Identifier "​Screen0"​  Identifier "​Screen0"​
Line 200: Line 220:
  Monitor ​   "​Monitor0"​  Monitor ​   "​Monitor0"​
 ** DefaultDepth 24 ** ** DefaultDepth 24 **
-</code>+</file>
  
-  - Add an extra //Mode// to the line in the //Display// sub-section:​+3. Add an extra //Mode// to the line in the //Display// sub-section:​
  
-<code>+<file>
    ​SubSection "​Display"​    ​SubSection "​Display"​
  Viewport ​  0 0  Viewport ​  0 0
Line 210: Line 230:
  Modes   "​1024x768"​ "​800x600"​  Modes   "​1024x768"​ "​800x600"​
  EndSubSection  EndSubSection
-</code>+</file>
  
-  - Also, add the default Font paths in the //Files// section:+4. Also, add the default Font paths in the //Files// section:
  
-<code>+<file>
 Section "​Files"​ Section "​Files"​
  ModulePath ​  "/​usr/​lib/​X11/​modules"​  ModulePath ​  "/​usr/​lib/​X11/​modules"​
Line 225: Line 245:
  FontPath ​    "/​usr/​share/​fonts/​truetype/​ttf-dejavu"​  FontPath ​    "/​usr/​share/​fonts/​truetype/​ttf-dejavu"​
 EndSection EndSection
-</code>+</file>
  
   *  If you have DRI/DRM enabled, it may be easier to change its permission so all users can use it, rather than adding each to the //video// group. Append the following section:   *  If you have DRI/DRM enabled, it may be easier to change its permission so all users can use it, rather than adding each to the //video// group. Append the following section:
  
-<code>+<file>
 Section "​DRI"​ Section "​DRI"​
         Mode 0666         Mode 0666
 EndSection EndSection
-</code>+</file>
  
  
Line 249: Line 269:
  
  
-===== XVesa ISO (TinyX) =====+===== Using XVesa and Generic Drivers ​(TinyX) =====
  
-You can download the slitaz-3.0-xvesa.iso here: [[http://​mirror.slitaz.org/​iso/​3.0/​flavors/​slitaz-3.0-xvesa.iso|SliTaz-3.0-xvesa.iso]]+The [[http://​mirror.slitaz.org/​iso/​3.0/​flavors/​slitaz-3.0-xvesa.iso|SliTaz-3.0-xvesa.iso]] ​uses the XVesa system instead of Xorg, which offers a more generic driver at the cost of performance. It boots on nearly all computers and laptops, but can only display a 4:3 resolution.
  
-It boots on nearly all computers and laptops, but you can only display a 4:3 resolution. ​To find out which resolutions are possible with your card, type:+To find out which resolutions are possible with your card, type:
  
-<​code>​Xvesa -listmodes</​code>​  +<​code>​Xvesa -listmodes</​code> ​ 
-Here's a selection of resolutions for my Intel Atom Board:+ 
 +Here's a selection of resolutions for an example ​Intel Atom Board:
  
 <​code>​VBE version 3.0 (Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOS) <​code>​VBE version 3.0 (Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOS)
Line 267: Line 288:
 0x0115: 800x600x24 TrueColor [8:​8:​8:​8]</​code>​ 0x0115: 800x600x24 TrueColor [8:​8:​8:​8]</​code>​
  
-So widescreen resolutions cannot be displayed with the slitaz-3.0-xvesa.iso.+This output shows widescreen resolutions cannot be displayed with XVesa.
  
-If X does not start with the default SliTaz.iso (falls back to slim), you could use the xvesa.iso ​to install your default ​xorg driver. ​Because when you are asked for your resolution at boot, you can scroll down the window and find the possibility ​to install your xorg.driver before ​is started. ​But don't use "​tazx"​ and "tazhw setup ati or nv" on the xvesa.iso ​to install your xorg driverbecause you will end up with a black screen.+If X does not start with the default SliTaz ​ISO, you could use the XVesa ISO to install your default ​Xorg driver. ​When you are asked for your resolution at boot-time, scroll down the window and find the option ​to install your Xorg driver ​//before// XVesa is started. ​However, ​don't use "​tazx"​ and "tazhw setup ati or nv" on the XVesa ISO to install your Xorg driver because you will end up with a blank and confused ​screen!
  
  
Line 280: Line 301:
 |Problems| add a [[http://​forum.slitaz.org|forum post link]]| |Problems| add a [[http://​forum.slitaz.org|forum post link]]|
 |:::     | OR add a [[http://​labs.slitaz.org/​issues |lab issue tracker link ]]| |:::     | OR add a [[http://​labs.slitaz.org/​issues |lab issue tracker link ]]|
-|How to Improve| ​How about other xorg-cards? | +|How to Improve| ​Extra config. for other cards? | 
-|::: | More details or references ​on Xorg.conf  |+|::: | More details ​on or references ​to xorg.conf  |
  
 \\ \\
 ---- ----
- 
 
en/guides/xorg-xvesa.1277052812.txt.gz · Last modified: 2010/07/08 17:16 (external edit)