1

First of all,sorry for my bad English.

  • Im using Xubuntu 12.04 on Acer Aspire One D270.My Screen brightness hotkeys (Fn+L/R) dont work.I installed xbacklight but it always shows "No outputs have backlight property". So I used this command: sudo setpci -s 00:02.0 F4.B=80 and it does work!

  • I made a session startup name "Brightness",Command:"sudo setpci -s 00:02.0 F4.B=80" but still have to manually execute from Terminal.

Both with xbacklight or Startup Script is OK,as long as I can control my screen brightness.

P/S:Im noob,so please explain in detail.

1 Answer 1

2

Now that sudo setpci -s 00:02.0 F4.B=80 is working for you, lets make it executed everytime you login.

Please do the following

  1. sudo vim /etc/rc.local

    It might ask you to enter your root password. and then it will open up a window

  2. Now press Shift+G. This will take you to the last line of the file.

  3. Press i

  4. Now type sudo setpci -s 00:02.0 F4.B=80

  5. Press Esc

  6. And then type :wq

Thats it. Restart your computer. That command will be executed automatically everytime you login, so that you dont have to execute it manually.

9
  • Can you please format your texT? Please use this for help in formatting askubuntu.com/editing-help#comment-formatting Apr 27, 2013 at 14:29
  • thank you,sir.I installed vim and did exactly what you said.It looks like: echo 6 > /sys/class/backlight/acpi_video0/brightness sudo setpci -s 00:02.0 F4.B=80 exit 0 then type :wq,press Enter. Still have to execute manually :( Apr 27, 2013 at 14:34
  • So, you have saved that file with sudo setpci -s 00:02.0 F4.B=80 in it, right? Apr 27, 2013 at 14:35
  • yes,right between "echo 6> blah blah" and "exit 0" Apr 27, 2013 at 14:41
  • Fine, now restart and see whether it is working properly. Apr 27, 2013 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.