Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:guides:xorg-xvesa [2010/05/25 19:46] – add toc linea | en:guides:xorg-xvesa [2010/09/12 13:49] (current) – linea | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Xorg - Xvesa ====== | + | ====== Xorg & XVesa ====== |
| - | The # sign means that you do this command as root on your console. | + | By default, SliTaz v3 uses Xorg 7.4 with the // |
| - | The default | + | * check that you have enough RAM to run the default |
| + | * try the [[http:// | ||
| + | * install | ||
| + | * customise your Xorg configuration file (// | ||
| - | * check first, if you have enough Ram to run the default.iso - if not use the [[http://mirror.slitaz.org/iso/3.0/flavors/|lowram.iso]] | + | Good introductions |
| - | * you use the slitaz-3.0-xvesa.iso (TinyX) | + | |
| - | * you install the xorg video driver for your card | + | |
| - | * you can try to change your xorg.conf | + | |
| - | Note: In Xorg versions up to 7.3, the Ctrl+Alt+Backspace key combination could be used to quit the X server. To enable it in version 7.4 and later, | + | <note tip> Up to v7.3, the Ctrl+Alt+Backspace key combination could be used to quit the X server. To enable it in version 7.4 and later, type the following command from any X terminal emulator: |
| < | < | ||
| - | Good introductions to Xorg Configuration: | + | </note> |
| + | <note important> | ||
| + | Throughout this page, commands preceeded with a hash sign (#) should be executed as the **root** user. This is best under a terminal window. Otherwise, the dollar symbol ($) denotes a regular (tux) user. | ||
| + | </ | ||
| - | ===== slitaz-xvesa.iso with tinyX Server ===== | ||
| + | ===== Using Xorg & Vendor-Specific Drivers ===== | ||
| - | You can download the slitaz-3.0-xvesa.iso here: [[http:// | + | When you are using SliTaz |
| - | 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: | ||
| - | < | + | === AGP Cards === |
| - | Here's a selection of resolutions for my Intel Atom Board: | + | |
| - | < | + | All AGP video cards need extra kernel modules to function under Xorg. Check if you have an AGP video card with //lspci//; if so, install the necessary modules in the // |
| - | DAC is switchable, controller is VGA compatible, RAMDAC causes snow | + | |
| - | Total memory: 7872 kilobytes | + | |
| - | 0x015A: 1600x1200x24 TrueColor [8:8:8:8] | + | |
| - | 0x011B: 1280x1024x24 TrueColor [8:8:8:8] | + | |
| - | 0x0118: 1024x768x24 TrueColor [8:8:8:8] | + | |
| - | 0x0112: 640x480x24 TrueColor [8:8:8:8] | + | |
| - | 0x0115: 800x600x24 TrueColor [8: | + | |
| - | So widescreen resolutions cannot be displayed with the slitaz-3.0-xvesa.iso. | + | < |
| + | # tazpkg get-install linux-agp | ||
| + | </ | ||
| - | If X does not start with the default | + | Load the modules using the SliTaz |
| - | ===== Xorg Video Driver ===== | ||
| - | |||
| - | When you are using SliTaz as your daily OS, it's recommended to setup your default xorg video driver. You will get a much better picture than using the xvesa driver or tinyX. | ||
| - | |||
| - | **If you have a AGP-Videocard** | ||
| - | |||
| - | Check with " | ||
| - | < | ||
| - | # tazpkg get-install linux-agp | ||
| - | </ | ||
| < | < | ||
| - | Then normally, you just run as root: | + | You can now use the SliTaz X configuration tool to detect your settings: |
| - | < | + | < |
| - | - but sometimes this is not enough. | + | Select the appropriate driver for your video card from the list. |
| - | **DRI / DRM Problem** | ||
| - | [[http:// | + | === DRI / DRM Problem === |
| + | |||
| + | Sometimes, the auto-detection is not enough. Cards that require | ||
| < | < | ||
| Line 69: | Line 56: | ||
| # addgroup tux video | # addgroup tux video | ||
| </ | </ | ||
| - | The module | + | |
| + | The //drm// module | ||
| < | < | ||
| - | **Load | + | <note tip> |
| - | Please note that all modules, which are loaded by tazhw and yourself to make your changes permanent, have to be added to the SliTaz Control Box under Initialization in "Load modules" | ||
| - | **Change your xorg.conf** | + | === Intel cards === |
| - | Normally X will start, but perhaps not with the correct resolution. See the tips at the end of this page or sometimes search the net for the xorg.conf for your card and your monitor - or use another LiveCD and copy the working conf file to SliTaz. | + | 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 |
| - | **Restart | + | Use " |
| - | Use the normal shutdown button and select on SliTaz Desktop logout | + | Some users may need to add the " |
| - | Check the / | + | < |
| - | < | + | Section " |
| + | | ||
| + | Load " | ||
| + | ... | ||
| + | EndSection | ||
| + | </file> | ||
| - | === intel-video cards === | + | for the driver to work. |
| - | The xorg-xf86-video-vesa 2.0.0 driver has a lot of trouble with intel chips - e.g. on my 82945GM Chipset it does not display 1280x1024 and 1024x768, but 1600x1200 is not a problem. | + | Depending on the hardware, the //mode-setting// feature must be turned on or off. To turn it off append one of the following to the //kernel// line in the GRUB boot-loader configuration: |
| - | Use " | + | * // |
| + | * //i810.modeset=0// | ||
| + | * //i915.modeset=0// | ||
| - | Some users may need to add the " | + | If mode-setting is off by default and should instead be turned on, append one of the following: |
| - | < | + | |
| - | ... | + | |
| - | Load " | + | |
| - | EndSection< | + | |
| - | for the driver to work. | + | |
| - | === trident-video | + | === Trident |
| Use " | Use " | ||
| < | < | ||
| - | === nvidia cards === | ||
| - | Slitaz provides automatic configuration for nvidia cards. | ||
| - | For free nvidia drivers, do: | ||
| - | < | ||
| - | For non-free nvidia drivers (supplied by NVIDIA), do: | + | === nVidia cards === |
| - | < | + | |
| - | **To setup non-free nvidia | + | SliTaz provides automatic configuration for nVidia cards. There are two drivers available, the Xorg-provided // |
| + | \\ | ||
| - | First download: mesa mesa-demos linux-agp | + | == Free Driver (nv) == |
| - | < | + | |
| + | To set-up the free nVidia drivers, use the SliTaz Hardware Configuration tool: | ||
| + | < | ||
| + | |||
| + | Alternatively, | ||
| + | * Download the following packages: | ||
| + | * | ||
| + | < | ||
| # tazpkg get-install mesa | # tazpkg get-install mesa | ||
| # tazpkg get-install mesa-demos | # tazpkg get-install mesa-demos | ||
| # tazpkg get-install linux-agp</ | # tazpkg get-install linux-agp</ | ||
| - | Load modules | + | |
| + | * Load the kernel | ||
| < | < | ||
| - | To configure nvidia automatically | ||
| - | < | ||
| - | To test if rendering is working | ||
| - | < | ||
| - | To change nvidia settings | ||
| - | < | ||
| - | For no logo at bootup, add the following to xorg.conf | + | * Replace |
| - | < | + | < |
| </ | </ | ||
| - | **To setup free nvidia | + | == Non-Free Driver (nvidia) == |
| - | First download: mesa mesa-demos linux-agp | + | To set-up the non-free nVidia drivers, use the SliTaz Hardware Configuration tool with the // |
| - | < | + | < |
| + | |||
| + | Alternatively, | ||
| + | * Download the following packages: | ||
| + | * | ||
| + | < | ||
| # tazpkg get-install mesa | # tazpkg get-install mesa | ||
| # tazpkg get-install mesa-demos | # tazpkg get-install mesa-demos | ||
| # tazpkg get-install linux-agp</ | # tazpkg get-install linux-agp</ | ||
| - | Load modules | + | |
| + | * Load the kernel | ||
| < | < | ||
| - | Replace vesa with nv | ||
| - | < | ||
| - | </ | ||
| - | === ati cards === | + | * Attempt to configure the card with nVidia' |
| + | < | ||
| + | * To test if rendering is working, | ||
| + | < | ||
| + | * To change nVidia' | ||
| + | < | ||
| - | For free ati drivers (preferred), do: | + | == Hiding the Logo == |
| - | <code>tazpkg get-install linux-agp | + | To hide the nVidia logo when the system boots, add the following to /// |
| - | tazpkg get-install linux-drm | + | <file>Option " |
| - | tazhw setup ati</code> | + | |
| - | - but perhaps this is not enough - check / | ||
| - | For non-free | + | === ATI cards === |
| - | < | + | |
| + | SliTaz provides automatic configuration for ATI cards. There are two drivers available, the Xorg-provided // | ||
| + | \\ | ||
| + | |||
| + | == Free Driver (radeon) == | ||
| + | |||
| + | To set-up the free ATI drivers, install the AGP & DRM modules, then use the SliTaz Hardware Configuration tool: | ||
| + | |||
| + | < | ||
| + | # tazpkg get-install linux-drm | ||
| + | # tazhw setup ati</ | ||
| - | **To setup free ati manually:** | + | - but perhaps this is not enough - check / |
| - | First download: xorg-xf86-video-ati mesa-dri-ati mesa-demos linux-agp | + | Alternatively, |
| + | * Download the following packages: | ||
| + | * | ||
| < | < | ||
| # tazpkg get-install mesa-dri-ati | # tazpkg get-install mesa-dri-ati | ||
| Line 166: | Line 175: | ||
| # tazpkg get-install linux-agp | # tazpkg get-install linux-agp | ||
| # tazpkg get-install linux-drm</ | # tazpkg get-install linux-drm</ | ||
| - | Load modules | + | |
| + | * Load the kernel | ||
| < | < | ||
| - | The free ati driver is called radeon, replace vesa with radeon | ||
| - | < | ||
| - | </ | ||
| - | ===== Edit Xorg.conf manually ===== | + | * To install the free ATI driver radeon, replace //vesa// with //radeon// in the /// |
| + | < | ||
| - | This is how we can get a 1024x768 resolution: if your display is stuck at a low resolution, say 800x600, just add edit " | ||
| - | I edited the following sections in xorg.conf | + | == Non-Free Driver |
| - | 1) Include HorizSync and VertRefresh | + | To set-up the non-free ATI drivers, use the SliTaz Hardware Configuration tool with the // |
| - | <code> | + | < |
| + | |||
| + | |||
| + | === Modifying the Xorg Configuration === | ||
| + | |||
| + | Normally Xorg will start successfully, | ||
| + | |||
| + | |||
| + | ===== Configuring X ===== | ||
| + | |||
| + | While X will do it's bets to auto-configure itself for your graphics card set-up, sometimes it needs a tweak. Its configuration file, /// | ||
| + | |||
| + | |||
| + | === Adding Resolutions === | ||
| + | 1. Include | ||
| + | |||
| + | <file> | ||
| Section " | Section " | ||
| Identifier | Identifier | ||
| Line 187: | Line 210: | ||
| VertRefresh | VertRefresh | ||
| EndSection | EndSection | ||
| - | </code> | + | </file> |
| - | 2a) In Section "Screen"; added Default Depth | + | 2. Include a // |
| - | + | ||
| - | <code> | + | <file> |
| Section " | Section " | ||
| Identifier " | Identifier " | ||
| Device | Device | ||
| Monitor | Monitor | ||
| - | DefaultDepth 24 | + | ** DefaultDepth 24 ** |
| - | </code> | + | </file> |
| - | 2b) In Sub-section | + | 3. Add an extra //Mode// to the line in the //Display// sub-section: |
| - | <code> | + | |
| + | <file> | ||
| | | ||
| Viewport | Viewport | ||
| Line 206: | Line 230: | ||
| Modes " | Modes " | ||
| EndSubSection | EndSubSection | ||
| - | </code> | + | </file> |
| - | 3) Also, added default | + | 4. Also, add the default Font paths in the //Files// section: |
| - | <code> | + | |
| + | <file> | ||
| Section " | Section " | ||
| ModulePath | ModulePath | ||
| Line 220: | Line 245: | ||
| FontPath | FontPath | ||
| EndSection | EndSection | ||
| - | </code> | + | </file> |
| - | You can use xrandr to identify your monitor(s) | + | * 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: |
| + | |||
| + | < | ||
| + | Section " | ||
| + | Mode 0666 | ||
| + | EndSection | ||
| + | </ | ||
| + | |||
| + | |||
| + | <note tip>You can use xrandr to identify your monitor(s). This utility is in the //xorg-xrandr// package: | ||
| < | < | ||
| + | |||
| + | See the [[http:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Restarting Xorg === | ||
| + | |||
| + | For changes to take effect, you need to restart Xorg. This can be done by logging out of your session and back in again. Choose //Logout// from the Menu and select the //Logout X session// button. If you see the Slim log-in manager, Xorg has restarted successfully! | ||
| + | |||
| + | |||
| + | ===== Using XVesa and Generic Drivers (TinyX) ===== | ||
| + | |||
| + | The [[http:// | ||
| + | |||
| + | To find out which resolutions are possible with your card, type: | ||
| + | |||
| + | < | ||
| + | |||
| + | Here's a selection of resolutions for an example Intel Atom Board: | ||
| + | |||
| + | < | ||
| + | DAC is switchable, controller is VGA compatible, RAMDAC causes snow | ||
| + | Total memory: 7872 kilobytes | ||
| + | 0x015A: 1600x1200x24 TrueColor [8:8:8:8] | ||
| + | 0x011B: 1280x1024x24 TrueColor [8:8:8:8] | ||
| + | 0x0118: 1024x768x24 TrueColor [8:8:8:8] | ||
| + | 0x0112: 640x480x24 TrueColor [8:8:8:8] | ||
| + | 0x0115: 800x600x24 TrueColor [8: | ||
| + | |||
| + | This output shows widescreen resolutions cannot be displayed with XVesa. | ||
| + | |||
| + | 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 " | ||
| Line 235: | Line 301: | ||
| |Problems| add a [[http:// | |Problems| add a [[http:// | ||
| |::: | OR add a [[http:// | |::: | OR add a [[http:// | ||
| - | |How to Improve| | + | |How to Improve| |
| - | |::: | More details or references | + | |::: | More details |
| \\ | \\ | ||
| ---- | ---- | ||