Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 293609 Details for
Bug 388545
app-laptop/laptop-mode-tools fails to start with kernel 3.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to make laptop-mode-tools-1.55 work with all 3.x kernels
laptop-mode-tools-1.55-linux3-support.patch (text/plain), 2.06 KB, created by
Stefano Takekawa
on 2011-11-24 09:08:38 UTC
(
hide
)
Description:
patch to make laptop-mode-tools-1.55 work with all 3.x kernels
Filename:
MIME Type:
Creator:
Stefano Takekawa
Created:
2011-11-24 09:08:38 UTC
Size:
2.06 KB
patch
obsolete
>diff -uNr laptop-mode-tools_1.55-orig//usr/sbin/laptop_mode laptop-mode-tools_1.55//usr/sbin/laptop_mode >--- laptop-mode-tools_1.55-orig//usr/sbin/laptop_mode 2010-05-26 17:54:44.000000000 +0200 >+++ laptop-mode-tools_1.55//usr/sbin/laptop_mode 2011-11-24 10:03:48.327090101 +0100 >@@ -482,7 +482,11 @@ > KLEVEL="$(uname -r | > { > IFS='.-' read a b c >- echo $a.$b >+ if [ $a = 3 ] ; then >+ echo $a >+ else >+ echo $a.$b >+ fi > } > )" > KMINOR="$(uname -r | >@@ -496,6 +500,7 @@ > case "$KLEVEL" in > "2.4" ) ;; > "2.6" ) ;; >+ "3" ) ;; > *) > log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2 > exit 1 >diff -uNr laptop-mode-tools_1.55-orig//usr/share/laptop-mode-tools/modules/laptop-mode laptop-mode-tools_1.55//usr/share/laptop-mode-tools/modules/laptop-mode >--- laptop-mode-tools_1.55-orig//usr/share/laptop-mode-tools/modules/laptop-mode 2010-05-26 17:54:44.000000000 +0200 >+++ laptop-mode-tools_1.55//usr/share/laptop-mode-tools/modules/laptop-mode 2011-11-24 09:46:44.196135761 +0100 >@@ -193,8 +193,8 @@ > set_sysctl /proc/sys/vm/laptop_mode 1 > set_sysctl /proc/sys/vm/bdflush "30 500 0 0 $AGE $AGE 60 20 0" > ;; >- "2.6") >- log "VERBOSE" "Adjusting 2.6 kernel parameters to enable laptop mode." >+ "2.6"|"3") >+ log "VERBOSE" "Adjusting $KLEVEL kernel parameters to enable laptop mode." > set_sysctl /proc/sys/vm/laptop_mode "$LM_SECONDS_BEFORE_SYNC" > set_sysctl /proc/sys/vm/dirty_writeback_centisecs "$AGE" > set_sysctl /proc/sys/vm/dirty_expire_centisecs "$AGE" >@@ -321,8 +321,8 @@ > log "VERBOSE" "Adjusting 2.4 kernel parameters to disable laptop mode." > set_sysctl /proc/sys/vm/bdflush "30 500 0 0 $U_AGE $B_AGE 60 20 0" > ;; >- "2.6") >- log "VERBOSE" "Adjusting 2.6 kernel parameters to disable laptop mode." >+ "2.6"|"3") >+ log "VERBOSE" "Adjusting $KLEVEL kernel parameters to disable laptop mode." > set_sysctl /proc/sys/vm/dirty_writeback_centisecs "$U_AGE" > set_sysctl /proc/sys/vm/dirty_expire_centisecs "$B_AGE" > set_sysctl /proc/sys/vm/dirty_ratio "$NOLM_DIRTY_RATIO"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 388545
:
290873
|
290953
| 293609