LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-01-2006, 06:34 PM   #1
blimbo
LQ Newbie
 
Registered: Jul 2003
Location: London
Distribution: Fedora Core 4
Posts: 16

Rep: Reputation: 0
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
 
Old 03-01-2006, 06:43 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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).
 
Old 03-01-2006, 06:55 PM   #3
blimbo
LQ Newbie
 
Registered: Jul 2003
Location: London
Distribution: Fedora Core 4
Posts: 16

Original Poster
Rep: Reputation: 0
It's there (possibly because I created it in the first place) but the problem is the permissions are always reset.
 
Old 03-01-2006, 07:20 PM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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...
 
Old 03-01-2006, 07:48 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making UDEV Work dannyl Slackware 42 01-29-2006 12:20 AM
Wrong group with custom udev rule enragedchip Linux - Hardware 1 12-11-2005 02:46 PM
Issues with adding a udev rule... Ateo Linux - General 1 03-04-2005 08:02 PM
udev not making /dev/sound right in Slackware 10 glennt11 Slackware 5 01-16-2005 11:23 PM
Sonypi ccerino Mandriva 0 12-19-2004 12:29 AM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration