SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
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.
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!!!
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.
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
.....
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.