Hello I am making a udev rule for ttyS0, ttyS1 and ttyS2. The main thing I want to do is set the permissions to rw for everybody. The ports have things like GPS receivers and VCRs attached. So there are no devices SUSE Linux recognizes or has been told to use (afaik). I see that my udev rules are installed correctly. The command 'udevtest /sys/class/tty/ttyS0 tty' lists: main: looking at device '/class/tty/ttyS0' from subsystem 'tty' main: opened class_dev->name='ttyS0' udev_rules_get_name: rule applied, 'ttyS0' becomes 'ttyS0' udev_rules_get_name: reset symlink list udev_rules_get_name: add symlink 'gps' create_node: creating device node '/dev/ttyS0', major = '4', minor = '64', mode = '0666', uid = '0', gid = '14' create_node: creating symlink '/dev/gps' to 'ttyS0' which looks fine (mode=0666 and symlink in place). I do the same for ttyS1 and ttyS2, with similar results. My problem is that ttyS0 (only) does not maintain the permissions and owner. ttyS1 and ttyS2 do. The symlink for all remain. crw------- 1 roger uucp 4, 64 2006-01-18 11:21 /dev/ttyS0 crw-rw-rw- 1 root uucp 4, 65 2006-01-18 11:21 /dev/ttyS1 crw-rw-rw- 1 root uucp 4, 66 2006-01-18 11:21 /dev/ttyS2 crw-rw---- 1 root uucp 4, 67 2006-01-18 11:21 /dev/ttyS3 crw-rw---- 1 root uucp 4, 68 2006-01-18 11:21 /dev/ttyS4 crw-rw---- 1 root uucp 4, 69 2006-01-18 11:21 /dev/ttyS5 crw-rw---- 1 root uucp 4, 70 2006-01-18 11:21 /dev/ttyS6 crw-rw---- 1 root uucp 4, 71 2006-01-18 11:21 /dev/ttyS7 lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/gps -> ttyS0 lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/photocell -> ttyS1 lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/vcr -> ttyS2 This means that someone somewhere is modifying the ttyS0 serial port after udev sets it up. But I do not know who. It is no software that I have installed, as none of that runs. I do not have ppp installed (unless it is some default activity set up by the SUSE 10 install). I see that the port belongs to me, but I do not know why. Any ideas? -- Roger Oberholtzer
At 09:53 PM 18/01/2006, Roger Oberholtzer wrote:
Hello
cut
This means that someone somewhere is modifying the ttyS0 serial port after udev sets it up. But I do not know who. It is no software that I have installed, as none of that runs. I do not have ppp installed (unless it is some default activity set up by the SUSE 10 install). I see that the port belongs to me, but I do not know why.
Any ideas?
from memory it's affected if you have a mouse (even if using another connection method), plus there are some kernal settings tied to that port. Have a look at the kernal notes/faq, you may have to recompile or build your own. scsijon
On Wed, 2006-01-18 at 22:02 +1100, scsijon wrote:
At 09:53 PM 18/01/2006, Roger Oberholtzer wrote:
Hello
cut
This means that someone somewhere is modifying the ttyS0 serial port after udev sets it up. But I do not know who. It is no software that I have installed, as none of that runs. I do not have ppp installed (unless it is some default activity set up by the SUSE 10 install). I see that the port belongs to me, but I do not know why.
Any ideas?
from memory it's affected if you have a mouse (even if using another connection method), plus there are some kernal settings tied to that port. Have a look at the kernal notes/faq, you may have to recompile or build your own.
I have checked a bit more. When I boot to runlevel 5 (default - GUI login), and instead of logging in here, switch to the character console and log in, the ttyS0 permissions remain as I want. So they survive at least this far. I have tried logging in with failsafe and WindoMaker sessions to see if it was something that KDE was doing. The permissions are modified for both. So it is not specific to KDE. Current finger points at X. But, only after someone logs in - not when X is running to show the GUI login. So, I know more, but still not enough. -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
On Wed, 2006-01-18 at 12:58 +0100, Roger Oberholtzer wrote:
I have checked a bit more. When I boot to runlevel 5 (default - GUI login), and instead of logging in here, switch to the character console and log in, the ttyS0 permissions remain as I want. So they survive at least this far.
I have tried logging in with failsafe and WindoMaker sessions to see if it was something that KDE was doing. The permissions are modified for both. So it is not specific to KDE.
Current finger points at X. But, only after someone logs in - not when X is running to show the GUI login.
Hate to follow up my own post. But I think the permissions were set by /etc/logindevperm. Just my luck, there is an entry there called /dev/gps (whatever that is expected to be in a generic SUSE distribution). Well, in my udev rules I make a symlink to ttyS0 called gps. Which, when I log in as the first GUI login on the console, get set to the permissions in /etc/logindevperm. One mystery solved. Not to see what /dev/gps is. By the location in the /etc/logindevperm file, I would guess it is a laptop thing. -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
On Mon, 2006-01-23 at 10:50 +0100, Roger Oberholtzer wrote:
One mystery solved. Not to see what /dev/gps is. By the location in the /etc/logindevperm file, I would guess it is a laptop thing.
Never heard of a device that connects to the GlobalPositioningSatelite system (GPS)? -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Mon, 2006-01-23 at 07:51 -0500, Ken Schneider wrote:
On Mon, 2006-01-23 at 10:50 +0100, Roger Oberholtzer wrote:
One mystery solved. Not to see what /dev/gps is. By the location in the /etc/logindevperm file, I would guess it is a laptop thing.
Never heard of a device that connects to the GlobalPositioningSatelite system (GPS)?
Yes. I use them all the time. Some folk call the connection device a serial port :) My question was what this is in a standard Linux distro. Is there some GPS support beyond a generic serial port? If so, interesting. If not, my question remains. -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
At 12:20 AM 24/01/2006, Roger Oberholtzer wrote:
On Mon, 2006-01-23 at 07:51 -0500, Ken Schneider wrote:
On Mon, 2006-01-23 at 10:50 +0100, Roger Oberholtzer wrote:
One mystery solved. Not to see what /dev/gps is. By the location in the /etc/logindevperm file, I would guess it is a laptop thing.
Never heard of a device that connects to the GlobalPositioningSatelite system (GPS)?
Yes. I use them all the time. Some folk call the connection device a serial port :)
My question was what this is in a standard Linux distro. Is there some GPS support beyond a generic serial port? If so, interesting. If not, my question remains.
set it up as if your using a modem, most gps's either need the extra handshaking pins to be alive or the software equiv. at least that's how mine works scsijon
participants (3)
-
Ken Schneider
-
Roger Oberholtzer
-
scsijon