LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Making a udev rule for sonypi (http://www.linuxquestions.org/questions/linux-software-2/making-a-udev-rule-for-sonypi-420759/)

blimbo 03-01-2006 06:34 PM

Making a udev rule for sonypi
 
Hi people,

I'm using sonypi and the sonykeyd to get the function buttons working on my Sony Vaio. They require /dev/sonypi to be created, which I've done, but after each reboot the permissions on it are reset so sonykeyd fails to start at bootup. It gives the following message:

Failed to open /dev/sonypi: Permission denied

So I believe I neet to make a rule for udev (I'm using Fedora Core 4).

I tried this but I think I have the syntax wrong, /etc/udev/rules.d/11-sonypi.rules:

# udev rule to create /dev/sonypi
KERNEL="sonypi", NAME="sonypi", MODE="0755"

But still the permissions aren't set right after reboot. Can anyone tell me what I'm doing wrong? Cheers,

Tim

jomen 03-01-2006 06:43 PM

The device should be created automatically - provided that you compiled it into the kernel...
-> Device Drivers -> Character devices -> Sony Vaio Programmable I/O Control Device support (EXPERIMENTAL)
I had a Sony Vaio which actually did NOT have this device (pcg-fx 805).

blimbo 03-01-2006 06:55 PM

It's there (possibly because I created it in the first place) but the problem is the permissions are always reset.

jomen 03-01-2006 07:20 PM

What I meant: you can create a device-file for which there is no device present (at least not with a suitable driver - as I suggested)
...just like the old way to have all device-nodes for every conceivable device present in /dev without these things actually existing on your system...then came devfs and then udev and you see only the devices you really have...

jschiwal 03-01-2006 07:48 PM

Perhaps a later rule is changing the MODE value. You may try using MODE:="0755" instead.


All times are GMT -5. The time now is 11:03 PM.