LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-31-2005, 09:27 PM   #1
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Rep: Reputation: 15
Making UDEV Work


Does someone know of a well written guide for making udev work in Slackware such as the two excellent stickies at the top of this forum?
 
Old 01-01-2006, 01:18 AM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
echo /sbin/udevsend > /proc/sys/kernel/hotplug

You could put that in your rc.udev script. Towards the bottom above 'udevstart'. Not on a slack box at the moment. That's how it's supposed to work really. Pat doesn't do it because he's still using a 2.4 kernel. That and he probably wouldn't feel comfortable giving such an unstable/in-flux program so much control. If your running a 2.6 and want to give the reins to udev then thats the way to go.

Works with no problems. I've frozen at 072 because it's like playing russian roulete when it comes to udev. I get tired of things breaking on every new release... ;-)

Last edited by jong357; 01-01-2006 at 01:24 AM.
 
Old 01-01-2006, 01:35 AM   #3
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
just wondering...

how are you "frozen" at 072
when -current is at 064???
 
Old 01-01-2006, 01:49 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I don't normally run Slackware as per my sig... :-) It's something I made myself and I know why Pat is so conservative with upgrades. It's a full time job keeping a distro up to date. Especially when you use packages that are in flux like udev...
 
Old 01-01-2006, 01:55 AM   #5
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
so....
you don't run slack,
but you pretend to?
 
Old 01-01-2006, 09:50 PM   #6
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15
jong357,
Thanks for the input. My multicard reader now is detected. However the system still isn't recognizing my usb scanner when I connect it. Another thing, not sure if it is related, but since trying your solution my network connection keeps shutting off periodically I have to run /etc/rc.d/rc.inet1 start to restart my DHPC server.
 
Old 01-01-2006, 11:42 PM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yes, Kodon... I run Slackware. I have been since 8.1 or so. I tri-boot between Jaguar, Slack and Windows and spend most of my time in Jaguar. My favorite color is green, I have 3 cat's and an annoying downstairs neighbor. ?

Dannyl, not sure about that stuff. Try running "tail -f /var/log/messages" and leave the terminal open. Wait for your network to go down and see what was reported. Check 'lsmod', 'ifconfig' and whatever else you can think of to see what might be the problem. Is it a wireless or LAN connection?

Maybe your multicard reader is interfering somehow tho I'm not sure how. Try rolling back to your original udev script to see if the problem goes away. Then start using it again to see if it returns.

Not too sure what to tell ya.. You could also tell udev to log in /etc/udev/udev.conf... Maybe you could spot some conflicts or something fishy by looking at the logs. That's where I would start. At square one....
 
Old 01-02-2006, 07:25 AM   #8
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 372

Rep: Reputation: 55
Quote:
Originally Posted by jong357
echo /sbin/udevsend > /proc/sys/kernel/hotplug

You could put that in your rc.udev script. Towards the bottom above 'udevstart'. Not on a slack box at the moment. That's how it's supposed to work really. Pat doesn't do it because he's still using a 2.4 kernel. That and he probably wouldn't feel comfortable giving such an unstable/in-flux program so much control. If your running a 2.6 and want to give the reins to udev then thats the way to go.

Works with no problems. I've frozen at 072 because it's like playing russian roulete when it comes to udev. I get tired of things breaking on every new release... ;-)
Maybe i am wrong but i believe that it is not needed to put udevsend as the hotplug program.
(At least in my case it isn't)

/sbin/hotplug which is the default hotplugger will run the appropriate script from /etc/hotplug.d
If you have the udev package installed there is a symlink in the hotplug.d directory to udevsend.
So, hotplug will run it.

If you don't have the hotplug package installed and you have all the drivers needed compiled in your
kernel then you need to specify udevsend as the hotplugger as jong357 mentioned.
 
Old 01-02-2006, 08:51 AM   #9
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
Quote:
Originally Posted by kodon
just wondering...

how are you "frozen" at 072
when -current is at 064???
the latest is 79 now and it has completly taken over hotplug's job
 
Old 01-02-2006, 08:59 PM   #10
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15
I appreciate all the input. Maybe I will get this sorted out yet. Thats why I asked if anyone had a good guide that would walk a person through the entire process. I haven't made any scripts, I'm just running whatever the defaults are in a complete install. (version 10.2 with 2.6.13 kernel and modules from disk two.) Udev is about the only thing I haven't figured out yet. I'm seriously considering changing my computer over to Ubuntu simply because udev works in ubuntu. There are some things I don't like about Ubuntu, but so far it has been much easier to either fix or work around those than it is getting udev to work in Slackware.
 
Old 01-02-2006, 11:21 PM   #11
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
It might be worthwhile to have a look see at how Ubuntu handles Udev and then make Slackware do the same thing. That's pretty much why I rolled my own distro. A little bit of this... A little bit of that... You can have your cake and eat it too...

Interesting news on udev-079.... I stopped reading the changelog at 072.... Maybe in another year it'll calm down.
 
Old 01-03-2006, 06:12 AM   #12
abrouwers
Member
 
Registered: May 2005
Location: Michigan
Distribution: Slackware -current
Posts: 98

Rep: Reputation: 37
Much easier to get working? I compiled my own 2.6.x kernel, and udev works by default
 
Old 01-03-2006, 07:50 AM   #13
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 372

Rep: Reputation: 55
Me too.
It worked from day 1 with my compiled 2.6.X kernel
Just after 2.6.14 some things are symlinks in /sys so it didn't work correctly, so i compiled
udev-079 . Newer udev - kernel doesn't need hotplug so i just run udevd from an initscript and
everything works correctly. Slackware rules work perfectly. The only thing i added is a rule
to symlink /dev/usbflash to any usb device that has the "USB mass storage" model name.
 
Old 01-03-2006, 08:58 AM   #14
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Rep: Reputation: 30
errrrr. I just did
Code:
chmod +x /etc/rc.d/rc.udev
as root. while using a 2.6.14.4 kernel, and it magically started working.

all on slackware 10.2, hell I dunno if I did something stupid...
 
Old 01-03-2006, 09:24 AM   #15
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Udev-0.64 has worked out of the box for me without any tinkering. I have heard nightmarish stories with udev so I'll stick with what I have for now

Quote:
Originally Posted by ingvildr
the latest is 79 now and it has completly taken over hotplug's job
oooh, sounds interesting. I think I'll wait for things to calm down before upgrading though.
 
  


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
udev not making /dev/sound right in Slackware 10 glennt11 Slackware 5 01-16-2005 11:23 PM
making it work Cap'n Skyler Linux - Newbie 8 11-16-2004 02:07 AM
Uninstalled udev and now my video drivers don't work... Shafted Debian 1 07-01-2004 03:01 PM
'cdrecord -scanbus dev=ATAPI:' does not work with udev beolach Slackware 4 06-14-2004 03:03 AM
Making SCSI work gmartin Slackware 12 01-06-2004 01:00 PM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration