You are not logged in.

#76 2004-07-25 10:48:33

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: udev experience and tips

no!!!
why should I load things I don't use? big_smile

hotplug is for "wimps"


arch + gentoo + initng + python = enlisy

Offline

#77 2004-07-25 10:59:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: udev experience and tips

Why thank you  lol

Mr Green


Mr Green

Offline

#78 2004-07-25 13:11:56

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: udev experience and tips

xerxes2 wrote:

the wiki says that you "must" use hotplug,
I don't have hotplug in rc.conf and it works anyway.

Same here I don't use hotplug and works fine when having the modules in /etc/rc.conf. Moreover I don't want several pages of hotplug stuff scrolling in my screen during booting.


Markku

Offline

#79 2004-07-25 13:41:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: udev experience and tips

Here you go...

#Hotplug removed as per xerxes2 as hotplug is for wimps...

DAEMONS=(syslog-ng klogd cups !pcmcia network crond netfs xinetd !hotplug portmap fam kdm)

Just to keep the swede happy  lol

Mr Green....


Mr Green

Offline

#80 2004-07-26 18:02:20

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: udev experience and tips

what did I say green!
udev is doing just fine without hotplug.
read here for more info about hotplug http://linux-hotplug.sourceforge.net/
it's a great project.

here is my daemons array.

#I load the mr_green daemon first so he can check that the system is OK! 

DAEMONS=(mr_green syslogd klogd cups !pcmcia network crond netfs !hotplug) 

arch + gentoo + initng + python = enlisy

Offline

#81 2004-07-26 18:09:58

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: udev experience and tips

where do i get the mr_green daemon?


The impossible missions are the only ones which succeed.

Offline

#82 2004-07-26 18:30:05

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: udev experience and tips

I think I know how it goes... anything loaded before the udev daemon starts, gets devices created by udev with no problem.  Anything loaded after udev starts needs hotplug to have a device created (ie. modules, etc).


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#83 2004-07-26 20:01:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: udev experience and tips

dp wrote:

where do i get the mr_green daemon?

I'm working on the GUI wrapper at the moment.......


Mr Green

Offline

#84 2004-07-26 20:44:41

cs25x
Member
Registered: 2004-05-04
Posts: 150

Re: udev experience and tips

I changed my menu.lst to

root=/dev/hda1

and then it all worked. I was getting errors detecting my ps2 mouse & other things  with

root=/dev/discs/disc0/part1

The good news is that  USB appears to work in a more straightforward manner now. Before I had to mount /proc/bus/usb after I started devfsd to get the camera recognised & sda? created.
via chipset, 82xxx sound rhine nic. All is go  8)
The amlug live arch CD taught me about the /dev/hda1 alteration.


--(*(cs25x--));

Offline

#85 2004-07-27 08:14:44

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: udev experience and tips

update from my side
hotplug is not needed to be running as daemon, it should be installed
it sets some modules for you but at startup if you don't want that it is not needed
hotplug is needed for usb-scanners permissions but it has not to be in the daemons list tested it on two pcs

problems rise when no nodes are created and libusb is used
pcmcia is also no problem with no hotplug daemon running
usb-sticks are also recognized
no prob at all

i remove hotplug from the wiki

Offline

#86 2004-07-28 03:45:59

mctavish
Member
From: Australia
Registered: 2004-03-22
Posts: 48

Re: udev experience and tips

back again.

After configuring udev, without hotplug in my daemons list in rc.conf I get this message on startup...

alsactl: load_state: 1134: No soundcards found

...and sound consequently does not work. A little googling failed to enlighten me.

OTOH with hotplug in my daemons list in rc.conf, I get this message on startup...

modprobe: FATAL: Error inserting shpchp (/lib/modules/2.67/kernel/drivers/pci/hotplug/shpchp.ko): Operation not permitted
can't load module shpchp
missing kernel or user mode driver shpchp

...but sound works. I haven't yet seen any tragic consequences I can attribute to this nice error.

So I am happy that sound is going, but I am curious if anyone knows what is going on, and what shpchp is good for.

Also, if hotplug appears in rc.d and as a daemon, doesn't that mean it gets loaded twice? And am I the only one that needs hotplug as a daemon?

EDIT: shpchp seems to be the Standard Hotplug Pci Controller.

Offline

#87 2004-07-28 15:09:27

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: udev experience and tips

my camera only works as root.
I can't find what permission to change! 
if someone know, please update the wiki.....


arch + gentoo + initng + python = enlisy

Offline

#88 2004-07-28 15:12:19

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: udev experience and tips

you have a fstab entry for your camera
with "users" as option?
else try to change /dev/sd* perhaps it helps

Offline

#89 2004-07-28 15:38:26

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: udev experience and tips

I changed my permission for sd* to root:users:660, but I don't have an entry in fstab.
strange it works as root.


arch + gentoo + initng + python = enlisy

Offline

#90 2004-07-28 16:05:40

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: udev experience and tips

If you don't mount your camera as a hard drive, then you've configured the camera permissions with hotplug.  If you don't have hotplug running, it won't set your permissions when the camera is hotplugged.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#91 2004-07-28 16:13:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: udev experience and tips

xerxes2 wrote:

no!!!
why should I load things I don't use? big_smile

hotplug is for "wimps"

says it all....


Mr Green

Offline

#92 2004-07-28 21:16:09

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: udev experience and tips

I nuked my root partition a while ago, so i went through the old camera wiki and now it works as user also.. big_smile


arch + gentoo + initng + python = enlisy

Offline

#93 2004-07-31 23:58:11

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: udev experience and tips

I've decided to take the plundge into udev tonight.
Everything worked.. except for the soundcard.

This is how IceRAM started reading AGAIN the Wiki and the WHOLE 7 pages before. Like a very attentive person IceRAM is, he noticed that some users used alsaconf for configuring the sound. 3 months ago, when I first configured my ArchLinux, the Docs mentioned that I only need to add the soundcard module name to the MODULES=(...) line in /etc/rc.conf.
This DOES NOT work with udev. (at least not for me, others please confirm)
tpowa, please mention this in a beautiful way in the Wiki.

I don't know how exactly but, udev likes the aliases alsaconf creates in /etc/modprobe.conf. The volumes are set kind of weird by alsaconf so I had to manually slow my soundcard using the "alsamixer" tool.
I still use the "alsamixer" script in the Wiki to store and load volumes. "/etc/rc.d/alsamixer stop" to store and "... start" to load.

Offline

#94 2004-08-01 02:23:49

uberGeek
Member
From: Near Chicago
Registered: 2004-01-07
Posts: 65

Re: udev experience and tips

IceRAM wrote:

...the Docs mentioned that I only need to add the soundcard module name to the MODULES=(...) line in /etc/rc.conf.
This DOES NOT work with udev. (at least not for me, others please confirm)...

What's alsaconf?  smile  I hacked away until I figured out what modules I need for sound and then added them to modules in rc.conf. Sound worked after that.  When I switched to udev, it did not work, I spent 2 minutes in the first 3 pages of this thread and got my sound back.  My two cents.


carb $ now; uname -a; uptime
Sun 03Jul11 14:54:25 CDT -0500
Linux carb 2.6.17-ARCH #1 SMP PREEMPT Fri Jul 7 09:15:53 CEST 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
14:54:25 up 1463 days,  9:24,  1 user,  load average: 1.00, 1.00, 1.00

Offline

#95 2004-08-01 08:19:29

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: udev experience and tips

alsaconf checks what module is needed for your soundcard and makes some aliases to modprobe.conf

wiki updated hope now that the sound problems are gone
perhaps the sound wiki should be updated too

Offline

#96 2004-08-03 05:43:35

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: udev experience and tips

My sound works fine with no aliases, just rc.conf modules and udev.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#97 2004-08-03 05:48:41

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: udev experience and tips

Yeah, I have the module loaded by rc.conf, not in modprobe.conf and it works with udev.  But I did it by hand, not with alsaconf.

Offline

#98 2004-08-03 13:53:16

KalephOne
Member
From: Fortaleza, Brasil
Registered: 2004-04-02
Posts: 99

Re: udev experience and tips

just converted my laptop to udev - everything working beautifully, configured by hand and without hotplug  8)


Kaleph
jabber: kaleph@jabber.org

Offline

#99 2004-08-04 02:33:45

KalephOne
Member
From: Fortaleza, Brasil
Registered: 2004-04-02
Posts: 99

Re: udev experience and tips

Playing around with udev, i'm having a little problem.
I've managed to create a rule to make udev identify my printer and create /dev/hp0 (it was MUCH easier than I tought big_smile).
Everything was ok, but CUPS doesnt identify it. Looks like it just identifies usb printers following the /dev/usb/lpN structure.
Have anyone tried something similar? I'm gonna try to discover something at the cups website and mailing lists.


Kaleph
jabber: kaleph@jabber.org

Offline

#100 2004-08-04 07:05:21

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: udev experience and tips

try loading usblp in rc.conf module list
then cups identifies it and
need no longer dev/usb/lpx

Offline

Board footer

Powered by FluxBB