Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hibernate resume/suspend and device designation.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ilovebeer
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2008
Posts: 87

PostPosted: Fri Jun 12, 2009 5:14 am    Post subject: Hibernate resume/suspend and device designation. Reply with quote

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
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Fri Jun 12, 2009 9:37 pm    Post subject: probably need to look at udev rules Reply with quote

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
View user's profile Send private message
ilovebeer
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2008
Posts: 87

PostPosted: Fri Jun 12, 2009 11:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Sat Jun 13, 2009 12:24 am    Post subject: Re: Hibernate resume/suspend and device designation. Reply with quote

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
View user's profile Send private message
ilovebeer
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2008
Posts: 87

PostPosted: Sat Jun 13, 2009 1:06 am    Post subject: Reply with quote

hello, tried that deleted /dev/ttyUSB* before hibernate... bummer, didn't work ... good idea though. :idea:
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Sat Jun 13, 2009 8:21 am    Post subject: Reply with quote

ilovebeer wrote:
hello, tried that deleted /dev/ttyUSB* before hibernate... bummer, didn't work ... good idea though. :idea:


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum