2010-05-26

Slitaz -- vboxadd-3.1.8




root@slitaz:~# tazpkg info vboxadd

Tazpkg information
=======================================================================
Package : vboxadd
Version : 3.1.8_2.6.30.6
Category : non-free
Short desc : x86 VBoxLinuxAdditions.
Maintainer :
Depends : linux-drm mesa-dri xorg-xf86-input-evdev
Web site : http://www.virtualbox.org/
=======================================================================

root@slitaz:~# df -h

Filesystem Size Used Available Use% Mounted on
rootfs 348.5M 120.8M 227.7M 35% /
tmpfs 348.5M 120.8M 227.7M 35% /
tmpfs 193.6M 0 193.6M 0% /dev/shm
root@slitaz:~# du -sh /
120.8M
root@slitaz:~# dmesg | tail -12
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
PCI: setting IRQ 9 as level-triggered
pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
vboxguest: major 0, IRQ 9, I/O port d040, MMIO at 00000000f0400000 (size 0x400000)
vboxguest: Successfully loaded version 3.1.8 (interface 0x00010004)
vboxsf: Successfully loaded version 3.1.8 (interface 0x00010004)
Linux agpgart interface v0.103
[drm] Initialized drm 1.1.0 20060810
pci 0000:00:02.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
pci 0000:00:02.0: setting latency timer to 64
[drm] Initialized vboxvideo 1.0.0 20090303 for 0000:00:02.0 on minor 0
mtrr: no MTRR for e0000000,2000000 found
root@slitaz:~#
root@slitaz:~# cat /var/log/tazpkg.log
2010-05-26 14:53:55 - Installed - linux-drm (2.6.30.6) - 62ba26c458a1823ccee1f87d33ad619b
2010-05-26 14:53:56 - Installed - mesa-dri (7.4.4) - 2f1a8d7ccc8f8f357266052580fb1df8
2010-05-26 14:53:56 - Installed - xorg-xf86-input-evdev (2.0.4) - 2536931075fe9b19b51c2229740938ec
2010-05-26 14:53:59 - Installed - vboxadd (3.1.8_2.6.30.6) - c30174c6df5395cb57e218832532897a
root@slitaz:~# ls -l /dev/dri
crw-rw---- 1 root root 226, 0 May 26 14:59 card0
root@slitaz:~#
root@slitaz:~# ls -l /dev/vbox*
crw-rw---- 1 vboxadd vboxadd 10, 60 May 26 14:54 /dev/vboxguest
crw-rw-rw- 1 vboxadd root 10, 59 May 26 14:54 /dev/vboxuser
root@slitaz:~#
root@slitaz:~# tail -3 .config/openbox/autostart.sh
# Background color with xsetroot.
#xsetroot -solid "#222222" &
VBoxClietn-all &
root@slitaz:~#
root@slitaz:~# tail -5 /etc/group
tty:x:7:
video:x:8:tux
haldaemon:x:26:
tux:x:1000:
vboxadd:x:1001:
root@slitaz:~#
root@slitaz:~# ps ax | grep -i vbox
2045 root /usr/bin/VBoxClient --clipboard
2056 root /usr/bin/VBoxClient --display
2062 root /usr/bin/VBoxClient --seamless
2886 root grep -i vbox
root@slitaz:~#
root@slitaz:~# lsmod | grep vbox
vboxvideo 1908 1
drm 121736 2 vboxvideo
vboxsf 29528 0
vboxguest 113576 5 vboxsf
root@slitaz:~#

http://doc.slitaz.org/en:guides:xorg-xvesa
[..]
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
[..]

====
Reprinted:

http://doc.slitaz.org/en:guides:xorg-xvesa

Xorg - Xvesa

The # sign means that you do this command as root on your console.

The default Slitaz-3.0.iso uses xorg 7.4 with the xorg-xf86-video-vesa 2.0.0 driver. This xvesa-driver can cause quite a few problems - it can result in a very low resolution or X does not start at all (falls back to slim or to the console). There are however some more possibilities:

*
check first, if you have enough Ram to run the default.iso - if not use the lowram.iso
*
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, you can type the following command from any X terminal emulator:

setxkbmap -option terminate:ctrl_alt_bksp

Good introductions to Xorg Configuration: The FreeBSD Handbook and X Configuration from Ubuntu
slitaz-xvesa.iso with tinyX Server

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.
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 「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-video 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-video 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

Edit Xorg.conf manually

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


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


en/guides/xorg-xvesa.txt · Last modified: 2010/05/25 21:46 by linea