LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-22-2008, 12:15 AM   #1
logularjason
LQ Newbie
 
Registered: Jul 2004
Location: Melbourne, Australia
Distribution: fedora 8
Posts: 12

Rep: Reputation: 0
uvcvideo now has power mgmnt. udev or hal to setup?


The uvcvideo driver (for logitech webcams etc.) has just been patched to provide power management. This entails writing into sysfs something like

echo "auto" > /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/power/level
echo "10" > /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/power/autosuspend


I would like this to be done when my laptop boots/resumes and am uncertain whether I should be doing this via a udev rule, or via HAL.

Given that I cannot see power management ATTR entries from udevinfo, I think a udev rule would look something like:

ATTRS{idVendor}=="046d", ATTRS{idProduct}=="08c6", RUN+="/bin/sh -c 'test -e /sys/$env{DEVPATH}/power/level && {echo auto > /sys/$env{DEVPATH}/power/level; echo 10 > /sys/$env{DEVPATH}/power/autosuspend}'"

I'm not sure yet what an equivalent HAL entry would look like, since somewhat akin to the udev approach above, there are no power management keys rendered by lshal.

Tips on the right approach would be appreciated. I've posted on fedoraforums without response. I'm running fedora 8 with a 2.6.23 kernel.

Thanks,

Jason.
 
  


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
hal and udev can't find version paddeo Slackware 5 04-12-2007 12:46 PM
What is relationship between udev and hal in etch? acanton Debian 9 02-23-2006 02:40 PM
HAL/UDEV ! I need help to get them working ! kevkim55 SUSE / openSUSE 1 01-15-2006 05:57 AM
the relation between udev,hal,kudzu? oriate Linux - General 3 10-26-2005 11:38 PM
udev/hal, problems... TazG Linux - Hardware 0 09-28-2004 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration