Ask Your Question
0

laptop power tools + fedora 16

asked 2012-01-16 04:19:03 -0500

samuaz gravatar image

Im a previously user ubuntu and used laptop-mode-tools with ubuntu, I changed to fedora 16 and I would like to use laptop-mode-tools with fedora 16, I installed laptop-mode-tools fedora package from this link

http://samwel.tk/laptop_mode/packages/fedora

in ubuntuto activate it and operate all modules, only need to enable it on:

/etc/default/acpi-support

and in it write:

ENABLELAPTOPMODE=true

I have done this in fedora 16, but does not work is not active, so I have enabled

/etc/laptop-mode/laptop-mode.conf

but neither works.

how do I work? or activate in fedora 16?

regards

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-01-16 10:18:28 -0500

ZenDark gravatar image

That tool it's not kernel 3.1 or systemd "ready" although it could work...

Edit /usr/sbin/laptop-mode and search $KLEVEL, add the 3.1 case

case "$KLEVEL" in

   "2.4" ) ;;
   "2.6" ) ;;
   "3.1" ) ;;
   *)
           log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
           exit 1
           ;;

esac

Save and do:

/etc/init.d/laptop-mode start
edit flag offensive delete link more
0

answered 2012-10-12 05:52:32 -0500

Valent gravatar image

updated 2012-10-12 05:54:49 -0500

Hi, you should track Fedora bugzilla [1] maybe.

I also tried manually building the package but it fails :( These were my steps:

su -
yum install @development-tools wget
rpmdevtools rpmdev-setuptree wget
http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.61.tar.gz
rpmbuild -tb
laptop-mode-tools_1.61.tar.gz

Maybe somebody has more luck with it, if you do please post how you made the package.

Other approach is to grab .rpm.src file from bugzilla [1].

su -
yum install @development-tools wget rpmdevtools
rpmdev-setuptree 
wget http://alvesadrian.fedorapeople.org/laptop-mode-tools-1.61-3.fc16.src.rpm
rpmbuild --rebuild laptop-mode-tools-1.61-3.fc16.src.rpm
yum localinstall /root/rpmbuild/RPMS/noarch/laptop-mode-tools-1.61-3.fc17.noarch.rpm

This works, and you have rpm package installed

[1] https://bugzilla.redhat.com/show_bug.cgi?id=822730

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-16 04:19:03 -0500

Seen: 4,036 times

Last updated: Oct 12 '12