This is really annoying because it makes Ubuntu unusable when using some
of the DPI selections of my new mouse. The mouse speed setting won't
come up with my old mouse, too.
I've added some debug printf() to gnome-control-center "gsd-input-helper.c" in
device_type_is_present:
printf("Result %d: name %s type %d\n", i, device_info[i].name,
device_info[i].type);
printf("Result %d: type %s\n", i,
XGetAtomName(GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
device_info[i].type));
(second line is a memory leak)
And in device_info_is_mouse, where "atom" is the result of the XInternAtom call
in that function:
printf("Mouse atom: %s -> %d\n", XGetAtomName(GDK_DISPLAY_XDISPLAY
(gdk_display_get_default ()), atom), atom);
This is the output when opening the mouse panel:
Result 0: name Virtual core pointer type 0
Result 0: type (null)
Mouse atom: MOUSE -> 89
Result 1: name Virtual core keyboard type 0
Result 1: type (null)
Mouse atom: MOUSE -> 89
Result 2: name Virtual core XTEST pointer type 0
Result 2: type (null)
Mouse atom: MOUSE -> 89
Result 3: name Virtual core XTEST keyboard type 0
Result 3: type (null)
Mouse atom: MOUSE -> 89
Result 4: name Power Button type 88
Result 4: type KEYBOARD
Mouse atom: MOUSE -> 89
Result 5: name Power Button type 88
Result 5: type KEYBOARD
Mouse atom: MOUSE -> 89
Result 6: name AT Translated Set 2 keyboard type 88
Result 6: type KEYBOARD
Mouse atom: MOUSE -> 89
Result 7: name Holtek USB Gaming Mouse type 88
Result 7: type KEYBOARD
Mouse atom: MOUSE -> 89
Result 8: name Holtek USB Gaming Mouse type 88
Result 8: type KEYBOARD
Mouse atom: MOUSE -> 89
Result 9: name USB Multi-Smart Mouse type 88
Result 9: type KEYBOARD
Mouse atom: MOUSE -> 89
Clearly, all of the mouse entries (old mouse is the Multi-Smart one, new
mouse is the Holtek one) use the KEYBOARD type aka atom 88, while no
device uses the MOUSE atom number 89. So gnome-control-center assumes
there are no mice because mouse_is_present() returns false.
At the same time, xinput --list shows this (so one of the KEYBOARD entries for
my Holtek mouse was correct, while the second entry should be MOUSE and the
Multi-Smart mouse should have a MOUSE entry only):
$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Holtek USB Gaming Mouse id=9 [slave pointer (2)]
⎜ ↳ USB Multi-Smart Mouse id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
↳ Holtek USB Gaming Mouse id=8 [slave keyboard (3)]
So XListInputDevices appears to return the wrong device type? I'm afraid of X
server internals, so I guess this is a dead end for me.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1132063
Title:
Mouse settings missing from Mouse & Touchpad dialog
Status in “gnome-control-center” package in Ubuntu:
Confirmed
Bug description:
On up to date Raring alpha, on System Settings > Mouse & Touchpad the
Mouse settings are completely missing. The General and Touchpad
sections are there but none for mouse. See attached screenshot.
xinput --list shows
~$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer
(2)]
⎜ ↳ MOSART Semi. 2.4G Keyboard Mouse id=11 [slave pointer
(2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer
(2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave
keyboard (3)]
↳ Power Button id=6 [slave
keyboard (3)]
↳ Video Bus id=7 [slave
keyboard (3)]
↳ Power Button id=8 [slave
keyboard (3)]
↳ Sleep Button id=9 [slave
keyboard (3)]
↳ MOSART Semi. 2.4G Keyboard Mouse id=10 [slave
keyboard (3)]
↳ Dell Dell USB Keyboard id=12 [slave
keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave
keyboard (3)]
and from lsusb:
Bus 003 Device 002: ID 062a:3286 Creative Labs Nano Receiver [Sandstrom Laser
Mouse SMWLL11]
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: gnome-control-center 1:3.6.3-0ubuntu13
ProcVersionSignature: Ubuntu 3.8.0-7.15-generic 3.8.0
Uname: Linux 3.8.0-7-generic i686
ApportVersion: 2.8-0ubuntu4
Architecture: i386
Date: Sat Feb 23 09:40:41 2013
InstallationDate: Installed on 2012-08-01 (205 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120730.1)
MarkForUpload: True
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_gnome-control-center:
activity-log-manager-control-center 0.9.4-0ubuntu6.1
deja-dup 25.5-0ubuntu1
gnome-control-center-signon 0.1.2bzr12.12.05-0ubuntu1
gnome-control-center-unity 1.2daily13.02.15-0ubuntu1
indicator-datetime 12.10.3daily13.02.06-0ubuntu1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1132063/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp