Hello I've emailed this patch to kernel-team, but have gotten no reply
in a week. I'm not sure whether kernel-team was the correct mailing list
for the patch, so I'm resending it here. This is a trivial patch that
fixes the IR receiver on new Macbooks, allowing the Macs to be
controlled with a remote.
The bug is detailed
here https://bugs.launchpad.net/mactel-support/+bug/157919
Please CC me on replies as I'm not subscribed to this mailing list.
Regards,
Alex
-------- Forwarded Message --------
> From: Alexander Karpenko <alexander@comm.utoronto.ca>
> To: kernel-team@lists.ubuntu.com
> Subject: [PATCH] appleir: Enable appleir on new macbooks (CC me on
> replies)
> Date: Sun, 27 Jul 2008 16:14:40 -0400 (EDT)
>
> The Device ID of the IR receiver has changed on new Macbooks. This patch adds the new Device ID to the appleir driver in order to enable remote control.
> In addition, the patch changes the key codes for back and forward to correspond with those used on apple keyboards.
>
> Signed-off-by: Alexandre Karpenko <alexander@comm.utoronto.ca>
> ---
> Patch was originally posted and tested at:
> https://bugs.launchpad.net/mactel-support/+bug/157919
>
> --- ubuntu/mactel/appleir_old.c 2008-06-10 12:57:18.000000000 -0400
> +++ ubuntu/mactel/appleir.c 2008-07-27 15:48:20.000000000 -0400
> @@ -34,6 +34,9 @@ MODULE_LICENSE (DRIVER_LICENSE);
> #ifndef USB_DEVICE_ID_APPLE_IR
> #define USB_DEVICE_ID_APPLE_IR 0x8240
> #endif
> +#ifndef USB_DEVICE_ID_APPLE_IR2
> +#define USB_DEVICE_ID_APPLE_IR2 0x8242
> +#endif
>
> #define URB_SIZE 32
>
> @@ -56,6 +59,7 @@ struct appleir
>
> static struct usb_device_id appleir_ids[] = {
> {USB_DEVICE (USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_IR),.driver_info = 0},
> + {USB_DEVICE (USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_IR2),.driver_info = 0},
> {}
> };
>
> @@ -84,11 +88,20 @@ MODULE_DEVICE_TABLE (usb, appleir_ids);
> /* as a flat battery message */
> /* 25 87 e0 ca 06 flat battery */
>
> +/* Alexandre Karpenko reports the following responses for Device ID 0x8242 */
> +/* 25 87 ee 47 0b + */
> +/* 25 87 ee 47 0d - */
> +/* 25 87 ee 47 08 << */
> +/* 25 87 ee 47 07 >> */
> +/* 25 87 ee 47 04 >" */
> +/* 25 87 ee 47 02 menu */
> +/* 26 87 ee 47 ** for key repeat (** is the code of the key being held) */
> +
>
> static int keymap[MAX_KEYS] = {
> KEY_RESERVED, KEY_MENU,
> - KEY_PLAYPAUSE, KEY_NEXTSONG,
> - KEY_PREVIOUSSONG, KEY_VOLUMEUP,
> + KEY_PLAYPAUSE, KEY_FORWARD,
> + KEY_BACK, KEY_VOLUMEUP,
> KEY_VOLUMEDOWN, KEY_RESERVED
> };
>
> @@ -146,7 +159,7 @@ static void
> new_data (struct appleir *appleir, uint8_t * data, int len)
> {
> static const uint8_t keydown[] = { 0x25, 0x87, 0xee };
> - static const uint8_t keyrepeat[] = { 0x26, 0x00, 0x00, 0x00, 0x00 };
> + static const uint8_t keyrepeat[] = { 0x26 };
> static const uint8_t flatbattery[] = { 0x25, 0x87, 0xe0 };
>
> #ifdef DUMP_PACKETS
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
--
Andrea `BaSh` Scarpino
Arch Linux Trusted User
Linux User: #430842
08-02-2008, 12:58 AM
"Giovanni Scafora"
2008/7/27, Pierre Schmitz <pierre@archlinux.de>:
> To makes things easier I asked my pkgdb and here is a list of all affected
> packages in [community]:
> On Tue, Jul 29, 2008 at 11:42 PM, »Q« <boxcars@gmx.net> wrote:
> > I'm using portage-2.1.4.4.
> >
> > $ emerge -pqu world
> > [ebuild U ] www-client/mozilla-firefox-3.0.1 [2.0.0.16]
> >
> > but
> >
> > $ emerge -pqu --deep world
> >
> > gives no output. I've never seen --deep cause fewer updates. What
> > am I missing? I have EMERGE_DEFAULT_OPTS="--with-bdeps y" in
> > make.conf, and I don't know what more info to post.
>
> Is Firefox in /var/lib/portage/world? If not, do you intend Firefox to
> be a dependency? The only "legitimate" behavior I see is that Firefox
> is a dependency for a package that is not part of your world.
I think I see now what caused this. It happened after I added Fx 3.0.1
to package.keywords.
`emerge -u world` was pulling in mozilla-firefox-3.0.1 because it was
in world, but `emerge -uD world` was not pulling it in because I have
installed packages which have mozilla-firefox-2* as a dependency.
Now that I've installed mozilla-firefox-3.0.1, `emerge -uD world` wants
to downgrade me to 2.0.0.16, and `emerge -u world` doesn't see
anything to do.
On Tue, Jul 29, 2008 at 11:42 PM, »Q« <boxcars@gmx.net> wrote:
I'm using portage-2.1.4.4.
$ emerge -pqu world
[ebuild U ] www-client/mozilla-firefox-3.0.1 [2.0.0.16]
but
$ emerge -pqu --deep world
gives no output. I've never seen --deep cause fewer updates. What
am I missing? I have EMERGE_DEFAULT_OPTS="--with-bdeps y" in
make.conf, and I don't know what more info to post.
Is Firefox in /var/lib/portage/world? If not, do you intend Firefox to
be a dependency? The only "legitimate" behavior I see is that Firefox
is a dependency for a package that is not part of your world.
I think I see now what caused this. It happened after I added Fx 3.0.1
to package.keywords.
`emerge -u world` was pulling in mozilla-firefox-3.0.1 because it was
in world, but `emerge -uD world` was not pulling it in because I have
installed packages which have mozilla-firefox-2* as a dependency.
Now that I've installed mozilla-firefox-3.0.1, `emerge -uD world` wants
to downgrade me to 2.0.0.16, and `emerge -u world` doesn't see
anything to do.
What's the package that wants to downgrade to firefox 2?
08-02-2008, 09:41 AM
"Zhou Rui"
2008/8/2 »Q« <boxcars@gmx.net>:
> On Wed, 30 Jul 2008 00:15:25 -0700
> "Andrey Falko" <ma3oxuct@gmail.com> wrote:
>
>> On Tue, Jul 29, 2008 at 11:42 PM, »Q« <boxcars@gmx.net> wrote:
>> > I'm using portage-2.1.4.4.
>> >
>> > $ emerge -pqu world
>> > [ebuild U ] www-client/mozilla-firefox-3.0.1 [2.0.0.16]
>> >
>> > but
>> >
>> > $ emerge -pqu --deep world
>> >
>> > gives no output. I've never seen --deep cause fewer updates. What
>> > am I missing? I have EMERGE_DEFAULT_OPTS="--with-bdeps y" in
>> > make.conf, and I don't know what more info to post.
>>
>> Is Firefox in /var/lib/portage/world? If not, do you intend Firefox to
>> be a dependency? The only "legitimate" behavior I see is that Firefox
>> is a dependency for a package that is not part of your world.
>
> I think I see now what caused this. It happened after I added Fx 3.0.1
> to package.keywords.
>
> `emerge -u world` was pulling in mozilla-firefox-3.0.1 because it was
> in world, but `emerge -uD world` was not pulling it in because I have
> installed packages which have mozilla-firefox-2* as a dependency.
>
> Now that I've installed mozilla-firefox-3.0.1, `emerge -uD world` wants
> to downgrade me to 2.0.0.16, and `emerge -u world` doesn't see
> anything to do.
>
> --
> »Q«
>
I guess this happens because you have some package like yelp has dependecy
to the firefox-2.0.*, the solve this, you need set the USE flag like this:
# echo "gnome-extra/yelp xulrunner" >> /etc/portage/package.use
to make it independence with firefox, and then you can upgrade your
firefox freely.
--
BR,
Zhou Rui
08-02-2008, 08:07 PM
"Andrea Scarpino"
2008/8/2 Eric Belanger <belanger@astro.umontreal.ca>:
> On Sat, 2 Aug 2008, Andrea Scarpino wrote:
>
>> 2008/7/27 Pierre Schmitz <pierre@archlinux.de>:
>>>
>>> | wlassistant |
>>> | kiso |
>>
>fixed
>>
>>> | kdestyle-baghira |
>>> | kdestyle-polyester |
>>
> make fail, logs:
>
> http://www.deelab.org/bash/uploads/kdestyle-baghira
> http://www.deelab.org/bash/uploads/kdestyle-polyester
>
>
> For both: missing kdebase-workspace (make)depends
> | kdestyle-polyester |
updated to version compatible with KDE4
> | kdestyle-baghira |
> | kdestyle-polyester |
moved to unsupported, they require kde3.
I'll put to community kdestyle-bespin, it is baghira theme for KDE4
Regards
--
Andrea `BaSh` Scarpino
Arch Linux Trusted User
Linux User: #430842
08-02-2008, 09:55 PM
Jaroslav Lichtblau
On Sun, Jul 27, 2008 at 08:14:34PM +0200, Pierre Schmitz wrote:
> Am Sonntag 27 Juli 2008 19:58:00 schrieb Pierre Schmitz:
> > If you maintain packages
> > in [community] which depend on KDE3 you might want to read this:
>
> To makes things easier I asked my pkgdb and here is a list of all affected
> packages in [community]:
> | kdesvn
Updated (4 days ago) - stays with KDE3 - no KDE4 version
08-02-2008, 11:18 PM
»Q«
On Sat, 02 Aug 2008 12:02:01 +0300
Nikos Chantziaras <realnc@arcor.de> wrote:
> »Q« wrote:
> > On Wed, 30 Jul 2008 00:15:25 -0700
> > "Andrey Falko" <ma3oxuct@gmail.com> wrote:
> >
> >> On Tue, Jul 29, 2008 at 11:42 PM, »Q« <boxcars@gmx.net> wrote:
> >>> I'm using portage-2.1.4.4.
> >>>
> >>> $ emerge -pqu world
> >>> [ebuild U ] www-client/mozilla-firefox-3.0.1 [2.0.0.16]
> >>>
> >>> but
> >>>
> >>> $ emerge -pqu --deep world
> >>>
> >>> gives no output. I've never seen --deep cause fewer updates.
> >>> What am I missing? I have EMERGE_DEFAULT_OPTS="--with-bdeps y" in
> >>> make.conf, and I don't know what more info to post.
> >> Is Firefox in /var/lib/portage/world? If not, do you intend
> >> Firefox to be a dependency? The only "legitimate" behavior I see
> >> is that Firefox is a dependency for a package that is not part of
> >> your world.
> >
> > I think I see now what caused this. It happened after I added Fx
> > 3.0.1 to package.keywords.
> >
> > `emerge -u world` was pulling in mozilla-firefox-3.0.1 because it
> > was in world, but `emerge -uD world` was not pulling it in because
> > I have installed packages which have mozilla-firefox-2* as a
> > dependency.
> >
> > Now that I've installed mozilla-firefox-3.0.1, `emerge -uD world`
> > wants to downgrade me to 2.0.0.16, and `emerge -u world` doesn't see
> > anything to do.
>
> What's the package that wants to downgrade to firefox 2?
As Zhou Rui says, I could fix this by adding xulrunner to the use flags
for openoffice, vlc, and liferea. I think that would work for
mplayerplug-in also, at least if I move to mplayerplug-in-3.50 (~x86).
kazehahase may also be satisfied with xulrunner; I'm not sure. I'd
forgotten I had it installed, so I might as well just get rid of it.