lordamit / brightness Goto Github PK
View Code? Open in Web Editor NEWUsing Brightness Controller, you can control brightness of both primary and external displays in Linux. Check it out!
License: Other
Using Brightness Controller, you can control brightness of both primary and external displays in Linux. Check it out!
License: Other
Ability to decrease colors to greyscale, black and white
OS: Linux
Distro: Debian Sid 9
output of xrandr -q
:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
Version of Brightness Controller: where
I have been using brightness controller v1.0 since 2014 and works great on 2 monitors. Today I added a 3rd monitor, and it now tells me Primary Not found and Secondary Not found. I upgraded to 1.2.2 with no resolution. Is there some kind of setting I can change to allow 3? Your's is the nicest "brightness controller" i've found for Ubuntu 14.04
Thank you,
I looked into source of new version (develop
branch), but I didn't found any logic use of unit/about.py.
Do we need that?
I use Brightness on ArchLinux since quite a long time. Since today, Brightness crashes at launch with this message:
$ brightness
Traceback (most recent call last):
File "/usr/lib/brightness/init.py", line 19, in <module>
from PySide import QtGui, QtCore
ImportError: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Get_Var_Blend_Coordinates
I guess it it related to some dependency upgrade.
I recently had to restart my computer, and once that was done, the app no longer worked. I've uninstalled and reinstalled twice now. When I move the brightness slider down, the screen flickers to the appropriate dimness and then immediately returns to full brightness. I'm working on a two-monitor set-up, both Dells. The computer is ubuntu 14.04 LTS.
Hey, I have one tip for you. It's about coding style in Python. Please chose single, or double quotes, don't use that both. ๐
Adjusting the primary/secondary brightness actually changes that of the external/internal monitor.
So I think they should be flipped in the gui.
And better named internal/external I guess?
Is there some way to exceed the brightness value especially when the laptop is outdoors?
I didnt know exactly what information you would find helpful so I just tried to get everything seemingly relevant.
Gui appears and seems to function but does not affect my display. I turned off Gnome's Night Light feature from the 'Displays' setting. Based on the output below (attached the whole report) I thought it would be helpful to see what happens when I ran 'xrandr' in the terminal. The xrandr output is below is the setupt output and also attached. Seems like your code 'detect_display_devices()' should be grabbing DisplayPort2 but the words list is empty. I am not sure why 'connected' is not matching. I haven't actually tested the code, just my guess. Please let me know if there is anything else I need/can report.
xrandr_output.txt
brighness-master_output.txt
Respectfully,
Shane
----------------initial terminal output after setup----------
Downloads/temp_for_zip/Brightness-master$ python src/init.py
warning: output None not found; ignoring
xrandr: Need crtc to set gamma on.
Traceback (most recent call last):
File "src/init.py", line 146, in change_value_pbr
Executor.execute_command(cmd_value)
File "/home/shane/Downloads/temp_for_zip/Brightness-master/src/util/executor.py", line 23, in execute_command
subprocess.check_output(string_cmd, shell = True)
File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'xrandr --output None --brightness 0.99 --gamma 1.0:1.0:1.0' returned non-zero exit status 1
warning: output None not found; ignoring
xrandr: Need crtc to set gamma on.
Traceback (most recent call last):
File "src/init.py", line 146, in change_value_pbr
Executor.execute_command(cmd_value)
File "/home/shane/Downloads/temp_for_zip/Brightness-master/src/util/executor.py", line 23, in execute_command
.... Continues for 1.5k lines ------------------
-------------xrandr output-----------
Screen 0: minimum 320 x 200, current 7200 x 2160, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 connected primary 3840x2160+1440+0 (normal left inverted right x axis y axis) 600mm x 340mm
3840x2160 60.00*+ 30.00
2560x1440 59.95
1920x1080 60.00 59.94
1600x900 60.00
1280x1024 60.02
1280x800 59.81
1152x864 59.97
1280x720 60.00 59.94
1024x768 60.00
800x600 60.32
720x480 60.00 59.94
640x480 60.00 59.94
HDMI-A-0 connected 1920x1080+5280+540 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 66.67 60.00 59.94
720x400 70.08
DVI-D-0 connected 1440x900+0+882 (normal left inverted right x axis y axis) 410mm x 256mm
1440x900 59.89*+ 74.98
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
Running src/init.py
works while adding python doesn't & returns this error through pyside was installed:
python src/init.py
Traceback (most recent call last):
File "src/init.py", line 19, in <module>
from PySide import QtGui, QtCore
ImportError: No module named PySide
Might an Anaconda Python be the cause?
Confirmed. Installing pyside with apt-get doessn't work if you have Anaconda. Instead using conda install pyside
or pip install pyside
should work.
OS: 16.04 LTS
Distro: Ubuntu
output of xrandr -q
$ xrandr -q
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.00*+ 40.00
1360x768 59.80 59.96
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
680x384 60.00
640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
Version of Brightness Controller:
Is it possible to have a reset to default option in GUI ? Would be on the safer side then. :)
Your project would benefit a lot from using libcoopgamma:
C library: https://github.com/maandree/libcoopgamma/
Python binding: https://github.com/maandree/pylibcoopgamma/
Daemon: https://github.com/maandree/coopgammad
Programs using libcoopgamma: https://github.com/maandree/cg-tools/
Library the first library depends on: https://github.com/maandree/libgamma
Hello programmers, the minimum brightness shall be visible at least else it may loose from where to increase the brightness level !!!
I think it would be good to set a minimum brightness to which one can reduce. I am not sure if this is the same as this issue.
It wouldn't be nice to loose sight of your desktop even if you have two screen enabled. Accidents could happen like switching to one screen only whose brightness is set to zero.
This is going to stay as long as USC does not list python-wxgtk2.8 as dependency.
๐ฃ
In the Ubuntu Software Centre, there's no install button, only a buy button, which requires an account.
I presume this is a packaging issue?
Self explanatory title ;)
Is it possible to saving brightness setting in the newest version?
@apandada1
Tested v 2 on Ubuntu 14.04 - 3 monitors.
Everything works "after you re-activate the drop down menus and change
slider position"
For anything to work in Primary or Secondary sliders, I must re select
Primary or Secondary sources from the drop down.
This applies to loading the saved settings as well.
@xSeekTruthx I am using the latest source from
lordamit/Brightness/master
. So this issue should be present in this
branch as well. Is it so?
@apandada1 Yes. This is just my first time giving full test feedback on v 2.
I have two main screens and a third that I use about half the time and always have plugged in. The program only recognizes any of my screens when there are fewer than three plugged in to the computer. All 3 are different models, and it does not matter which is unplugged; removing any one will allow the program to recognize the two remaining monitors.
I understand that it would be difficult to allow the number of monitors supported to be indefinite, but is there a particular reason to limit support to two? I would love to be able to use the program without having to crawl under my desk first.
I think that it's complication when include License
and gpl.txt
because it causes double licenses. gpl.txt
should be renamed to LICENSE
and License
should be removed.
Make v1.0.0 and v1.0.1 tags for releases.
When I change the brightness, my icc profile set up through system settings -> color gets undone (so all the colors get a bit weird). I have to unplug and plug my monitor back in to get it back to normal.
Hey there,
I found brightness controller highly rated on the web.
I tried to install it via software-center, but unfortunately it is not present for Ubuntu 13.10.
Is there an expected timeline for the 13.10 release?
@zdroid ๐
Hey Zlatan ๐ป
@zdroid
Does the last line look good?
prototypes
, installers
, html
are unused branches, I think it's a good idea to nuke them and eventually merge anything useful from them to the main branch. Now, back to the main branch, wouldn't it be more useful to merge develop
and master
? It'd be way easier to maintain the project with only one branch.
Run the app, set the desired brightness... Close the app, the brightness remains (visually) the same.
Run the app again, and the app does not remember the previously set brightness level.
Same happens if the monitor goes to sleep mode
This addon is a blessing for my eyes as i can now set the brightness easily without playing with the monitor dumb interface (where are the good old knobs?).
I would like to know if it also is good for the planet - and your electricity bill, i.e. does it cut power usage?
If no, is it possible to put that as as goal?
Thanks
Good evening. Brightness controller is not working for me in ubuntu 14.04 lts. I install the app with terminal and download it from here and unpack files. I see it in the left bar of icons, doing double click and appears the app on the desktop. I slide the line with mouse left-right but do nothing. My desktop have:
memory: 7,0 GiB
Processor: AMD A10-6790K APU with Radeon(tm) HD Graphics ร 4
graphics: Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits)
64-bit & hard drive 629,7 GB
I love, let me repeat, LOVE this package and have made it into a MATE applet as well as bound it to keyboard keys.
What I'd like to know is where can I find Brightness' App Icon? Whenever I launch it, the icon is totally fugly since it's just using the "no-icon" icon from my current icon theme.
Many thanks!
~ Ev
Brightness setting going to change(reset) after restarting my PC . Is there any solve ?
I am using Linux Mint 15 in ASUS EEE PC X101CH .
Thanks
There should be a tray icon for the app. I've added that to the "trayicon" branch and sent a pull request.
As in the title.
I guess project is currently in its beta phase before the release 2.0.
Are you planning on creating PPA for this pre-release state as well ?
I will totally understand if you don't. Reason might be that the project is too small and finishing all the work remaining till the release is less fuss than maintaining a PPA for beta-testers.
Still, I you find the suggestion apt, please act accordingly.
beta_pyside
isn't needed, right? It is updated 2 months ago.
We must do that. If brightness is on 0% noone will be able to do anything more. All will be dark. Minimal brightness must be 5-10%.
The app should be named just Brightness Controller (not Brightness Controller v1.0)
v 1.0 should be kept within the about menu.
Actually I am going to submit this app to USC and so I need screenshots of the app.
Could anyone take one screenshot with two displays and another with just one displays under Unity after editing the code as I mentioned above?
I do not have two displays so that I can take the first screenshot.
error:dependency is not satifiable: python-wxgtk2.8
Under v2 Beta source code page is the step for retrieving the zip "Next, download the latest zip file from here," given as https://github.com/lordamit/Brightness/archive/develop.zip and returns a 404.
It's a great utility and appreciate its availability. I used v1.2.2 again without incident. Not sure why the Software Center doesn't pull the respective link either (maybe because I'm on Kubuntu 16?). Nothing else does what this little program does. So thank you.
OS: Arch Linux
Distro: Arch Linux
output of xrandr -q
Version of Brightness Controller:
I don't need to put my xrand -q output because I just want the dependencies list and a ./configure script.
Thanks!
OS: Kubuntu 17.04
Distro: Plasma KDE
Version of Brightness Controller: 2.0
@apandada1 , I think I got the problem of icon of brightness controller. I will set it from the program itself.
Where are the icon stored while installing? Is this:
/usr/share/icons/hicolor/scalable/apps/
?
Also, can you please upload the icon we are going to use here?
It is suggested in a review (Ubuntu Software Center).
Is there a simple line to add to your .bashrc to automatically set the brightness on computer startup using this program? Thanks!
Hi,
Please check these out and let me know which one you prefer ๐
https://github.com/lordamit/Brightness/blob/prototypes/prototypes/Brightness_Controller_Test.png
https://github.com/lordamit/Brightness/blob/prototypes/prototypes/Brightness_Controller_Test2.png
ze@ze-kde:~$ xrandr -q
Screen 0: minimum 8 x 8, current 2560 x 1024, maximum 8192 x 8192
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.0_+ 75.0
1280x960 60.0
1152x864 75.0 70.0
1024x768 75.0 70.1 60.0
800x600 75.0 72.2 60.3 56.2
640x480 75.0 72.8 59.9
LVDS-0 connected 1280x800+1280+0 (normal left inverted right x axis y axis) 322mm x 201mm
1280x800 60.0_+
When I change the brightness of Internal monitor it changes the external and vice versa.
PS: I look for years for a way to change my monitor brightness, thanks. When I do xrandr -help it doesn't show a brightness option :s
OS: Linux
Distro: Ubuntu 17.04
output of xrandr -q
Screen 0: minimum 8 x 8, current 3600 x 1080, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected primary 1920x1080+1680+0 (normal left inverted right x axis y axis) 531mm x 299mm
1920x1080 60.00*+
1680x1050 59.95
1600x1200 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
HDMI-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 59.88*+ 59.95
1600x1200 60.00
1440x900 74.98 59.89
1280x1024 75.02 60.02
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
Version of Brightness Controller: v2.0 build 1
Hello. Here's the issue: When I move any slider, the setting is applied for a brief period (around half a second) before reverting to what is was before. So for example, I move the brightness slider to 50%. The screen dims briefly, then immediately goes back to what it was before. Same issue on two completely different monitors.
I'm using the Nvidia proprietary driver. Maybe that is the issue?
Thanks,
Steve Wooding.
The brightness controller has come to a stable stage and requires an easy to use installer which will put the executables and application icons in proper directories.
Hi,
that's a very nice tool!
Could you please upload it for 13.10, too? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.