Nowe posty

xx Problem ze sterownikami. (5)
2024-04-13, 21:25:16
xx Instalacja xfce4 (2)
2024-04-13, 16:20:17
xx Serie kompilacji bez instalacji dla “emerge” w Gentoo (2)
2024-04-08, 18:40:04
xx Plasma 6 w Neonie ssie trochę mniej ... (17)
2024-04-05, 10:03:46
xx Problem z Linux Lite po instalacji (3)
2024-04-03, 14:23:40
xx Jak właczyć num locka przy starcie systemu debian 12? (12)
2024-04-02, 17:43:54
xx Brak dźwieku w systemie. (5)
2024-04-02, 16:13:41
xx Dystrybucja pod HP Omen (7)
2024-03-29, 11:33:05
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
xx Ile pingwinów? (1)
2024-03-27, 08:59:24

Autor Wątek: "Zastyganie" kursora myszy  (Przeczytany 3128 razy)

Offline

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 287
    • Zobacz profil
"Zastyganie" kursora myszy
« dnia: 2014-12-11, 15:00:24 »
Witam!
Zainstalowałem Debiana na swoim lapku, ustawiłem wszystkie usługi itd.
Jedyny problem to jakby "zastyganie" kursora myszy w miejscu.
Gdy kliknę lewym klawiszem mysz się odblokuje ale gdy chwilę nie ruszam jest to samo.
Problem pojawia się po instalacji latop-mode-tools i tylko wtedy gdy jest podłączony do zasilacza.
Jak działa z akumulatora wszystko jest w porządku.
Mysz jest podłączona w porcie USB, przewodowa z kabelkiem.
Touchpad takiego problemu nie sprawia.
Środowisko graficzne LXDE.
Proszę o jakieś sugestie.

Offline ultr

  • Users
  • Guru
  • *****
  • Wiadomości: 1177
    • Zobacz profil
"Zastyganie" kursora myszy
« Odpowiedź #1 dnia: 2014-12-11, 17:15:45 »
Dziwna sprawa.

Pokaż loga z `lsusb -v` (tylko część dla myszy):

Bus 003 Device 002: ID 192f:0616 Avago Technologies, Pte. ADNS-5700 Optical Mouse Controller (5-button)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x192f Avago Technologies, Pte.
  idProduct          0x0616 ADNS-5700 Optical Mouse Controller (5-button)
  bcdDevice            2.00
  iManufacturer           0
  iProduct                2 USB Optical Mouse
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      71
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0006  1x 6 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)
Poszukaj w /dev/input/by-id/ numeru id tego urządzenia (vendor, product, itp.) i zobacz, czy poniższe polecenie coś wypluje gdy myszka się "przywiesi", a ty będziesz nią przesuwał:

$ su
# cat /dev/input/by-id/usb-192f_USB_Optical_Mouse-mouse | hexdump
0000000 c20d 5489 907e 000d 0002 0000 0002 0000
0000010 c20d 5489 907e 000d 0002 0001 fffc ffff
0000020 c20d 5489 907e 000d 0000 0000 0000 0000
0000030 c20d 5489 afb9 000d 0002 0000 0003 0000
0000040 c20d 5489 afb9 000d 0002 0001 fffc ffff
0000050 c20d 5489 afb9 000d 0000 0000 0000 0000
0000060 c20d 5489 cef4 000d 0002 0000 0003 0000
0000070 c20d 5489 cef4 000d 0002 0001 fffa ffff
0000080 c20d 5489 cef4 000d 0000 0000 0000 0000
0000090 c20d 5489 ee36 000d 0002 0000 0003 0000
00000a0 c20d 5489 ee36 000d 0002 0001 fff9 ffff
00000b0 c20d 5489 ee36 000d 0000 0000 0000 0000
00000c0 c20d 5489 0d74 000e 0002 0000 0004 0000
00000d0 c20d 5489 0d74 000e 0002 0001 fffa ffff
...

Offline

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 12
    • Zobacz profil
"Zastyganie" kursora myszy
« Odpowiedź #2 dnia: 2014-12-11, 17:20:55 »
W /sys/bus/usb/devices/usb*/power/control jest prawdopodobnie wpisane auto, czyli jakieś oszczędzanie.
Trzeba odczytać jakoś np. z dmesga, który z usb dotyczy myszy i wpisać tam on.
echo on > /sys/bus/...
I dopisać do skryptu startującego, np. rc.local
Może jest i prostszy sposób, nie wiem.

Offline

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 287
    • Zobacz profil
"Zastyganie" kursora myszy
« Odpowiedź #3 dnia: 2014-12-11, 17:42:41 »
Część loga dla myszy
Bus 003 Device 004: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x09da A4 Tech Co., Ltd
  idProduct          0x000a Optical Mouse Opto 510D
  bcdDevice            0.02
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          3
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      48
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0005  1x 5 bytes
        bInterval              10
piotrek@lenovo8590:/dev/input/by-id$ ls
usb-A4Tech_PS_2+USB_Mouse-event-mouse
usb-A4Tech_PS_2+USB_Mouse-mouse
usb-Vimicro_corp._Integrated_Camera-event-if00
Przed chwilą zrobiłem restart i mysz się nie wiesza.
Czyżby Debianek robi mi figle :/

Offline

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 287
    • Zobacz profil
"Zastyganie" kursora myszy
« Odpowiedź #4 dnia: 2014-12-11, 18:00:33 »
niemoznasiezarejestrowac
Mam USB1, USB2, USB3 i USB4.
Każdy z nich w pliku control ma wpisane Auto.
Ale co do którego?
[    1.305224] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.305228] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.305231] usb usb1: Product: xHCI Host Controller
[    1.305234] usb usb1: Manufacturer: Linux 3.16.0-4-686-pae xhci_hcd
[    1.305237] usb usb1: SerialNumber: 0000:00:14.0

[    1.308950] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.308954] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.308957] usb usb2: Product: xHCI Host Controller
[    1.308959] usb usb2: Manufacturer: Linux 3.16.0-4-686-pae xhci_hcd
[    1.308962] usb usb2: SerialNumber: 0000:00:14.0

[    1.325805] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.325808] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.325811] usb usb3: Product: EHCI Host Controller
[    1.325813] usb usb3: Manufacturer: Linux 3.16.0-4-686-pae ehci_hcd
[    1.325815] usb usb3: SerialNumber: 0000:00:1a.0

[    1.341853] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.341856] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.341859] usb usb4: Product: EHCI Host Controller
[    1.341861] usb usb4: Manufacturer: Linux 3.16.0-4-686-pae ehci_hcd
[    1.341863] usb usb4: SerialNumber: 0000:00:1d.0

[    2.360145] usb 3-1.2: Product: PS/2+USB Mouse
[    2.360149] usb 3-1.2: Manufacturer: A4Tech
[    2.364414] hidraw: raw HID events driver (C) Jiri Kosina
[    2.367895] usbcore: registered new interface driver usbhid
[    2.367901] usbhid: USB HID core driver
[    2.384915] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    2.433532] usb 3-1.3: new high-speed USB device number 5 using ehci-pci
[    2.528125] usb 3-1.3: New USB device found, idVendor=058f, idProduct=6366
[    2.528133] usb 3-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3

Offline

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 287
    • Zobacz profil
"Zastyganie" kursora myszy
« Odpowiedź #5 dnia: 2014-12-19, 12:34:36 »
Wystarczy wyciągnąć kabelek myszy i podpiąć ponownie.