Some changes in make.conf and the useflags are needed for a smooth experience in Xorg with the integrated Intel Graphics.
Changes in make.conf:
Mesa comes with a i915 flag for video cards support:
VIDEO_CARDS="nvidia i915 intel"
Touchpad works only with synaptics support:
INPUT_DEVICES="evdev synaptics wacom keyboard mouse"
Useflag changes:
# disabled useflags
USE="-joystick -caps -nls"
# minimal qt support with egl instead of glx
USE="${USE} -qt4 -accessibility -plasma -exceptions -jit -gstreamer gtkstyle qt3support egl"
# fonts
USE="${USE} fontconfig corefonts truetype cleartype"
# system
USE="${USE} threads acpi mmx sse sse2 ssse3 sse4_1"
# services
USE="${USE} udev dbus policykit udisks hibernate-script"
# display and graphic
USE="${USE} vdpau vaapi sna X opengl cairo v4l ffmpeg xinerama gtk gtk3"
# media
USE="${USE} alsa jack lensfun lcms exif png svg jpeg jpeg2k svg xmp"
# audio dev
USE="${USE} ladspa lash"
# others
USE="${USE} vim-syntax cjk"
Important useflags:
egl: Make use of egl instead of glx for qt rendering, egl is smaller and fully supported by mesa
vdpau: Adds support for outsourcing video decoding to nvidia
vaapi: Adds support for intel HD Video Acceleration API for hardware decoding
sna: SandyBridge's new acceleration
Changes in /etc/portage/package.use:
### media-libs
#mesa vdpau
media-libs/mesa g3dvl
#mesa intel
media-libs/mesa gbm gles2 openvg osmesa shared-dricore xa xvmc
Build Xorg:
emerge xorg-server
Changes in xorg.conf:
Xorg is starting without any xorg.conf at all, but we can add some custom stuff to it.
We need to use the modular configs for xorg because of bumblebee.
Create the directory /etc/X11/xorg.conf.d:
mkdir -p /etc/X11/xorg.conf.d
The naming of the files in /etc/X11/xorg.conf.d isn't important at all, choose whichever you like.
Keyboard Layout:
/etc/X11/xorg.conf.d/01-keyboard.conf
Section "InputClass"
Identifier "Logitech USB Receiver"
Driver "evdev"
#add german and us keyboard layout
Option "XkbLayout" "de,us"
Option "XkbVariant" "nodeadkeys,"
#make them toggle by using alt+shift; add termination of xorg by using ctrl+alt+backspace
Option "XkbOptions" "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"
MatchIsKeyboard "on"
EndSection
No comments:
Post a Comment