LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   add acpi=off radeon.modeset=0 to grub permanently (https://www.linuxquestions.org/questions/ubuntu-63/add-acpi%3Doff-radeon-modeset%3D0-to-grub-permanently-915227/)

red40y 11-23-2011 09:22 PM

add acpi=off radeon.modeset=0 to grub permanently
 
im trying to add "acpi=off radeon.modeset=0" permanently to the grub so when i boot my Ubuntu 11.10 i don't have to add this line each time. how do i go about this?

syg00 11-23-2011 10:18 PM

Have a read of this.
Add it to GRUB_CMDLINE_LINUX_DEFAULT (or even GRUB_CMDLINE_LINUX if you like).

widget 11-24-2011 11:39 AM

Yes that is a good link.

The line needs to be added in your /etc/default/grub file if using the script generated menu entry.

This is from mine. Note that in the "default" line I have removed "splash". The line below has an added instruction string to generate the bootchart info, this is where I would put your entry.
Code:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#  info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=100
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="initcall_debug printk.time=y quiet init=/sbin/bootchartd ..."

You will need to, as root, run;
Code:

update-grub
to get this in your /boot/grub/grub.cfg file.

Another way to do this is a custom menu entry. I prefer these to the auto generated entries. You just stick it in your /etc/grub.d/40_custom file and save it as 06_custom (this puts it at the top of your screen menu) and run "update-grub". This is the one for the same install as the example above (the one I am on now).
Code:

echo "Adding Squeezy on sda7" >&2
cat << EOF
menuentry "Squeezy on sda7" {
    set root=(hd0,7)
        linux /vmlinuz root=/dev/sda7 ro quiet initcall_debug printk.time=y quiet init=/sbin/bootchartd ... rdinitrd=/sbin/bootchartd
        initrd /initrd.img
}
EOF

The hard part about that is that you need to make sure that line wrapping is NOT enabled in your text editor when editing anything to do with the grub scripts.

The reason that I like those entries is that they never change, always boot to the newest Debian based kernel on the defined partition. By that I mean that kernel updates don't ever have to have editing to get them to work. The defined partition means that I could, for instance, install a new OS, say LMDE, on this partition and use the exact same menu entry with no changes at all.

The is called a symbolic menu entry by the good folks at the grub project.

red40y 11-25-2011 10:58 AM

=) ty very much guys. i gots it now. yay


All times are GMT -5. The time now is 08:49 PM.