You are not logged in.

#1 2004-07-16 10:53:51

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

udev experience and tips

hi
udev works right now
and now a usefull link to more udev info

http://www.reactivated.net/udevrules.php

after update you have to reset your permsissions on everything
the file is called:
/etc/udev/permissions.d/udev.permissions

mine looks like that to get cdburning and audio working again as user
---snip
# disk devices
hdc:root:users:660
hdd:root:users:660
---snap

--snip
# audio devices
dsp*:root:users:0660
audio*:root:users:0660
midi*:root:users:0660
mixer*:root:users:0660
sequencer*:root:users:0660
sound/*:root:users:0660
snd/*:root:users:0660
beep:root:users:0660
admm*:root:users:0660
adsp*:root:users:0660
aload*:root:users:0660
amidi*:root:users:0660
dmfm*:root:users:0660
dmmidi*:root:users:0660
sndstat:root:users:0660
---snap

to get cdrom dvd and cdrecorder links if you want them
add to your (change it for your needs)
/etc/udev/rules.d/udev.rules
---snip
# cdrom/dvd links
KERNEL="hdc"     SYMLINK="dvd"
KERNEL="hdd"    SYMLINK="cdrecorder cdrom"

# ide block devices
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
---snap

important the KERNEL="hdx" options must be entered before
BUS="ide", KERNEL="hd*" ...
because it won't work if you enter it after it.

that's it for right now
feel free to post more usefull things about the subject right here

Offline

#2 2004-07-16 13:39:10

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

just installed udev last night, and it boots fine.  However, I get a message during boot that my sound card could not be found. I use alsa. Anyone know what to do?

Thanks
-Khaz

Offline

#3 2004-07-16 14:57:36

@leX
Member
From: Israel
Registered: 2003-11-06
Posts: 76

Re: udev experience and tips

Alsa not started in my box too.

Offline

#4 2004-07-16 15:16:30

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: udev experience and tips

did you note this part of tpowa's post?

etc/udev/permissions.d/udev.permissions

mine looks like that to get cdburning and audio working again as user
---snip
# disk devices
hdc:root:users:660
hdd:root:users:660
---snap

--snip
# audio devices
dsp*:root:users:0660
audio*:root:users:0660
midi*:root:users:0660
mixer*:root:users:0660
sequencer*:root:users:0660
sound/*:root:users:0660
snd/*:root:users:0660
beep:root:users:0660
admm*:root:users:0660
adsp*:root:users:0660
aload*:root:users:0660
amidi*:root:users:0660
dmfm*:root:users:0660
dmmidi*:root:users:0660
sndstat:root:users:0660

if you look at the default for this file the permissions are root:root. change the second root to users as shown above.


AKA uknowme

I am not your friend

Offline

#5 2004-07-16 15:32:28

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

Re: udev experience and tips

what you want to say with alsa not working?
if kde complains about /dev/dsp not readable check your permissions of /dev/dsp

does the module not load (try lsmod)

have you changed /etc/modprobe.conf?
mine looks like that
snip---
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.3 ---
alias snd-card-0 snd-via82xx
alias sound-slot-0 snd-via82xx
# --- END: Generated by ALSACONF, do not edit. ---
snap--

i used alsaconf to set up alsa

have you changed /etc/rc.conf?

your modules should look like that:
MODULES=(!usbserial !ide-scsi rtc !via-agp nvidia ide-floppy snd-card-0 snd-pcm-oss parport parport_pc lp !usblp sd_mod)

or does your favorite music app not play any sound? (can be a permission problem wich i explained in the first post
or use your favorite mixer app to increase the volume)

please be more precise what's not working
alsa setup is not black art ;-)

Offline

#6 2004-07-16 17:02:05

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

Re: udev experience and tips

yeah do you want to know how to restart udev to test symlinks etc.?

here are the commands to be run by root to restart udev:
/etc/./start_udev
mount /dev/pts
mount /dev/shm

Offline

#7 2004-07-16 17:12:28

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

Re: udev experience and tips

Just a thought how about putting this in the Wiki

Mr Green


Mr Green

Offline

#8 2004-07-16 18:37:21

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

Re: udev experience and tips

The way that I configured udev is to have a whole permissions and rules directory.  This lets you have custom permissions and rules files that will never be overwritten.

If you want to add permissions to devices that aren't listed in udev.permissions, just create your own .permissions file in the same directory.

Same goes for rules.


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

#9 2004-07-16 18:59:23

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: udev experience and tips

Hi,

I have udev mostly working OK for me but some driver modules are not loaded at boot-up, e.g. tulip driver de4x5, ide-cd, psmouse, parport_pc and lp, and snd-oss-***.

I originally had module auto-loading setup,  using modprobe.devfs to specify driver modules to be loaded on demand. Now apparently we have loading on first detection but still don't really know how suitable driver modules are identified by udev/hotplug.

TIA for any info/hints.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#10 2004-07-16 19:11:35

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

Re: udev experience and tips

udev doesn't do module autoloading based on accesses.  Period.  It's not designed to and it probably never will.  All those aliases that you have will have to be loaded through rc.conf or using hotplug appropriately (on device connection).

If you want module autoloading, you have to go back to devfs.


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

#11 2004-07-16 23:19:10

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

i'm not sure what the problem is. right when it finishes starting the network, i see a message flash that says something like ... sound card cant be found. it goes by so fast i cant read it. i looked in the /var/logs but i dont dont what im looking for.  i ran alsaconf again, but that didnt work. i think it has something to do with the modules.

this is what my rc.conf looks lilke:

[/code]MODULES=(!usbserial !ide-scsi !8139too sk98lin nvidia snd-card-0 snd_emu10k1 snd-pcm-oss)

DAEMONS=(syslogd klogd !pcmcia network netfs crond alsamixer)
[code]

i noticed after looking at your modprobe that you have the hotplug daemon. mine doesnt? i tried adding the hotplug and i got even more errors on boot up.

this is what my modprobe looks like:


[/code]alias /dev/nvidia*   nvidia
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.5 ---
options snd  device_mode=0666
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
# --- END: Generated by ALSACONF, do not edit. ---[code]


i'm totally lost. im starting to think i need to remove udev... how would i do that ?

thanks for any adivce you have.

-khaz[/code]

Offline

#12 2004-07-16 23:44:16

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

Re: udev experience and tips

All you got to do to get alsa going is to put the "right" module in rc.conf and edit your udev.permissions!

Maybe your module is this snd-emu10k1 big_smile  big_smile


arch + gentoo + initng + python = enlisy

Offline

#13 2004-07-17 00:07:46

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

This is what my udev looks like.

# audio devices
dsp*:root:users:0660
audio*:root:users:0660
midi*:root:users:0660
mixer*:root:users:0660
sequencer*:root:users:0660
sound/*:root:users:0660
snd/*:root:users:0660
beep:root:users:0660
admm*:root:users:0660
adsp*:root:users:0660
aload*:root:users:0660
amidi*:root:users:0660
dmfm*:root:users:0660
dmmidi*:root:users:0660
sndstat:root:users:0660

I changed the mod in rc.conf.. nogo.

Offline

#14 2004-07-17 00:13:11

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

Re: udev experience and tips

looks good, does it not work?


arch + gentoo + initng + python = enlisy

Offline

#15 2004-07-17 00:19:20

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

no.

I dont know what else could be wrong.

Offline

#16 2004-07-17 00:29:31

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

this is what my disc devices look like. i cant  get me cdrom to mount either. says :

[root@entropy jason]# mount /mnt/cd
mount: special device /dev/cdroms/cdrom0 does not exist

# disk devices
hd*:root:disk:660
sd*:root:disk:660
dasd*:root:disk:660
ataraid*:root:disk:660
loop*:root:disk:660
md*:root:disk:660
ide/*/*/*/*/*:root:disk:660
discs/*/*:root:disk:660
loop/*:root:disk:660
md/*:root:disk:660

Offline

#17 2004-07-17 00:36:28

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

Re: udev experience and tips

Your cdrom must be specified in fstab.
Maybe it could be a permission problem, check your optical device section.

Is your soundcard still not found?


arch + gentoo + initng + python = enlisy

Offline

#18 2004-07-17 00:47:02

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

sound card is not working.

Offline

#19 2004-07-17 00:52:11

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

Re: udev experience and tips

Take away snd-card-0 and snd-pcm-oss and reboot.
If snd-emu10k1 is the right module it should work.


arch + gentoo + initng + python = enlisy

Offline

#20 2004-07-17 00:58:44

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

no, did not work. my sound card worked fine before udev was installed.

Offline

#21 2004-07-17 01:03:10

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

Re: udev experience and tips

What does $ alsamixer , give?
No sound card found or permission denied?


arch + gentoo + initng + python = enlisy

Offline

#22 2004-07-17 01:05:46

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

Re: udev experience and tips

4 things:

- network (e100) is not working (rc.d/network start [FAILED])

- apache is not starting ([FAILED])

- keyboard is not working in x

- usb-storage and firewire external harddisks are not under /dev/discs/ nor /dev/sdX (kernel sees them, but i cannot find them under /dev )

- 2.4.x kernel do not boot at all (2.6.x is, so this is only minor trouble)

my MODULES:

MODULES=(e100 ide-scsi usb-storage scanner sr_mod sd_mod nvram !bluez hci_usb l2cap ohci1394 !thinkpad !smapi !rtcmosram !thinkpadpm snd-intel8x0 snd-pcm-oss lp intel-agp usbvision)

my DAEMONS:

DAEMONS=(syslogd klogd pcmcia hotplug crond !ifplugd network portmap cups fam proftpd httpd sshd !sfscd)

and network:

lo="lo 127.0.0.1"
eth0="dhcp"
eth2="dhcp"
INTERFACES=(lo eth0 eth2)

keyboard:

Section "InputDevice"
  Driver       "Keyboard"
  Identifier   "Keyboard[0]"
  Option       "MapName" "Standard Keyboard [ pc104 ]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "de_CH"
  Option       "XkbModel" "pc101"
  Option       "XkbRules" "xfree86"
  Option       "RightAlt" "ModeShift"
EndSection


-> booting in devfs enabled kernel works, that's why i'm not angry on linux :-) ... general tip: add an alternative entry in your bootloader without the devfs=nomount, so you can boot into devfs until udev works for all things for you

any ideas how to solve these issues?


The impossible missions are the only ones which succeed.

Offline

#23 2004-07-17 01:13:38

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: udev experience and tips

well the sound is now working. i removed a daemon from rc.conf called alsamixer. when i first installed arch and was working on getting my sound card up i found somewhere in this forum a script that would save my alsamixer settings upon shutdown and restore them at boot.. looks like i dont need it at all.

i still havent figured out why my cd isnt mounting. any ideas?

Offline

#24 2004-07-17 01:13:49

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

Re: udev experience and tips

ohh ... forgot: no alsa module got loaded too, so no sound as issue 5 :-(


The impossible missions are the only ones which succeed.

Offline

#25 2004-07-17 01:38:28

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

Re: udev experience and tips

@khazdar
your device is not recognised at all. Strange....

@dp
udev don't like login managers! kakabaratruskias keyboard didn't work until he turned it off.


arch + gentoo + initng + python = enlisy

Offline

Board footer

Powered by FluxBB