Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 127998 Details for
Bug 188760
kde-base/klaptopdaemon-3.5.7-r1: "Hibernate" menu item missing with 2.6.22 kernels (ebuild containing fix included)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
klaptopdaemon-3.5.7-has_acpi_sleep.patch
klaptopdaemon-3.5.7-has_acpi_sleep.patch (text/plain), 1.11 KB, created by
Sergey Temerkhanov
on 2007-08-13 23:02:27 UTC
(
hide
)
Description:
klaptopdaemon-3.5.7-has_acpi_sleep.patch
Filename:
MIME Type:
Creator:
Sergey Temerkhanov
Created:
2007-08-13 23:02:27 UTC
Size:
1.11 KB
patch
obsolete
>--- ./klaptopdaemon/portable.cpp.old 2007-05-14 11:40:45.000000000 +0400 >+++ ./klaptopdaemon/portable.cpp 2007-08-14 01:52:30.775790879 +0400 >@@ -690,15 +690,16 @@ has_acpi_sleep(int state) > mask = 0; > > QFile p("/sys/power/state"); >- QFile f("/proc/acpi/sleep"); > > if (p.open(IO_ReadOnly)) { >+ QTextStream stream(&p); > QString l; >- p.readLine(l,500); >+ l = stream.readLine(); >+ > QStringList ll = QStringList::split(' ',l,false); > for (QValueListIterator<QString> i = ll.begin(); i!=ll.end(); i++) { > QString s = *i; >- >+ > if (s.compare("standby")==0) > mask |= (1<<1); > else if (s.compare("mem")==0) >@@ -708,20 +709,6 @@ has_acpi_sleep(int state) > } > p.close(); > } >- else if (f.open(IO_ReadOnly)) { >- QString l; >- f.readLine(l, 500); >- QStringList ll = QStringList::split(' ',l,false); >- for (QValueListIterator<QString> i = ll.begin(); i!=ll.end(); i++) { >- QString s = *i; >- if (s[0] == 'S') { >- int c = s[1].digitValue(); >- if (c >= 0 && c <= 9) >- mask |= 1<<c; >- } >- } >- f.close(); >- } > } > return((mask&acpi_sleep_enabled&(1<<state)) != 0); > }
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 188760
: 127998 |
127999