How to set contrast,brightness,gamma for laptop under Mageia

How to set contrast,brightness,gamma for laptop under Mageia

Postby Dupo » Jan 23rd, '14, 17:50

Hi,

I would like to know how I can adjust contrast,brightness,gamma for laptop screen under Mageia ?

I don't find /etc/rc.local file. Where is it ? or, has he got another name ?

Thanks.

Greetings.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby wintpe » Jan 23rd, '14, 19:19

if you are talking mga3

then rc.local has been depreciated in favour of systemd

but you can still use it

create a file /etc/rc.d/rc.local

make sure that you make it executable

chmod 755 /etc/rc.d/rc.local

make sure the first line is

#!/bin/sh

then add your commands

reboot and it gets imporated and run.

i know this works i did this myself today to get all the power settings into my laptop,

see another thread i posted in for details of what i put in there.

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby Dupo » Jan 24th, '14, 01:03

Hi,

No, I'm talking about Mageia 4 (RC).

I found some informations on internet that said to set brightness in /etc/rc.local :

echo x /sys/class/backlight/intel_backlight/brightness
or
echo y /sys/class/backlight/acpi_video0/brightness

note: x and y are brightness level value.

But /etc/rc.local doesn't exist on Mageia. That's why I asked here.

I heard that for gamma, I can use xgamma. Is it correct ?

I see nothing on internet for adjusting contrast on laptop.

Thanks.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby doktor5000 » Jan 24th, '14, 01:12

Normally you set the brigthness via the function key or by the energy management applet of your desktop environment.
If that doesn't work, you can do it via commandline. Have you already tried that the commands you suggested work as intented?
If ythey do, you can stick the desired one in /etc/rc.d/rc.local (If it says create the file, you need to create it, that includes the parent directory).

And yes, xgamma works. But should also be controllable via desktop environment, in KDE that can be done via systemsettings: http://userbase.kde.org/System_Settings ... nd_Monitor
As you don't mention which DE you're using, can't help further.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby Dupo » Jan 24th, '14, 01:17

Hi,

yes I can modify brightness through my Fn keys, but I've got a problem : the contrast is very bright on my laptop. Then, I try to find a solution to modify it. ;)

For now, I use Cinnamon Desktop on my laptop. ;)
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby Dupo » Jan 26th, '14, 01:31

Hi,

I tried to compile xcalib source on Mageia, but it doesn't work (Xos.h missing). :(

Is there an alternative of xcalib for Mageia ?

Thanks.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby doktor5000 » Jan 26th, '14, 01:51

Xos.h is contained in x11-proto-devel:
Code: Select all
[doktor5000@Mageia3 ~]$ urpmf Xos.h
x11-proto-devel:/usr/include/X11/Xos.h
x11-proto-devel:/usr/include/X11/Xos.h
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby Dupo » Jan 26th, '14, 01:55

Hi doktor5000,

thanks, I will see it. ;)

Xcalib seems to be the only tool that can adjust contrast on laptop.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby doktor5000 » Jan 26th, '14, 02:05

Dupo wrote:Xcalib seems to be the only tool that can adjust contrast on laptop.

Definitely not.

E.g. nvidia-settings can easily change contrast.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby Dupo » Jan 26th, '14, 17:29

Hi,

urpmf is available in urpmi ?

Now, Xlib.h is missing for xcalib compilation.

With urpmf, I will can check where all .h files are.

Thanks.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: How to set contrast,brightness,gamma for laptop under Ma

Postby doktor5000 » Jan 27th, '14, 02:03

Dupo wrote:urpmf is available in urpmi ?

Sorry, don't understand your question.
Please read up on https://wiki.mageia.org/en/URPMI especially the sections https://wiki.mageia.org/en/URPMI#urpmf and maybe https://wiki.mageia.org/en/URPMI#urpmq
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest

cron