You are not logged in.

#1 2011-04-29 19:43:15

yasar11732
Member
Registered: 2010-11-29
Posts: 127

Need to replug usb mouse everytime I reboot computer

Hi,

I am using Dell Laptop with Arch Linux. It is up to date. And I have a a4tech mouse. The problem is I need to unplug and replug it after reboot in order it to work? Anyone know how to solve this issue? Possibly nesessary info:

[yasar@yasar_laptop ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
Bus 002 Device 003: ID 09da:000a A4 Tech Co., Ltd Port Mouse

Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#2 2011-04-29 19:52:31

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,928
Website

Re: Need to replug usb mouse everytime I reboot computer

Do you have legacy USB option set in your BIOS?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#3 2011-04-29 20:37:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Need to replug usb mouse everytime I reboot computer

Offline

#4 2011-04-29 20:40:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,204

Re: Need to replug usb mouse everytime I reboot computer

yasar11732 wrote:

Hi,

Possibly nesessary info:
...

Was that before, or after you un-plugged re-plugged?
If it was after, what does it look like before? (I'm trying to determine is a low level problem (kernel) or higher level (udev / Xorg)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-04-29 22:29:19

yasar11732
Member
Registered: 2010-11-29
Posts: 127

Re: Need to replug usb mouse everytime I reboot computer

Additional finding: Even before I replug and unplug, when I issue "cat /dev/input/mouse1" and move mouse around, I get weird symbols flowing around as it supposed to, but cursor doesn't move. My touchpad works regardlessly (I am not sure if there is such a word though tongue)

[yasar@yasar_laptop xorg.conf.d]$ cat 10-evdev.conf
#
# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
    
    Option "XkbLayout" "tr"    
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection
SanskritFritz wrote:

Do you have legacy USB option set in your BIOS?

I don't have such an option in my bios. But something called usb emulation is open.

@Karol

That bug seems like unresolved, since it doesn't provide a viable solution yet.

@ewaller

Before unplug-replug

[yasar@yasar_laptop ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse

After unplug-replug:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
Bus 002 Device 003: ID 09da:000a A4 Tech Co., Ltd Port Mouse

Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#6 2011-04-29 22:41:33

yasar11732
Member
Registered: 2010-11-29
Posts: 127

Re: Need to replug usb mouse everytime I reboot computer

Also, there is a strong possibility that I misconfigured something, since I am new to arch linux and manual configuration of system, therefore I am posting maybe related stuff here:

[yasar@yasar_laptop etc]$ cat /etc/inittab
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
x:5:respawn:/usr/bin/slim

Some parts from /etc/rc.conf

MODULES=()
DAEMONS=(syslog-ng dbus @networkmanager @crond @alsa)

My xinitrc file:

[yasar@yasar_laptop ~]$ cat .xinitrc
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
exec ck-launch-session startlxde

Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#7 2011-04-29 23:26:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,204

Re: Need to replug usb mouse everytime I reboot computer

Well, that /dev/input/mouse exists, and that lsusb sees it, it isn't a kernel or udev problem.  Xorg configuration is not my forte'.  I'm out...


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2011-04-30 14:13:32

yasar11732
Member
Registered: 2010-11-29
Posts: 127

Re: Need to replug usb mouse everytime I reboot computer

Any ideas? This is still unresolved...


Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#9 2011-04-30 15:15:10

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: Need to replug usb mouse everytime I reboot computer

Offline

#10 2018-10-21 09:00:41

plp
Member
Registered: 2013-01-24
Posts: 46

Re: Need to replug usb mouse everytime I reboot computer

I found this post:

https://bbs.archlinux.org/viewtopic.php?id=149888

It looks like this problem affects powertop users, who have created a systemd service that runs powertop on boot and sets power saving on for all devices, as per the instructions of the Wiki:

https://wiki.archlinux.org/index.php/po … y_settings

Some external USB mice, however, don't like this and turn themselves off. When you unplug and re-plug them, of course, they start working again, as powertop's auto tuning only runs on boot.

I managed to fix this by modifying my powertop service to run an extra script:

# cat /etc/systemd/system/powertop.service 
[Unit]
Description=Powertop tunings

[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
ExecStart=/usr/local/sbin/powertop-exclude-mouse

[Install]
WantedBy=multi-user.target


# cat /usr/local/sbin/powertop-exclude-mouse
#!/bin/bash
# Exclude USB mouse from powertop tunables

echo 'on' > '/sys/bus/usb/devices/1-3/power/control'
echo 'USB mouse excluded from powertop tuneables'

exit 0

Note that this is a quick and dirty solution that simply excludes USB device 1-3, which happens to be the USB mouse on my computer. You'll have to find your own device number and modify the script accordingly, for this to work for you.

Or, perhaps, someone can write a more intelligent script.

Offline

#11 2018-10-21 10:18:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,248

Re: Need to replug usb mouse everytime I reboot computer

Thanks for the potentially valid contribution, however please pay attention to the dates and don't necrobump 6 respectively 2 year old threads.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

Online

Board footer

Powered by FluxBB