Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

udev trouble with DS18B20 & w1-gpio

Sun Jan 31, 2016 12:30 pm

I have a bit of trouble creating an udev rule for w1 devices.
This is on raspbian wheezy on an original RPiB Rev1 (256MB)

this rule triggers:

Code: Select all

SUBSYSTEM=="w1", ACTION=="add", KERNEL=="28-*", RUN+="/bin/bash -c /usr/bin/env>>/var/log/udevenv.log"
this doesn't:

Code: Select all

SUBSYSTEM=="w1", ACTION=="add", KERNEL=="28-*", RUN+="/bin/bash -c /usr/bin/env>>/var/log/udevenv.log", SYMLINK+="temp0"
I only added the RUN to see if the ruletriggered and what the environment would be.
What am I overlooking here?
Why does the rule not trigger after adding the symlink?
For now I have one DS18B20 connected. It gets detected and I can read from it.
In the end I want to use PROGRAM and SYMLINK to add human readable names to the sensors.

Regards
Aydan
Last edited by Aydan on Wed Feb 03, 2016 3:07 pm, edited 1 time in total.

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: udev trouble

Tue Feb 02, 2016 1:37 pm

Could a moderator please move this into the "Advanced Users" subforum? Maybe I'll get more response there.

Regards
Aydan

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: udev trouble

Tue Feb 02, 2016 1:38 pm

Aydan wrote:Could a moderator please move this into the "Advanced Users" subforum? Maybe I'll get more response there.
Report your post (link somewhere at the top of the post) and select 'post is in wrong subforum')

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: udev trouble with DS18B20 & w1-gpio

Thu Feb 04, 2016 9:28 am

Is the w1-gpio module something Raspberry sepcific? I could only find Raspberry references for it.
Even so, could somebody give me a hint why adding SYMLINK stops the rule from being applied?

Regards
Aydan

Return to “Advanced users”