Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4666 - slmodem & udev rules

Attached to Project: Arch Linux
Opened by Claudio Riva (Firetux) - Saturday, 20 May 2006, 09:38 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 27 May 2007, 08:40 GMT
Task Type Support Request
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I configure one modem using the package slmodem but I can connect only with root because permission on devices are:

[firetux@p4m ~]$ ls -l /dev/ttySL0
lrwxrwxrwx 1 root root 10 2006-05-20 11:27 /dev/ttySL0 -> /dev/pts/1
[firetux@p4m ~]$ ls -l /dev/pts/1
crw-rw---- 1 root root 136, 1 2006-05-20 11:29 /dev/pts/1
[firetux@p4m ~]$ ls -l /dev/slamr0
crw-r--r-- 1 root root 242, 0 2006-05-20 11:27 /dev/slamr0
[firetux@p4m ~]$ ls -l /dev/modem
ls: /dev/modem: No such file or directory

even if in '/etc/udev/rules.d/slmodem.rules', owned by slmodem-utils, there are these lines:

KERNEL=="ttySL[0-9]", NAME=="%k", MODE=="0660", GROUP=="tty", SYMLINK+="modem"
ACTION=="add", DRIVER=="slamr", RUN+="/lib/udev/load-modules.sh ppp-generic"
ACTION=="add", DRIVER=="slusb", RUN+="/lib/udev/load-modules.sh ppp-generic"
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 27 May 2007, 08:40 GMT
Reason for closing:  Fixed
Comment by Jens Adam (byte) - Saturday, 20 May 2006, 11:07 GMT
Remove one = from NAME== in the first line. See also http://bugs.archlinux.org/task/4612
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 12:01 GMT
I tried and I also read the other task but, but it's the same
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 13:23 GMT
try NAME= and GROUP=
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 13:24 GMT
ah and MODE=
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 13:37 GMT
now I have:

KERNEL=="ttySL[0-9]", NAME="%k", MODE="0660", GROUP="tty", SYMLINK+="modem"
ACTION=="add", DRIVER=="slamr", RUN+="/lib/udev/load-modules.sh ppp-generic"
ACTION=="add", DRIVER=="slusb", RUN+="/lib/udev/load-modules.sh ppp-generic"

but I still continue to have no symlink and wrong permissions on device
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 13:42 GMT
remove NAME="%k" completely
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 13:54 GMT
I remove it, but no changes.

KERNEL=="ttySL[0-9]", MODE="0660", GROUP="tty", SYMLINK+="modem"
ACTION=="add", DRIVER=="slamr", RUN+="/lib/udev/load-modules.sh ppp-generic"
ACTION=="add", DRIVER=="slusb", RUN+="/lib/udev/load-modules.sh ppp-generic"

How can I verify that udev read etc/udev/rules.d/slmodem.rules ?
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 13:58 GMT
run udevtest /dev/yourdevice then errors should be shown
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 13:59 GMT
running slmodem daemon without using che rc. script I got this:

[root@p4m ~]# slmodemd --country=ITALY /dev/slamr0
SmartLink Soft Modem: version 2.9.11 Mar 12 2006 19:54:57
error: cannot find group 'uucp': No such file or directory
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `slamr0' created. TTY is `/dev/pts/1'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.

group 'uucp' could be the problem?
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 14:01 GMT
hmm could be
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 14:06 GMT
I add group 'uucp' with command: groupadd uucp
now I got these:

[firetux@p4m ~]$ ls -l /dev/ttySL0
lrwxrwxrwx 1 root root 10 2006-05-20 16:03 /dev/ttySL0 -> /dev/pts/1
[firetux@p4m ~]$ ls -l /dev/pts/1
crw-rw---- 1 root uucp 136, 1 2006-05-20 16:03 /dev/pts/1
[firetux@p4m ~]$ ls -l /dev/slamr0
crw-r--r-- 1 root root 242, 0 2006-05-20 15:52 /dev/slamr0
[firetux@p4m ~]$ ls -l /dev/modem
ls: /dev/modem: No such file or directory
[firetux@p4m ~]$
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 14:15 GMT
are you using udev 091 or 092?
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 14:17 GMT
[root@p4m ~]# pacman -Qi udev
Name : udev
Version : 091-6
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 14:19 GMT
could you please try 092 from testing? perhaps it is already fixed in it.
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 14:55 GMT
I upgrade udev to version 092-3. Nothing change :-(
Comment by Tobias Powalowski (tpowa) - Saturday, 20 May 2006, 15:00 GMT
hmm am i right ttySL is a symolic link?
if yes the rule cannot work because on symlinks you cannot change rights only on base device this is possible
Comment by Claudio Riva (Firetux) - Saturday, 20 May 2006, 15:09 GMT
when you run slmodemd it create /dev/pts/1 and /dev/ttySL0. ttySL* is a symbolic link to the first one

[root@p4m ~]# ls -l /dev/ttySL0 /dev/pts/1
crw-rw---- 1 root uucp 136, 1 2006-05-20 16:53 /dev/pts/1
lrwxrwxrwx 1 root root 10 2006-05-20 16:53 /dev/ttySL0 -> /dev/pts/1
[root@p4m ~]#

If the rule doesn't work with symlinks I think you have to add group 'uucp' during installation of slmodem-utils, so user can add ourself to this group.
Now another question: why it doesn't create the link /dev/modem ? For the same explanation?
Thank you
Comment by Tobias Powalowski (tpowa) - Sunday, 21 May 2006, 16:14 GMT
this is really crazy, because pts/1 could be anything and not only your modem :(
i donT' want to have a rule on /dev/pts devices
hmmm have you time to meet on irc it's better to fix this online together then through bugtracker.
Comment by Tobias Powalowski (tpowa) - Monday, 22 May 2006, 21:59 GMT
[tobias@Wohnung ~]$ slmodemd --help
Usage: slmodemd [option...] <device>
Where 'device' is name of modem device (default `/dev/slamr0')
and 'option' may be:
-h, --help this usage
-u, --usage this usage
-v, --version show version and exit
-c, --country=VAL default modem country name (default `USA')
--countrylist show list of supported countries
-a, --alsa ALSA mode (see README for howto)
-g, --group=VAL Modem TTY group (default `uucp')
-p, --perm=VAL Modem TTY permission (default `0660')
-r, --ringdetector with internal ring detector (software)
-n, --nortpriority run with regular priority
-s, --shortbuffer use short buffer (4 periods length)
-d, --debug=VAL debug level (default `0')
-l, --log=VAL logging mode (default `5')
to set the group the slmodemd is needed and not udev
Comment by Tobias Powalowski (tpowa) - Monday, 22 May 2006, 22:04 GMT
DRIVER=="slamr", SYMLINK+="modem" RUN+="/lib/udev/load-modules.sh ppp-generic"
DRIVER=="slusb", SYMLINK+="modem" RUN+="/lib/udev/load-modules.sh ppp-generic"
are those rules helping to get the modem symlink and ppp-generic loaded?
Comment by Tobias Powalowski (tpowa) - Monday, 22 May 2006, 22:14 GMT
please try these:
ACTION=="add", DRIVER=="slamr", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"
ACTION=="add", DRIVER=="slusb", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"
Comment by Claudio Riva (Firetux) - Tuesday, 23 May 2006, 08:42 GMT
in PKGBUILD of slmodem-utils you had put only one '>' (instead of '>>') in the second 'echo', so /etc/udev/rules.d/slmodem.rules is

'ACTION=="add", DRIVER=="slusb", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"'

I add it but, but no symlink yet :(
I will change options for slmodemd, I think you can completly remove slmodem.rules
Comment by Tobias Powalowski (tpowa) - Tuesday, 23 May 2006, 09:16 GMT
ppp-generic is still loaded or do you have serial ports in your pc?
Comment by Claudio Riva (Firetux) - Tuesday, 23 May 2006, 09:19 GMT
I don't have serial port. I load 'ppp-generic' and after 'slamr'
Comment by Tobias Powalowski (tpowa) - Tuesday, 23 May 2006, 13:42 GMT
is this working?
ACTION=="add", DRIVER=="slamr", NAME="%k", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"
ACTION=="add", DRIVER=="slusb", NAME="%k", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"
Comment by Claudio Riva (Firetux) - Tuesday, 23 May 2006, 18:45 GMT
it doesn't work. I think that it doesn't work because is not the module 'slamr' or 'slusb' that create a device but is 'slmodem' that create /dev/slamr, /dev/pts/1 and /dev/ttySL0 (as symbolic link to /dev/pts/1)
Comment by Tobias Powalowski (tpowa) - Tuesday, 23 May 2006, 20:39 GMT
sorry to say so but, slmodem does not exist!
there are 2 modules slamr and slusb no slmodem module
Comment by Claudio Riva (Firetux) - Tuesday, 23 May 2006, 20:48 GMT
sorry, not 'slmodem' as module...but 'slmodemd' (daemon)
Comment by Tobias Powalowski (tpowa) - Wednesday, 24 May 2006, 05:12 GMT
hmm ok an other try:
KERNEL=="slamr", NAME="slamr0", MODE="0660", GROUP="tty", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"
KERNEL=="slusb", NAME="slusb0", MODE="0660", GROUP="tty", SYMLINK+="modem", RUN+="/lib/udev/load-modules.sh ppp-generic"
Comment by Claudio Riva (Firetux) - Wednesday, 24 May 2006, 11:50 GMT
it doesn't work
Comment by Tobias Powalowski (tpowa) - Wednesday, 24 May 2006, 11:53 GMT
ok then if you have time, try to find any information on /sys/ about the modem, perhaps then it's possible to find a rules that fits.
Comment by Claudio Riva (Firetux) - Wednesday, 24 May 2006, 12:15 GMT
with 'lspci' I get this:

00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)

and I found directory /sys/devices/pci0000:00/0000:00:1f.6 , in this folder there are:

[root@p4m ~]# ls -l /sys/devices/pci0000:00/0000:00:1f.6
totale 0
lrwxrwxrwx 1 root root 0 2006-05-24 13:53 bus -> ../../../bus/pci
-r--r--r-- 1 root root 4096 2006-05-24 13:53 class
-rw-r--r-- 1 root root 256 2006-05-24 13:53 config
-r--r--r-- 1 root root 4096 2006-05-24 13:53 device
lrwxrwxrwx 1 root root 0 2006-05-24 13:53 driver -> ../../../bus/pci/drivers/slamr
-r--r--r-- 1 root root 4096 2006-05-24 13:53 irq
-r--r--r-- 1 root root 4096 2006-05-24 13:53 local_cpus
-r--r--r-- 1 root root 4096 2006-05-24 13:53 modalias
drwxr-xr-x 2 root root 0 2006-05-24 13:53 power
-r--r--r-- 1 root root 4096 2006-05-24 13:53 resource
-rw------- 1 root root 256 2006-05-24 13:53 resource0
-rw------- 1 root root 128 2006-05-24 13:53 resource1
-r--r--r-- 1 root root 4096 2006-05-24 13:53 subsystem_device
-r--r--r-- 1 root root 4096 2006-05-24 13:53 subsystem_vendor
--w------- 1 root root 4096 2006-05-24 13:53 uevent
-r--r--r-- 1 root root 4096 2006-05-24 13:53 vendor
[root@p4m ~]#

what information do you need?
Comment by Tobias Powalowski (tpowa) - Wednesday, 24 May 2006, 12:35 GMT
you are using the alsa mode aren't you? so probably this is the reason for the issue, perhaps it works on a normal slmodem as it should.
Comment by Claudio Riva (Firetux) - Wednesday, 24 May 2006, 17:38 GMT
I'm using normal slmodemd, not alsa mode.
Comment by Roman Kyrylych (Romashka) - Saturday, 14 April 2007, 12:37 GMT
status?
Comment by Claudio Riva (Firetux) - Saturday, 14 April 2007, 16:04 GMT
I still have the same problem
Comment by Tobias Powalowski (tpowa) - Sunday, 06 May 2007, 08:57 GMT
status on new packages?
Comment by Tobias Powalowski (tpowa) - Sunday, 27 May 2007, 08:39 GMT
closing due to not answering

Loading...