lunes, 25 de junio de 2007

Ubuntu Edgy + Beryl ATI X200M

Como tengo un portatil HP Pavilion dv8000 con grafica ATI Radeon X200M y hasta que consegui hacer andar beryl las pase canutas, pues voy a exponer aqui los pasos necesarios para todo aquel que le pueda servir y sobre todo como guia personal para futuras instalaciones de ubuntu+beryl en mi pc.

Descargamos el driver y lo guardamos en home:

  1. https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.34.8-x86.x86_64.run

Hacemos un backup de nuestro xorg.conf:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_bkp

sudo gedit /etc/X11/xorg.conf

Agregar al final del archivo xorg.conf lo siguiente:

Section "Extensions"
Option "Composite" "Disable"
EndSection

Section "ServerFlags"
Option "AIGLX" "off"
EndSection

Instalamos los paquetes necesarios:

sudo apt-get update
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)

sudo ln -sf bash /bin/sh
sh ati-driver-installer-8.34.8-x86.x86_64.run --buildpkg Ubuntu/edgy
sudo ln -sf dash /bin/sh

Desabilitamos los modulos:

sudo gedit /etc/default/linux-restricted-modules-common

Al final del archivo lo pondremos como sigue:

DISABLED_MODULES="fglrx"

Instalamos los paquetes:

sudo dpkg -i xorg-driver-fglrx_8.34.8-1*.deb
sudo dpkg -i fglrx-kernel-source_8.34.8-1*.deb
sudo dpkg -i fglrx-control_8.34.8-1*.deb

Borramos los paquetes que sobran:

sudo rm /usr/src/fglrx-kernel*.deb

Cargamos los modulos:

sudo apt-get -f install
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
sudo module-assistant install fglrx
sudo depmod -a

Hacemos del driver recien instalado el de inicio de nuestro pc:

sudo aticonfig --initial

sudo aticonfig --overlay-type=Xv

y reiniciamos:

sudo reboot now

Ahora instalaremos XGL and Beryl:

Agregamos la siguiente linea a nuestro sources.list:

sudo gedit /etc/apt/sources.list

agregamos al final:

deb http://ubuntu.beryl-project.org/ edgy main

Cerramos y guardamos.

Agregamos la llave de los repositorios:

wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

Instalamos beryl:

sudo apt-get update

sudo apt-get install xserver-xgl beryl emerald-themes

Creamos la sesion:

sudo gedit /usr/local/bin/startxgl.sh

En el siguiente archivo pondremos:

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session

Guardamos y cerramos.

Damos permisos :

sudo chmod a+x /usr/local/bin/startxgl.sh

Y creamos la entrada:

sudo gedit /usr/share/xsessions/xgl.desktop

En el archivo pondremos:

[Desktop Entry]
Encoding=UTF-8
Name=Gnome-Beryl
Comment=Start an Xgl Session by d-E-a-D
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application

Guardamos y cerramos.

Damos permisos :

sudo chmod a+x /usr/share/xsessions/xgl.desktop

Reiniciamos las X:

ctrl + alt + backspace

Y en la pantalla de login/sesiones elegimos XGL, al entrar ejecutamos:

beryl-manager

en un termina/shell y si todo fue bien ya tienes beryl corriendo en el pc.
Si vemos que todo funciona correctamente es hora de agregar

beryl-manager

a las sesiones de inicio:

Sistema/Preferencias/Sesiones damos a la pestaña programas de inicio y agregamos beryl-manager.

Y listo, a disfrutar de beryl.

Si como yo tienes una tarjeta wifi Broadcom pues seguir estos pasos:

http://ubuntuforums.org/showthread.php?t=197102&highlight=install+ndiswrapper

y a conectar a la red.


Para KDE:

Creamos la sesion:

sudo gedit /usr/local/bin/kdexgl.sh

En el siguiente archivo pondremos:

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session startkde

Guardamos y cerramos.

Damos permisos :

sudo chmod a+x /usr/local/bin/kdexgl.sh

Y creamos la entrada:

sudo gedit /usr/share/xsessions/kdexgl.desktop

En el archivo pondremos:

[Desktop Entry]
Encoding=UTF-8
Name=KDE-Beryl
Comment=Start an Xgl Session by d-E-a-D
Exec=/usr/local/bin/kdexgl.sh
Icon=
Type=Application

Guardamos y cerramos.

Damos permisos :

sudo chmod a+x /usr/share/xsessions/kdexgl.desktop

Reiniciamos las X:

ctrl + alt + backspace

Para agregar Beryl al inicio de KDE:

crearemos un script para ello. ejecuta en la terminal el siguiente comando para crearlo:

kate ~/.kde/Autostart/startberyl.sh

Dentro de dicho archivo escribe lo siguiente:

#!/bin/bash
beryl-manager

Ahora dale permisos de ejecución:

chmod +x ~/.kde/Autostart/startberyl.sh

Ahora podemos reiniciar y al entrar, asegurate de seleccionar la nueva sesion kde-xgl..

Solución de problemas:

Doble sombra!

Si tenias activada la sombra en los menus de KDE, cuando uses Beryl los menus tendrás una muy poco estética sombra de la sombra. solo debes desactivar la sombra en los menus para corregir esto.

Ve a sistem settings/apariencia/estilo/efectos y desactiva la sombra en los menus.

Inicio KDE y es leeeentoo

Ve al icono de Beryl y selecciona “Seleccionar manejador de ventanas” / Beryl. Antes de eso KDE es muy lento en XGL!

¡El teclado se volvió loco!

El problema del teclado lo solucioné con dos comandos:

# xprop -root -f _XKB_RULES_NAMES 8s -set _XKB_RULES_NAMES xorg
# setxkbmap -model pc105 -layout es

Si tienes teclado de 101 teclas (muy probable) solo cambia donde dice 105 por 101.

Para que el cambio se haga cada vez que entras a KDE, agrega dichos comandos al script de inicio:

kate ~/.kde/Autostart/startberyl.sh

Y dentro escribelos:

# xprop -root -f _XKB_RULES_NAMES 8s -set _XKB_RULES_NAMES xorg
# setxkbmap -model pc105 -layout es

Y asunto arreglado ;-)
_______________________________________________________________________________________

Mi xorg.conf con beryl funcionando:


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
Load "dbe"
EndSection

Section "ServerFlags"
Option "AIGLX" "off"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Xpress 200M (RS480)"
Driver "fglrx"
BusID "PCI:1:5:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "on"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. Radeon Xpress 200M (RS480)"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1440x900"
EndSubSection
SubSection "Display"
Depth 4
Modes "1440x900"
EndSubSection
SubSection "Display"
Depth 8
Modes "1440x900"
EndSubSection
SubSection "Display"
Depth 15
Modes "1440x900"
EndSubSection
SubSection "Display"
Depth 16
Modes "1440x900"
EndSubSection
SubSection "Display"
Depth 24
Modes "1440x900"
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection

Section "ServerFlags"
Option "AIGLX" "off"
EndSection
________________________________________________________________________________

Guia para Feisty:
http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide

No hay comentarios: