Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit nicht vorhandenem mouse device bei Xorg Start
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Mon Oct 17, 2005 8:24 pm    Post subject: Problem mit nicht vorhandenem mouse device bei Xorg Start Reply with quote

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
View user's profile Send private message
platinumviper
l33t
l33t


Joined: 12 Feb 2004
Posts: 649
Location: Munich, Germany

PostPosted: Mon Oct 17, 2005 8:52 pm    Post subject: Re: Problem mit nicht vorhandenem mouse device bei Xorg Star Reply with quote

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
View user's profile Send private message
Rüpel
Guru
Guru


Joined: 06 Nov 2002
Posts: 316
Location: Berlin/Germany

PostPosted: Tue Oct 18, 2005 9:28 am    Post subject: Reply with quote

kennst du das?
http://www.gentoo.org/doc/en/bluetooth-guide.xml

hast du schon
rc-update add bluetooth default
ausgeführt?
_________________
:wq
Back to top
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Tue Oct 18, 2005 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vaarsuvius
Guru
Guru


Joined: 02 Dec 2004
Posts: 345

PostPosted: Tue Oct 18, 2005 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hilefoks
l33t
l33t


Joined: 29 Jan 2003
Posts: 849
Location: Emden / Deutschland

PostPosted: Tue Oct 18, 2005 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Tue Oct 18, 2005 3:19 pm    Post subject: Reply with quote

/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
View user's profile Send private message
kronker
n00b
n00b


Joined: 13 Jul 2005
Posts: 12

PostPosted: Tue Oct 18, 2005 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Tue Oct 18, 2005 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
kronker
n00b
n00b


Joined: 13 Jul 2005
Posts: 12

PostPosted: Tue Oct 18, 2005 4:04 pm    Post subject: Reply with quote

aso na dann -.- (tut mir sorry)
Back to top
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Tue Oct 18, 2005 4:08 pm    Post subject: Reply with quote

kronker wrote:
aso na dann -.- (tut mir sorry)


Leid tun brauch es nicht :)
Ich bin für jeden Lösungshinweis dankbar.
Back to top
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Fri Oct 21, 2005 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1938

PostPosted: Fri Oct 21, 2005 6:21 pm    Post subject: Reply with quote

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... :wink:
Wie das mit dem Trackpoint ist, weiß ich auch nicht, aber ich habe auch kein Labor, in dem lauter mausähnliche Viecher rumlaufen... :wink:
_________________
Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong."
Back to top
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Sat Oct 22, 2005 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Wed Dec 07, 2005 7:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
nic0000
l33t
l33t


Joined: 25 Sep 2005
Posts: 658

PostPosted: Wed Dec 07, 2005 8:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
linpacman
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 124

PostPosted: Sat Mar 04, 2006 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum