LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-09-2006, 12:52 PM   #1
capthookb
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Rep: Reputation: 0
Suspend and unload reload modules error


I have kernel 2.6.15 and i have patched with suspend2 patch.
I use acpitool to suspend to ram my pc but when i get back some devices are not working (my DVB Skystar2 card) and the mouse.
For the DVB card i get around the problem by removing and reloading the apropriate module. But for mouse i cannot.
Code:
root@domatio:~# rmmod evdev
ERROR: Module evdev is in use

root@domatio:~# lsmod | grep evdev
evdev                   6976  1
Is there any way to unload and reload the evdev module?
 
Old 09-12-2006, 07:00 AM   #2
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
did you try synaptics driver which one are you using?

to manually unload a module requires "rmmod evdev -f" assuming your kernel is compiled to allow you to unload modules.

Sometimes, 1/40 times maybe this happens to me, and I just kill X by ctrl+alt+bckspace and then I'm fine, i use fluxbox so it's back in there in seconds anyway.
 
Old 09-12-2006, 08:18 AM   #3
capthookb
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
No, i'm using evdev driver because it's the only driver that works with my tilt wheel (microsoft mouse)
The thing is that the driver is used by X and it doesn't allow me to unload and reload it.
When i kill or exit X windows to console login, the evdev module is no longer used, and i can unload and reload it. But then when i start again X the mouse is no longer working.
So i guess it's a bug of either evdev or something else.
 
Old 09-12-2006, 04:30 PM   #4
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
what happens if you unplug the mouse and put it back in, does hotplug 'modprobe evdev' for you?
 
Old 09-13-2006, 09:15 AM   #5
capthookb
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
The mouse is not working if i unplug and replug it.
The driver is used by X and not by the mouse.
Unplugging it doesn't remove evdev module.
I also tried removing usb modules first but i still couldn't remove evdev during X.
That's why only when i quit X i am able to unload the evdev module.
 
Old 09-13-2006, 06:40 PM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
what i meant was if you exit X...unplug the mouse...issue the standby command. no your pc is sleeping. then wake it up, give a few seconds or so...then plug the mouse in and go into X do you get a working mouse?

FWIW on one pc I had a similar issue and I checked my kernel compile and I put evdev as a "check" for yes and not a 'dot' for module and that resolved me. Mileage may vary obviously.

FWIW-2: I went thru the mailing list there at suspend2 site, and there is mention of people having this like you and I and no responses.
 
Old 09-14-2006, 07:00 AM   #7
capthookb
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I tried compiling evdev in the kernel as well. But i had the same problem.
I haven't tried what you said about shutting down X, unpluging the mouse, suspend and then do it in the reverse order...
Basically i have set up mythtv and i want with the remote control to just suspend the pc (withouth doing anything else). And then when i turn the pc on again, i would be glad to have every hardware working again...
But unfortunately that's not the case. Who knows maybe in next kernels....

P.S: I've upgraded to 2.6.17.11 but the problem remains.

Thank you for your concern!
 
Old 09-14-2006, 08:25 AM   #8
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
Yeah I suggested it as it just might help you pinpoint what's going on.

have you tried to 'blacklist' the evedev modules in the config files for suspend2.

you should be able to tell it not to rmmod your evdev or mouse in those files.

give that a shot.
 
Old 09-14-2006, 04:11 PM   #9
capthookb
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I discovered why my mouse is not working after the suspend
But i still cannot solve the problem.
After doing a
Code:
#cat /proc/bus/input/devices
before and after the suspend i discovered that the event device of the mouse has changed from 1 to 2.

Before the suspend:
Code:
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=045e Product=008c Version=0057
N: Name="Microsoft Microsoft Wireless Optical Mouse? 1.0A"
P: Phys=usb-0000:00:10.0-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=1c3
and after the suspend:
Code:
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=045e Product=008c Version=0057
N: Name="Microsoft Microsoft Wireless Optical Mouse? 1.0A"
P: Phys=usb-0000:00:10.0-1/input0
S: Sysfs=/class/input/input4
H: Handlers=mouse0 event2
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=1c3
and in xorg.conf i have "Option" "Device" "/dev/input/event1"
If i shutdown X, change the event device in xorg.conf and then fire up X again the mouse is working!!!

Any ideas?
 
Old 09-14-2006, 05:16 PM   #10
capthookb
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
While searching google i came up with this page: http://gentoo-wiki.com/HOWTO_Advanced_Mouse

where it explains the configuration of mice working with evdev in xorg.conf. For xorg version > 0.6.9 (i have 0.6.9) instead of the Option "Device" "dev/input/eventX" you can set the mouse with the Option "Name" so evdev won't have to look for a specific /dev/input/eventX option because they can change.
Code:
    Identifier     "Mouse1"
    Driver         "evdev"
    Option         "Device" "/dev/input/event1"
Code:
    Identifier     "Mouse1"
    Driver         "evdev"
    Option         "Name"   "Microsoft Microsoft Wireless Optical Mouse� 1.0A"
The string in the name has to be the exact same string that cat /proc/bus/input/devices prints. But in my case that doesn't work. In the string there is the ® character and i don't know if X accepts these characters while parsing xorg.conf or even how to type such a character in xorg.conf
.....
 
Old 09-15-2006, 08:56 AM   #11
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
I'm at a loss to be honest.

Maybe make a post, or send an email off to xorg developers? Maybe there is a way to make an 'alias' for the device or something like that? Possibly taking out the trademark logo and all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trying to unload unnecessary kernel modules biophysics Linux - Kernel 4 05-14-2006 05:21 AM
Tomcat reload servlet is very slow, but reload jsp is fast and good? gsbarry Programming 2 04-28-2006 10:34 PM
Can't unload (or power off) wireless card (ndiswrapper won't unload) shadowsnipes Linux - Wireless Networking 6 10-02-2005 11:48 AM
How do I know wich modules I can unload. Palula Linux - Newbie 5 07-19-2005 08:47 PM
Suspend 2 - Failed to unload nvidia dezza Linux - Software 2 05-23-2005 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:57 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