Mostrando entradas con la etiqueta xorg. Mostrar todas las entradas
Mostrando entradas con la etiqueta xorg. Mostrar todas las entradas

martes, 9 de septiembre de 2008

activate/deactivate Touchpad on linux

I think I already wrote this some time ago but I think is enough interesting to repeat the explanation.
So, for all the people who has a laptop and, as they're typing their hand touches the touch-pad and moves the pointer to any place on the screen, making them start writing on another place.Too uncomfortable!

So, it must be edited the file /etc/X11/xorg.conf as root and change the following things:

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
#Deactivate this:
#InputDevice "Mouse0" "CorePointer"
#And write the next:
InputDevice "TouchPad" "CorePointer"
EndSection


Now, we have to add the following text to let xorg knows we're using a touch-pad


Section "InputDevice"
Identifier "TouchPad"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "SHMConfig" "on"
Option "Emulate3Buttons" "yes"
Option "CorePointer"
EndSection



And also, we must comment the lines about the original configuration about mouse:

#Section "InputDevice"
# generated from default
# Identifier "Mouse0"
# Driver "mouse"
# Option "Protocol" "auto"
# Option "Device" "/dev/psaux"
# Option "Emulate3Buttons" "no"
# Option "ZAxisMapping" "4 5"
#EndSection



Now, we can use
synclient
, a program that can modify parameters of the touchpad on the fly, without restarting the xorg ;)

$ synclient -l
will show all the parameters of the touchpad
TouchpadOff
Is the option that shows if the touchpad is working or not so, we can do a script like that:

if synclient -l | grep "TouchpadOff = 0" > /dev/null
then synclient TouchpadOff=1
else synclient TouchpadOff=0
fi


Only configure one key of your keyboard to run this script ;)

P.S: There's some computers that has practical key so, once the xorg configuration file has being set up, the key works:D

viernes, 9 de mayo de 2008

nvidia y debian

Hoy me he cargado las X. He hecho la gracia de instalar un nvidia-glx que me ha desinstalado todo el xorg (si,ya me he dado cuenta pero...los milagros existen) y no se que paquetes me ha metido
El caso es que al final, incapaz de arreglar el error (cosa que ahora ya sabría hacerlo xD), he reinstalado todo

Tras reiniciar, debian no me reconocía la tarjeta gráfica por lo que tenía una pantalla 1024 estirada en mi panorámica (xD); así que busco los paquetes e instalo:

*nvidia-kernel-common
*nvidia-settings
*nvidia-xconfig
*xserver-xorg-video-nv
¡¡qué bonito es todo!! automaticamente veo que al finalizar la instalación de los paquetes, me está configurando el xorg.conf y metiendo lo que sea en el núcleo (no me preguntéis por qué)

Ahora llega lo peor...reinicio y...tachan!!! NO hay X :'(

Saco mi consola y me digo...usemos el module assistant
y escribo.... # m-a a-i nvidia
todo parece ir como la seda pero al final...nada, error. No quiere compilar (según he buscado por internet, es un error que lo tiene mucha gente...a ver cuando se arregla)

¿Y qué hago?probar... abro el xorg.con (#vi /etc/X11/xorg.conf) y busco la sección del driver del vídeo. leo...
Driver "nvidia"

Pero me suena que antes de reinstalar todo, ahí ponía "nv". Total, por probar...
Y efectivamente, problema solucionado ;)
Quizás no esté usando los driver de nvidia (todavía no me he puesto a mirar si tengo aceleración) pero necesitaba el ordenador para trabajar y esto ha cumplido su función;)