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

Suse hasst meine Maus..

OP
Konkreter Bob

Konkreter Bob

Newbie
stulle schrieb:
wo kommt denn plötzlich deine motivation her, wenn ich fragen darf?
Purer Mitleid
Welch' Herzensgüte! :wink:

]
KEINE GARANTIE - KEINE GARANTIE - KEINE GARANTIE - KEINE GARANTIE - KEINE GARANTIE

Aber sag trotzdem Amen, Bruder.
Es kann eigentlich nix schief gehen.
Was passieren kann ist, das KDE nicht mehr starten möchte weil in der xorg.conf etwas steht was es daran hindert.

OK, das passt scho'.

Also los! (Ach ja, Amen!)

Nochmal der Link für die Anderen zu deinem 'howto': http://www.linux-club.de/ftopic15176-s10.html
(Ach bin ich nett heute.. :roll: )

RPM's installiert.
Die mittlerweile 6-te Kopie von xorg.conf angelegt.
Mit 'cat' (was macht es eigentlich, werde aus manual nicht schlau) den event nachgeschaut. Da steht unter anderem:
Code:
I: Bus=0003 Vendor=046d Product=c50e Version=2510
N: Name="Logitech USB RECEIVER"
P: Phys=usb-0000:00:1d.1-2/input0
H: Handlers=mouse2 event3
B: EV=7
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
Scheint 'event3' zu sein.

Nun ist xorg dran!
before:
Code:
Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "12"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "Logitech USB RECEIVER"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

after:
Code:
Section "InputDevice"
  Driver       "evdev"
  Identifier   "Mouse[1]"
  Option       "Device" "/dev/input/event3"
  Option       "Name" "Logitech MX1000"
EndSection

Und
Code:
InputDevices "/dev/input/event3"
mit eingetragen. Gleich nach .../event2. Egal, wird wohl seinen Zweck haben.

Nun zu Xmodmap (/etc/X11/Xmodmap).
Hmm...
Da steht unter anderem:
Code:
!! Please note: the natural way to assign keys are their keycodes.
!! The only problem is, that keycodes do depend on the architecture,
!! therefore keysymbols are used herein.  This has the disadvantage
!! that this file can only be called once with the program xmodmap.
!! To get keycodes of the keys use the program xev.
!! The system Xmodmap is /usr/X11R6/lib/X11/Xmodmap, have a look.
Alle Zeilen sind auskommentiert und keine 'pointer'.
Ich mach' erstmal weiter, sag Bescheid ob's Mist ist.

So, habe die 'pointer = 3 ..' - Zeile einfach hinten dran gehängt.
Installiere nun xbindkeys-1.7.2.tar.gz

..Stunde später..
komme nicht mehr weiter..
Kannst du mit den Fehlermeldungen was anfangen?
Code:
linux:/etc/xbindkeys-1.7.2 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... gawk
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for XCreateWindow in -lX11... no
configure: WARNING: Xbindkeys depends on the X11 libraries!
checking libguile.h usability... yes
checking libguile.h presence... yes
checking for libguile.h... yes
checking for scm_boot_guile in -lguile... yes
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for strcasecmp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
linux:/etc/xbindkeys-1.7.2 # make
gcc -DHAVE_CONFIG_H -I. -I. -I.    -g -O2  -DFORK_FLAG=1 -DGUILE_FLAG=1 -I. -Wall -g -O2 -c xbindkeys.c
xbindkeys.c:21:22: X11/Xlib.h: Datei oder Verzeichnis nicht gefunden
In file included from xbindkeys.c:29:
xbindkeys.h:21:22: X11/Xlib.h: Datei oder Verzeichnis nicht gefunden
In file included from xbindkeys.c:29:
xbindkeys.h:24: error: syntax error before '*' token
In file included from xbindkeys.c:30:
keys.h:21:22: X11/Xlib.h: Datei oder Verzeichnis nicht gefunden
In file included from xbindkeys.c:30:
keys.h:39: error: syntax error before "KeySym"
keys.h:39: warning: no semicolon at end of struct or union
keys.h:39: warning: no semicolon at end of struct or union
keys.h:40: warning: type defaults to `int' in declaration of `code'
keys.h:40: warning: data definition has no type or storage class
keys.h:42: error: syntax error before '}' token
keys.h:43: warning: type defaults to `int' in declaration of `key'
keys.h:43: warning: data definition has no type or storage class
keys.h:47: error: syntax error before '}' token
keys.h:48: warning: type defaults to `int' in declaration of `Keys_t'
keys.h:48: warning: data definition has no type or storage class
keys.h:54: error: syntax error before "KeySym"
keys.h:58: error: syntax error before '*' token
keys.h:60: error: syntax error before '*' token
keys.h:62: error: syntax error before '*' token
keys.h:64: error: syntax error before '*' token
keys.h:66: error: syntax error before '*' token
keys.h:69: error: syntax error before '*' token
keys.h:71: error: syntax error before '*' token
keys.h:77: error: syntax error before '*' token
keys.h:77: warning: type defaults to `int' in declaration of `keys'
keys.h:77: warning: data definition has no type or storage class
In file included from xbindkeys.c:32:
get_key.h:21:22: X11/Xlib.h: Datei oder Verzeichnis nicht gefunden
In file included from xbindkeys.c:32:
get_key.h:23: error: syntax error before '*' token
In file included from xbindkeys.c:33:
grab_key.h:21: error: syntax error before '*' token
grab_key.h:23: error: syntax error before '*' token
xbindkeys.c:40: error: syntax error before '*' token
xbindkeys.c:42: error: syntax error before '*' token
xbindkeys.c:42: warning: type defaults to `int' in declaration of `start'
xbindkeys.c:42: warning: data definition has no type or storage class
xbindkeys.c:43: error: syntax error before '*' token
xbindkeys.c:44: error: syntax error before '*' token
xbindkeys.c:50: error: syntax error before '*' token
xbindkeys.c:50: warning: type defaults to `int' in declaration of `local_dpy'
xbindkeys.c:50: warning: data definition has no type or storage class
xbindkeys.c: In function `inner_main':
xbindkeys.c:63: error: `Display' undeclared (first use in this function)
xbindkeys.c:63: error: (Each undeclared identifier is reported only once
xbindkeys.c:63: error: for each function it appears in.)
xbindkeys.c:63: error: `d' undeclared (first use in this function)
xbindkeys.c:79: warning: implicit declaration of function `XDisplayName'
xbindkeys.c:79: warning: assignment makes pointer from integer without a cast
xbindkeys.c: At top level:
xbindkeys.c:152: error: syntax error before '*' token
xbindkeys.c:154: warning: return type defaults to `int'
xbindkeys.c: In function `start':
xbindkeys.c:155: error: `Display' undeclared (first use in this function)
xbindkeys.c:155: error: `d' undeclared (first use in this function)
xbindkeys.c:158: warning: implicit declaration of function `XOpenDisplay'
xbindkeys.c:168: warning: implicit declaration of function `XAllowEvents'
xbindkeys.c:168: error: `AsyncBoth' undeclared (first use in this function)
xbindkeys.c:168: error: `CurrentTime' undeclared (first use in this function)
xbindkeys.c:170: warning: implicit declaration of function `ScreenCount'
xbindkeys.c:172: warning: implicit declaration of function `XSelectInput'
xbindkeys.c:172: warning: implicit declaration of function `RootWindow'
xbindkeys.c:173: error: `KeyPressMask' undeclared (first use in this function)
xbindkeys.c:173: error: `KeyReleaseMask' undeclared (first use in this function)
xbindkeys.c:173: error: `PointerMotionMask' undeclared (first use in this function)
xbindkeys.c: At top level:
xbindkeys.c:182: error: syntax error before '*' token
xbindkeys.c: In function `end_it_all':
xbindkeys.c:186: error: `d' undeclared (first use in this function)
xbindkeys.c:188: warning: implicit declaration of function `XUngrabKey'
xbindkeys.c:188: error: `AnyKey' undeclared (first use in this function)
xbindkeys.c:188: error: `AnyModifier' undeclared (first use in this function)
xbindkeys.c:189: warning: implicit declaration of function `XUngrabButton'
xbindkeys.c:189: error: `AnyButton' undeclared (first use in this function)
xbindkeys.c:192: warning: implicit declaration of function `XCloseDisplay'
xbindkeys.c: At top level:
xbindkeys.c:198: error: syntax error before '*' token
xbindkeys.c: In function `adjust_display':
xbindkeys.c:200: warning: implicit declaration of function `DisplayString'
xbindkeys.c:200: error: `xany' undeclared (first use in this function)
xbindkeys.c:200: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
xbindkeys.c:201: error: `XWindowAttributes' undeclared (first use in this function)
xbindkeys.c:201: error: syntax error before "attr"
xbindkeys.c:205: warning: format argument is not a pointer (arg 3)
xbindkeys.c:207: warning: implicit declaration of function `XGetWindowAttributes'
xbindkeys.c:207: error: `attr' undeclared (first use in this function)
xbindkeys.c:210: warning: implicit declaration of function `XScreenNumberOfScreen'
xbindkeys.c: At top level:
xbindkeys.c:225: error: syntax error before '*' token
xbindkeys.c: In function `event_loop':
xbindkeys.c:227: error: `XEvent' undeclared (first use in this function)
xbindkeys.c:227: error: syntax error before "e"
xbindkeys.c:230: warning: implicit declaration of function `XSetErrorHandler'
xbindkeys.c:230: error: `XErrorHandler' undeclared (first use in this function)
xbindkeys.c:230: error: syntax error before "null_X_error"
xbindkeys.c:232: error: `True' undeclared (first use in this function)
xbindkeys.c:234: warning: implicit declaration of function `XNextEvent'
xbindkeys.c:234: error: `d' undeclared (first use in this function)
xbindkeys.c:234: error: `e' undeclared (first use in this function)
xbindkeys.c:238: error: `KeyPress' undeclared (first use in this function)
xbindkeys.c:250: error: request for member `type' in something not a structure or union
xbindkeys.c:250: error: request for member `event_type' in something not a structure or union
xbindkeys.c:252: warning: implicit declaration of function `XKeysymToKeycode'
xbindkeys.c:252: error: request for member `key' in something not a structure or union
xbindkeys.c:253: error: request for member `modifier' in something not a structure or union
xbindkeys.c:261: error: request for member `type' in something not a structure or union
xbindkeys.c:261: error: request for member `event_type' in something not a structure or union
xbindkeys.c:263: error: request for member `key' in something not a structure or union
xbindkeys.c:264: error: request for member `modifier' in something not a structure or union
xbindkeys.c:274: error: `KeyRelease' undeclared (first use in this function)
xbindkeys.c:286: error: request for member `type' in something not a structure or union
xbindkeys.c:286: error: request for member `event_type' in something not a structure or union
xbindkeys.c:288: error: request for member `key' in something not a structure or union
xbindkeys.c:289: error: request for member `modifier' in something not a structure or union
xbindkeys.c:297: error: request for member `type' in something not a structure or union
xbindkeys.c:297: error: request for member `event_type' in something not a structure or union
xbindkeys.c:299: error: request for member `key' in something not a structure or union
xbindkeys.c:300: error: request for member `modifier' in something not a structure or union
xbindkeys.c:310: error: `ButtonPress' undeclared (first use in this function)
xbindkeys.c:319: error: `Button1Mask' undeclared (first use in this function)
xbindkeys.c:319: error: `Button2Mask' undeclared (first use in this function)
xbindkeys.c:320: error: `Button3Mask' undeclared (first use in this function)
xbindkeys.c:320: error: `Button4Mask' undeclared (first use in this function)
xbindkeys.c:320: error: `Button5Mask' undeclared (first use in this function)
xbindkeys.c:324: error: request for member `type' in something not a structure or union
xbindkeys.c:324: error: request for member `event_type' in something not a structure or union
xbindkeys.c:326: error: request for member `key' in something not a structure or union
xbindkeys.c:327: error: request for member `modifier' in something not a structure or union
xbindkeys.c:337: error: `ButtonRelease' undeclared (first use in this function)
xbindkeys.c:351: error: request for member `type' in something not a structure or union
xbindkeys.c:351: error: request for member `event_type' in something not a structure or union
xbindkeys.c:353: error: request for member `key' in something not a structure or union
xbindkeys.c:354: error: request for member `modifier' in something not a structure or union
xbindkeys.c: At top level:
xbindkeys.c:373: error: syntax error before '*' token
xbindkeys.c: In function `catch_HUP_signal':
xbindkeys.c:403: warning: implicit declaration of function `XDisplayKeycodes'
xbindkeys.c:410: error: `AnyKey' undeclared (first use in this function)
xbindkeys.c:410: error: `AnyModifier' undeclared (first use in this function)
xbindkeys.c: At top level:
xbindkeys.c:374: warning: `null_X_error' defined but not used
make: *** [xbindkeys.o] Fehler 1

Einige Pakete habe ich mit YAST nachinstalliert, dann schien configure durchzulaufen. Aber 'make' will nun gar nicht mehr.
Bin gespannt, was ich jetzt falsch gemacht habe. :wtf:
 

stulle

Hacker
'/etc/x11/Xmodmap'
So, habe die 'pointer = 3 ..' - Zeile einfach hinten dran gehängt.
Nicht ganz hinten dran hängen, sondern noch vor der Zeile 'End of .Xmodmap'

InputDevices "/dev/input/event3" mit eingetragen. Gleich nach .../event2. Egal, wird wohl seinen Zweck haben.
Wenn du kein Gerät hast das auf event2 hört, würde ich das auch streichen. Ich hatte immer event0 dort stehen und habe das in event3 abgeändert.
Weiß nicht ob das wichtig ist, bei mir ist es zumindest so.

Kannst du mit den Fehlermeldungen was anfangen?
Das fragst du den richtigen. Wo ich doch selber immer heilfroh bin wenn der Linux-Dreisatz funktionieren würde.
Ich habe ein RPM gefunden. Keine ahnung mehr woher ich das habe. Ich finde es zumindest nicht mehr. Mein smart sagt mir es sei von suser-guru, finde es dort aber nicht. Ich glaube ich habe mittlerweile ein Debian-Paket in RPM umgewandelt.
Ich habe dir das mal hierhin kopiert:
http://www.captstulle.50g.com/xbindkeys-1.7.1-2.i386.rpm
Damit sollte es doch funktionieren.
 

