/lib/lsb/init-functions vs. /etc/init.d/functions in init scripts?
by John Dennis
Folks are supposed to upgrade their init.d scripts to support LSB.
Some of this is covered here:
http://fedoraproject.org/wiki/FCNewInit/Initscripts
One aspect of that is to switch from sourcing /etc/init.d/functions to
sourcing /lib/lsb/init-functions.
However the two init function libraries do not export the same
functions, nor is one a proper subset of the other.
If one wants to use the same init script on different Fedora versions
and/or different RHEL versions is it safe to assume the lsb functions
will exist and be properly implemented? In what releases will a lsb
compliant init script run correctly?
Does one have to require redhat-lsb in your RPM spec file?
Are you supposed to do something like this so the lsb functions override
the init.d functions but the init.d function such as "status" are not
absent?
if test -f /lib/lsb/init-functions; then
. /lib/lsb/init-functions
fi
. /etc/init.d/functions
If so I guess you also have to test for the existence
of /lib/lsb/init-functions before you can know if you're going to call
"daemon" or "start_daemon", right? (yuck).
Am I missing a pointer to documentation where all this is explained?
Are the bugs opened against init scripts a red herring because this
stuff has not been figured out yet as alluded to on July 5th? If so
maybe my above questions need to be addressed in the wiki.
--
John Dennis <jdennis(a)redhat.com>
16 years, 8 months
SInjdoc, gjdoc, and annotations
by Jerry James
I'm trying to package up the JCIP annotations package, and seem to
have hit a small roadblock on F-7. Sinjdoc won't produce
documentation for this package. It generates a few skeleton files
with no content, in spite of the presence of a package.html and
nontrivial file comments in all the source files. After pulling my
hair out for some time, I discovered this:
http://cscott.net/Projects/GJ/#sinjdoc
which says that sinjdoc 0.5 (the current version) does not have
support for annotations. Okay, gjdoc does, so I can just BR gjdoc
instead. Oops, gjdoc doesn't appear to exist for F-7.
Is gjdoc going to be made available for F-7, or am I stuck with the
javadoc that is missing support for annotations? Thanks,
--
Jerry James
http://loganjerry.googlepages.com/
16 years, 8 months
Fedora Extras Package Build Report 2007-08-28
by Fedora Koji Build System
Packages built and released for Fedora Extras 6: 21
aria2-0.11.2-1.fc6
babel-0.9-1.fc6
bugzilla-3.0.1-0.fc6
NEW d3lphin-0.9.2-2.fc6 : A file manager for KDE focusing on usability
emelfm2-0.3.5-1.fc6
eric-3.9.2-3.fc6
gds2pov-0.20070815-1.fc6
gnomebaker-0.6.1-2.fc6
grisbi-0.5.9-3.fc6
libsmbios-0.13.10-1.fc6
lincity-ng-1.1.1-2.fc6
mcabber-0.9.3-3.fc6
monotone-0.36-2.fc6
ntfs-3g-1.826-1.fc6
perl-Email-Valid-0.179-2.fc6
python-genshi-0.4.4-1.fc6
python-inotify-0.7.1-1.fc6
rpmdevtools-6.1-0.1.fc6
sonata-1.2.3-1.fc6.1
thinkfinger-0.3-2.fc6
winpdb-1.2.2-1.fc6.1
Changes in Fedora Extras 6:
aria2-0.11.2-1.fc6
------------------
* Fri Aug 24 2007 Michał Bentkowski <mr.ecik at gmail.com> - 0.11.2-1
- 0.11.2
- Fix License tag
babel-0.9-1.fc6
---------------
* Mon Aug 27 2007 Jeffrey C. Ollie <jeff(a)ocjtech.us> - 0.9-1
- Update to 0.9
bugzilla-3.0.1-0.fc6
--------------------
* Mon Aug 27 2007 John Berninger <john at ncphotography dot com> - 3.0.1-0
- update to 3.0.1 - bz 256021
d3lphin-0.9.2-2.fc6
-------------------
* Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.9.2-2
- New upstream version
emelfm2-0.3.5-1.fc6
-------------------
* Sun Jul 29 2007 Christoph Wickert <fedora christoph-wickert de> - 0.3.5-1
- Update 0.3.5.
eric-3.9.2-3.fc6
----------------
* Mon Aug 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.9.2-3
- License: GPL+
- don't set PYTHONOPTIMIZE, let brp-python-bytecompile do it's job,
addresses selinux issues (#243163, #254421)
* Wed Nov 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.2-2
- Provides: eric3 (get ready for PyQt4-based eric4)
- fix biffed %version's in %changelog
- simplify %description
* Mon Nov 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.2-1
- 3.9.2
* Mon Nov 06 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.1-4
- BR: PyQt-qscintilla-devel
- (unversioned) Requires: PyQt-qscintilla
gds2pov-0.20070815-1.fc6
------------------------
* Sun Aug 26 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.20070815-1
- New upstream release
gnomebaker-0.6.1-2.fc6
----------------------
* Tue Aug 28 2007 Tomas Smetana <tsmetana(a)redhat.com> - 0.6.1-2
- rebuild with -export-dynamic
* Mon Aug 27 2007 Tomas Smetana <tsmetana(a)redhat.com> - 0.6.1-1
- new upstream version
grisbi-0.5.9-3.fc6
------------------
* Sat Aug 25 2007 Aurelien Bompard <abompard(a)fedoraproject.org> 0.5.9-3
- rebuild
* Sat Aug 25 2007 Aurelien Bompard <abompard(a)fedoraproject.org> 0.5.9-2
- fix bug 248264
- fix license tag
libsmbios-0.13.10-1.fc6
-----------------------
* Tue Aug 28 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.10-1
- Fix one instance where return code to fread was incorrectly checked.
* Wed Aug 22 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.9
- Fix a couple of failure-to-check-return on fread. most were unit-test code
only, but two or three were in regular code.
- Add hinting to the memory class, so that it can intelligently close /dev/mem
file handle when it is not needed (which is most of the time). it only
leaves it open when it is scanning, so speed is not impacted.
* Mon Aug 06 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.8
- new upstream
* Tue Apr 03 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.6
- critical bugfix for dellBiosUpdate utility for packet mode
- autoconf/automake support for automatically building docs
- more readable 'make' lines by splitting out env vars
- remove run_cppunit option... always run unit tests.
- update autoconf/automake utilities to latest version
- fix LDFLAGS to not overwrite user entered LDFLAGS
- add automatic doxygen build of docs
- fix urls of public repos
- remove yum repo page in favor of official page from docs
- split dmi table entry point from smbios table entry point
- support legacy _DMI_ tables
- fix support for EFI-based imacs without proper _SM_ anchor
lincity-ng-1.1.1-2.fc6
----------------------
* Mon Aug 27 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> 1.1.1-2
- package no longer requires kdelibs, hooray!
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> 1.1.1-1
- bump to 1.1.1 final
- license fix, GPLv2+
- rebuild in devel for ppc32
* Thu Aug 02 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> 1.1.1-0.1.pre
- bump to 1.1.1pre
* Mon Jul 09 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> 1.1.0-1.1
- rebuild for new SDL_gfx in rawhide
mcabber-0.9.3-3.fc6
-------------------
* Sun Aug 26 2007 Michael Fleming <mfleming+rpm(a)enlartenment.com> 0.9.3-3
- Update License tag
- Add README_PGP.txt (RH #250603)
monotone-0.36-2.fc6
-------------------
* Tue Aug 28 2007 Roland McGrath <roland(a)redhat.com> - 0.36-2
- Clean up %pre script per packaging guidelines.
- Disable ppc and ppc64 builds temporarily since make check fails. (#259161)
* Fri Aug 03 2007 Roland McGrath <roland(a)redhat.com> - 0.36-1
- Updated for 0.36 release.
* Fri Jul 06 2007 Florian La Roche <laroche(a)redhat.com> - 0.35-4
- add more requires
ntfs-3g-1.826-1.fc6
-------------------
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> 2:1.826-1
- bump to 1.826
- glibc27 patch is upstreamed
perl-Email-Valid-0.179-2.fc6
----------------------------
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> 0.179-2
- fix license, BR: Net::Domain::TLD
python-genshi-0.4.4-1.fc6
-------------------------
* Mon Aug 27 2007 Jeffrey C. Ollie <jeff(a)ocjtech.us> - 0.4.4-1
- Update to 0.4.4
python-inotify-0.7.1-1.fc6
--------------------------
* Wed Aug 08 2007 Terje Rosten <terjeros(a)phys.ntnu.no> - 0.7.1-1
- New upstream release: 0.7.1
- Fix license tag
* Mon Jun 25 2007 Terje Rosten <terjeros(a)phys.ntnu.no> - 0.7.0-3
- Remove autopath from example package (bz #237464)
rpmdevtools-6.1-0.1.fc6
-----------------------
* Mon Aug 13 2007 Ville Skyttä <ville.skytta at iki.fi> - 6.1-0.1
- Remove check-{buildroot,rpaths*}, now included in rpm-build >= 4.4.2.1.
- Include rpmsodiff and dependencies (rpmargs, rpmelfsym, rpmfile, rpmpeek,
rpmsoname) from ALT Linux's qa-robot package.
- Drop explicit dependency on patch, pulled in by recent rpm-build.
- Sync COPYING with http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
- Work around #250990 in rpmls and rpmdev-extract.
- Clarify copyright info of rpmdev-* and rpmls.
* Sat Jul 07 2007 Ville Skyttä <ville.skytta at iki.fi> - 5.4-1
- Fix Epoch handling in the 2-arg form of rpmdev-vercmp with yum < 3.1.2.
- The long form of the list option in rmdevelrpms is --list-only, not --list.
* Thu Jul 05 2007 Ville Skyttä <ville.skytta at iki.fi>
- Add cmake and scons to default devel package list in rpmdev-rmdevelrpms.
- Add LSB comment block to init script template.
* Wed Jun 27 2007 Ville Skyttä <ville.skytta at iki.fi>
- Add 2-argument form for comparing EVR strings to rpmdev-vercmp
(available only if rpmUtils.miscutils is available).
* Sat Jun 16 2007 Ville Skyttä <ville.skytta at iki.fi>
- Include rpmls (#213778).
* Fri Jun 15 2007 Ville Skyttä <ville.skytta at iki.fi>
- Update spectool to 1.0.9 (#243731).
* Wed Apr 11 2007 Ville Skyttä <ville.skytta at iki.fi>
- Add --list-only option to rmdevelrpms (Thorsten Leemhuis).
* Tue Mar 13 2007 Ville Skyttä <ville.skytta at iki.fi>
- BR perl(ExtUtils::MakeMaker) by default in perl spec template.
- Update URL.
* Wed Nov 08 2006 Ville Skyttä <ville.skytta at iki.fi>
- Arch-qualify output of matched packages in rmdevelrpms and allow
arch-qualified packages in the config file.
sonata-1.2.3-1.fc6.1
--------------------
* Sun Aug 26 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.2.3-1.fc6.1
- Add patch
* Sun Aug 26 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.2.3-1
- One two three
* Fri Aug 24 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.2.2-2
- ppc32 rebuild
- license tag fix
* Mon Jul 23 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.2.2-1
- 1.2.2
* Mon Jul 16 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.2-2
- BR gettext
* Mon Jul 16 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.2-1
- 1.2 with audioscrobbler support
* Thu Jun 07 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.1.1-2
- Fix desktop file
* Thu Jun 07 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.1.1-1
- Update to 1.1.1
thinkfinger-0.3-2.fc6
---------------------
* Fri May 18 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.3-2
- Merged Jose Plans' changes (RH #237817)
* Fri Apr 13 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.3-1
- Updated to 0.3
- Added uinput loading snippet
winpdb-1.2.2-1.fc6.1
--------------------
* Mon Aug 27 2007 Tom "spot" Callaway <tcallawa(a)redhat.com> - 1.2.2-1
- bump to 1.2.2
For more information about the built packages please see the repository
or the Fedora Info Feed: http://fedoraproject.org/infofeed/
16 years, 8 months
Newer kernel for F7?
by Bojan Smojver
Sorry to be a pest about this, but could we get the newer kernel (.5-71)
into the F7 updates?
Current .4-65 appears to be a bit OOPS happy
(https://bugzilla.redhat.com/show_bug.cgi?id=254281). I even had a
complete crash on x86_64 (admittedly with a vmware tainted version of
it). Nevertheless, .5 appears better from what I can see (no OOPSes so
far).
--
Bojan
16 years, 8 months
packages linked against expat 1.x, needing rebuild
by Joe Orton
The list of packages below are linked against expat 1.x and need to be
rebuilt against expat 2.x in dist-f8.
anjuta
asc
audacity
avahi
cegui
cmake
compat-wxGTK26
compat-wxGTK26-devel
dasher
dbus
dbus-glib
ekg2-core
ekg2-jabber
elinks
exempi
gdb
gnome-games
gpsbabel
hal
k3d
kdesvn
kismet-extras
libannodex
libapreq2
libcmml
libjingle
mesa-libGL
mod_annodex
ocaml-expat
ogdi
paragui
paragui-python
perl-libapreq2
perl-XML-Parser
PolicyKit
python
qgis
scorched3d
ser
subcommander
vegastrike
vtk
vtk-examples
vtk-python
vtk-qt
vtk-tcl
vtk-testing
wxGTK
wxGTK-devel
xoo
16 years, 8 months
Can you give me some feedback concerning plans for pyrpm?
by Jef Spaleta
Hey,
so as you are aware rpm5 is coming close to being submitted into
Fedora for inclusion. I would like to be able to use the very
contentious rpm5 discussion to set some precedents for future rpm-like
inclusions. Do you plan to submit pyrpm at some point? If so I would
like to talk to you about what some specifics concerning you plans. I
want to make sure that we set the technical bar that rpm5 needs to
reach fairly so that nearly the same technical measure can be applied
to pyrpm as well when the time comes for its entry so we can avoid any
appearance of favoritism.
-jef
16 years, 8 months
pkgs that need to build rebuilt against new db4
by Oliver Falk
repoclosure run with compat-db excluded shows up the following:
package: jigdo - 0.7.3-3.fc7.i386 from os
unresolved deps:
libdb-4.3.so
package: jigdo - 0.7.3-3.fc7.i386 from updates
unresolved deps:
package: ruby-bdb - 0.6.0-1.fc7.i386 from updates
unresolved deps:
libdb-4.3.so
I also know about ruby-libs and iproute, that still dep on libdb-4.5.so
and I wonder they don't show up in this list...
Best,
Oliver
16 years, 8 months
PulseAudio is now enabled by default on new Fedora installs
by Lennart Poettering
Hi!
A few minutes ago I edited "comps-f8.xml" and kicked out esound and
enabled PulseAudio instead for default installs, as suggested here:
http://fedoraproject.org/wiki/Releases/FeaturePulseaudio
If PulseAudio is installed a lot of audio applications *will*
break. PA provides compatibility with a couple of audio APIs, and it
is my declared intention to provide compatibility with existing APIs
as good as possible. However some APIs are notoriously difficult to
virtualize (OSS), others don't really fit on top of something that is
not a hardware device (ALSA, OSS), even others are often violated
brutally by many applications (ALSA), and others are just too broken
to be properly emulated in PA.
Due to all that our compatibility APIs are far from perfect. They're
quite good (and probably hugely better than any previous effort) but
there are still a lot of applications where they are not good enough,
especially those which play some dirty, non-standard games with audio
devices. (i.e. require DMA/mmap working, use exotic fragment settings
and suchlike).
If your application doesn't work with any of our compatibility APIs,
please file a bug to us and we'll try to fix this in our compat
layers. Please do *not* file any bugs regarding adobe flash. We know
it doesn't work on PA. Flash is completely broken when it comes to
audio it we can neither support it through our ESD compat nor through
our ALSA compat. Due to the closed source nature of Flash we cannot go
and fix their code. I will eventually add some workarounds for
this. But it's low priority on my list, given the closed source nature
of Flash. Oh, and Flash is evil anyway. ;-)
If you're packaging an audio application in Fedora, please go through
the following list and check what is necessary to get your package
working flawlessly with PA. And test your application with PA!
Unfortunately, due to the heavy balkanization of Linux audio it is
necessary to go through this list for each app seperately, and if
necessary do some manual modifications to each seperately.
1. For GStreamer applications no changes are necessary.
2. For ESD clients no changes are necessary.
3. Read http://pulseaudio.org/wiki/PerfectSetup, you might find some
valuable information for your package there.
4. If you maintain a "pro audio" application or a full-screen
game: pro audio apps usually have very strict requirements on the
sound system they use. We cannot provide all of them (yet) in
Pulseaudio. Thus I recommend using a tool "pasuspender" that is
shipped in pulseaudio-utils. This tool will suspend a running
(local) PA server (if one is running), so that the audio devices
are closed and start a child
process that may be passed on the command line. After the child
died the audio devices are resumed again. The execution environment
(or open FDs) is not touched by pasuspender.
Say you have a program, let's call it "jack". Then, rename /usr/bin/jack to
/usr/bin/jack.real and make /usr/bin/jack a shell script with
contents like this:
#!/bin/sh
if test -x /usr/bin/pasuspender ; then
exec /usr/bin/pasuspender /usr/bin/jack.real "$@"
else
exec /usr/bin/jack.real "$@"
fi
Please use pasuspender only in few cases, because PA is network
transparent and by using pasuspender you loose that (among other
things).
Don't forget to depend on pulseaudio-utils in your spec file if you
use this!
5. If you have an application that uses OSS, check whether it works
with padsp, our LD_PRELOAD OSS wrapper. If so, replace its binary
by something like this:
#!/bin/sh
if test -x /usr/bin/padsp ; then
exec /usr/bin/padsp /usr/bin/the-real-binary "$@"
else
exec /usr/bin/the-real-binary "$@"
Don't forget to depend on pulseaudio-utils in your spec file if you
use this!
6. If you have an application that uses ALSA, please make sure that it
doesn't hardcode ALSA driver names (i.e. something like "hw:0"), it
should use "default" instead, which is now being redirected to
"pulse", our plugin for libasound. Hardcoding ALSA device names
(besides "default") is a bug in your application anyway, so here
you have yet another reason to fix that!
Please note, that the PA version in Rawhide is based on an SVN
snapshot that has not been released officially yet. Not all
functionality has been restored that had been available in previous PA
versions, due to major changes in the core since PA 0.9.6.
Small FAQ:
1. What is this PulseAudio thing anyway?
Come out under your rock, and read this:
http://pulseaudio.org
browse through this:
http://0pointer.de/public/pulseaudio-presentation-ols2007.pdf
watch this:
http://mirror.linux.org.au/pub/linux.conf.au/2007/video/talks/211.ogg
or have a peek on this:
http://fedoraproject.org/wiki/Releases/FeaturePulseaudio
2. I hate sound servers, and all this Pulse crap!
Please go back and hide under your rock again! Thank you!
3. I don't want to reinstall my system just to get PA installed. What
can I do to install PA on my Rawhide system?
Run "sudo yum install pulseaudio pulseaudio-esound-compat
pulseaudio-module-gconf pulseaudio-module-x11
gstreamer-plugins-pulse pulseaudio-utils alsa-plugins-pulseaudio
pavucontrol"
You might also want to install a couple of optional packages:
"sudo yum install pulseaudio-module-zeroconf pulseaudio-module-lirc
pavumeter paman paprefs padevchooser"
You also have to make sure that some GConf keys are set up properly:
/system/gstreamer/0.10/default/audiosrc -> pulsesrc
/system/gstreamer/0.10/default/audiosink -> pulsesink (or autoaudiosink)
/system/gstreamer/0.10/default/chataudiosink -> pulsesink (or autoaudiosink)
/system/gstreamer/0.10/default/musicaudiosink -> pulsesink (or autoaudiosink)
/desktop/gnome/sound/enable_esd -> True
4. What about KDE?
Yes, what about it? TBH I don't know. All I know is that KDE still
ships aRts, but I have no idea what steps would be necessary to get
properly supported in KDE. If you're into KDE and interested to get
PA working properly with KDE, ping me!
5. I have a question!
Just ping me (mezcalero) on #pulseaudio on freenode! I am happy to
answer any question you might have.
But before doing so, please have a look on this:
http://pulseaudio.org/wiki/FAQ
Thank you very much for your time,
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
16 years, 8 months
[Fwd: Re: USB Key light on/off state depending on mount]
by Casey Dahlin
I recently posted on lkml asking about making the light on your USB key
shut off when it was not mounted. Some responses came back suggesting
this is not difficult. Might we consider this for inclusion in Fedora?
-Casey Dahlin
-------- Original Message --------
Subject: Re: USB Key light on/off state depending on mount
Date: Sat, 25 Aug 2007 13:58:06 +0200
From: Éric Piel <Eric.Piel(a)tremplin-utc.net>
To: James Bruce <bruce(a)andrew.cmu.edu>
CC: linux-kernel(a)vger.kernel.org, Casey Dahlin <cjdahlin(a)ncsu.edu>
References: <fa.BwCgwGvTNIOD+KEeBrvP11xCEmw(a)ifi.uio.no>
<46CF6791.8040509(a)shaw.ca> <46D00928.1080901(a)andrew.cmu.edu>
25/08/07 12:49, James Bruce wrote/a écrit:
> Robert Hancock wrote:
>> Casey Dahlin wrote:
>>> Most USB keys nowadays have a small LED somewhere inside of them that
>>> lights up when they are plugged in. On a windows box, the key is lit
>>> up whenever it is mounted, and as soon as it is unmounted it turns
>>> off, giving a handy physical indicator that the key is safe to
>>> remove. On linux, the light is simply on whenever the key is plugged in.
>>>
>>> Should linux toggle the light depending on mount state? Is it as
>>> trivial as it seems or does this reflect some larger issue?
>>
>> I think that Windows turns off power to the port when you do the
>> "safely remove hardware" on it, or something like that. Mount/unmount
>> doesn't really indicate whether the device is in use in Linux, though,
>> since it can still be potentially accessed even when the device isn't
>> mounted.
>
> If there is a way to toggle the power state from userspace, then a
> desktop environment or userland tool can emulate the Windows behavior if
> that is desired. A lot of devices can charge via USB now, and this is
> actually more convenient on Linux than on Windows (in effect Windows
> requires drivers in order to charge something). However, having direct
> control over this is useful.
Yes, maybe some userspace such as HAL could turn off the usb devices at
the same time it's unmounted. Actually that would be rather intuitive
way to tell the user the umount is finished. There doesn't seem to be
any loss of funcitonality, once it's turned off you can still re-access
the device, and it's automatically turned on again (at least on my PC).
For the record, here is how one can switch off a usb device (as root):
# cd /sys/bus/usb/devices/usb*/[0-9]-[0-9] (just go to the directory of
the device)
# echo -n 2 > *:1.0/power/state
# echo -n 2 > power/state
I use this to turn off my optical mouse when watching movies, but it
works fine as well to turn off usb storage devices.
It can also be turned on with
# echo -n 0 > power/state
See you,
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
16 years, 8 months