LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-10-2024, 03:29 AM   #1
jschlinker
LQ Newbie
 
Registered: Mar 2024
Posts: 7

Rep: Reputation: 0
Xorg - why is a 2nd mouse added even though autoadddevices is off?


Hi,

I have two PCs which run OpenSuse 3.0.101 with X-Org Server 1.6.5
I have statically configured one mouse (/dev/input/mouse0) in xorg.conf
I have the identically xorg-conf on a 2nd PC.
THe only difference between the two PCs I could find is that the one runs a different patch-level:
PC1 3.0.101-0.47.71.1
PC2 3.0.101-0.47.106.59.1

On PC1 the X-server only uses the /dev/input/mouse0.
On PC2 the X-server uses a 2nd mouse that I attached/hotplugged after boot.
If I run xinput list on both PCs
PC1 only lists the default devices (CorePointer+TestPointer) while PC2 lists everything I attach via USB.

How is this possible?
I looked through Xorg.0.log to verify that autoadddevices is off which it is.
I also looked through udev-rules and the xorg.conf
I have very limited access to the system and need to find the answer without going back to the system to gather more data.

Anybody here that has an idea how this is possible?
Am I missing a configuration option? Or a way that X-Server is using the input devices other than xorg.conf?
 
Old 04-10-2024, 04:04 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,813

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Examine the tail of Xorg.0.log when you connect the additional mouse.
 
Old 04-10-2024, 04:13 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,813

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Quote:
Originally Posted by jschlinker View Post
Hi,

I have two PCs which run OpenSuse 3.0.101 with X-Org Server 1.6.5
BTW, not an openSUSE version. I think you are referring to some ancient version of SLES.
 
Old 04-10-2024, 04:35 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I guess 3.0.101 is the version of the kernel itself. Xorg 1.6.5 is also old. It is an ancient system (10 years old) SLES11 SP3.
Would be nice to give us more details about your OS and situation (configuration).
 
Old 04-10-2024, 04:10 PM   #5
jschlinker
LQ Newbie
 
Registered: Mar 2024
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, these are very old systems.
You're correct: it's not openSUSE, but SUSE Linux Enterprise Server 11, both with SP3, the one with "regular" support, the other with LTSS.
The configuration is done in the following way:
/etc/X11/xorg.conf
Code:
[…]

Section "Files"
  FontPath "/usr/share/fonts/misc:unscaled"
[...]
  InputDevices "/dev/trackball"
EndSection

Section "ServerFlags"
     Option "DontZap" "on"
     Option "DontVTSwitch" "on"
     Option "ZapWarning" on"
     Option "AllowMouseOpenFail" "on"
EndSection

Section "Module"
  Load  "xag"
  Load  "freetype"
  Load  "dbe"
  Load  "dri"
  Load  "glx"
  Load  "extmod"
EndSection

Section “InputDevice”
     Driver      “kbd”
     Identifier  “keyboard1”
     Option      “Protocol”  “Standard”
     Option      “xkbLayout”  “us”
     Option      “xkbModel”  “microsoftpro”
     Option      “xkbRules”  “xfree86”
EndSection 

Section “InputDevice”
     Driver      “mouse”
     Identifier  “mouse1”
     Option      “Buttons”       “9”
     Option      “Device”        “/dev/input/mouse0”
     Option      “Name”          “ImExPS/2 Generic Explorer Mouse”
     Option      “Protocol”      “explorerps/2”
     Option      “ZAxisMapping”  "4 5”
EndSection 

Section “InputDevice”
     Driver      “mouse”
     Identifier  "trackball1"
     Option      “Device”          “/dev/input/trackball”
     Option      “Protocol”        “explorerps/2”
     Option      “ZAxisMapping”    “4 5”
     Option      “SendCoreEvents”  “off”
EndSection

Section "Monitor"
[...]
EndSection

Section "Screen"
[...]
EndSection


Section "Modes"
  Identifier  "Mode0"
EndSection

Section "ServerLayout"
  Identifier   "Layout"
  InputDevice  "keyboard1" "CoreKeyboard"
  InputDevice  "mouse1" "CorePointer"
  InputDevice  "trackball1"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Option       "Screen" "Screen1"
EndSection

Section "DRI"
   Group   "video"
   Mode    0660
EndSection

[…]
The only thing from this configuration that looks really strange to me is the line with InputDevices in the Files-Section.
The rest is a static configuration which doesn't allow for any other devices as one mouse.

Here is the udev-rule in /etc/udev/rules.d/10-mouse.rules:
Code:
KERNEL=="mouse*", SUBSYSTEMS=="USB", ATTRS{product}=="*Mouse", MODE="0660", NAME="input/mouse0", SYMLINK+="mouse“, RUN+=“/bin/sh –c ‘/usr/bin/killall -12 Xorg’”
That's a snippet from the Xorg-log:
Code:
(==) Log file: "/var/log/Xorg.0.log", Time: ...
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Layout"
(**) |--> Screen "Screen1" (0)
(**) |   |-->Monitor "Monitor1"
(**) |   |-->Device "Device1"
(**) |-->Input Device "keyboard1"
(**) |-->Input Device "mouse1"
(**) |-->Input Device "trackball1"
(**) Option "DontVTSwitch" "on"
(**) Option "DontZap" "on"
(**) Option "ZapWarning" "on"
(**) Option "AllowMouseOpenFail" "on"
(**) Option "Xinerama" "off"
(==) Not automatically adding devices
(==) Automatically enabling devices
[..]
(II) config/hal: Adding input device Raritan KVM
(EE) config/hal: NewInputDeviceRequest failed (8)
This makes all (newly) connected USB mice with Mouse in the product-name to be named /dev/input/mouse0 so that it's usable via the xorg.conf.
On PC1 this is exactly how it behaves.
On PC2 all USB input devices are available to be used in X, no matter the name, e.g. Raritan KVM.
 
Old 04-10-2024, 06:42 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,813

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Quote:
Originally Posted by jschlinker View Post
Code:
(II) config/hal: Adding input device Raritan KVM
(EE) config/hal: NewInputDeviceRequest failed (8)
This is as expected, given hal hotplugging is disabled. Does the other PC show the same when a device is added?
 
Old 04-10-2024, 07:44 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Getting information on HAL is hard these days. Perhaps the output of lshal or poking around under /etc/hal might provide some clues.
 
  


Reply

Tags
mouse, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No errors reported in Xorg.0.log but keyboard not working with "AutoAddDevices" "true" kulkarm Linux - Newbie 12 12-09-2019 12:59 AM
xorg AutoAddDevices on freeze mouse and keyboard when enter X slack32 Slackware 0 06-05-2013 08:44 PM
webmin error: unable to open a webpage even though virtual server in apache is added arvindikchari Linux - Newbie 2 08-03-2010 08:33 AM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
Mouse scrolly doesn't work, even though added axis option in config file. RHLinuxGUY Slackware 8 07-22-2005 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration