mbp-nvidia-bl-dkms does not work with karmic when using kernel 2.6.31-1-generic x86_64

Bug #395045 reported by ccarezza
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mactel Support
New
Undecided
Unassigned

Bug Description

I have a MacBookPro 5.2 running karmic. I'm using the standard kernel package 2.6.31-1-generic x86_64 and mbp-nvidia-bl-dkms 0.21~jaunty

When I try to load mbp_nvidia_bl I get, in dmesg:

[ 499.028436] BUG: unable to handle kernel NULL pointer dereference at 0000000000000040
[ 499.028445] IP: [<ffffffff8129dfa8>] backlight_store_brightness+0xa8/0xd0
[ 499.028456] PGD 14617b067 PUD 14a4ef067 PMD 0
[ 499.028461] Oops: 0000 [#2] SMP
[ 499.028465] last sysfs file: /sys/devices/virtual/backlight/mbp_backlight/brightness
[ 499.028469] CPU 0
[ 499.028472] Modules linked in: mbp_nvidia_bl(+) nvidia(P) binfmt_misc ppdev bridge stp bnep nvidia_bl applesmc input_polldev coretemp hid_apple usbhid lp parport snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss b43 snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer mac80211 snd_seq_device uvcvideo snd cfg80211 videodev v4l1_compat v4l2_compat_ioctl32 soundcore snd_page_alloc joydev bcm5974 i2c_nforce2 btusb led_class pcspkr ssb ohci1394 ieee1394 forcedeth fbcon tileblit font bitblit softcursor i915 drm i2c_algo_bit video output intel_agp
[ 499.028528] Pid: 5125, comm: bash Tainted: P D 2.6.31-1-generic #14-Ubuntu MacBookPro5,2
[ 499.028531] RIP: 0010:[<ffffffff8129dfa8>] [<ffffffff8129dfa8>] backlight_store_brightness+0xa8/0xd0
[ 499.028537] RSP: 0018:ffff88014a5e3e48 EFLAGS: 00010202
[ 499.028540] RAX: 0000000000000038 RBX: ffff880149dfd678 RCX: 000000000000000a
[ 499.028543] RDX: 0000000000000000 RSI: ffff88014a5e3e10 RDI: ffff880149dfd618
[ 499.028546] RBP: ffff88014a5e3e88 R08: 0000000000000028 R09: 000000000000000a
[ 499.028549] R10: 0000000000000000 R11: 0000000000000069 R12: 0000000000000002
[ 499.028552] R13: ffff880149dfd638 R14: ffff880149dfd618 R15: ffff880149dfd600
[ 499.028556] FS: 00007f17c1d3f6f0(0000) GS:ffff880028029000(0000) knlGS:0000000000000000
[ 499.028559] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 499.028562] CR2: 0000000000000040 CR3: 000000014a5cc000 CR4: 00000000000406b0
[ 499.028565] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 499.028568] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 499.028571] Process bash (pid: 5125, threadinfo ffff88014a5e2000, task ffff8801461bc410)
[ 499.028574] Stack:
[ 499.028575] 0000000000000000 0000000000000001 ffff88014a5e3e88 ffff88014a4f7980
[ 499.028580] <0> ffff88014a5e3f48 ffff880149436500 ffffffff8178e6d0 ffff880149dfd688
[ 499.028585] <0> ffff88014a5e3e98 ffffffff8130f79b ffff88014a5e3ee8 ffffffff8117a290
[ 499.028591] Call Trace:
[ 499.028597] [<ffffffff8130f79b>] dev_attr_store+0x1b/0x20
[ 499.028603] [<ffffffff8117a290>] sysfs_write_file+0xe0/0x160
[ 499.028609] [<ffffffff81114ee8>] vfs_write+0xb8/0x1a0
[ 499.028613] [<ffffffff8111599c>] sys_write+0x4c/0x80
[ 499.028619] [<ffffffff81011fc2>] system_call_fastpath+0x16/0x1b
[ 499.028621] Code: 12 4c 89 ef e8 ba 48 27 00 eb af 0f 1f 84 00 00 00 00 00 4d 8d 77 18 89 43 88 4c 89 f7 e8 41 4b 27 00 48 8b 43 e0 48 85 c0 74 0e <48> 8b 40 08 48 85 c0 74 05 4c 89 ff ff d0 4c 89 f7 4d 63 f4 e8
[ 499.028664] RIP [<ffffffff8129dfa8>] backlight_store_brightness+0xa8/0xd0
[ 499.028669] RSP <ffff88014a5e3e48>
[ 499.028671] CR2: 0000000000000040
[ 499.028674] ---[ end trace 8e85fef35d483d20 ]---

If I boot using kernel 2.6.28-13-generic instead, no problem happens and I can control the LCD brightness normally.

Revision history for this message
Ricky Campbell (cyberdork33) wrote : Re: [Mactel-support] [Bug 395045] [NEW] mbp-nvidia-bl-dkms does not work with karmic when using kernel 2.6.31-1-generic x86_64
Download full text (8.1 KiB)

I don't think that package has been setup to work in karmic or if it
is even needed. Why are you trying to install it?

Ricky

On Jul 3, 2009, at 3:39 AM, ccarezza <email address hidden> wrote:

> Public bug reported:
>
> I have a MacBookPro 5.2 running karmic. I'm using the standard kernel
> package 2.6.31-1-generic x86_64 and mbp-nvidia-bl-dkms 0.21~jaunty
>
> When I try to load mbp_nvidia_bl I get, in dmesg:
>
> [ 499.028436] BUG: unable to handle kernel NULL pointer dereference
> at 0000000000000040
> [ 499.028445] IP: [<ffffffff8129dfa8>] backlight_store_brightness
> +0xa8/0xd0
> [ 499.028456] PGD 14617b067 PUD 14a4ef067 PMD 0
> [ 499.028461] Oops: 0000 [#2] SMP
> [ 499.028465] last sysfs file: /sys/devices/virtual/backlight/
> mbp_backlight/brightness
> [ 499.028469] CPU 0
> [ 499.028472] Modules linked in: mbp_nvidia_bl(+) nvidia(P)
> binfmt_misc ppdev bridge stp bnep nvidia_bl applesmc input_polldev
> coretemp hid_apple usbhid lp parport snd_hda_codec_realtek
> snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm
> snd_seq_dummy snd_seq_oss b43 snd_seq_midi snd_rawmidi
> snd_seq_midi_event snd_seq snd_timer mac80211 snd_seq_device
> uvcvideo snd cfg80211 videodev v4l1_compat v4l2_compat_ioctl32
> soundcore snd_page_alloc joydev bcm5974 i2c_nforce2 btusb led_class
> pcspkr ssb ohci1394 ieee1394 forcedeth fbcon tileblit font bitblit
> softcursor i915 drm i2c_algo_bit video output intel_agp
> [ 499.028528] Pid: 5125, comm: bash Tainted: P D 2.6.31-1-
> generic #14-Ubuntu MacBookPro5,2
> [ 499.028531] RIP: 0010:[<ffffffff8129dfa8>] [<ffffffff8129dfa8>]
> backlight_store_brightness+0xa8/0xd0
> [ 499.028537] RSP: 0018:ffff88014a5e3e48 EFLAGS: 00010202
> [ 499.028540] RAX: 0000000000000038 RBX: ffff880149dfd678 RCX:
> 000000000000000a
> [ 499.028543] RDX: 0000000000000000 RSI: ffff88014a5e3e10 RDI:
> ffff880149dfd618
> [ 499.028546] RBP: ffff88014a5e3e88 R08: 0000000000000028 R09:
> 000000000000000a
> [ 499.028549] R10: 0000000000000000 R11: 0000000000000069 R12: 0000000000000002
> [ 499.028552] R13: ffff880149dfd638 R14: ffff880149dfd618 R15:
> ffff880149dfd600
> [ 499.028556] FS: 00007f17c1d3f6f0(0000) GS:ffff880028029000(0000)
> knlGS:0000000000000000
> [ 499.028559] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> [ 499.028562] CR2: 0000000000000040 CR3: 000000014a5cc000 CR4:
> 00000000000406b0
> [ 499.028565] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [ 499.028568] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> [ 499.028571] Process bash (pid: 5125, threadinfo ffff88014a5e2000,
> task ffff8801461bc410)
> [ 499.028574] Stack:
> [ 499.028575] 0000000000000000 0000000000000001 ffff88014a5e3e88
> ffff88014a4f7980
> [ 499.028580] <0> ffff88014a5e3f48 ffff880149436500
> ffffffff8178e6d0 ffff880149dfd688
> [ 499.028585] <0> ffff88014a5e3e98 ffffffff8130f79b
> ffff88014a5e3ee8 ffffffff8117a290
> [ 499.028591] Call Trace:
> [ 499.028597] [<ffffffff8130f79b>] dev_attr_store+0x1b/0x20
> [ 499.028603] [<ffffffff8117a290>] sysfs_write_file+0xe0/0x160
> [ 499.028609] [<ffffffff81114ee8>] vfs_write+...

Read more...

Revision history for this message
ccarezza (caetano-vision) wrote : Re: [Mactel-support] [Bug 395045] [NEW] mbp-nvidia-bl-dkms does not work with karmic when using kernel 2.6.31-1-generic x86_64
Download full text (8.7 KiB)

  If I try to load the mbp_nvidia_bl.ko provided with the kernel it
  fails saying that could not identify my device. mbp-nvidia-bl-dkms
  has the changes necessary for my device identification, but does not
  work with the latest generic kernel provided in karmic.

  Caetano

Ricky Campbell writes:
> I don't think that package has been setup to work in karmic or if it
> is even needed. Why are you trying to install it?
>
>
> Ricky
>
> On Jul 3, 2009, at 3:39 AM, ccarezza <email address hidden> wrote:
>
> > Public bug reported:
> >
> > I have a MacBookPro 5.2 running karmic. I'm using the standard kernel
> > package 2.6.31-1-generic x86_64 and mbp-nvidia-bl-dkms 0.21~jaunty
> >
> > When I try to load mbp_nvidia_bl I get, in dmesg:
> >
> > [ 499.028436] BUG: unable to handle kernel NULL pointer dereference
> > at 0000000000000040
> > [ 499.028445] IP: [<ffffffff8129dfa8>] backlight_store_brightness
> > +0xa8/0xd0
> > [ 499.028456] PGD 14617b067 PUD 14a4ef067 PMD 0
> > [ 499.028461] Oops: 0000 [#2] SMP
> > [ 499.028465] last sysfs file: /sys/devices/virtual/backlight/
> > mbp_backlight/brightness
> > [ 499.028469] CPU 0
> > [ 499.028472] Modules linked in: mbp_nvidia_bl(+) nvidia(P)
> > binfmt_misc ppdev bridge stp bnep nvidia_bl applesmc input_polldev
> > coretemp hid_apple usbhid lp parport snd_hda_codec_realtek
> > snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm
> > snd_seq_dummy snd_seq_oss b43 snd_seq_midi snd_rawmidi
> > snd_seq_midi_event snd_seq snd_timer mac80211 snd_seq_device
> > uvcvideo snd cfg80211 videodev v4l1_compat v4l2_compat_ioctl32
> > soundcore snd_page_alloc joydev bcm5974 i2c_nforce2 btusb led_class
> > pcspkr ssb ohci1394 ieee1394 forcedeth fbcon tileblit font bitblit
> > softcursor i915 drm i2c_algo_bit video output intel_agp
> > [ 499.028528] Pid: 5125, comm: bash Tainted: P D 2.6.31-1-
> > generic #14-Ubuntu MacBookPro5,2
> > [ 499.028531] RIP: 0010:[<ffffffff8129dfa8>] [<ffffffff8129dfa8>]
> > backlight_store_brightness+0xa8/0xd0
> > [ 499.028537] RSP: 0018:ffff88014a5e3e48 EFLAGS: 00010202
> > [ 499.028540] RAX: 0000000000000038 RBX: ffff880149dfd678 RCX:
> > 000000000000000a
> > [ 499.028543] RDX: 0000000000000000 RSI: ffff88014a5e3e10 RDI:
> > ffff880149dfd618
> > [ 499.028546] RBP: ffff88014a5e3e88 R08: 0000000000000028 R09:
> > 000000000000000a
> > [ 499.028549] R10: 0000000000000000 R11: 0000000000000069 R12: 0000000000000002
> > [ 499.028552] R13: ffff880149dfd638 R14: ffff880149dfd618 R15:
> > ffff880149dfd600
> > [ 499.028556] FS: 00007f17c1d3f6f0(0000) GS:ffff880028029000(0000)
> > knlGS:0000000000000000
> > [ 499.028559] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> > [ 499.028562] CR2: 0000000000000040 CR3: 000000014a5cc000 CR4:
> > 00000000000406b0
> > [ 499.028565] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> > [ 499.028568] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> > [ 499.028571] Process bash (pid: 5125, threadinfo ffff88014a5e2000,
> > task ffff8801461bc410)
> > [ 499.028574] Stack:
> > [ 499.028575] 0000000000000000 0000000000000001 ffff88014a5e3e...

Read more...

Revision history for this message
Mario Schwalbe (schwalbe) wrote :

Recent Linus Torvald's git tree finally contains support for the MacBook 5,1 and MacBookPro5,1. These are the patches I sent upstream in December 2008, so don't expect your model to be supported very soon. To get support now, you'll have to use the mbp-nvidia-bl-dkms package, which seems to be buggy. I'll have a look at it tomorrow.

ciao,
Mario

Revision history for this message
Mario Schwalbe (schwalbe) wrote :

Uploaded new fixed version. You might also use the nvidia-bl-dkms package. Unfortunately, it's known to not work on a MacBookPro5,1. But I'd like to get reports for those most recent machines.

Revision history for this message
ccarezza (caetano-vision) wrote : Re: [Bug 395045] Re: mbp-nvidia-bl-dkms does not work with karmic when using kernel 2.6.31-1-generic x86_64

  Now mbp-nvidia-bl is working. I tested with 2.6.31-2-generic x86_64.

  Regarding nvidia-bl , it loads, but does not works. Nothing happens
  with the backlight, regardless the value I use.

  Thanks

Mario Schwalbe writes:
> Uploaded new fixed version. You might also use the nvidia-bl-dkms
> package. Unfortunately, it's known to not work on a MacBookPro5,1. But
> I'd like to get reports for those most recent machines.
>

--
  Caetano Jimenez Carezzato <email address hidden>

            $ perl -e 'while (42) {fork}'

"Toda a realidade se resume ao ponto" -- Escola de Pitágoras

 Computers are like air conditioners. Both stop working, if you open
 windows.
                -- Adam Heath

Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

Is there any chance you could see if this is working in Lucid?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.