This is an old revision of the document!
Table of Contents
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:
- check that you have enough RAM to run the default ISO. If not, use the Low RAM ISO instead.
- try the XVesa ISO (a.k.a. TinyX)
- install a more specific driver for your graphics card
- customise your Xorg configuration file (xorg.conf)
Good introductions to Xorg Configuration can be found at The FreeBSD Handbook and X Configuration from Ubuntu.
setxkbmap -option terminate:ctrl_alt_bksp
Using Xorg & Vendor-Specific Drivers
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 “lspci” - if you find AGP, you should do this first:
# tazpkg get-install linux-agp
Then load the modules:
# tazhw detect-pci
Then normally, you just run as root:
# tazx
And install your video driver from the list.
- but sometimes this is not enough.
DRI / DRM Problem
DRI / DRM - SliTaz 3.0 has a file in a wrong place - /dev/dri should be a directory and not a file. And to get DRI working: we have to add tux to the group video:
# tazpkg get-install linux-drm # tazpkg get-install mesa-demos (for glxinfo and glxgears) # rm /dev/dri # mkdir /dev/dri/ # addgroup tux video
The module drm is not loaded by tazhw, you have to do it manually:
# modprobe drm
Load modules persistently
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
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.
Restart X
Use the normal shutdown button and select on SliTaz Desktop logout the button Logout X session.
Check the /var/log/Xorg.0.log to see if you get any essential (WW)- warnings or (EE) - errors. When you installed mesa-demos you can test if rendering is working:
glxinfo | grep render
Intel cards
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 1280×1024 and 1024×768, but 1600×1200 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).
Some users may need to add the “intel_agp” module to the xorg.conf file:
Section "Module" ... Load "intel_agp" EndSection
for the driver to work.
Trident cards
Use “tazx” to select the trident driver, install mesa-dri-trident
# tazpkg get-install mesa-dri-trident
and restart X
nVidia cards
Slitaz provides automatic configuration for nvidia cards. For free nvidia drivers, do:
# tazhw setup nvidia
For non-free nvidia drivers (supplied by NVIDIA), do:
# tazhw setup nvidia --non-free
To setup non-free nvidia manually:
First download: mesa mesa-demos linux-agp nvidia
# tazpkg get-install nvidia # tazpkg get-install mesa # tazpkg get-install mesa-demos # tazpkg get-install linux-agp
Load modules
# tazhw detect-pci
To configure nvidia automatically
# nvidia-xconfig
To test if rendering is working
glxinfo | grep render
To change nvidia settings
# nvidia-settings
For no logo at bootup, add the following to xorg.conf
Option "NoLogo" "True"
To setup free nvidia manually:
First download: mesa mesa-demos linux-agp xorg-xf86-video-nv
# tazpkg get-install xorg-xf86-video-nv # tazpkg get-install mesa # tazpkg get-install mesa-demos # tazpkg get-install linux-agp
Load modules
# tazhw detect-pci
Replace vesa with nv
# sed -i 's/vesa/nv/' /etc/X11/xorg.conf
ATI cards
For free ati drivers (preferred), do:
tazpkg get-install linux-agp tazpkg get-install linux-drm tazhw setup ati
- but perhaps this is not enough - check /var/log/Xorg.0.log to see if other modules must be loaded: See DRI / DRM Problem
For non-free ati catalyst drivers (known to be not so good), do:
tazhw setup ati --non-free
To setup free ati manually:
First download: xorg-xf86-video-ati mesa-dri-ati mesa-demos linux-agp
# tazpkg get-install xorg-xf86-video-ati # tazpkg get-install mesa-dri-ati # tazpkg get-install mesa-demos # tazpkg get-install linux-agp # tazpkg get-install linux-drm
Load modules
# tazhw detect-pci
The free ati driver is called radeon, replace vesa with radeon
# sed -i 's/vesa/radeon/' /etc/X11/xorg.conf
Configuring X
This is how we can get a 1024×768 resolution: if your display is stuck at a low resolution, say 800×600, just add edit “Modes” in step 2b below.
I edited the following sections in xorg.conf (/etc/X11/xorg.conf):
1) Include HorizSync and VertRefresh in section “Monitor”
Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 28-64 VertRefresh 60 EndSection
2a) In Section “Screen”; added Default Depth
Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24
2b) In Sub-section Display: added “Modes”
SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" "800x600" EndSubSection
3) Also, added default Slitaz Font path in Section Files
Section "Files" ModulePath "/usr/lib/X11/modules" FontPath "/usr/share/fonts/X11/misc/" FontPath "/usr/share/fonts/X11/TTF/" FontPath "/usr/share/fonts/X11/OTF" FontPath "/usr/share/fonts/X11/Type1/" FontPath "/usr/share/fonts/X11/100dpi/" FontPath "/usr/share/fonts/X11/75dpi/" FontPath "/usr/share/fonts/truetype/ttf-dejavu" EndSection
You can use xrandr to identify your monitor(s) Debian RandR 1.2 Wiki
# tazpkg get-install xorg-xrandr
XVesa ISO (TinyX)
You can download the slitaz-3.0-xvesa.iso here: SliTaz-3.0-xvesa.iso
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:
Xvesa -listmodes
Here's a selection of resolutions for my Intel Atom Board:
VBE version 3.0 (Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOS) 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:8:8:8]
So widescreen resolutions cannot be displayed with the slitaz-3.0-xvesa.iso.
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 X is started. But 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 black screen.
Page Review Section | |
---|---|
Quality | Good |
Review | Minor Updates |
Priority | Medium |
Problems | add a forum post link |
OR add a lab issue tracker link | |
How to Improve | How about other xorg-cards? |
More details or references on Xorg.conf |