Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 14 Nov 2019, 07:51
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Backlight control gtk gui
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Wed 20 Feb 2019, 15:29    Post subject:  Backlight control gtk gui  

Mike Walsh's thread here got me thinking more deeply about how video output devices (eg screens) can have their intensity (brightness/contrast etc) controlled.

MochiMoppel pointed out in that thread that xrandr can interface more than one screen - eg internal laptop screen as well as external HDMI or VGA screen etc.

I want to offer some thoughts and utilities for best adjusting screen intensity.

As far as i know there are 3 ways to control screen intensity:
1) Backlight intensity (how much light the white fluoro or LED lights provide to illuminate the screen from behind)
2) Pixel intensity (You can have a bright red pixel or a dim red pixel)
3) Pixel balance (you can vary the relative intensity of each red green or blue pixel to change the appearance of your screen)

I would like to see a complete gtk gui utility that allows each of these characteristics to be adjusted for multiple screens, and also offers information to the user concerning what devices are connected, what parameters are supported and what methods are available for controlling the brightness.

(It would be nice to bring together in one gui a suite of utilities that can handle different hardware in a straightforward manner)

I'm not a good programmer so I am hoping others will assist too Smile

In my first attempt at this gui I have included a feature that tells the user what their currently connected video device is (eg: LVDS1, VGA etc...) and allows choice of BACKLIGHT intensity.

This will only work for devices that support the Backlight or BACKLIGHT property in xrandr.

Devices NOT supporting those properties will need to use the utilities offered in Mike's thread noted above.

Save the gui somewhere, remove the fake .gz suffix, make excutable and run it.

What the gui does:
- Identifies the currently connected output screen (as seen by xrandr)
- Queries the maximum allowable "backlight" brightness parameter for that device (EDIT: "backlight" and "brightness" are two separate parameters. I hope to include MochiMoppel's script to adjust pixel brightness also)
- Allows the user to choose which output device they are trying to adjust
- Allows the user to choose what backlight brightness they want to set
- Uses xrandr to set the new backlight brightness parameter to the selected device.

Problems
- Not all devices support the Backlight or BACKLIGHT parameters
- I suspect that not all systems have only ONE device seen by xrandr as "connected". I need help to handle multiple types of connected device
- The list of output devices available in the gui has been made on the basis of what i see on my system but I really want to populate that list from the user's own system xrandr output.
(I need better gtk skills Embarassed )

ToDo:
- Find way to populate "output screen" chooser from the xrandr output specific to each users machine
- Identify within gui when multiple connected screens are available
- Display info within gui for parameters of currently connected outputs
- include Mike's SCT slider (for quick switching between Night/Day etc)
- include Mochi's handling of multiple screens and pixel intensity slider
- include something like xgamma pixel colour balance (in slider or wheel form?)
- If possible I would like to do all these things using the built in tools of Slacko 5.6 but maybe that won't be possible. I will see how far I can get


Prerequisites and comments:

Use the following syntax if you want to find out what your system sees as available (connected or disconnected) devices:
Code:
xrandr --verbose | grep -e "connected" | cut -d' ' -f1


Use the following syntax to identify whether or not any of the connected devices supports backlight control:
Code:
xrandr --verbose | grep -e "ack" -e "ACK"

If it discovers a numeric value for Backlight or BACKLIGHT then this gui can help adjust that device.

v0.02
- Tested on more systems. Works where "backlight" and "range" are on different lines in xrandr verbose output.

v0.01
- Could not handle some xrandr outputs where "range" was on a different line to "backlight". Now fixed
backlight_gui_gg-0.02.gz
Description  Please remove fake .gz suffix, make file excutable, then run it
gz

 Download 
Filename  backlight_gui_gg-0.02.gz 
Filesize  3.21 KB 
Downloaded  162 Time(s) 
gui.jpg
 Description   
 Filesize   23.46 KB
 Viewed   237 Time(s)

gui.jpg


Last edited by greengeek on Thu 21 Feb 2019, 14:55; edited 23 times in total
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Wed 20 Feb 2019, 15:29    Post subject:  

reserved
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0363s ][ Queries: 12 (0.0104s) ][ GZIP on ]