LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-03-2015, 06:03 PM   #16
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097

If sleeping or hibernating, hardware can be detached and reattached as long as it's the same port and interface without causing problems.

To be honest with you, all operating systems kinda behave this way. Windows, for example, will reattach a disconnected network1 device as network2 when reattached even if it's the same hardware as long as the system in in the active/running state.

Last edited by ReaperX7; 12-03-2015 at 06:11 PM.
 
Old 12-03-2015, 09:21 PM   #17
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
I tested hotplugging a wireless usb device, same one, on slackware 14.1, and slackware current (as of today, dec 3rd, latest update) multiple times. So despite ReaperX7 speaking on how OS handle hotplugging, and despite what USUARIONUEVO shows in his 70-persistent-net.rules, I cannot reproduce the behavior. My device net dev name is persistent with udev and eudev. I did try different ports, but in my case, they appear to be all on the same bus. However, I think that usuario found this still even plugging into the same port multiple times. If that is the case, then I cannot reproduce his problem at all. I'm glad since I was a little worried that eudev was different for some reason.
 
Old 12-04-2015, 02:08 AM   #18
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Couldn't replicate this either, it's just a single line per interface here.
I may have an idea where it's coming from, you should be able to break it in (/lib/udev) 75-persistent-net-generator.rules
.. by dropping everything that isn't eth0 or wlan0 :
Code:
# device name whitelist
KERNEL!="eth0|wlan0", GOTO="persistent_net_generator_end"
.. and commenting out the renaming part :
Code:
# rename interface if needed
# ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
It's a theory anyway, not sure how this would work if copied from /lib/udev into /etc/udev
 
Old 12-04-2015, 03:09 AM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
As others can't reproduce your issue, we should first make sure that it is not the consequence of a mistake done when upgrading.

In that aim I suggest that you do a fresh installation of Slackwate-current (32-bit or 64-bit) using one of the ISOs provided by Eric Hameleers here and see if the problem persists.
 
Old 12-04-2015, 07:15 AM   #20
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
I test this in to a alienbob livecd iso beta 2 (liveslack) fresh boot (no persistency)

If reboot , then the device goes to permanent name. (slackware installed on hard disk or fresh install to original iso)

Then i think its because are added into hardware.db but no work if no reboot.

When start with device plugeed, is added to db and then the rule works when arrives to desktops.
When start with unpluged , then device is added but (i think) not in db , then the rule goes to dinamically

need static, without reboot.


no need plug/unplug ... rmmod/modprobe do the same.

I test with two different usb cards ,different chips , do the same actions.
 
Old 12-04-2015, 07:22 AM   #21
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
I test this in to a alienbob livecd iso beta 2 (liveslack) fresh boot (no persistency)
We can't draw a conclusion from that. Please use one of the ISO I suggested.

Last edited by Didier Spaier; 12-04-2015 at 09:30 AM.
 
Old 12-04-2015, 08:08 AM   #22
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
OK , i download and install a new iso from 3 december and test , i thinking around record with recordmydesktop. :=)
 
Old 12-04-2015, 10:56 AM   #23
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
You might want to consider talking to eudev or the kernel driver team. Also, I'm not sure what other network device you tried, but make sure you tried a device that has a completely different driver stack. There is such a thing called a "usb device #" that always increments on plugging a device--meaning every time you plug something in, it ensures that the device has a unique, fresh instance. ReaperX7 is right in his perspective of the usb subsystem, and that could be an influence eudev to not be persistent, if the information given eudev on the hotplug event is always different. There is something else going on. Personally I think that eudev isn't necessarily the culprit, but could be the driver stack your device uses. Or a failed upgrade. It definitely should not behave this way from the user perspective, so make sure that your eudev configuration is the same as stock and then pursue the driver/eudev interaction.

Last edited by the3dfxdude; 12-05-2015 at 03:23 PM.
 
Old 12-05-2015, 05:18 AM   #24
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I tested things out on my end and I did find that if I'm running the Huge kernel, eudev doesn't need to trigger an event to reload the driver module, but when I use the Generic kernel, each time, eudev triggers a reload event my device changes nodes.

Are you running huge kernel or generic kernel?
 
Old 12-06-2015, 10:44 PM   #25
briselec
Member
 
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
Quote:
Originally Posted by the3dfxdude View Post
Perhaps this is the issue. Some people that are mobile alot plug/unplug their external usb devices on demand, and could be even suspending their machine mostly. Not having persistent naming in these scenarios is unfriendly, as I never restart (or hibernate), but also never leave everything plugged in always. Also if this worked before where devices weren't continually added with their device number incremented on a live plugging, I would also appreciate that did so again now too. I will check into this, but I'd hope someone has already thought about this before.
For specific devices such as a USB to RS422 cable I add a symlink to the udev rule. That way I can unplug/plug it and the symlink will always be pointing to the right port.
 
  


Reply



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
Anonymous victim HBGary goes to ground Jeebizz Linux - News 0 02-16-2011 02:28 PM
LXer: Recession's latest victim: U.S. innovation LXer Syndicated Linux News 0 12-15-2009 10:50 PM
Another FSTAB Victim DrEwMoNeY Slackware 19 03-20-2006 08:07 AM
Sorry, but I'm another external hdd victim Fuzzyo Linux - Hardware 9 01-22-2005 08:55 PM
Another Direct Rendering Victim mallouk Linux - Hardware 0 09-14-2003 12:55 PM

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

All times are GMT -5. The time now is 03:53 AM.

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