The most effective method for saving screen brightness when Ubuntu is started
Source: Internet
Author: User
The most effective way to save the screen brightness when Ubuntu is turned on, Ubuntu cannot save the screen brightness after every restart. this is a very annoying problem. I found a very effective solution on a foreign website, it can be implemented without any software. the method is as follows: copy and save the following python code... the most effective way to save the screen brightness when Ubuntu is turned on, Ubuntu cannot save the screen brightness after every restart. this is a very annoying problem. I found a very effective solution on a foreign website, it can be implemented without any software. the method is as follows: copy and save the following python code. setBrightness. put the py file under your home directory, click the gear icon in the upper-right corner of ubuntu, select Startup Application, and then click Add. you can enter the file by Name, enter python/home/Username/in the command line /. setBrightness. py, comment line at will, change the Username to your Username. in this way, the screen brightness will be automatically modified after login. the number in the last line of the py file is the percentage of the brightness to be saved and can be freely modified. [python] import into bus = bytes. sessionBus () proxy = bus. get_object ('org. gnome. settingsDaemon ','/org/gnome/SettingsDaemon/power') iface = require. interface (proxy, dbus_interface = 'org. gnome. settingsDaemon. power. screen ') iface. setPercentage (50)
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.