LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-27-2020, 02:47 PM   #1
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Rep: Reputation: Disabled
Adjusting contrast and gamma in Ubuntu


Hello, I am running Ubuntu 18.04 LTS on a Lenovo Ideapad 110 laptop. I want to adjust the screen contrast and gamma. Is there a GUI to do this, or do I need to do it from the terminal?
 
Old 12-28-2020, 08:28 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
probably: https://github.com/ddccontrol/ddccontrol
 
1 members found this post helpful.
Old 12-28-2020, 01:28 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
A quick solution could be to use xgamma (if you run Xorg that is).
 
1 members found this post helpful.
Old 12-29-2020, 06:28 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 912

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Depends on the desktop environment. KDE has a GUI (system settings-hardware-display&monitor-gamma), in gnome you can do it via custom colour profiles or via command line (xrandr --gamma)
 
1 members found this post helpful.
Old 12-30-2020, 04:42 AM   #5
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Hello, I installed the program from official packages:
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo apt install ddccontrol gddccontrol ddccontrol-db i2c-tools
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-hwe-5.4-headers-5.4.0-42 linux-hwe-5.4-headers-5.4.0-45
  linux-hwe-5.4-headers-5.4.0-47 linux-hwe-5.4-headers-5.4.0-48
  linux-hwe-5.4-headers-5.4.0-51 linux-hwe-5.4-headers-5.4.0-52
  linux-hwe-5.4-headers-5.4.0-53 linux-hwe-5.4-headers-5.4.0-54
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libddccontrol0 libi2c0 libx86-1 read-edid
Suggested packages:
  libi2c-dev python-smbus
The following NEW packages will be installed:
  ddccontrol ddccontrol-db gddccontrol i2c-tools libddccontrol0 libi2c0
  libx86-1 read-edid
0 upgraded, 8 newly installed, 0 to remove and 4 not upgraded.
Need to get 331 kB of archives.
After this operation, 1.548 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 ddccontrol-db all 20171217-1 [40,0 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libddccontrol0 amd64 0.4.3-2 [24,2 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 ddccontrol amd64 0.4.3-2 [72,4 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 gddccontrol amd64 0.4.3-2 [28,4 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libi2c0 amd64 4.0-2 [6.080 B]
Get:6 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libx86-1 amd64 1.1+ds1-10.2 [75,2 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 read-edid amd64 3.0.2-1build1 [18,9 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 i2c-tools amd64 4.0-2 [66,2 kB]
Fetched 331 kB in 0s (1.350 kB/s)    
Selecting previously unselected package ddccontrol-db.
(Reading database ... 367904 files and directories currently installed.)
Preparing to unpack .../0-ddccontrol-db_20171217-1_all.deb ...
Unpacking ddccontrol-db (20171217-1) ...
Selecting previously unselected package libddccontrol0:amd64.
Preparing to unpack .../1-libddccontrol0_0.4.3-2_amd64.deb ...
Unpacking libddccontrol0:amd64 (0.4.3-2) ...
Selecting previously unselected package ddccontrol.
Preparing to unpack .../2-ddccontrol_0.4.3-2_amd64.deb ...
Unpacking ddccontrol (0.4.3-2) ...
Selecting previously unselected package gddccontrol.
Preparing to unpack .../3-gddccontrol_0.4.3-2_amd64.deb ...
Unpacking gddccontrol (0.4.3-2) ...
Selecting previously unselected package libi2c0:amd64.
Preparing to unpack .../4-libi2c0_4.0-2_amd64.deb ...
Unpacking libi2c0:amd64 (4.0-2) ...
Selecting previously unselected package libx86-1:amd64.
Preparing to unpack .../5-libx86-1_1.1+ds1-10.2_amd64.deb ...
Unpacking libx86-1:amd64 (1.1+ds1-10.2) ...
Selecting previously unselected package read-edid.
Preparing to unpack .../6-read-edid_3.0.2-1build1_amd64.deb ...
Unpacking read-edid (3.0.2-1build1) ...
Selecting previously unselected package i2c-tools.
Preparing to unpack .../7-i2c-tools_4.0-2_amd64.deb ...
Unpacking i2c-tools (4.0-2) ...
Setting up ddccontrol-db (20171217-1) ...
Setting up libx86-1:amd64 (1.1+ds1-10.2) ...
Setting up libddccontrol0:amd64 (0.4.3-2) ...
Setting up ddccontrol (0.4.3-2) ...
Setting up libi2c0:amd64 (4.0-2) ...
Setting up read-edid (3.0.2-1build1) ...
Setting up i2c-tools (4.0-2) ...
Setting up gddccontrol (0.4.3-2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
user@Lenovo-ideapad-110-17IKB:~$ sudo gddccontrol
Gtk-Message: 11:11:12.928: Failed to load module "canberra-gtk-module"
I/O warning : failed to load external entity "/home/user/.ddccontrol/monitorlist"
Document not parsed successfully.
Probing for available monitorsI/O warning : failed to load external entity "/usr/share/ddccontrol-db/monitor/BOE0684.xml"
Document not parsed successfully.
............
Invalid response, first byte is 0x09, should be 0x6e
0000: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0010: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0020: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0030: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0040: 09 09 09                                        | ...             
Invalid response, first byte is 0x09, should be 0x6e
0000: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0010: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0020: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0030: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0040: 09 09 09                                        | ...             
Invalid response, first byte is 0x09, should be 0x6e
0000: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0010: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0020: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0030: 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 | ................
0040: 09 09 09                                        | ...             
I/O warning : failed to load external entity "/usr/share/ddccontrol-db/monitor/BOE0684.xml"
Document not parsed successfully.
Error while reading ddccontrol home directory.: Resource temporarily unavailable

(gddccontrol:5231): Gtk-CRITICAL **: 11:11:50.441: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
user@Lenovo-ideapad-110-17IKB:~$ sudo apt-get update ddccontrol-db
E: The update command takes no arguments
user@Lenovo-ideapad-110-17IKB:~$
I tried to update, but it failed. When I run
Code:
sudo gddccontrol
to launch the GUI, I get this:
Attached Thumbnails
Click image for larger version

Name:	Screenshot ddcontrol.png
Views:	297
Size:	113.3 KB
ID:	35084  
 
Old 12-30-2020, 10:11 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
yes, unfortunately the database is not really uptodate, you need to create an entry for your own monitor. Usually that means you need to copy an existing config (and rename it), but probably you need to fine tune it.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adjusting colour in a scan-based pdf to high contrast black & white stozi Linux - Software 2 10-10-2015 05:05 PM
changing brightness contrast and gamma values in ubuntu 12.10 abdoun Linux - Newbie 1 03-25-2013 06:33 AM
mp4's made with mencoder have incorrect gamma,brightness,contrast. What vals fix? BrianK Linux - Software 0 08-11-2009 09:19 PM
Adjust brightnees gamma an contrast 100sTressZeN Linux - Hardware 4 09-03-2007 10:45 PM
Changing brightness,contrast,gamma and opeming RPM files HellBound Linux - General 10 08-07-2002 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration