bugGNU GRUB - Bugs: bug #29385, grub2 somehow disables apm: cannot...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #29385: grub2 somehow disables apm: cannot power down

Submitter:  ael <ugh>
Submitted:  Tue 30 Mar 2010 02:06:06 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  ael
Open/Closed:  Closed Release:  1.96
Release:  Reproducibility:  Every Time
Planned Release:  None

Jump to the original submission

Sun 17 Oct 2010 12:08:42 AM UTC, comment #6: 

Documented

Vladimir Serbinenko <phcoder>
Group administrator
Tue 30 Mar 2010 07:17:31 PM UTC, comment #5: 

Yes. That was it. linux16 solved the problem.

Thank you so much for such a speedy solution.

Does this bug remain visible once it is closed, or should someone
(me?) attempt to add a note to the wiki/FAQ?

ael <ugh>
Tue 30 Mar 2010 06:50:54 PM UTC, comment #4: 

Perhaps it has something to do with the modern 32-bit boot protocol grub2 uses by default. Try replacing linux with linux16

Vladimir Serbinenko <phcoder>
Group administrator
Tue 30 Mar 2010 06:46:29 PM UTC, comment #3: 

Sorry; typo

Similar results on other at least one other module. --->

Similar results on at least one other kernel.

ael <ugh>
Tue 30 Mar 2010 06:42:04 PM UTC, comment #2: 

I checked all of that pretty carefully before posting.

Here is the grub1 menu.lst entry:

title 2.6.34-rc2
root (hd0,2)
kernel (hd0,2)/boot/bzImage-2.6.34-rc2 root=/dev/hda7 vga=0x16c

and the matching grub2 grub.cfg entry:

menuentry "2.6.34-rc2" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
#set gfxpayload=1024x768
linux (hd0,3)/boot/bzImage-2.6.34-rc2 root=/dev/hda7
}

Note that there is no initrd involved.

The only difference, apart from the apparently broken gfxpayload/vga support in this version of grub2, is that
once the kernel is up and running, the linux apm module cannot
run after the grub2 boot. The module is present and found in both cases. But the apm module issues the error message about the missing device after grub2 but not after grub1.

Similar results on other at least one other module.

For example, after a grub2 boot:-
# modprobe apm
FATAL: Error inserting apm (/lib/modules/2.6.34-rc2/kernel/arch/x86/kernel/apm.ko): No such device

# ls -l /lib/modules/2.6.34-rc2/kernel/arch/x86/kernel/apm.ko
-rw-r--r-- 1 root root 37190 Mar 30 17:17 /lib/modules/2.6.34-rc2/kernel/arch/x86/kernel/apm.ko

ael <ugh>
Tue 30 Mar 2010 02:27:50 PM UTC, comment #1: 

Unlikely to be GRUB's fault. I think your grub.cfg doesn't correspond to menu.lst and has a diffierence either in kernel parameters or initrd filename

Vladimir Serbinenko <phcoder>
Group administrator
Tue 30 Mar 2010 02:06:06 PM UTC, original submission:  

Booting a linux kernel on a fairly old desktop which only has
apm,

Grub2) With grub 2, the linux apm module will not load:
    "error inserting apm ... no such device .."
      Thus it is impossible to power off that machine remotely.

Grub1) With legacy grub1, precisely the same kernel(s) boot
       properly, the apm module can load, and thus the system
       powers off on shutdown.

So it seems that grub2 somehow prevents apm from being recognised
subsequently by the kernel. Maybe there is some sort of acpi
assumption which fouls up apm?

Tested on debian testing grub2 1.98-1 .

{Not reported via debian bug since debian kernels don't support
 apm at all. )



ael <ugh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by ugh (Submitted the item)
  • -email is unavailable- added by ugh
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-17 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2010-03-30 ugh Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code