stulle

Hacker
Ich sehe gerade das es einen Error gibt wenn man meinen obigen Link verfolgt.
Geht aber trotzdem.
In der Fehlermeldung steht nochmals der Link. Komischerweise kann hierüber dann das RPM heruntergeladen werden.
Eigenartig, eigenartig.
 
OP
Konkreter Bob

Konkreter Bob

Newbie
Puh, da bin ich wieder. Hab' heute Susi gestartet und die GUI öffnet sich nicht. Musste die alte xorg.conf zurückholen. Nach einem restart ging wieder. Irgendwas an den Einstellungen hat ihr nicht gepasst. Eine Idee?

stulle schrieb:
'/etc/x11/Xmodmap'
So, habe die 'pointer = 3 ..' - Zeile einfach hinten dran gehängt.
Nicht ganz hinten dran hängen, sondern noch vor der Zeile 'End of .Xmodmap'
Wo liegt der Unterschied? Die Zeile ist sowieso auskommentiert. Oder sollte sie nicht sein?
Hab's trotzdem gemacht. :)

InputDevices "/dev/input/event3" mit eingetragen. Gleich nach .../event2. Egal, wird wohl seinen Zweck haben.
Wenn du kein Gerät hast das auf event2 hört, würde ich das auch streichen. Ich hatte immer event0 dort stehen und habe das in event3 abgeändert.
Weiß nicht ob das wichtig ist, bei mir ist es zumindest so.
Keine Ahnung ob bei mir was auf event2 hört. Wird wohl, wenn's da steht.:)

Mein smart sagt mir es sei von suser-guru, finde es dort aber nicht. Ich glaube ich habe mittlerweile ein Debian-Paket in RPM umgewandelt.
Was ist hierbei dein 'smart'?

Ich sehe gerade das es einen Error gibt wenn man meinen obigen Link verfolgt.
Geht aber trotzdem.
In der Fehlermeldung steht nochmals der Link. Komischerweise kann hierüber dann das RPM heruntergeladen werden.
Eigenartig, eigenartig.
In der Fehlermeldung stand, dass keine nicht-html Seiten von aussen verlinkt werden dürfen, wenn ich das richtig in Erinnerung habe. Kann die Meldung nicht mehr reproduzieren. Funzt jetzt auf Anhieb.

Ok, erstmal weiter:
Habe die Datei .xbindkeysrc in home erstellt. Und erstmal mit deinen Vorgaben gefüllt. Bei der Gelegenheit: tut es not, dass Susi für jede Datei eine Sicherungsdatei anlegt? Kann man es abstellen? Mach alles etwas unübersichtlich.

Und weiter verstehe ich das nicht so ganz: :oops:
jetzt kopierst du /usr/lib/X11/xinit/xinitrc nach ~/.xinitrc und trägst dort
Code:
xbindkeys -f ~/.xbindkeysrc
ein
Soll ich xinitrc nach root kopieren und als .xinitrc umbenennen?
Und wo in der Datei wird dann der Kode eingetragen?
Oder liege ich ganz falsch?

Schon so gut wie geschafft, oder? :lol:
 

stulle

Hacker
Entschuldige das ich mich mal wieder nicht gemeldet habe. Aber ich war im Urlaub, dann ging der Rechner nicht und dann habe ich ziemlich lang an dem Problem rumgeprokelt.
Aber nun scheint es zu laufen, und zwar dauerhaft!!

Meine xorg.conf sieht nun so aus:
(Auszüge:)
Code:
Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "12"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "Logitech USB RECEIVER"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Driver       "evdev"
  Identifier   "Mouse[3]"
  Option       "Device" "/dev/input/event2"
  Option       "Name" "mx"
EndSection

Code:
Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[3]" "CorePointer"
  InputDevice  "Mouse[1]" "SendCoreEvents"
  Screen       "Screen[0]"
EndSection


Allerdings geht es nicht mit jeder KDE-Version. Ich habe zwar immer KDE 3.5.3, aber die Unterversionen unterscheiden sich wahrscheinlich.
Das war dann auch das Problem das es 'manchmal geht und manchmal nicht'
Nun habe ich KDE 3.5.3-21.1@i586, damit geht es auf jeden Fall.
Ich habe die base-list aus dem smart und apt genommen, damit es nicht ausversehen geändert wird.

Probier es mal aus und kommentiere es bitte.
 
Oben