[Bug 201786] Re: ssh Agent admitted failure to sign using the key on big endian machines

2010-11-24 Thread Sebastian Rydberg
I had a similiar problem and I solved it with:

[srydb...@zeus ~]$ echo $SSH_AUTH_SOCK
/tmp/keyring-KXX3Aw/ssh
[srydb...@zeus tmp]$ sudo rm -rf keyring-KXX3Aw/

Maybe the keys are cached there?

-- 
ssh Agent admitted failure to sign using the key on big endian machines
https://bugs.launchpad.net/bugs/201786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Mactel-support] [Bug 434071] Re: Brightness hotkeys not working on MacBook 5, 2 and 4, 1

2009-11-29 Thread rydberg
Νίκος Αλεξανδρής wrote:
 Folks,
 
 I read that phrase pommed has been deprecated since last year (I
 think).
 
 The fact is that pommed:
 * does its job and it does so very fast (brightness keys work faster than in 
 OS-X I would say)
 * is packaged for Karmic and available through the Mactel PPA
 * so far does not give any side-effects
 
 If it is really meant to be abandoned or not used then why is it available?
 Thanks, Nikos
 

Correct, pommed is supposed to be used together with Karmic. The reason is the
deprecation of HAL; Ubuntu, like several other large distros, are moving away
from hal in favor of udev and the DeviceKit effort. As a result, Karmic is
suffering from functionlity regressions in certain areas, the backlight handling
being one of them. Supposedly, these regressions will all be properly addressed
in Lucid, and in the meantime, the pommed package (with some minor changes) is
suitable as a stand-in.

-- 
Brightness hotkeys not working on MacBook 5,2 and 4,1
https://bugs.launchpad.net/bugs/434071
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 261450] Re: brightness Applet very slow and processors getting bisy when try adjust LCD brightness

2009-08-16 Thread rydberg
If your graphics cards have a high number of brightness levels, chances
are the problem is related to https://bugs.launchpad.net/ubuntu/+source
/gnome-power-manager/+bug/289520. Although that particular bug has been
fixed, the problem is still in effect when adjusting the brightness with
the keyboard. A patch to the karmic g-p-m is attached, which might fix
the problem for you. It can be installed from the mactel repository also
(2.27.5-0ubuntu2~mactel1). Visit https://launchpad.net/~mactel-
support/+archive/ppa for details.


** Attachment added: 56-smooth-brightness-on-macbooks.patch
   http://launchpadlibrarian.net/30396756/56-smooth-brightness-on-macbooks.patch

-- 
brightness Applet very slow and processors getting bisy when try adjust LCD 
brightness
https://bugs.launchpad.net/bugs/261450
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 285815] Re: Backlight keeps getting darker on MacBookPro

2009-01-11 Thread rydberg
Alex Murray wrote:
 Actually scrub the previous patch - this one is much simpler and doesn't
 break the case for the old machines.
 
 ** Attachment added: Improved patch
http://launchpadlibrarian.net/21101822/applesmc-dkms-light-sensor-fix.patch
 

Thank you for the patch! This one seems neat; I will only need to trim it a
little bit to send it to kernel.org. Also thanks for looking into the byte
encoding, these things are surely non-trivial.

Cheers,
Henrik

-- 
Backlight keeps getting darker on MacBookPro
https://bugs.launchpad.net/bugs/285815
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 285815] Re: Backlight keeps getting darker on MacBookPro

2009-01-10 Thread rydberg
Although I am happy that you are looking into this problem, I think the
patch is doing the wrong thing:

1. It is introducing more state to the desktop setup - it should be
possible to determine the right scaling automatically.

2. The scaling factor in the patch is integral - this is causing all
sorts of hysteresis problems, and is the source of the light sensor
problem in the first place, since HAL does not treat fractional percent
in the dbus interface. Continuing along that track cannot be good.

The problem with the low light sensor reading seems to have to do with
the new macbooks, starting with MBP41, via MBA11 to the MAP51. Evidently
the interface changed, since the new models report a SMC key length of
10, compared to the old 6. Most likely the applesmc_light_show() could
be fixed for those models, since the current code only reports values
for the left sensor, although two sensors are present.

-- 
Backlight keeps getting darker on MacBookPro
https://bugs.launchpad.net/bugs/285815
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 285815] Re: Backlight keeps getting darker on MacBookPro

2008-12-28 Thread rydberg
So it seems to be reading quite low

Yes, this is the experience on several models: MBA11 and MBP41 fall into
the same category as your MBP51. The readings are low, but the full span
0-255 is actually used, which can be seen when exposing the sensor for
extreme light. The real problem seems to be that neither the kernel nor
gnome is equipped to handle sensor readings with such a large dynamic
range. For instance, the hal interface used by g-p-m is far too course-
grained, only allowing integer percentage values.

is this something specific to the applesmc driver on MBP 5,1

At least on my MBA11, the behavior is precisely the same. This could
most likely be improved upon in the driver, it has just not been done.

-- 
Backlight keeps getting darker on MacBookPro
https://bugs.launchpad.net/bugs/285815
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 285815] Re: Backlight keeps getting darker on MacBookPro

2008-11-24 Thread rydberg
** Changed in: mactel-support
   Status: New = Fix Released

-- 
Backlight keeps getting darker on MacBookPro
https://bugs.launchpad.net/bugs/285815
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 285815] Re: Backlight keeps getting darker on MacBookPro

2008-11-10 Thread rydberg
** Also affects: gnome-power-manager (Ubuntu)
   Importance: Undecided
   Status: New

-- 
Backlight keeps getting darker on MacBookPro
https://bugs.launchpad.net/bugs/285815
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 285815] Re: Backlight keeps getting darker on MacBookPro

2008-11-10 Thread rydberg
Here is a patch to gnome-power-manager that seems to fix the problem.


** Attachment added: 94-fix-light-sensor-scaling.patch
   http://launchpadlibrarian.net/19552469/94-fix-light-sensor-scaling.patch

-- 
Backlight keeps getting darker on MacBookPro
https://bugs.launchpad.net/bugs/285815
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 71808] Re: Keyboard backlight does not work on Macbook Pro / Powerbook

2008-11-05 Thread rydberg
The other bug is listed towards pommed. This one is listed towards
gnome-power-manager, but for older macbooks. The bug relevant to
Intrepid (i.e., which has a fix from MactelSupport) is this one:
https://bugs.launchpad.net/ubuntu/+source/linux-
source-2.6.22/+bug/125918

-- 
Keyboard backlight does not work on Macbook Pro / Powerbook
https://bugs.launchpad.net/bugs/71808
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg
Repackaged the patch a bit, hopefully fits together with the ubuntu
patches a bit better. The two following attachments replace the old
patch.

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg

** Attachment added: 90-Add-guarded-brightness-stepping-functions.patch
   
http://launchpadlibrarian.net/18940342/90-Add-guarded-brightness-stepping-functions.patch

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg

** Attachment added: 91-Using-guarded-and-scaled-stepping-when-dimming.patch
   
http://launchpadlibrarian.net/18940344/91-Using-guarded-and-scaled-stepping-when-dimming.patch

** Changed in: mactel-support
 Assignee: (unassigned) = rydberg (rydberg)

** Changed in: mactel-support
   Status: New = Fix Released

** Changed in: gnome-power-manager (Ubuntu)
   Status: New = In Progress

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg
I presume you are talking about patch 91.

The current code is executing the body of the for loop for both end
points, cur and shared_value_abs, Besides being unnecessary, it means
the loop exits for a value outside of the valid range. This makes it
impossible to use the guarded_up/down functions, which never leaves the
valid range.

It *is* possible to make the patch smaller, by 18 lines, by leaving the
if statements untouched, like this:

@@ -331,11 +322,12 @@
return TRUE;
}
 
-   /* step the correct way */
+   /* step the correct way - by using guarded and scaled stepping */
if (cur  shared_value_abs) {
/* going up */
-   for (i=cur; i=shared_value_abs; i++) {
-   ret = gpm_brightness_xrandr_output_set_internal 
(brightness, output, i);
+   while (cur  shared_value_abs) {
+   cur = gpm_brightness_get_guarded_up (min, cur, 
shared_value_abs);
+   ret = gpm_brightness_xrandr_output_set_internal 
(brightness, output, cur);
if (!ret) {
break;
}
@@ -344,9 +336,10 @@
}
}
} else {
-   /* going down */
-   for (i=cur; i=shared_value_abs; i--) {
-   ret = gpm_brightness_xrandr_output_set_internal 
(brightness, output, i);
+   while (cur  shared_value_abs) {
+   /* going down */
+   cur = gpm_brightness_get_guarded_down 
(shared_value_abs, cur, max);
+   ret = gpm_brightness_xrandr_output_set_internal 
(brightness, output, cur);
if (!ret) {
break;
}

However, the resulting code looks rather artifical. Would you prefer a
patch base on the above?

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg
... make that 20 lines; the going down comment had been strangely
misplaced.

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg
** Attachment removed: 91-Using-guarded-and-scaled-stepping-when-
dimming.patch

   http://launchpadlibrarian.net/18940344/91-Using-guarded-and-scaled-
stepping-when-dimming.patch

** Attachment removed: use-scaled-stepping-in-xrand.patch

   http://launchpadlibrarian.net/18921173/use-scaled-stepping-in-
xrand.patch

** Attachment removed: 90-Add-guarded-brightness-stepping-
functions.patch

   http://launchpadlibrarian.net/18940342/90-Add-guarded-brightness-
stepping-functions.patch

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg
True. I removed the old attachments and added new ones accordingly. I
also took the liberty of changing patch 90 to use non-linear stepping;
it makes every step roughly equal in perceived brightness change, and
allows for much finer tuning at low brightness.


** Attachment added: 90-Add-guarded-brightness-stepping-functions.patch
   
http://launchpadlibrarian.net/18957587/90-Add-guarded-brightness-stepping-functions.patch

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-27 Thread rydberg

** Attachment added: 91-Using-guarded-and-scaled-stepping-when-dimming.patch
   
http://launchpadlibrarian.net/18957594/91-Using-guarded-and-scaled-stepping-when-dimming.patch

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] [NEW] GPM unresponsive for two minutes after startup on Macbooks

2008-10-26 Thread rydberg
Public bug reported:

Binary package hint: gnome-power-manager

Many of the recent Apple MacBooks have a large number of LCD backlight
levels. The GPM uses XRandR to modify the backlight. However, the gpm-
brightness-xrandr smooth brightness function does not take the number of
brightness levels into account. On recent Macbooks, this leads to some
2 brightness-set calls on startup, an activity that takes about one
and a half minute. During this time, GPM is not responsive. Attached is
a patch that introduces scaled stepping, which fixes the problem.

** Affects: gnome-power-manager (Ubuntu)
 Importance: Undecided
 Status: New

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-26 Thread rydberg

** Attachment added: use-scaled-stepping-in-xrand.patch
   http://launchpadlibrarian.net/18921173/use-scaled-stepping-in-xrand.patch

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 289520] Re: GPM unresponsive for two minutes after startup on Macbooks

2008-10-26 Thread rydberg
The patch has been uploaded to the mactel PPA.

-- 
GPM unresponsive for two minutes after startup on Macbooks
https://bugs.launchpad.net/bugs/289520
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs