View previous topic :: View next topic |
Author |
Message |
ilovebeer Tux's lil' helper
Joined: 16 Aug 2008 Posts: 87
|
Posted: Fri Jun 12, 2009 5:14 am Post subject: Hibernate resume/suspend and device designation. |
|
|
hello, i have both hibernate/suspend working properly, but on resume for both this happens;
my usb cellular modem had a device designation of /dev/ttyUSB0. after suspend/hibernate and then resume it is /dev/ttyUSB3 next time it is /dev/ttyUSB6 an so on and so on. as you can imagine this plays havoc with my wvdial.conf! i removed all relevant modules before i hibernate/suspend so that /dev/ttyU* doesn't exist but modem still woke up 3 /dev/ttyUSB* designations higher than before suspend. how can i avoid this and get it to wake up as /dev/ttyUSB0?
thanks |
|
Back to top |
|
|
vaxbrat l33t
Joined: 05 Oct 2005 Posts: 731 Location: DC Burbs
|
Posted: Fri Jun 12, 2009 9:37 pm Post subject: probably need to look at udev rules |
|
|
You probably need to visit the rules in /etc/udev/rules.d to do some tweaking, but I can't be specific since I haven't played with modems for years.
A similar problem I had was with device eth0 moving around. It traced back to the mac address changing and thus causing an update to 70-persistant-net.rules that just did the wrong thing for me. |
|
Back to top |
|
|
ilovebeer Tux's lil' helper
Joined: 16 Aug 2008 Posts: 87
|
Posted: Fri Jun 12, 2009 11:51 pm Post subject: |
|
|
thank's, possibly you've pointed me in the right direction although i'm not sure the udev.rules files are re-read on resumption from suspend? perhaps someone could advise on this. i f they are then the device number should remain static. if not, the annoyance will probably remain. from my searching so far, this problem is widespread in the linux community. guess i'll keep fiddling and searching. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3468 Location: Canada
|
Posted: Sat Jun 13, 2009 12:24 am Post subject: Re: Hibernate resume/suspend and device designation. |
|
|
ilovebeer wrote: | hello, i have both hibernate/suspend working properly, but on resume for both this happens;
my usb cellular modem had a device designation of /dev/ttyUSB0. after suspend/hibernate and then resume it is /dev/ttyUSB3 next time it is /dev/ttyUSB6 an so on and so on. as you can imagine this plays havoc with my wvdial.conf! i removed all relevant modules before i hibernate/suspend so that /dev/ttyU* doesn't exist but modem still woke up 3 /dev/ttyUSB* designations higher than before suspend. how can i avoid this and get it to wake up as /dev/ttyUSB0?
thanks |
does /dev/ttyUSB0 still exists after resume ?
I wonder what will happen if you delete /dev/ttyUSB0 during hibernation ? |
|
Back to top |
|
|
ilovebeer Tux's lil' helper
Joined: 16 Aug 2008 Posts: 87
|
Posted: Sat Jun 13, 2009 1:06 am Post subject: |
|
|
hello, tried that deleted /dev/ttyUSB* before hibernate... bummer, didn't work ... good idea though. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3468 Location: Canada
|
Posted: Sat Jun 13, 2009 8:21 am Post subject: |
|
|
ilovebeer wrote: | hello, tried that deleted /dev/ttyUSB* before hibernate... bummer, didn't work ... good idea though. |
Here is another, just as 'bright' idea - what will happen if you blacklist the module responsible for device in
/etc/modprobe.d/blacklist , so that udev will not try to ever load it, and create the device /dev/ttyU.. by hand ?
(I'm trying to switch off udev managing this device without going into udev onfiguration)
It is possible udev will still fiddle with device, but maybe not ? |
|
Back to top |
|
|
|