FreeBSD Bugzilla – Attachment 131448 Details for
Bug 175531
[patch] sysutils/upower: correctly detect lid
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 959 bytes, created by
Alberto Villa
on 2013-01-23 13:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alberto Villa
Created:
2013-01-23 13:50:00 UTC
Size:
959 bytes
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 310864) >+++ Makefile (working copy) >@@ -8,6 +8,7 @@ > > PORTNAME= upower > PORTVERSION= 0.9.7 >+PORTREVISION= 1 > CATEGORIES= sysutils > MASTER_SITES= http://upower.freedesktop.org/releases/ > >Index: files/patch-src__freebsd__up-backend.c >=================================================================== >--- files/patch-src__freebsd__up-backend.c (revision 0) >+++ files/patch-src__freebsd__up-backend.c (working copy) >@@ -0,0 +1,11 @@ >+--- ./src/freebsd/up-backend.c.orig 2010-11-01 12:28:43.000000000 +0100 >++++ ./src/freebsd/up-backend.c 2013-01-23 02:42:21.293236052 +0100 >+@@ -227,7 +227,7 @@ >+ gchar *lid_state; >+ >+ lid_state = up_get_string_sysctl (NULL, "hw.acpi.lid_switch_state"); >+- if (lid_state && strcmp (lid_state, "NONE")) { >++ if (lid_state) { >+ up_daemon_set_lid_is_present (backend->priv->daemon, TRUE); >+ } >+ g_free (lid_state);
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 175531
: 131448