How Ubuntu uses commands to adjust screen brightness "Ubantu series"

Source: Internet
Author: User

How Ubuntu uses commands to adjust screen brightness

time: 2015-01-13 18:03http://www.xitongzhijia.netQipeng

We all know that the brightness of the screen can be adjusted using the Monitor's buttons, but you know what? Ubuntu system can use the command to adjust the screen brightness, today's small series to introduce you under Ubuntu using the command to adjust the screen brightness method, together to learn the next.


  User issues: Ubantu 12.04 General Open the opportunity to adjust the brightness to the maximum, with a will inevitably feel the glare, the following two ways, adjust the brightness at random!

2 ways:

1. Adjust the screen contrast parameter gamma value

Enter "Xgamma-gamma. 85" in the terminal

If not ideal, try changing the. 65 to 0.5~1.0 to test.

This command does not require administrator privileges.

2. Adjust the backlight of the laptop screen PCI

"Sudo setpci-s 00:02.0 f4.b=xx

XX is the screen brightness value represented by the 16 binary, range 0 (brightest) ~ff (darkest).

00:02.0 is the VGA device code for your display.

Check your VGA device code with the LSPCI command:

"Lspci 00:00.0 Host bridge:intel Corporation Mobile pm965/gm965/gl960 Memory Controller Hub (rev.) 00:02.0 VGA Compati ble controller:intel Corporation Mobile gm965/gl960 Integrated Graphics Controller (rev.) 00:02.1 Display controller:i Ntel Corporation Mobile gm965/gl960 Integrated Graphics Controller (rev.) 00:1a.0 USB Controller:intel Corporation 8280 1H (ICH8 Family) USB UHCI Controller #4 (rev 03)

Note the second line 00:02.0 VGA compatible controller.

sudo setpci-s 00:02.0 F4. B=ff

Explain:

SETPCI is a command to modify device properties

-S means the device's address is entered next

00:02.0 VGA Device address (:. )

F4 the address of the property to be modified, this should indicate "brightness"

. b The length of the modification (b should be Byte, and w (should be word, two bytes), L (should be long,4 bytes))

=ff the value to be modified (can be changed)

I am here 00 is the darkest, FF is the brightest, different computers may not be the same.

For example I think FF is too flash, I can sudo setpci-s 00:02.0 F4. B=CC, it'll be darker.

This is how Ubuntu uses the command to adjust the screen brightness of the method introduced, this article introduces a total of 2 methods, using any one can achieve screen brightness adjustment.

How Ubuntu uses commands to adjust screen brightness "Ubantu series"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.