Ubuntu: Grub can't be saved after modification



Question:

I have Ubuntu 14.04 32 bit machine on my lenovo g580. Default brightness keys are not working and can't decrease brightness in settings also. The brightness has been fixed at maximum. I followed few similar questions and modified grub document in /etc/default/grub, but I'm not being able to save this file after modification. Even though I have logged in as admin.It shows "You do not have the necessary permission to save the file", when I tried "save as" in the same location with the same name. What should I do to decrease brightness? Please help.


Solution:1

Try this:

  • Open the Terminal app (Ctrl+Alt+T)
  • Type gksudo gedit
  • Type your password when asked for it (it will not show nothing, even asterisks) and press Enter
  • Text editor will open up
  • Then select Open and open the file to edit
  • Edit the file
  • Save the file


Solution:2

Add a simple line : quiet splash acpi_backlight=vendor to grub

  1. gksudo gedit /etc/default/grub
  2. Replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"

  3. sudo update-grub && sudo reboot

It worked on:

  • Ubuntu 12.04 LTS (Asus U31SD-XH51 )
  • Ubuntu 14.04 LTS (Dell 14z)
  • Ubuntu 14.04 LTS (Lenovo g500, remove nomodeset and it will work fine)

You could try adding a line to /etc/rc.local that will set the desired brightness level. To edit the file, run gksudo gedit /etc/rc.local and add following line:

echo X > /sys/class/backlight/intel_backlight/brightness    

Substitute the X by the desired brightness level.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »