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

Line 19: Line 19:
 
== Example config: keyboard with polish layout ==
 
== Example config: keyboard with polish layout ==
 
Next, we edit <code>/etc/X11/xorg.conf.d/10-keyboard.conf</code>:
 
Next, we edit <code>/etc/X11/xorg.conf.d/10-keyboard.conf</code>:
<pre>
+
{{File
 +
|/etc/X11/xorg.conf.d/10-keyboard.conf|<pre>
 
Section "InputClass"
 
Section "InputClass"
 
Identifier "keyboard-all"
 
Identifier "keyboard-all"
Line 29: Line 30:
 
MatchIsKeyboard "on"
 
MatchIsKeyboard "on"
 
EndSection
 
EndSection
</pre>
+
</pre>}}
 
== Known Issues ==  
 
== Known Issues ==  
  
Line 37: Line 38:
 
</console>
 
</console>
 
This error can be ignored but in order to have everything clean add this <code>MatchDevicePath "/dev/inpute/event*"</code> into your xorg.conf. Edit <code>/etc/X11/xorg.conf.d/10-keyboard.conf</code> with your favorite text editor:
 
This error can be ignored but in order to have everything clean add this <code>MatchDevicePath "/dev/inpute/event*"</code> into your xorg.conf. Edit <code>/etc/X11/xorg.conf.d/10-keyboard.conf</code> with your favorite text editor:
<pre>
+
{{File
 +
|/etc/X11/xorg.conf.d/10-keyboard.conf|<pre>
 
Section "InputClass"
 
Section "InputClass"
 
Identifier     "evdev pointer catchall"
 
Identifier     "evdev pointer catchall"
Line 44: Line 46:
 
         MatchDevicePath    "/dev/input/evdev*"
 
         MatchDevicePath    "/dev/input/evdev*"
 
EndSection
 
EndSection
</pre>
+
</pre>}}
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 23:34, January 14, 2014

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.

Basic upgrade

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

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 -av1 $(qlist -IC x11-drivers/)

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.

Example config: keyboard with polish layout

Next, we edit /etc/X11/xorg.conf.d/10-keyboard.conf:

{{{name}}}
{{{body}}}

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. Edit /etc/X11/xorg.conf.d/10-keyboard.conf with your favorite text editor:

{{{name}}}
{{{body}}}