Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Mouse doesn't work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Fri Aug 03, 2012 11:52 pm    Post subject: [SOLVED]Mouse doesn't work Reply with quote

I have a problem with my fresh gentoo installation on my desktop computer. I can't get my mouse to work and I've tried everything for 3days now so I rly hope that you could help me.

make.conf
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
INPUT_DEVICES="evdev"
VIDEO_CARDS="fglrx"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2 gtk gnome dbus X alsa xinerama python"


My mouse is a Logitech G5 and it's definitely not a hardware problem. The mouse works on my laptop (also gentoo and the same configuration except INPUT_DEVICES evdev and synaptic for the touchpad and VIDEO_CARDS=radeon) and the mouse worked during the install (I installed gentoo using an ubuntu livecd).

lsusb output:
Code:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device
Bus 002 Device 004: ID 046d:c223 Logitech, Inc. G11/G15 Keyboard / USB Hub
Bus 002 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 002 Device 006: ID 046d:c221 Logitech, Inc. G11/G15 Keyboard / Keyboard
Bus 002 Device 009: ID 046d:c222 Logitech, Inc. G15 Keyboard / LCD
Bus 002 Device 010: ID 046d:c049 Logitech, Inc. G5 Laser Mouse


Another really strange thing is that my old mouse which is also an USB mouse works. My old mouse is a very simple mouse compared to the G5.
I tried to google alot for the issue but other people are only having problems to configure their extra buttons for me the mouse pointer doesn't even move. But it looks like X is detecting it, because as soon as I use startx my G5 starts to blink.[/code][/profile]


Last edited by wabber on Sun Aug 05, 2012 8:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
sleighboy
n00b
n00b


Joined: 28 Oct 2005
Posts: 26

PostPosted: Sat Aug 04, 2012 12:00 am    Post subject: Reply with quote

You should look in /var/log/Xorg.0.log and see if X has any issues with it. Feel free to post relevant portions of that.
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 12:16 am    Post subject: Reply with quote

sleighboy wrote:
You should look in /var/log/Xorg.0.log and see if X has any issues with it. Feel free to post relevant portions of that.

The xorg.log looks good to me:

Logitech G5 (not working)
Code:

[  9297.587] (**) Logitech USB Gaming Mouse: Applying InputClass "evdev pointer catchall"
[  9297.587] (II) Using input driver 'evdev' for 'Logitech USB Gaming Mouse'
[  9297.587] (**) Logitech USB Gaming Mouse: always reports core events
[  9297.587] (**) evdev: Logitech USB Gaming Mouse: Device: "/dev/input/event5"
[  9297.588] (--) evdev: Logitech USB Gaming Mouse: Vendor 0x46d Product 0xc049
[  9297.588] (--) evdev: Logitech USB Gaming Mouse: Found 20 mouse buttons
[  9297.588] (--) evdev: Logitech USB Gaming Mouse: Found scroll wheel(s)
[  9297.588] (--) evdev: Logitech USB Gaming Mouse: Found relative axes
[  9297.588] (--) evdev: Logitech USB Gaming Mouse: Found x and y relative axes
[  9297.588] (II) evdev: Logitech USB Gaming Mouse: Configuring as mouse
[  9297.588] (II) evdev: Logitech USB Gaming Mouse: Adding scrollwheel support
[  9297.588] (**) evdev: Logitech USB Gaming Mouse: YAxisMapping: buttons 4 and 5
[  9297.588] (**) evdev: Logitech USB Gaming Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  9297.588] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0/input/input9/event5"
[  9297.588] (II) XINPUT: Adding extended input device "Logitech USB Gaming Mouse" (type: MOUSE, id 11)
[  9297.588] (II) evdev: Logitech USB Gaming Mouse: initialized for relative axes.
[  9297.588] (**) Logitech USB Gaming Mouse: (accel) keeping acceleration scheme 1
[  9297.588] (**) Logitech USB Gaming Mouse: (accel) acceleration profile 0
[  9297.588] (**) Logitech USB Gaming Mouse: (accel) acceleration factor: 2.000
[  9297.588] (**) Logitech USB Gaming Mouse: (accel) acceleration threshold: 4
[  9297.588] (II) config/udev: Adding input device Logitech USB Gaming Mouse (/dev/input/mouse0)
[  9297.588] (II) No input driver specified, ignoring this device.
[  9297.588] (II) This device may have been added with another device file.


compared to my old mouse (working)
Quote:

[ 9313.406] (II) config/udev: Adding input device HID 062a:0000 (/dev/input/mouse1)
[ 9313.406] (II) No input driver specified, ignoring this device.
[ 9313.406] (II) This device may have been added with another device file.
[ 9313.406] (II) config/udev: Adding input device HID 062a:0000 (/dev/input/event6)
[ 9313.406] (**) HID 062a:0000: Applying InputClass "evdev pointer catchall"
[ 9313.406] (II) Using input driver 'evdev' for 'HID 062a:0000'
[ 9313.406] (**) HID 062a:0000: always reports core events
[ 9313.406] (**) evdev: HID 062a:0000: Device: "/dev/input/event6"
[ 9313.406] (--) evdev: HID 062a:0000: Vendor 0x62a Product 0
[ 9313.406] (--) evdev: HID 062a:0000: Found 9 mouse buttons
[ 9313.406] (--) evdev: HID 062a:0000: Found scroll wheel(s)
[ 9313.406] (--) evdev: HID 062a:0000: Found relative axes
[ 9313.406] (--) evdev: HID 062a:0000: Found x and y relative axes
[ 9313.406] (II) evdev: HID 062a:0000: Configuring as mouse
[ 9313.406] (II) evdev: HID 062a:0000: Adding scrollwheel support
[ 9313.406] (**) evdev: HID 062a:0000: YAxisMapping: buttons 4 and 5
[ 9313.406] (**) evdev: HID 062a:0000: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 9313.406] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.3/2-1.6.3:1.0/input/input10/event6"
[ 9313.406] (II) XINPUT: Adding extended input device "HID 062a:0000" (type: MOUSE, id 13)
[ 9313.406] (II) evdev: HID 062a:0000: initialized for relative axes.
[ 9313.407] (**) HID 062a:0000: (accel) keeping acceleration scheme 1
[ 9313.407] (**) HID 062a:0000: (accel) acceleration profile 0
[ 9313.407] (**) HID 062a:0000: (accel) acceleration factor: 2.000
[ 9313.407] (**) HID 062a:0000: (accel) acceleration threshold: 4


Last edited by wabber on Sat Aug 04, 2012 12:59 am; edited 1 time in total
Back to top
View user's profile Send private message
sleighboy
n00b
n00b


Joined: 28 Oct 2005
Posts: 26

PostPosted: Sat Aug 04, 2012 12:27 am    Post subject: Reply with quote

Check out: https://forums.gentoo.org/viewtopic-p-4228484.html

I think you'll want to specify the driver in the xorg.conf and this old post gives more button mapping configs that may help you.
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 1:36 am    Post subject: Reply with quote

sleighboy wrote:
Check out: https://forums.gentoo.org/viewtopic-p-4228484.html

I think you'll want to specify the driver in the xorg.conf and this old post gives more button mapping configs that may help you.


I've tried that too already but on my laptop the mouse gets recognized without any xorg.conf changes

xorg.conf:
Code:

Section "ServerLayout"
   Identifier     "aticonfig Layout"
   Screen      0  "aticonfig-Screen[0]-0" 0 0
   Screen         "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
        InputDevice "G5" "CorePointer"
EndSection

Section "Module"
EndSection

Section "ServerFlags"
   Option       "Xinerama" "on"
EndSection

Section "Monitor"
   Identifier   "aticonfig-Monitor[0]-0"
   Option       "VendorName" "ATI Proprietary Driver"
   Option       "ModelName" "Generic Autodetecting Monitor"
   Option       "DPMS" "true"
