• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Suse 10 / Razer Diamondback / mousemap

Nibelunge

Newbie
Hallo Linux-Gemeinde :D

Nachdem ich mir alle Beiträge zum Thema "Wie kriege ich mein/e Maus/rad zum laufen" reingezogen habe und die wichtigsten Infos für mich rausgezogen habe, werde ich hier Stück für Stück wiedergeben was ich gemacht habe und ob es gefunzt hat.

Da es offensichtlich erhebliche Unterschiede bei der Konfiguration gibt, habe ich die wichtigsten Infos oben angegeben (Suse 10 mit einer Razer-Mouse (Diamondback) und als Proggi mousemap).

Auch die Angaben, wer, was, wie gemacht und eingetragen hat, sind ziemlich verwirrend. Der eine schreibt zur Installation von mousemap z.B. das die Datei "mousemap" nach /usr/bin kopiert werden muß und der nächste das er sie nach /usr/bin/local kopiert hat. Unklar war mir auch, ob ich nun Änderungen in der XF86Config oder der xorg.conf (beide findet man in /etc/X11/) vornehmen mußte. Nach meinen Beobachtungen wurden beide Dateien geändert wenn man die Mousekonfiguration mit sax2 verändert hat. Da aber bei neuen Distibutionen immer die Rede von der xorg.conf war werde ich diese bearbeiten.

Ich gehe mal von Konfiguration als "root" aus.

1. mousemap runterladen http://www.antikoerperchen.de/files/mousemap-v0.4.tar.gz
und im root-Verzeichnis entpacken. Dann die Datei "mousemap" nach /usr/bin kopieren

2. xorg.conf bearbeiten (findet man in /etc/X11/), welche dann (in meinem Fall!) so aussieht.

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Resolution" "800"
Option "Buttons" "9"
Option "Device" "/dev/input/mice"
Option "Name" "Razer Diamondback Optical Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "6 7"
EndSection

3. Die xinitrc bearbeiten (findet man in etc/X11/xinit/)

Hier muß die Zeile mousemap Left Right "1 2 3 6 7 4 5" eingefügt werden.

#start some stuff
#mousemap Left Right "1 2 3 6 7 4 5"


#!/bin/bash
#
# Sample .xinitrc for SuSE Linux
# This script is called from 'startx' when you start an X session
#

#
# In case everything goes wrong, we at least fall back to a plain xterm
#
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO

#
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
#
test -n "$BASH" && set +o posix
no_exit_on_failed_exec=1
type shopt > /dev/null 2>&1 && shopt -s execfail
set +e > /dev/null 2>&1

#
# This should be the default
#
export TERM=xterm

#
# choose a window manager
#
if test -n "$WINDOWMANAGER" ; then
WINDOWMANAGER=`type -p $WINDOWMANAGER`
fi
if test -z "$WINDOWMANAGER" ; then
if test -x /usr/X11R6/bin/kde ; then
WINDOWMANAGER=/usr/X11R6/bin/kde
elif test -x /usr/X11R6/bin/startkde ; then
WINDOWMANAGER=/usr/X11R6/bin/startkde
elif test -x /usr/X11R6/bin/fvwm2 ; then
WINDOWMANAGER=/usr/X11R6/bin/fvwm2
elif test -x /usr/X11R6/bin/wmlist ; then
for i in `/usr/X11R6/bin/wmlist` ; do
WINDOWMANAGER=`type -p $i`
test -n "$WINDOWMANAGER" && break
done
elif test -x /usr/X11R6/bin/twm ; then
WINDOWMANAGER=/usr/X11R6/bin/twm
fi
fi

if test -z "$WINDOWMANAGER" ; then
echo "Error: Unable to find a window manager. Please make sure you installed one!"
echo "Exiting..."
xmessage -timeout 10 -default okay -center -file - <<-EOF
Error: Unable to find a window manager. Please make sure you installed one!
Exiting...
EOF
exit 1
fi

# add dbus-launch if found
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ]; then
WINDOWMANAGER="$dbuslaunch --sh-syntax --exit-with-session $WINDOWMANAGER"
fi

#
# Load system and users resources if not already done
# (XSESSION_IS_UP set by xdm in $XLIBDIR/xdm/Xsession)
#
if test "$XSESSION_IS_UP" != "yes" ; then
XLIBDIR=/usr/X11R6/lib/X11
test -r $XLIBDIR/Xmodmap && xmodmap $XLIBDIR/Xmodmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
test -r $XLIBDIR/Xresources && xrdb -load -retain $XLIBDIR/Xresources
test -r $HOME/.Xdefaults && xrdb -I$HOME -merge $HOME/.Xdefaults
test -r $HOME/.Xresources && xrdb -I$HOME -merge $HOME/.Xresources
fi

# Start the XIM server
XIMFILE=/etc/X11/xim
test -r $HOME/.xim && XIMFILE=$HOME/.xim
test -r $XIMFILE && source $XIMFILE

# Enable Numlock if set
test -r /var/run/numlock-on -a -x /usr/X11R6/bin/numlock && /usr/X11R6/bin/numlock

# Disable new Xcursor themes if none is specified resp. located in $HOME
# (use "unset XCURSOR_CORE" to enable them again later)
#if [ "x$XCURSOR_THEME" == "x" -a ! -d $HOME/.icons ]; then
# export XCURSOR_CORE=true
#else
# unset XCURSOR_CORE
#fi

# load nvidia settings
if [ -x /usr/bin/nvidia-settings -a -r $HOME/.nvidia-settings-rc ]; then
/usr/bin/nvidia-settings --load-config-only &> /dev/null &
fi

echo "$WINDOWMANAGER" | grep -q twm && xsetroot -solid darkslateblue

#
# Uncomment next line to activate asking for ssh passphrase
#
# ssh-add

#
# Add your own lines here...
#

#start some stuff
#mousemap Left Right "1 2 3 6 7 4 5"


# day planer deamon
# pland &

#
# finally start the window manager
#
exec $WINDOWMANAGER

# call failsafe
exit 0
 
OP
Nibelunge

Nibelunge

Newbie
kann mir jemand sagen ob das bisher gemachte richtig war ?

Unter Konquero funktioniert das Mouserad unter Firefox hat es die Funktion "Button vor" bzw. "Button zurück" des Browsers
 
OP
Nibelunge

Nibelunge

Newbie
Nachdem ich noch mal alle Beiträge zum Thema Mouseräder gelesen habe, habe ich einfach mal auf Verdacht den folgenden Befehl eingegeben

xmodmap -e "pointer = 1 2 3 6 7 4 5 "

Hierbei kam :roll: natürlich die Fehlermeldung, daß die Mouse 9 und nicht 7 Tasten hat.

Also habe ich den Befehl erweitert und einfach mal

xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9" eingegeben und siehe da, keine Fehlermeldung und die Mouse scrollt ohne Ende :D

Hier noch mal meine aktuelle

xorg.conf

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "9"
Option "Device" "/dev/input/mice"
Option "Name" "Razer Diamondback Optical Mouse"
Option "Protocol" "explorerps/2"
Option "Resolution" "800"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "6 7"
EndSection

und die xinitrc

#!/bin/bash
#
# Sample .xinitrc for SuSE Linux
# This script is called from 'startx' when you start an X session
#

#
# In case everything goes wrong, we at least fall back to a plain xterm
#
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO

#
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
#
test -n "$BASH" && set +o posix
no_exit_on_failed_exec=1
type shopt > /dev/null 2>&1 && shopt -s execfail
set +e > /dev/null 2>&1

#
# This should be the default
#
export TERM=xterm

#
# choose a window manager
#
if test -n "$WINDOWMANAGER" ; then
WINDOWMANAGER=`type -p $WINDOWMANAGER`
fi
if test -z "$WINDOWMANAGER" ; then
if test -x /usr/X11R6/bin/kde ; then
WINDOWMANAGER=/usr/X11R6/bin/kde
elif test -x /usr/X11R6/bin/startkde ; then
WINDOWMANAGER=/usr/X11R6/bin/startkde
elif test -x /usr/X11R6/bin/fvwm2 ; then
WINDOWMANAGER=/usr/X11R6/bin/fvwm2
elif test -x /usr/X11R6/bin/wmlist ; then
for i in `/usr/X11R6/bin/wmlist` ; do
WINDOWMANAGER=`type -p $i`
test -n "$WINDOWMANAGER" && break
done
elif test -x /usr/X11R6/bin/twm ; then
WINDOWMANAGER=/usr/X11R6/bin/twm
fi
fi

if test -z "$WINDOWMANAGER" ; then
echo "Error: Unable to find a window manager. Please make sure you installed one!"
echo "Exiting..."
xmessage -timeout 10 -default okay -center -file - <<-EOF
Error: Unable to find a window manager. Please make sure you installed one!
Exiting...
EOF
exit 1
fi

# add dbus-launch if found
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ]; then
WINDOWMANAGER="$dbuslaunch --sh-syntax --exit-with-session $WINDOWMANAGER"
fi

#
# Load system and users resources if not already done
# (XSESSION_IS_UP set by xdm in $XLIBDIR/xdm/Xsession)
#
if test "$XSESSION_IS_UP" != "yes" ; then
XLIBDIR=/usr/X11R6/lib/X11
test -r $XLIBDIR/Xmodmap && xmodmap $XLIBDIR/Xmodmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
test -r $XLIBDIR/Xresources && xrdb -load -retain $XLIBDIR/Xresources
test -r $HOME/.Xdefaults && xrdb -I$HOME -merge $HOME/.Xdefaults
test -r $HOME/.Xresources && xrdb -I$HOME -merge $HOME/.Xresources
fi

# Start the XIM server
XIMFILE=/etc/X11/xim
test -r $HOME/.xim && XIMFILE=$HOME/.xim
test -r $XIMFILE && source $XIMFILE

# Enable Numlock if set
test -r /var/run/numlock-on -a -x /usr/X11R6/bin/numlock && /usr/X11R6/bin/numlock

# Disable new Xcursor themes if none is specified resp. located in $HOME
# (use "unset XCURSOR_CORE" to enable them again later)
#if [ "x$XCURSOR_THEME" == "x" -a ! -d $HOME/.icons ]; then
# export XCURSOR_CORE=true
#else
# unset XCURSOR_CORE
#fi

# load nvidia settings
if [ -x /usr/bin/nvidia-settings -a -r $HOME/.nvidia-settings-rc ]; then
/usr/bin/nvidia-settings --load-config-only &> /dev/null &
fi

echo "$WINDOWMANAGER" | grep -q twm && xsetroot -solid darkslateblue

#
# Uncomment next line to activate asking for ssh passphrase
#
# ssh-add

#
# Add your own lines here...
#

#start some stuff
#mousemap "1 2 3 6 7 4 5 8 9"

# day planer deamon
# pland &

#
# finally start the window manager
#
exec $WINDOWMANAGER

# call failsafe
exit 0
 
OP
Nibelunge

Nibelunge

Newbie
Tja, das Problem besteht nach einem Neustart weiterhin :(

Muß ich den Befehl xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9" jetzt jedesmal neu eigeben oder was kann ich machen um ihn zu "automatisieren ?
 
OP
Nibelunge

Nibelunge

Newbie
Hat noch keiner eine Idee woran es liegen könnte das ich den Befehl nach jedem reboot neu eingeben muß ? :(
 

Grothesk

Ultimate Guru
Füge den Befehl mal versuchsweise an das Ende der
/etc/init.d/boot.local
ein. Dann wird der beim booten ausgeführt.
 
OP
Nibelunge

Nibelunge

Newbie
Grothesk schrieb:
Füge den Befehl mal versuchsweise an das Ende der
/etc/init.d/boot.local
ein. Dann wird der beim booten ausgeführt.

Das wäre noch eine Maßnahme :) Probiere ich gleich mal aus DANKÖÖÖ :)
 
OP
Nibelunge

Nibelunge

Newbie
Grothesk schrieb:
Füge den Befehl mal versuchsweise an das Ende der
/etc/init.d/boot.local
ein. Dann wird der beim booten ausgeführt.

Hat leider nichts gebracht :( die Datei sieht jetzt so aus

#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink <werner@suse.de>, 1996
# Burchard Steinbild, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9"

Im Moment ist auf dem Scrollrad die Vor- bzw. Zurückfunktion des Browser (Firefox).

Hier noch mal meine xorg.conf
# /.../
# SaX generated X11 config file
# Created on: 2005-10-21T18:29:18+0200.
#
# Version: 7.1
# Contact: Marcus Schaefer <sax@suse.de>, 2002
#
# Automatically generated by [ISaX] (7.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/mouse"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
InputDevices "/dev/pointer0"
InputDevices "/dev/pointer1"
InputDevices "/dev/pointer2"
InputDevices "/dev/pointer3"
EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection

Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
EndSection

Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "de,de"
Option "XkbModel" "pc105"
Option "XkbOptions" "grp:alt_shift_toggle"
Option "XkbRules" "xfree86"
Option "XkbVariant" "xfree86"
EndSection

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "9"
Option "Device" "/dev/input/mice"
Option "Name" "Razer Diamondback Optical Mouse"
Option "Protocol" "explorerps/2"
Option "Resolution" "800"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
DisplaySize 320 240
HorizSync 28-70
Identifier "Monitor[0]"
ModelName "76E77E"
Option "DPMS"
VendorName "SAMTRON"
VertRefresh 50-160
UseModes "Modes[0]"
EndSection

Section "Modes"
Identifier "Modes[0]"
Modeline "1024x768" 86.18 1024 1056 1168 1360 768 769 772 803
Modeline "800x600" 73.98 800 848 936 1072 600 601 604 639
Modeline "800x600" 66.71 800 848 936 1072 600 601 604 635
Modeline "800x600" 58.73 800 840 928 1056 600 601 604 632
Modeline "800x600" 51.73 800 840 928 1056 600 601 604 628
Modeline "800x600" 44.13 800 840 920 1040 600 601 604 624
Modeline "800x600" 36.88 800 832 912 1024 600 601 604 621
Modeline "768x576" 67.79 768 816 896 1024 576 577 580 613
Modeline "768x576" 61.21 768 816 896 1024 576 577 580 610
Modeline "768x576" 53.75 768 808 888 1008 576 577 580 606
Modeline "768x576" 47.41 768 808 888 1008 576 577 580 603
Modeline "768x576" 40.41 768 800 880 992 576 577 580 599
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 57.18 640 680 752 864 480 481 484 517
Modeline "640x480" 51.43 640 680 744 848 480 481 484 514
Modeline "640x480" 46.80 640 680 744 848 480 481 484 511
Modeline "640x480" 42.22 640 680 744 848 480 481 484 508
Modeline "640x480" 36.97 640 672 736 832 480 481 484 505
Modeline "640x480" 32.64 640 672 736 832 480 481 484 503
Modeline "640x480" 27.74 640 664 728 816 480 481 484 500
Modeline "640x480" 23.06 640 656 720 800 480 481 484 497
EndSection

Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "768x576" "640x480"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection

Section "Device"
BoardName "GeForce 6600/GeForce 6600 GT"
BusID "1:0:0"
Driver "nvidia"
Identifier "Device[0]"
Option "usevnc" "no"
Option "XaaNoOffScreenPixmaps" "on"
Option "XaaNoPixmapCache" "on"
#Option "NvAGP" "2"
#Option "NvAGP" "0"
#Option "NvAGP" "3"
#Option "NvAGP" "1"
Screen 0
VendorName "NVidia"
EndSection

Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen[0]"
EndSection

Section "DRI"
Group "video"
Mode 0660
EndSection

Section "Extensions"
EndSection

und die xinitrc

#!/bin/bash
#
# Sample .xinitrc for SuSE Linux
# This script is called from 'startx' when you start an X session
#

#
# In case everything goes wrong, we at least fall back to a plain xterm
#
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO

#
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
#
test -n "$BASH" && set +o posix
no_exit_on_failed_exec=1
type shopt > /dev/null 2>&1 && shopt -s execfail
set +e > /dev/null 2>&1

#
# This should be the default
#
export TERM=xterm

#
# choose a window manager
#
if test -n "$WINDOWMANAGER" ; then
WINDOWMANAGER=`type -p $WINDOWMANAGER`
fi
if test -z "$WINDOWMANAGER" ; then
if test -x /usr/X11R6/bin/kde ; then
WINDOWMANAGER=/usr/X11R6/bin/kde
elif test -x /usr/X11R6/bin/startkde ; then
WINDOWMANAGER=/usr/X11R6/bin/startkde
elif test -x /usr/X11R6/bin/fvwm2 ; then
WINDOWMANAGER=/usr/X11R6/bin/fvwm2
elif test -x /usr/X11R6/bin/wmlist ; then
for i in `/usr/X11R6/bin/wmlist` ; do
WINDOWMANAGER=`type -p $i`
test -n "$WINDOWMANAGER" && break
done
elif test -x /usr/X11R6/bin/twm ; then
WINDOWMANAGER=/usr/X11R6/bin/twm
fi
fi

if test -z "$WINDOWMANAGER" ; then
echo "Error: Unable to find a window manager. Please make sure you installed one!"
echo "Exiting..."
xmessage -timeout 10 -default okay -center -file - <<-EOF
Error: Unable to find a window manager. Please make sure you installed one!
Exiting...
EOF
exit 1
fi

# add dbus-launch if found
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ]; then
WINDOWMANAGER="$dbuslaunch --sh-syntax --exit-with-session $WINDOWMANAGER"
fi

#
# Load system and users resources if not already done
# (XSESSION_IS_UP set by xdm in $XLIBDIR/xdm/Xsession)
#
if test "$XSESSION_IS_UP" != "yes" ; then
XLIBDIR=/usr/X11R6/lib/X11
test -r $XLIBDIR/Xmodmap && xmodmap $XLIBDIR/Xmodmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
test -r $XLIBDIR/Xresources && xrdb -load -retain $XLIBDIR/Xresources
test -r $HOME/.Xdefaults && xrdb -I$HOME -merge $HOME/.Xdefaults
test -r $HOME/.Xresources && xrdb -I$HOME -merge $HOME/.Xresources
fi

# Start the XIM server
XIMFILE=/etc/X11/xim
test -r $HOME/.xim && XIMFILE=$HOME/.xim
test -r $XIMFILE && source $XIMFILE

# Enable Numlock if set
test -r /var/run/numlock-on -a -x /usr/X11R6/bin/numlock && /usr/X11R6/bin/numlock

# Disable new Xcursor themes if none is specified resp. located in $HOME
# (use "unset XCURSOR_CORE" to enable them again later)
#if [ "x$XCURSOR_THEME" == "x" -a ! -d $HOME/.icons ]; then
# export XCURSOR_CORE=true
#else
# unset XCURSOR_CORE
#fi

# load nvidia settings
if [ -x /usr/bin/nvidia-settings -a -r $HOME/.nvidia-settings-rc ]; then
/usr/bin/nvidia-settings --load-config-only &> /dev/null &
fi

echo "$WINDOWMANAGER" | grep -q twm && xsetroot -solid darkslateblue

#
# Uncomment next line to activate asking for ssh passphrase
#
# ssh-add

#
# Add your own lines here...
#

#start some stuff
#mousemap "1 2 3 6 7 4 5 8 9"

# day planer deamon
# pland &

#
# finally start the window manager
#
exec $WINDOWMANAGER

# call failsafe
exit 0
 

delta544

Newbie
Erst mal grossen Dank an Niebelunge. Durch deine hervorragenden Threat ist es mir gelungen meine Logitech MX700 an mein Suse10 korrekt anzubinden.
Als Neuanfänger war es für mich relativ einfach deine Schritte nach zu vollziehen.
Du hast aber in der xinirc einen kleinen Fehler begangen, denn das # ist ein Kommentarzeichen, das heisst, fügst du ein # ein bedeutet das das diese Zeile bei ausführen des Scripts übergangen wird.
Also einfach löschen und schon funzt es.


Mfg
Delta544
 
Also ehrlich, ich find das alles viel zu kompliziert: um die zusätzlichen Mausbuttons zu nutzen benutze ich folgendes:

Code:
x11-input-evdev
imwheel

In meiner xorg.xon beschränkt sich die mauskonfiguration damit auf ein simples:
Code:
Section "InputDevice"
        Identifier      "OpticalMouse"
        Driver          "evdev"
        Option          "Device" "/dev/input/ev_mx700"
EndSection

Der evdev Treiber hat den ungemeinen Vorteil, daß er Mausrad und sämtliche Buttons quasi allein erkennt und richtig mapped, das erspart einem das gefrickel mit den endlos vielen sinnlosen xorg.conf Optionen und läßt X so ziemlich alles Nötige selbst erledigen..

um die Zusatztasten dann mit funktionen zu belegen benötigt man noch folgendes:

die ~/.imwheelrc
Code:
"mozilla*"
  None, Up,   Alt_L|Left
  None, Down, Alt_L|Right

"XTerm"
  None, Up,   Alt_L|Control_L|S
  None, Down, Alt_L|Control_L|T

"konsole*"
  None, Up,   Control_L|P
  None, Down, Control_L|N

".*"
  None, Up,   Alt_L|Left
  None, Down, Alt_L|Right
  None, Up,   Control_L|D

Zu guter letzt noch den Startbefehl, bei mir in der ~/.kde/Autostart/mousebuttons.sh bei jedem login in KDE:
Code:
imwheel -f -k -p -b "89"

and that's it

THX an den #xorg und #linux-club.de im Freenode IRC für die nötige Hilfe um das so einfach auf die Beine zu stellen.
 

delta544

Newbie
Also, ich finde ja das das kopieren eines Scripts und das Einfügen einer einzelnen Zeile einfacher ist, aber egal.

Ist die "imwheel" eine Datei die bei Suse dabei ist, oder muss man die sich irgendwo runterladen?


Mfg
Delta544
 
OP
Nibelunge

Nibelunge

Newbie
delta544 schrieb:
Erst mal grossen Dank an Niebelunge. Durch deine hervorragenden Threat ist es mir gelungen meine Logitech MX700 an mein Suse10 korrekt anzubinden.
Als Neuanfänger war es für mich relativ einfach deine Schritte nach zu vollziehen.
Du hast aber in der xinirc einen kleinen Fehler begangen, denn das # ist ein Kommentarzeichen, das heisst, fügst du ein # ein bedeutet das das diese Zeile bei ausführen des Scripts übergangen wird.
Also einfach löschen und schon funzt es.

Mfg
Delta544

Moin. Danke für den Dank ;)

So soll es ja auch sein, auch der größte Noob soll es verstehen :D

Welchen Fehler meinst du ?

Den hier ?

#mousemap "1 2 3 6 7 4 5 8 9"
 

Ivers0n

Newbie
Was mach ich bei einer usb Maus? ist Resolution die dpi Anzahl wenn ja kann ich da 2000 eintragen?

Muss ich anstatt Option "Protocol" "explorerps/2" dann Option "Protocol" "explorerusb" schreiben?
 

delta544

Newbie
Ja, mit Resolution ist die Auflösung gemeint. Ob du "explorerusb" schreiben kannst weiss ich nicht 100%, ich würd es erst mal auf der PS2 Einstellung lassen, meine Maus ist auch eine USB Maus und läuft trotzdem.

Greets
delta544
 
Oben