Page 1 of 1

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

PostPosted: Jan 23rd, '14, 17:50
by Dupo
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.

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

PostPosted: Jan 23rd, '14, 19:19
by wintpe
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

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

PostPosted: Jan 24th, '14, 01:03
by Dupo
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.

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

PostPosted: Jan 24th, '14, 01:12
by doktor5000
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.

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

PostPosted: Jan 24th, '14, 01:17
by Dupo
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. ;)

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

PostPosted: Jan 26th, '14, 01:31
by Dupo
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.

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

PostPosted: Jan 26th, '14, 01:51
by doktor5000
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

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

PostPosted: Jan 26th, '14, 01:55
by Dupo
Hi doktor5000,

thanks, I will see it. ;)

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

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

PostPosted: Jan 26th, '14, 02:05
by doktor5000
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.

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

PostPosted: Jan 26th, '14, 17:29
by Dupo
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.

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

PostPosted: Jan 27th, '14, 02:03
by doktor5000
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