Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Make screen brightness settings stick

  1. #1
    Join Date
    May 2009
    Location
    Planet Earth
    Beans
    201
    Distro
    Xubuntu 12.04 Precise Pangolin

    Make screen brightness settings stick

    I have a Toshiba Satellite running 11.10 with TDE. I want to have the laptop's screen brightness be quite a bit lower than the default. The Fn hotkeys for brightness, for this particular model, haven't played well with Ubuntu since Jaunty or so. Thus, I have a little script that I run to manually set the brightness level.

    I've figured out how to make the script run on startup so that the brightness will automatically be set. However, any time I close my laptop's lid, the screen reverts to the default brightness when the lid is opened. I have it set to not do anything special when I close the lid, so it isn't hibernating/suspending/whatever.

    Is there a way to make the brightness setting from the script stick?

    Thanks.
    int main() {
    insert_clever_signature();
    return 0;
    }

  2. #2
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make screen brightness settings stick

    Just a question, and not relating to your script...

    Does adding 'acpi_osi=Linux' to your kernel's boot parameters not work on your laptop?

  3. #3
    Join Date
    May 2009
    Location
    Planet Earth
    Beans
    201
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Make screen brightness settings stick

    Thanks for the suggestion; I hadn't tried that before.

    Unfortunately, I added acpi_osi=Linux to my boot parameters, and it doesn't appear to have had any effect.
    int main() {
    insert_clever_signature();
    return 0;
    }

  4. #4
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make screen brightness settings stick

    I sort of thought it wouldn't but it is the easy option 'when it works'.
    There used to be a package in the Ubuntu repo's for Toshiba hardware, "toshset?" or something...
    You might investigate that, afterall it's only a package search...

    EDIT
    The setting in KDE related to closing of laptop is buggy; by chance have you tried your script with this setting disabled.
    I know this sounds odd, but not half as odd as when you hover and read the accompanying tooltip...

    Good luck.
    Last edited by bra|10n; September 28th, 2012 at 04:01 AM.

  5. #5
    Join Date
    May 2009
    Location
    Planet Earth
    Beans
    201
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Make screen brightness settings stick

    I'm pretty sure I do have that setting disabled. In KLaptop, I go to "Configure KLaptop", then the "Button Actions" tab. I'll attach a screenshot to show what my settings are.
    Attached Images Attached Images
    int main() {
    insert_clever_signature();
    return 0;
    }

  6. #6
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make screen brightness settings stick

    Wowl that's a blast from the past. What KDE version are you running?

    Anyway, I'm now curious as to the system performance settings. Have you looked into what might be 'deactivated' for want of a better word, for each of the different modes, thinking maybe user scripts are ignored perhaps under conservative?, even though I can see it's disabled. Maybe select the equivalent of 'high octane' and then revert to setting to "off" again. Stranger things happen in KDE...

    But look into toshset or whatever it's called I mentioned earlier. It might just be the easier solution.

    Just a quick snapshot of what I was talking about earlier regarding the tooltip, to which you are probably still scratching your head,



    And the tooltip reads: "When this option is selected, applications will not be allowed to inhibit sleep when the lid is closed."

  7. #7
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make screen brightness settings stick

    Quote Originally Posted by Sissy13 View Post
    Thanks for the suggestion; I hadn't tried that before.

    Unfortunately, I added acpi_osi=Linux to my boot parameters, and it doesn't appear to have had any effect.
    I just remembered. I forgot to tell you to run sudo update-grub after adding the above line. Duh!
    Not sure if you did or not. Here a reboot is also needed.
    This is aimed at getting your Fn keys working as they should.

  8. #8
    Join Date
    May 2009
    Location
    Planet Earth
    Beans
    201
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Make screen brightness settings stick

    I'm using Trinity, which is the current project aimed at maintaining the KDE 3.xx style desktop environment. I suspect the brightness/Fn key issue is an underlying Ubuntu problem, though, because GNOME posed the same problems in earlier Ubuntu releases.

    I find one package called "toshset" in my package manager, and it seems to be already installed. The package description is
    Application lens for unity
    This package contains the "application" lens which can be used inside Unity to launch and install applications.
    I also searched for packages beginning with just "tosh" and didn't turn up anything new. I think there used to be a toshutils package, but that doesn't seem to exist now.

    I did run sudo update-grub and reboot after adding that line to my kernel's boot parameters. Unfortunately, it didn't appear to do anything.

    Thanks.

    Edit: I think I do still have Unity installed (since it was installed by default with my Ubuntu install), but I never use Unity. Could Unity packages/settings be conflicting with those from TDE? If so, how do I uninstall Unity without breaking other things? Searching "Unity" in the package manager yields a whole list of packages, none of which appear to be the actual underlying DE.
    Last edited by Sissy13; September 28th, 2012 at 05:16 PM.
    int main() {
    insert_clever_signature();
    return 0;
    }

  9. #9
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make screen brightness settings stick

    @Sissy13,

    I happen to be googling some errors earlier and came upon quite a few posts Toshiba/acpi related. Many linked to some older bug reports still without resolution, with the more recent postings accepting that nothing more than you have already done with your script can be achieved. I failed to find 1 person who resolved the "remember screen brightness" issue after either sleep/logout/reboot.
    All I can do is suggest you use a shortcut in the system tray where you can toggle your script on/off easily. This confirms neither TDM or Unity d/e are to blame here and this is purely a hardware issue. Unfortunate...

  10. #10
    Join Date
    May 2009
    Location
    Planet Earth
    Beans
    201
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Make screen brightness settings stick

    That is unfortunate.

    The script I'm using to change the brightness manually looks like this:
    Code:
    #!/bin/bash
    setpci -s 00:02.0 F4.B=18
    (where the "18" can be edited to increase or decrease the set brightness. IIRC, it can be anything from 0 to 100.)
    To make it work, I have to run it with "sudo". Do you know if there is a way to do this without sudo? Right now I'm just running it from the command line every time it's needed, which of course entails typing in my password _every_ time. Gets a little old, and it would be particularly useful to "de-sudo" this if I am to make a tray icon as you suggested.

    Thanks!
    int main() {
    insert_clever_signature();
    return 0;
    }

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •