You are not logged in.

#101 2004-08-04 07:38:43

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

Re: udev experience and tips

An update on my situation...

I have had ongoing problems with udev with my soundcard not being found on boot. I had convinced myself that loading hotplug as a daemon fixed the problem, but every 5 boots or so it was not found and I had to load the module for my soundcard by hand.

Well now I've discovered that I don't need hotplug as a daemon after all. The real problem seems to be with timing of daemons/modules in rc.conf.

If I load my soundcard module early (first in the list) and load the alsamixer daemon (if I remember right this was created by me at the recommmendation of the arch wiki) last, then I am rocking. Literally.  smile

I never had this problem with devfs.

Offline

#102 2004-08-04 13:12:30

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

Re: udev experience and tips

Thanks for the tip tpowa, but it doesnt work.  Looking around the cups mailing list, some people had problems with cups because their system created /dev/usblp0, not /dev/usb/lp/0 (it appears their distro was using devfs) and the recommendation was modify the devfs rule. A bug report was created, but since devfs is phasing out, the bug was closed.


Kaleph
jabber: kaleph@jabber.org

Offline

#103 2004-08-04 14:11:15

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

Re: udev experience and tips

my cups entry looks like this:
etc/cups/printers.conf
usb://EPSON/Stylus%20COLOR%20880
you see no dev specified

Offline

#104 2004-08-23 05:10:49

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: udev experience and tips

after i updated to udev and successfully fixed all the booting and sound problems, i now cant burn cds unless using root. i made sure all my persmissions are set to users, and tried the tip to use full device name (ie, hda and not just hd*) - but nothing works... my cd shows up in k3b as reader only and not as writer, unless i execute k3b using root.

any ideas? thanks.

Offline

#105 2004-08-23 05:24:22

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

Re: udev experience and tips

update to the latest kernel 2.6.8.1-3! this is a kernel bug
2.6.8.1 comes straight out of hell ;-)

Offline

#106 2004-08-23 06:08:33

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: udev experience and tips

i just compiled and installed latest kernel - still same prob...

maybe its a sign from god telling me to stop burning linux distros? yikes

Offline

#107 2004-08-23 06:33:35

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

Re: udev experience and tips

do you use the latest cdtrools from unstable?
cdrtools-devel 2.01a37?
have setuid cdrecord?
for me it works with at least the latest 2.6.8.1-3 kernel
else stay with 2.6.7 there it definitly works

EDIT:
If you compiled your own kernel take care that you include the patches for burning without them it cannot work

Offline

#108 2004-08-23 13:30:37

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: udev experience and tips

i use cdrtools 2.00.3-1. again, everything works fine, except for the permissions...

and about compiling the kernel sources - which patches should i apply? i use the default arch abs system/.config plus some small changes to suit my hardware to build my kernel, and no cd patches there...

tnx for your time wink

[edit]
its not realy a big problem - i can execute k3b using root everytime... but its just annoying not knowing what causes this little freak of nature...

Offline

#109 2004-08-23 14:45:44

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

Re: udev experience and tips

with patches i think of the new acpi patches and the cd-patches
which are new in the abs tree and these have to be applied to get the burner to work with 2.6.8.1 else no chance and you will get a huge memory leak when burning audio cd's with a system hang

look at the abs tree and you will find the new patches which were introduced in the 2.6.8.1-3 package including the nice logo from damir

Offline

#110 2004-08-23 15:57:34

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: udev experience and tips

excellent!

thanks alot tpowa smile since i used my own PKGBUILD to build the kernel i forgot to check the abs tree for any new patches tongue and viola - all works smile thanks again smile

[edit]
ps.
congrat for the new Arch logo smile looks great btw

Offline

#111 2004-08-24 14:45:29

Cobra
Member
Registered: 2004-07-30
Posts: 109

Re: udev experience and tips

wow I didn't expect to have only 1 minor problem! This is great smile

The only thing that didn't work, was my usbmouse. I created a symlink to /dev/psaux with the name /dev/usbmouse and now I can use my mouse again. Oh... I also have a script that starts the numlock on every tty, and that was broken too, but is fixed now smile
Sound works, webcam works, network works... is there anything else that I should check?

Offline

#112 2004-08-27 15:23:32

Ethyriel
Member
From: Arizona
Registered: 2004-07-03
Posts: 13

Re: udev experience and tips

I'm having sound problems, and nothing seems to fix it (everything from the wiki and this thread).  I'm in the console, so excuse me for not posting config excerpts.
The problem isn't that sound doesn't work, it works just fine.  All my modules are loaded (cs46xx), and I can play ogg's in mp3blaster.  The thing is that my alsamixer script to store and restore is failing with a

alsactl: load_State:1134: No soundcards found...

  Here's the really strange thing, if I run the script as root, it restores them just fine.
I assure you that my udev.permissions is setup properly for the sound group, and my user is in this group.  I've tried running alsaconf for the aliases in modprobe.conf, and I've moved the alsamixer daemon around in the rc.conf (beginning, end, here and there in the middle).  I also tried removing hotplug from that list.  Since it loads properly when started manually, I also tried starting it from rc.local, but that didn't work either.
Unlike someone earlier in the thread, my volume levels aren't being restored without this script.
Oh, and this is a pure udev environment.  I installed from the beta ISO, didn't install devfsd, and didn't compile devfs into my 2.6.8 kernel.  Also, this script worked fine with a nearly identical kernel on the same hardware in Arch 0.6, except with devfs.
What are the differences in the init scripts' environments and the command line's that could be causing this?

