Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195728 - x11-plugins/gkrellm-vaiobright doesn't install udev rules
Summary: x11-plugins/gkrellm-vaiobright doesn't install udev rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 195952
  Show dependency tree
 
Reported: 2007-10-13 18:00 UTC by teidakankan
Modified: 2007-10-21 20:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emergeinfo.txt,8.85 KB, text/plain)
2007-10-13 18:00 UTC, teidakankan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description teidakankan 2007-10-13 18:00:06 UTC
Recently x11-plugins/gkrellm-vaiobright quit working as user access/permissions to /dev/sonypi seems to have been dropped.

Reference: Old Bugzilla Bug 54512

Reproducible: Always
Comment 1 teidakankan 2007-10-13 18:00:59 UTC
Created attachment 133345 [details]
emerge info
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-13 18:02:17 UTC
The ebuild should install its own udev rules as needed.
Comment 3 Matthias Schwarzott gentoo-dev 2007-10-13 18:07:48 UTC
is that the only app that can use sonypsi-device, or can it be used by other stuff also?
If yes: is there another software that everytime is installed when sonypsi is avail.
Comment 4 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-10-15 14:07:06 UTC
(In reply to comment #3)
> is that the only app that can use sonypsi-device, or can it be used by other
> stuff also?
> If yes: is there another software that everytime is installed when sonypsi is
> avail.

Perhaps app-laptop/spicctrl ?

I don't know - I don't actually have a vaio.

Can someone who does try installing spicctrl and see if it works, or if it installs the proper udev modules?
Comment 5 teidakankan 2007-10-16 23:17:27 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > is that the only app that can use sonypsi-device, or can it be used by other
> > stuff also?
> > If yes: is there another software that everytime is installed when sonypsi is
> > avail.
> 
> Perhaps app-laptop/spicctrl ?
> 
> I don't know - I don't actually have a vaio.
> 
> Can someone who does try installing spicctrl and see if it works, or if it
> installs the proper udev modules?
> 

I don't want to poo-poo this line of questioning, but it's a little off track from the original request.  If you can just show me how to do a quick fix for this I'll put it into an overlay until you have it all worked out.   I use an external monitor 90% of the time.  This is one thing I really use as I'm trying to stretch the life out of my laptop's built-in display.

Thanks.... 
Comment 6 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-10-17 12:49:43 UTC
As I've said, I don't have a Vaio, so I'm not sure what exactly what the device
user, group, and permissions used to be, or what they actually should be.

In the short term, you may want to just do the following, as root, on a running system:

  chmod u+rw /dev/sonypsi

Then run this plugin again.  You should be able to use the device properly. If that works and is the proper solution, create a file called /etc/udev/rules.d/98-local.rules, and put in the following 2 lines:

# Adjusting permissions for sonypsi
KERNEL=="sonypsi", MODE="0666"

Of course, this will just make the file read/write by everyone, which
probably isn't safe on a multiuser box... not sure how many Sony Vaio's
are on a multi-user box.  Anyway, the more common Gentoo-like solution
is to create a group called "vaio" or "sony", then make the device node
owned by that group, and then just add any allowed users to that
group.  I'm not sure if there's already a sony vaio group, but it may
not be a bad idea to consider this.

Please let me know if the above works, or what the user, group, and permissions on /dev/sonypsi used to be, so we can make it work.
Comment 7 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-10-17 12:58:08 UTC
I think I may have found the original udev rule for this.  Put this in your 98-local.rules instead:

# Sony Vaio Jogdial sonypi device
KERNEL=="sonypi",	NAME="%k", MODE="0666"

Sorry, not sure where I got the name "sonypsi" before.  Of course you'll also want to 

  chmod 666 /dev/sonypi

on your running system instead of what I mentioned above.
Comment 8 teidakankan 2007-10-17 21:36:56 UTC
That works, so I'm good now.  Thanks for your time and help.  

Sorry about pestering you. 
Comment 9 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-10-18 12:49:32 UTC
No trouble at all, and thanks for reporting this, there's no way I would have known about it otherwise!

I still have to devise an actual solution (perhaps installing my own udev rule as part of the ebuild, or depending on some other package that does), or at least put a notice in the ebuild that tells people they need to do this themselves.
Comment 10 Matthias Schwarzott gentoo-dev 2007-10-21 20:37:20 UTC
Added this rule back to udev-116-r1.