Color profile set to default after suspend/sleep

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
q____q

Color profile set to default after suspend/sleep

Post by q____q »

Not sure where to post this, please move topic if neccesary.

I'm running Linux Mate 14 (64bit, Cinnamon) on a MacbookPro 7,1 and it's really awesome so far ('cept for minor things like having to disable keyboard backlight at every login).

One thing that annoys me is that the color profile is set to default every time I wake the laptop from sleep/suspend (reopening the lid). Deleting the default profile in the Color preferences did not help. It might be the Nvidia Settings (Geforce 320M, using the proprietary driver) interfering here but I don't know how to solve this

Any ideas?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
q____q

Re: Color profile set to default after suspend/sleep

Post by q____q »

Yay, I just found a way to disable the keyboard backlight that actually works on my MacbookPro7,1:

Add

Code: Select all

echo 1 >> /sys/class/leds/smc::kbd_backlight/brightness
to rc.local via

Code: Select all

sudo gedit /etc/rc.local
No progress on the profile-problem though …

EDIT: The above obviously only sets the backlight to one (and doesn't really turn it fully off). But since 0 and -1 do not work I think this is good enough. To set the screen brightness to something else then full power at login add the line:

Code: Select all

echo 3 >> /sys/class/backlight/apple_backlight/brightness
Last edited by q____q on Wed Jan 23, 2013 12:01 pm, edited 1 time in total.
q____q

Re: Color profile set to default after suspend/sleep

Post by q____q »

This seems to be a bug known since 2011 not only affacting NVIDIA.
q____q

Re: Color profile set to default after suspend/sleep

Post by q____q »

Found a way to solve this:

Install xcalib.

Place a script with the following in /etc/pm/sleep.d/

Code: Select all

#!/bin/bash
case "$1" in
    thaw|resume)
        export DISPLAY=:0
        su -c - <USERNAME>
        /usr/bin/xcalib "<PATH TO COLOR PROFILE>"
        ;;
    *)
        ;;
esac
exit $?
Thanks/credit to this and this thread.
Locked

Return to “Other topics”