View previous topic :: View next topic |
Author |
Message |
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Mon Oct 17, 2005 8:24 pm Post subject: Problem mit nicht vorhandenem mouse device bei Xorg Start |
|
|
Hallo
Ich habe hier eine Bluetooth Maus, welche nur bei Bedarf genutzt wird. Wenn die Maus gebraucht wird, wird der Bluetooth Dienst gestartet und es wird dabei das device /proc/input/mouse2 angelegt, wofür in der xorg.conf die Einstellungen existieren.
Das Problem ist jetzt, daß die Maus nur funktioniert, wenn der Bluetooth Dienst vor dem Start von Xorg gestartet wird, andernfalls gibt es eine Fehlermeldung im Log, daß das device mouse2 nicht existiert, was ja auch richtig ist, wenn der Bluetooth Dienst nicht läuft.
Wie kann erreichen, daß ich den bluetooth Dienst jederzeit starten kann und daß die Maus dann sofort ohne Neustart von X funktioniert? |
|
Back to top |
|
|
platinumviper l33t
Joined: 12 Feb 2004 Posts: 657 Location: Munich, Germany
|
Posted: Mon Oct 17, 2005 8:52 pm Post subject: Re: Problem mit nicht vorhandenem mouse device bei Xorg Star |
|
|
Probier 'mal als Device /dev/input/mice, das ist ein "Sammelbecken" aller Mäuse.
platinumviper _________________ No money back garantee. In case of problems, don't call us, we call you. |
|
Back to top |
|
|
Rüpel Guru
Joined: 06 Nov 2002 Posts: 316 Location: Berlin/Germany
|
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Tue Oct 18, 2005 2:12 pm Post subject: |
|
|
Das Problem ist, daß das Device /proc/input/mouse2 erst angelegt wird, sobald die Bluetooth Maus eingeschaltet ist und dies geschieht meist spontan, nachdem X bereits gestartet wurde.
Mit /dev/input/mice würde das Problem nicht bestehen, allerdings benötige ich für alle Mäuse (Touchpad, Trackpoint, Bluetooth Maus) unterschiedliche Einstellungen in der Xorg.conf.
Ich brauche irgendeine Möglichkeit, daß /dev/input/mouse2 bestehen bleibt, oder das Xorg das Device nachlädt, sobald es auftaucht. |
|
Back to top |
|
|
Vaarsuvius Guru
Joined: 02 Dec 2004 Posts: 345
|
Posted: Tue Oct 18, 2005 2:19 pm Post subject: |
|
|
linpacman wrote: | Das Problem ist, daß das Device /proc/input/mouse2 erst angelegt wird, sobald die Bluetooth Maus eingeschaltet ist und dies geschieht meist spontan, nachdem X bereits gestartet wurde.
Mit /dev/input/mice würde das Problem nicht bestehen, allerdings benötige ich für alle Mäuse (Touchpad, Trackpoint, Bluetooth Maus) unterschiedliche Einstellungen in der Xorg.conf.
Ich brauche irgendeine Möglichkeit, daß /dev/input/mouse2 bestehen bleibt, oder das Xorg das Device nachlädt, sobald es auftaucht. |
also ich spreche mein touchpad in der xorg.conf ueber /dev/psaux an und meine bluetooth mouse ueber /dev/input/mice. |
|
Back to top |
|
|
Hilefoks l33t
Joined: 29 Jan 2003 Posts: 849 Location: Emden / Deutschland
|
Posted: Tue Oct 18, 2005 2:28 pm Post subject: |
|
|
Moin,
Eine Idee:
Erstelle einen Symlink der auf /dev/null zeigt.
Lege eine Udev-Rules an die diesen Symlink überschreibt wenn deine Maus angeschlossen ist.
Leider kann ich es bei mir gerade nicht ausprobieren da ich nicht an meinem Rechner sitze.
Mfg Hilefoks |
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Tue Oct 18, 2005 3:19 pm Post subject: |
|
|
/dev/paux ist mein Touchpad, /dev/input/mice wäre die Bluetooth Maus als auch der Trackpoint.
Die Idee mit dem Symlink habe ich gerade manuell getestet, /dev/input/mouse2 -> /dev/null angelegt, Xorg startet dann fehlerfrei, jedoch wenn ich die Maus einschalte, auch wenn der Symlink mouse2 vorher gelöscht wird, bewegt sich der Mauszeiger leider nicht. |
|
Back to top |
|
|
kronker n00b
Joined: 13 Jul 2005 Posts: 12
|
Posted: Tue Oct 18, 2005 3:43 pm Post subject: |
|
|
wie wäre es wenn du "/etc/init.d/xdm" editierst ( natärlich nur falls du einen loginmanager benutzt) und ganz oben bei
Code: |
depend() {
use xfs hotplug
}
|
dein bluetooth einfügst
Code: |
depend() {
use xfs hotplug
need bluetooth
}
|
leider weiß ich nicht ob es funktioniert, aber es könnte ..
kronker |
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Tue Oct 18, 2005 3:58 pm Post subject: |
|
|
kronker wrote: | wie wäre es wenn du "/etc/init.d/xdm" editierst ( natärlich nur falls du einen loginmanager benutzt) und ganz oben bei...
|
Was sollte das bewirken? Das laden der Bluetooth Module etc. ist kein Problem. Das Device /dev/input/mouse2 erscheint jedoch danach auch nicht, sondern erst, wenn man die Bluetooth Maus einschaltet (und diese in Reichweite ist).
Mit der Maus wird jedoch nicht ständig gearbeitet, von daher ist diese die meiste Zeit ausgeschaltet, da ein wunderbarer Trackpoint vorhanden ist. In manchen fällen soll dann jedoch doch schnell Bluetooth aktivert und die Maus eingeschaltet werden und danach sollte die Bluetooth Maus dann auch gleich funktionieren. |
|
Back to top |
|
|
kronker n00b
Joined: 13 Jul 2005 Posts: 12
|
Posted: Tue Oct 18, 2005 4:04 pm Post subject: |
|
|
aso na dann -.- (tut mir sorry) |
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Tue Oct 18, 2005 4:08 pm Post subject: |
|
|
kronker wrote: | aso na dann -.- (tut mir sorry) |
Leid tun brauch es nicht
Ich bin für jeden Lösungshinweis dankbar. |
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Fri Oct 21, 2005 2:59 pm Post subject: |
|
|
Leider habe ich noch keine Lösung gefunden. Wäre es möglich, ein weiteres Sammeldevice, beispielsweise /dev/input/btmouse zu erstellen, auf daß das nach einschalten der Bluetooth Mouse erstellte Device /dev/input/mouse2 zeigt? |
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Fri Oct 21, 2005 6:21 pm Post subject: |
|
|
Benutzt du das Touchpad mit dem synaptics-Treiber (falls das überhaupt möglich ist bei deinem Modell, k.A.)? Das Touchpad erzeugt nämlich keine /dev/input/mice-Events, wenn der synaptics-Treiber geladen ist. Das heißt, du kannst deine andere Maus einfach über /dev/input/mice auslesen und das Touchpad ist dann /dev/input/mouse0.
So schauen meine Mauseinträge in /etc/X11/xorg.conf aus:
Code: | Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
#anpassen!
Option "FingerLow" "15"
Option "FingerHigh" "30"
Option "MaxTapTime" "200"
Option "MinSpeed" "0.06"
Option "MaxSpeed" "0.12"
Option "AccelFactor" "0.0010"
EndSection
Section "InputDevice"
Identifier "USBMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "ServerLayout"
#...
InputDevice "Touchpad" "CorePointer"
InputDevice "USBMice" "SendCoreEvents"
#...
|
Mit den Option-Einträgen musst du ein bisschen experimentieren, die sind bei mir auch noch nicht ganz optimal...
Wie das mit dem Trackpoint ist, weiß ich auch nicht, aber ich habe auch kein Labor, in dem lauter mausähnliche Viecher rumlaufen... _________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong." |
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Sat Oct 22, 2005 10:20 am Post subject: |
|
|
Hallo
Das Touchpad läuft mit dem synaptics Treiber und erzeugt keine Events auf /dev/input/mice. Der Trackpoint läuft mit dem Standard mouse Treiber und erzeugt demnach Events auf /dev/input/mice.
Und die Bluetooth Maus und der Trackpoint benötigen unterschiedliche Einstellungen, von daher kann ich nicht beide auf /dev/input/mice laufen lassen.
Quote: |
Wäre es möglich, ein weiteres Sammeldevice, beispielsweise /dev/input/btmouse zu erstellen, auf daß das nach einschalten der Bluetooth Mouse erstellte Device /dev/input/mouse2 zeigt?
|
|
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Wed Dec 07, 2005 7:41 pm Post subject: |
|
|
Ich muß dieses Topic nochmal nach oben holen, da ich bisher immer noch keine Lösung für das Problem gefunden habe.
Ich bin mir sicher, daß man es mit Udev Regeln lösen kann, nur habe ich es bisher nicht geschafft. Wenn dazu jemand einen Lösungsvorschlag hat, bitte posten. |
|
Back to top |
|
|
nic0000 l33t
Joined: 25 Sep 2005 Posts: 658
|
Posted: Wed Dec 07, 2005 8:43 pm Post subject: |
|
|
linpacman wrote: | Ich muß dieses Topic nochmal nach oben holen, da ich bisher immer noch keine Lösung für das Problem gefunden habe. |
Ein unglaubliches nerviges Problem mit der X11. Gut das du den Thread wieder nach oben gepusht hast, ich wollte mir gerade eine BT Maus zulegen. Jetzt werde ich wohl eher Abstand davon nehmen.
Trotzdem viel Glück noch _________________ grüße
nico |
|
Back to top |
|
|
linpacman Tux's lil' helper
Joined: 22 Jun 2004 Posts: 124
|
Posted: Sat Mar 04, 2006 6:14 pm Post subject: |
|
|
Ich habe mich mit der Angelegenheit inzwischen mal wieder beschäftigt aber immer noch keine Lösung gefunden.
Die Frage wäre immernoch folgende:
Quote: | Wäre es möglich, ein weiteres Sammeldevice, beispielsweise /dev/input/btmouse zu erstellen, auf daß das nach einschalten der Bluetooth Mouse erstellte Device /dev/input/mouse2 zeigt? |
|
|
Back to top |
|
|
|