Please Help!
and thank you for it
Michael Salivar


---
Michael Salivar

Offline

#113 2004-08-27 15:44:41

Cobra
Member
Registered: 2004-07-30
Posts: 109

Re: udev experience and tips

Did you run alsaconf?

Offline

#114 2004-08-27 17:25:49

Ethyriel
Member
From: Arizona
Registered: 2004-07-03
Posts: 13

Re: udev experience and tips

Yes I did try alsaconf, and I added sound-card-0 to my rc.conf modules section when I did so.  I also tried it with sound_card_0, sound_card-0, and with just the normal snd_pcm_oss.

Something I tried since my last post was simply adding the 'alsactl restore' and 'alsactl -F restore' to my rc.local.  Both of these had the same effect, so the script definitely isn't at fault.

I'm at a loss, I don't understand why one second during init, after udev and the modules load, the sound card doesn't exist; then the next after I login everything is fine.  Hopefully digging through my kernel config will turn something up.

Thank you
Michael Salivar


---
Michael Salivar

Offline

#115 2004-08-27 22:36:46

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

Re: udev experience and tips

I was the one carrying on earlier in this thread about this 'no soundcards' problem.

Just a little bit more information about my situation...

As I said before to solve my problem I had my soundcard driver first in the modules list and the alsamixer script last in the daemons list.

What I didn't mention is that before the alsamixer entry I have the network daemon which takes a *really long time* to complete - I even had to increase the timeout value for it. It takes that long to get an IP from my ISPs DHCP server I guess.

So my point is that if it wasn't for the network taking so long to complete I would probably still have this problem. So it seems that the soundcard module is taking a very long time to register for whatever reason.

I don't know how, but you could try to put some kind of delay before the alsamixer script to see if that helps.

Offline

#116 2004-08-28 09:21:32

Ethyriel
Member
From: Arizona
Registered: 2004-07-03
Posts: 13

Re: udev experience and tips

That got it working, I added 'sleep 2' before 'alsactl restore' in the script from the wiki.  That might not be enough for some, or it might be minimized further by others if their modules load faster or another daemon loads slowly.

I really hate to slow my boot process, though.  Now it's only twice as fast as Windows XP big_smile

Thanks for clarifying mctavish
Michael Salivar


---
Michael Salivar

Offline

#117 2004-08-28 09:34:12

ghostwalker
Member
From: Tacoma, WA
Registered: 2004-07-28
Posts: 140

Re: udev experience and tips

I believe your case is that the no sound cards problem is because no /snd /sound directories in your /dev directory. For some reason udev did not create them, I don't remember the remedy?

Walt


P4 2.8Ghz @ 2.8Ghz SL6WT
Zalman CNPS7000-Cu
865PE Neo-2 LS BIOs 2.4
512mb Mushkin Level II
160GB Maxtor HD
Geforce 4 440MX
Antec 3700 1 exhaust and 1 intake fans
Linux 2.6.x
Linux user 314187
ArchLinux

Offline

#118 2004-08-28 09:35:21

ghostwalker
Member
From: Tacoma, WA
Registered: 2004-07-28
Posts: 140

Re: udev experience and tips

You might add to rc.conf snd-/drivername/ sound-pcm-oss in the modules area.


P4 2.8Ghz @ 2.8Ghz SL6WT
Zalman CNPS7000-Cu
865PE Neo-2 LS BIOs 2.4
512mb Mushkin Level II
160GB Maxtor HD
Geforce 4 440MX
Antec 3700 1 exhaust and 1 intake fans
Linux 2.6.x
Linux user 314187
ArchLinux

Offline

#119 2005-01-11 10:37:30

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: udev experience and tips

hmmm - i have had no probs with udev but my cdrom is not appearing when i run the kernel with scsi emulation - as far as i can tell no device is being created for it even?!

i am not using hotplug as i feel the same about the reams of output as rasat and it seems to work ok normally without it!

Offline

#120 2005-01-11 10:45:59

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: udev experience and tips

hold the phone - do i even need scsi emulation with 2.6 to use my cd-burner? seems not - why isn't this in the wiki? knowledge gap!

Offline

#121 2005-01-11 16:32:08

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: udev experience and tips

dibblethewrecker wrote:

hold the phone - do i even need scsi emulation with 2.6 to use my cd-burner? seems not - why isn't this in the wiki? knowledge gap!

nope... well, at least i'm fine without scsi emulation... i think you can check with "cdrecord -dev=ATAPI -scanbus" or something to that effect

Offline

#122 2005-01-14 08:05:55

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: udev experience and tips

right - i have tried with scsi emulation but xcdroast bitches at me about selecting an ATAPI drive - should i just ignore it?

with scsi emulation on i had a bit of a baffling experience - my drive used to be sda with scsi emu on - now it is sr0!  took me ages to figure it out!  xcdroast finds it as a scsi drive now and is much happier but xine and mplayer don't seem to be able to open /dev/sr0

I set up symlinks in my custom udev rules and added the line that sets up the scsi devfs structure in dev - they all work fine but but i still have the media player prob - help on that one?  xine also broke now - i dunno if this is related but i doubt it as if i boot without append hdc=ide-scsi or whatever it should just be the same system right?

Offline

Board footer

Powered by FluxBB