EndSection

Section "Monitor"
   Identifier   "aticonfig-Monitor[0]-1"
   Option       "VendorName" "ATI Proprietary Driver"
   Option       "ModelName" "Generic Autodetecting Monitor"
   Option       "DPMS" "true"
EndSection

Section "Device"
   Identifier  "aticonfig-Device[0]-0"
   Driver      "fglrx"
   BusID       "PCI:1:0:0"
EndSection

Section "Device"
   Identifier  "aticonfig-Device[0]-1"
   Driver      "fglrx"
   BusID       "PCI:1:0:0"
   Screen      1
EndSection

Section "Screen"
   Identifier "aticonfig-Screen[0]-0"
   Device     "aticonfig-Device[0]-0"
   Monitor    "aticonfig-Monitor[0]-0"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "Screen"
   Identifier "aticonfig-Screen[0]-1"
   Device     "aticonfig-Device[0]-1"
   Monitor    "aticonfig-Monitor[0]-1"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "InputDevice"
    Identifier  "G5"
    Driver      "evdev"
    Option      "Name"  "Logitech USB Gaming Mouse"
EndSection


But still my mouse pointer doesn't even move
Back to top
View user's profile Send private message
sleighboy
n00b
n00b


Joined: 28 Oct 2005
Posts: 26

PostPosted: Sat Aug 04, 2012 1:45 am    Post subject: Reply with quote

I'm on a laptop now, with a generic laser USB mouse and I don't have anything in my xorg.conf related to mice and the touchpad and mouse work together no problem.

So, have you tried:

Code:
InputDevice "G5" "SendCoreEvents"


instead of:

Code:
InputDevice "G5" "CorePointer"


?
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 1:53 am    Post subject: Reply with quote

sleighboy wrote:
I'm on a laptop now, with a generic laser USB mouse and I don't have anything in my xorg.conf related to mice and the touchpad and mouse work together no problem.

So, have you tried:

Code:
InputDevice "G5" "SendCoreEvents"


instead of:

Code:
InputDevice "G5" "CorePointer"


?


I just tried it and it still doesn't work.

That's exactly why I don't understand what's going on. On my laptop, the mouse works without any configuration. I don't even have a xorg.conf on my laptop.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Aug 04, 2012 2:01 am    Post subject: Reply with quote

use InputClass and not InputDevice

I'm not even sure InputDevice works anymore, anyway InputDevice was to target a single device and advance mouse could use and expose more than just 1 device (or more than one event if you prefer).

And as your xorg.log is telling you, you are using
Code:
 [  9297.587] (**) Logitech USB Gaming Mouse: Applying InputClass "evdev pointer catchall"


So that device is trying to get configure thru the InputClass named "evdev pointer catchall" and i don't know how this one is set, but changing your "G5" won't affect it.
Try something like that (i don't remember the MatchIsPoint nor AutoServerLayout, but this is how they are set for my mouse)
Code:
Section "InputClass"
   Identifier "myG5"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event5"
        Driver "evdev"
        Option "AutoServerLayout" "on"
EndSection
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 2:13 am    Post subject: Reply with quote

krinn wrote:
use InputClass and not InputDevice

I'm not even sure InputDevice works anymore, anyway InputDevice was to target a single device and advance mouse could use and expose more than just 1 device (or more than one event if you prefer).

And as your xorg.log is telling you, you are using
Code:
 [  9297.587] (**) Logitech USB Gaming Mouse: Applying InputClass "evdev pointer catchall"


So that device is trying to get configure thru the InputClass named "evdev pointer catchall" and i don't know how this one is set, but changing your "G5" won't affect it.
Try something like that (i don't remember the MatchIsPoint nor AutoServerLayout, but this is how they are set for my mouse)
Code:
Section "InputClass"
   Identifier "myG5"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event5"
        Driver "evdev"
        Option "AutoServerLayout" "on"
EndSection


I've applied the changes to my xorg.conf but the mouse still doesn't work. Atleast the xorg.log output has changed:
Code:


[ 16494.860] (II) config/udev: Adding input device Logitech USB Gaming Mouse (/dev/input/event5)
[ 16494.860] (**) Logitech USB Gaming Mouse: Applying InputClass "evdev pointer catchall"
[ 16494.860] (**) Logitech USB Gaming Mouse: Applying InputClass "myG5"
[ 16494.860] (II) Using input driver 'evdev' for 'Logitech USB Gaming Mouse'
[ 16494.860] (**) Logitech USB Gaming Mouse: always reports core events
[ 16494.860] (**) evdev: Logitech USB Gaming Mouse: Device: "/dev/input/event5"
[ 16494.861] (--) evdev: Logitech USB Gaming Mouse: Vendor 0x46d Product 0xc049
[ 16494.861] (--) evdev: Logitech USB Gaming Mouse: Found 20 mouse buttons
[ 16494.861] (--) evdev: Logitech USB Gaming Mouse: Found scroll wheel(s)
[ 16494.861] (--) evdev: Logitech USB Gaming Mouse: Found relative axes
[ 16494.861] (--) evdev: Logitech USB Gaming Mouse: Found x and y relative axes
[ 16494.861] (II) evdev: Logitech USB Gaming Mouse: Configuring as mouse
[ 16494.861] (II) evdev: Logitech USB Gaming Mouse: Adding scrollwheel support
[ 16494.861] (**) evdev: Logitech USB Gaming Mouse: YAxisMapping: buttons 4 and 5
[ 16494.861] (**) evdev: Logitech USB Gaming Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 16494.861] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0/input/input18/event5"
[ 16494.861] (II) XINPUT: Adding extended input device "Logitech USB Gaming Mouse" (type: MOUSE, id 11)
[ 16494.861] (II) evdev: Logitech USB Gaming Mouse: initialized for relative axes.
[ 16494.861] (**) Logitech USB Gaming Mouse: (accel) keeping acceleration scheme 1
[ 16494.861] (**) Logitech USB Gaming Mouse: (accel) acceleration profile 0
[ 16494.861] (**) Logitech USB Gaming Mouse: (accel) acceleration factor: 2.000
[ 16494.861] (**) Logitech USB Gaming Mouse: (accel) acceleration threshold: 4


He seems to be applying both input classes now and i dont know how to tell him to use only one
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Aug 04, 2012 2:25 am    Post subject: Reply with quote

look for it in /etc/X11/xorg.conf.d
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 2:29 am    Post subject: Reply with quote

krinn wrote:
look for it in /etc/X11/xorg.conf.d


That doesn't exist on my system
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Aug 04, 2012 2:37 am    Post subject: Reply with quote

/usr/share/X11/xorg.conf.d/ so
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 11:38 am    Post subject: Reply with quote

Code:
[   361.502] (II) config/udev: Adding input device Logitech USB Gaming Mouse (/dev/input/event5)
[   361.503] (**) Logitech USB Gaming Mouse: Applying InputClass "myG5"
[   361.503] (II) Using input driver 'evdev' for 'Logitech USB Gaming Mouse'
[   361.503] (**) Logitech USB Gaming Mouse: always reports core events
[   361.503] (**) evdev: Logitech USB Gaming Mouse: Device: "/dev/input/event5"
[   361.503] (--) evdev: Logitech USB Gaming Mouse: Vendor 0x46d Product 0xc049
[   361.503] (--) evdev: Logitech USB Gaming Mouse: Found 20 mouse buttons
[   361.503] (--) evdev: Logitech USB Gaming Mouse: Found scroll wheel(s)
[   361.503] (--) evdev: Logitech USB Gaming Mouse: Found relative axes
[   361.503] (--) evdev: Logitech USB Gaming Mouse: Found x and y relative axes
[   361.503] (II) evdev: Logitech USB Gaming Mouse: Configuring as mouse
[   361.503] (II) evdev: Logitech USB Gaming Mouse: Adding scrollwheel support
[   361.503] (**) evdev: Logitech USB Gaming Mouse: YAxisMapping: buttons 4 and 5
[   361.503] (**) evdev: Logitech USB Gaming Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   361.503] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0/input/input5/event5"
[   361.503] (II) XINPUT: Adding extended input device "Logitech USB Gaming Mouse" (type: MOUSE, id 11)
[   361.503] (II) evdev: Logitech USB Gaming Mouse: initialized for relative axes.
[   361.503] (**) Logitech USB Gaming Mouse: (accel) keeping acceleration scheme 1
[   361.503] (**) Logitech USB Gaming Mouse: (accel) acceleration profile 0
[   361.503] (**) Logitech USB Gaming Mouse: (accel) acceleration factor: 2.000
[   361.503] (**) Logitech USB Gaming Mouse: (accel) acceleration threshold: 4
[   361.503] (II) config/udev: Adding input device Logitech USB Gaming Mouse (/dev/input/mouse0)
[   361.503] (II) No input driver specified, ignoring this device.
[   361.503] (II) This device may have been added with another device file.


Code:
Section "InputClass"
   Identifier "myG5"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event5"
        Driver "evdev"
        Option "AutoServerLayout" "on"
EndSection


I've commented the default input class for mice out in the xorg.conf.d but still my mouse pointer doesn't move :(
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 12:15 pm    Post subject: Re: Warring! Reply with quote

I think I found out something useful

/dev/input/event5 is my G5
/dev/input/event6 is my old mouse
(according to xorg)

if I use "cat /dev/input/event6" and move my old mouse around I get all sorts of strange characters on my screen
If I use "cat /dev/input/event5" and move my G5 around I get nothing.

So to me it looks like my G5 gets recognized but it doesn't send any events. But I don't know why, my old mouse also is a USB mouse so everything should be correct in the Kernel.


Last edited by wabber on Sat Aug 04, 2012 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
fakeCreazy
n00b
n00b


Joined: 01 Aug 2012
Posts: 24

PostPosted: Sat Aug 04, 2012 2:18 pm    Post subject: Reply with quote

Does your mouse working in console? If it doesn't work only in X server, then try to install another version. Play with your config's input devices, try to use:
Code:
INPUT_DEVICES="evdev keyboard mouse"

Try to use:
Code:
   Driver         "mouse"

in your xorg.conf file.

And show what's in your /etc/conf.d/gpm file, if you have it.
_________________
Gentoo + Drupal = Forever ✪ Proud Gentoo user since 2010
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 6:44 pm    Post subject: Reply with quote

fakeCreazy wrote:
Does your mouse working in console? If it doesn't work only in X server, then try to install another version. Play with your config's input devices, try to use:
Code:
INPUT_DEVICES="evdev keyboard mouse"

Try to use:
Code:
   Driver         "mouse"

in your xorg.conf file.

And show what's in your /etc/conf.d/gpm file, if you have it.


I haven't had set up my mouse for the console. I've just emerged gdm and I'm using this gdm config
Code:


# /etc/init.d/gpm

# Please uncomment the type of mouse you have and the appropriate MOUSEDEV entry

#MOUSE=ps2
MOUSE=imps2
#MOUSEDEV=/dev/psaux
MOUSEDEV=/dev/input/mice

# Extra settings

#RESPONSIVENESS=
#REPEAT_TYPE=raw

# Please uncomment this line if you want gpm to understand charsets used
# in URLs and names with ~ or : in them, etc. This is a good idea to turn on!

#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""
 


My old mouse works in the console but my G5 doesn't which is why I assume I need to change something in my kernel?
Back to top
View user's profile Send private message
fakeCreazy
n00b
n00b


Joined: 01 Aug 2012
Posts: 24

PostPosted: Sat Aug 04, 2012 8:02 pm    Post subject: Reply with quote

1. What is your desktop environment?

2. Have you tried this?
make.conf:
Code:
INPUT_DEVICES="evdev keyboard mouse"

After this you'll need to re-emerge xorg-server.

xorg.conf:
Code:
    Driver         "mouse"


3. If you think the problem is in kernel so, check this in your kernel config:
Code:
cat /usr/src/linux/.config | grep LOGITECH

If you have something like this:
Code:
CONFIG_HID_LOGITECH=m

Then make sure that this module get loaded.

4. Also, check this:
Code:
cat /usr/src/linux/.config | grep -i mouse

and
Code:
ls /dev/input/m*

You should have something like this:
Code:
/dev/input/mice  /dev/input/mouse0

_________________
Gentoo + Drupal = Forever ✪ Proud Gentoo user since 2010
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 8:57 pm    Post subject: Reply with quote

fakeCreazy wrote:
1. What is your desktop environment?

gnome

fakeCreazy wrote:

2. Have you tried this?
make.conf:
Code:
INPUT_DEVICES="evdev keyboard mouse"

After this you'll need to re-emerge xorg-server.

xorg.conf:
Code:
    Driver         "mouse"


i tried
Code:

Section "InputClass"
   Identifier "myG5"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/mouse0"
        Driver "mouse"
        Option "AutoServerLayout" "on"
EndSection


and
Code:

Section "InputClass"
   Identifier "myG5"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event5"
        Driver "mouse"
        Option "AutoServerLayout" "on"
EndSection


event5 and mouse0 are the G5 i've checked by plugging in/out

Doesn't work :(
But atleast an improvement: The buttons to change the dpi of my G5 work now instead of the status LED blinking. But as far as I know the dpi management of the G5 is hardware sided which is why I don't know why I didn't work before.

fakeCreazy wrote:

3. If you think the problem is in kernel so, check this in your kernel config:
Code:
cat /usr/src/linux/.config | grep LOGITECH

If you have something like this:
Code:
CONFIG_HID_LOGITECH=m

Then make sure that this module get loaded.

CONFIG_HID_LOGITECH is build in the kernel on my system

fakeCreazy wrote:

4. Also, check this:
Code:
cat /usr/src/linux/.config | grep -i mouse

and
Code:
ls /dev/input/m*

You should have something like this:
Code:
/dev/input/mice  /dev/input/mouse0


cat output.
Code:

CONFIG_MAC_EMUMOUSEBTN=y
CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_PS2_ALPS=y
CONFIG_MOUSE_PS2_LOGIPS2PP=y
CONFIG_MOUSE_PS2_SYNAPTICS=y
CONFIG_MOUSE_PS2_LIFEBOOK=y
CONFIG_MOUSE_PS2_TRACKPOINT=y
CONFIG_MOUSE_PS2_ELANTECH=y
CONFIG_MOUSE_PS2_SENTELIC=y
CONFIG_MOUSE_PS2_TOUCHKIT=y
CONFIG_MOUSE_SERIAL=m
CONFIG_MOUSE_APPLETOUCH=m
CONFIG_MOUSE_BCM5974=m
CONFIG_MOUSE_VSXXXAA=m
CONFIG_MOUSE_SYNAPTICS_I2C=m
# CONFIG_USB_IDMOUSE is not set


/dev/input/mice and /dev/input/mouse0 do exist
Back to top
View user's profile Send private message
fakeCreazy
n00b
n00b


Joined: 01 Aug 2012
Posts: 24

PostPosted: Sat Aug 04, 2012 9:20 pm    Post subject: Reply with quote

I have USB mouse (Gigabyte 5 buttons and DPI switcher) and there is my configs:

Code:
Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option "Emulate3Buttons" "on"
    Option         "ZAxisMapping" "4 5"
EndSection


Try:
Code:
"Device" "/dev/input/mice"

_________________
Gentoo + Drupal = Forever ✪ Proud Gentoo user since 2010
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sat Aug 04, 2012 10:40 pm    Post subject: Reply with quote

fakeCreazy wrote:
I have USB mouse (Gigabyte 5 buttons and DPI switcher) and there is my configs:

Code:
Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option "Emulate3Buttons" "on"
    Option         "ZAxisMapping" "4 5"
EndSection


Try:
Code:
"Device" "/dev/input/mice"


I tried to put it in my config and I tried your config. Still no move :(

The reason I don't think the problem is xorg related is that if I use cat on the event handler of my G5 on my laptop (/dev/input/eventX) I can see strange characters if I move my mouse around. On my desktop I don't get anything if I cat the event handler of my G5. I notice that difference even if no X server is running and I'm absolutely sure I used cat on the correct eventhandler.

But on the other hand why does udev detect it as a mouse and why does X even read it's name correctly. I'm confused
Back to top
View user's profile Send private message
fakeCreazy
n00b
n00b


Joined: 01 Aug 2012
Posts: 24

PostPosted: Sun Aug 05, 2012 12:37 am    Post subject: Reply with quote

Well, your Xorg log, previously posted, looks like correct, so... hmmm

Check everything like:
Code:
cat /usr/src/linux/.config | grep USB
CONFIG_USB_SUPPORT=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

Make sure that you have enabled all host controller that you have, like *HCI (EHCI, OCHI, UHCI, XHCI). First check what you have:
Code:
lspci -v | grep -i hci

Also note line "Kernel driver in use: xxx"

And check what enabled in kernel and place these two outputs here:
Code:
cat /usr/src/linux/.config | grep USB | grep HID
cat /usr/src/linux/.config | grep USB | grep HCI


P.S.: And I hope you've plugged the mouse before you boot your pc? :D
_________________
Gentoo + Drupal = Forever ✪ Proud Gentoo user since 2010
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sun Aug 05, 2012 1:00 pm    Post subject: Reply with quote

fakeCreazy wrote:
Well, your Xorg log, previously posted, looks like correct, so... hmmm

Check everything like:
Code:
cat /usr/src/linux/.config | grep USB
CONFIG_USB_SUPPORT=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y


both is on

fakeCreazy wrote:

Make sure that you have enabled all host controller that you have, like *HCI (EHCI, OCHI, UHCI, XHCI). First check what you have:
Code:
lspci -v | grep -i hci

Also note line "Kernel driver in use: xxx"

I have 2 EHCI and 1 XHCI host controller, support is build in the kernel and they appear to be working correctly (checked with my wlan dongle, except for the USB 3.0 slots)

fakeCreazy wrote:

And check what enabled in kernel and place these two outputs here:
Code:
cat /usr/src/linux/.config | grep USB | grep HID
cat /usr/src/linux/.config | grep USB | grep HCI


Code:

CONFIG_USB_HID=y
CONFIG_USB_HIDDEV=y

Code:

CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_HCD_DEBUGGING is not set
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
# CONFIG_USB_EHCI_MV is not set
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y


fakeCreazy wrote:

P.S.: And I hope you've plugged the mouse before you boot your pc? :D

Yep I did :)
I tried all my usb ports (except the 3.0 ones) and rebooted after every change I made.
Back to top
View user's profile Send private message
fakeCreazy
n00b
n00b


Joined: 01 Aug 2012
Posts: 24

PostPosted: Sun Aug 05, 2012 7:50 pm    Post subject: Reply with quote

Enable this:
Code:
# CONFIG_USB_EHCI_TT_NEWSCHED is not set

Say here Yes.
_________________
Gentoo + Drupal = Forever ✪ Proud Gentoo user since 2010
Back to top
View user's profile Send private message
wabber
n00b
n00b


Joined: 01 Aug 2012
Posts: 13

PostPosted: Sun Aug 05, 2012 8:13 pm    Post subject: Reply with quote

fakeCreazy wrote:
Enable this:
Code:
# CONFIG_USB_EHCI_TT_NEWSCHED is not set

Say here Yes.


tyvm for taking the time to help me. After adding that option my mouse works perfectly :) Even my USB sound card works now (I thought I've activated the wrong driver in the kernel). I never thought it was an USB related issue because my USB wlan stick and my old mouse were working without any problems.
Topic solved
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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