Coder Social home page Coder Social logo

lordamit / brightness Goto Github PK

View Code? Open in Web Editor NEW
1.0K 17.0 83.0 1.27 MB

Using Brightness Controller, you can control brightness of both primary and external displays in Linux. Check it out!

License: Other

Python 100.00%
brightness-control linux pyside python ubuntu

brightness's Issues

Add saturation functions

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

3 Monitor Support?

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,

Error at launch

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.

app doesn't work

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.

Quotes (just the think)

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. ๐Ÿ˜‰

Labels in gui should be flipped

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?

Brightness Controller Gui Appears But Does Not Seem To Affect Output

I didnt know exactly what information you would find helpful so I just tried to get everything seemingly relevant.

  • Running Gnome Ubuntu 17.04.
  • GPU- AMD Fury.
  • I have three monitors.

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
screenshot from 2017-04-29 23-58-33

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

Issue with pyside

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.

Reset to default option

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. :)

Feature request: Set minimum brightness

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.

Implementing Changes and Saves version 2 bug

@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.

  • It changes the slider positions, however does not implement the change
    until a drop down is selected, and a new position on the slider is selected.

Playing with the RGB is fun, and the previous blue color looked nice 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?

Bye the way, I wrongly packaged it v2.1, should be v2.

@apandada1 Yes. This is just my first time giving full test feedback on v 2.

Fails to recognize any screens when more than two plugged in

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.

Back the old license look

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.

Releases

Make v1.0.0 and v1.0.1 tags for releases.

icc color profile reset

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.

Release for Ubuntu 13.10

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?

Nuke excess branches (?)

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.

Good for the eyes: yes, good for power usage: ?

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

Brightness controller is not working

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

Where is the app's icon?

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 settings not stable

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

System Tray Icon

There should be a tray icon for the app. I've added that to the "trayicon" branch and sent a pull request.

PPA For beta version

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.

Disallow 0% brightness

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%.

Edit title and take screenshot

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.

link to source code zip broken

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.

No make instructions

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!

Icon of Brightness Controller

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?

Internal and External monitor reversed

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

Settings snap back to original level

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.