Difference between revisions of "Xorg-server 1.7 to 1.9 upgrade guide"

From Funtoo Linux
Jump to: navigation, search
(Created page with "TODO: fix it... == Links == * [http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml Gentoo's Xorg-server 1.8 Upgrade Guide] * [http://www.gentoo.org/pro...")
 
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
TODO: fix it...
+
== Before upgrade ==
 +
* Backup your <code>/etc/X11</code> directory.
 +
* Backup the old versions of xorg-server and drivers. This can be done with <code>quickpkg</code>.
 +
* <code>xorg-server</code> supports hot plugging through the event interface so ensure the <code>evdev</code> driver is enabled in <code>INPUT_DEVICES</code> in <code>make.conf</code>.
  
== Links ==
+
== Basic upgrade ==
* [http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml Gentoo's Xorg-server 1.8 Upgrade Guide]
+
# Read  and follow [http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml Gentoo's Xorg-server 1.8 Upgrade Guide]
* [http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.9-upgrade-guide.xml Gentoo's Xorg-server 1.9 Upgrade Guide]
+
# Read [http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.9-upgrade-guide.xml Gentoo's Xorg-server 1.9 Upgrade Guide]
  
== Must-have ==
+
== After upgrade ==
* Inputs drivers, most users will need only 'evdev' and 'synaptics' for touchpads.
+
* Rebuild all drivers with new <code>xorg-server</code>, you may use <code>qlist</code> from <code>portage-utils</code> in order to get list of installed drivers: {{Root|emerge -1 $(qlist -IC x11-drivers/) -av}}
  
== Before upgrade ==
+
= Configuration =
* Backup your /etc/X11 dir.
+
In order to configure devices that hotplugging does not handle, you may use <code>/etc/X11/xorg.conf.d</code> instead of <code>/etc/X11/xorg.conf</code>. ''xorg.conf'' is optional and if you don't need any special configuration, you may use xorg without it.
* If you wish, backup your builded packages "quickpkg --include-config=y xorg-server xf86-input-<foo> xf86-video-<foo>"
+
== Example config: keyboard with polish layout ==
 +
{{Code|/etc/X11/xorg.conf.d/10-keyboard.conf|<pre>
 +
Section "InputClass"
 +
Identifier "keyboard-all"
 +
Driver "evdev"
 +
Option "XkbRules"  "xorg"
 +
Option "XkbModel"  "pc105"
 +
Option "XkbLayout" "pl"
  
== After upgrade ==
+
MatchIsKeyboard "on"
Make sure that all drivers are built with current xorg-server. To rebuild them all, do:
+
EndSection
"emerge -1 $(qlist -IC x11-drivers/)"
+
 
 +
</pre>}}
 +
= Known Issues =
 +
Check <code>/var/log/Xorg.0.log</code> if you have problems with new xorg-server. Also you can notice that some errors present even for working config and xorg, here is the possible:
 +
<pre>[ 852.864] (EE)  ioctl EVIOCGNAME failed: Inappropriate ioctl for device</pre>
 +
This error can be ignored but in order to have everything clean add this <code>MatchDevicePath "/dev/inpute/event*"</code> into your xorg.conf
 +
{{Code|/etc/X11/xorg.conf.d/10-keyboard.conf|<pre>
 +
Section "InputClass"
 +
Identifier     "evdev pointer catchall"
 +
Driver     "evdev"
 +
MatchIsPointer      "on"
 +
        MatchDevicePath    "/dev/input/evdev*"
 +
EndSection
 +
 
 +
</pre>}}
 +
 
 +
[[Category:HOWTO]]

Latest revision as of 04:10, 12 November 2010

Contents

[edit] Before upgrade

  • Backup your /etc/X11 directory.
  • Backup the old versions of xorg-server and drivers. This can be done with quickpkg.
  • xorg-server supports hot plugging through the event interface so ensure the evdev driver is enabled in INPUT_DEVICES in make.conf.

[edit] Basic upgrade

  1. Read and follow Gentoo's Xorg-server 1.8 Upgrade Guide
  2. Read Gentoo's Xorg-server 1.9 Upgrade Guide

[edit] After upgrade

  • Rebuild all drivers with new xorg-server, you may use qlist from portage-utils in order to get list of installed drivers:
    emerge -1 $(qlist -IC x11-drivers/) -av


[edit] Configuration

In order to configure devices that hotplugging does not handle, you may use /etc/X11/xorg.conf.d instead of /etc/X11/xorg.conf. xorg.conf is optional and if you don't need any special configuration, you may use xorg without it.

[edit] Example config: keyboard with polish layout

Code: /etc/X11/xorg.conf.d/10-keyboard.conf
Section "InputClass"
	Identifier	"keyboard-all"
	Driver		"evdev"
	Option		"XkbRules"  "xorg"
	Option		"XkbModel"  "pc105"
	Option		"XkbLayout" "pl"

	MatchIsKeyboard	"on"
EndSection

[edit] Known Issues

Check /var/log/Xorg.0.log if you have problems with new xorg-server. Also you can notice that some errors present even for working config and xorg, here is the possible:

[ 852.864] (EE)  ioctl EVIOCGNAME failed: Inappropriate ioctl for device

This error can be ignored but in order to have everything clean add this MatchDevicePath "/dev/inpute/event*" into your xorg.conf

Code: /etc/X11/xorg.conf.d/10-keyboard.conf
Section "InputClass"
	Identifier	    "evdev pointer catchall"
	Driver		    "evdev"
	MatchIsPointer      "on"
        MatchDevicePath     "/dev/input/evdev*"
EndSection

Personal tools
Namespaces

Variants
Actions
Categories
Toolbox
Stuff