Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED-Cant run laptop-mode-tools on Linux 3.X kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Dec 03, 2011 4:48 pm    Post subject: SOLVED-Cant run laptop-mode-tools on Linux 3.X kernel? Reply with quote

every time i try to start laptop-mode i get this error


Code:
 /etc/init.d/laptop_mode start
 * Caching service dependencies ...                                                                                                   [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Starting laptop_mode ...
Unhandled kernel version: 3.1 ('uname -r' = '3.1.4-gentoo')                                                                           [ !! ]
 * ERROR: laptop_mode failed to start


I am using app-laptop/laptop-mode-tools-1.55-r2 USE="acpi bluetooth -apm -scsi" with kernel 3.1.4.

I have followed the page here http://www.gentoo.org/doc/en/power-management-guide.xml

does anyone have any workarounds or solutions to this little issue?
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.


Last edited by FizzyWidget on Sat Dec 03, 2011 9:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13985

PostPosted: Sat Dec 03, 2011 7:11 pm    Post subject: Reply with quote

You could comment out the check in the initscript. It may work despite the mismatch, since this was likely intended to prevent using it with pre-2.6 kernels.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Dec 03, 2011 7:12 pm    Post subject: Reply with quote

worth a try i suppose :)
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Dec 03, 2011 9:02 pm    Post subject: Reply with quote

solution - edit /usr/sbin/laptop_mode

scroll down till you see


Code:
case "$KLEVEL" in
        "2.4" ) ;;
        "2.6" ) ;;
        "3.0" ) ;;


add

Code:
"3.1" ) ;;


and then laptop-mode-tools will work
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum