Page 20 of 21 FirstFirst ... 1018192021 LastLast
Results 191 to 200 of 208

Thread: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

  1. #191
    Join Date
    Jul 2008
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    Quote Originally Posted by heluani View Post
    Great, thanks, this is the one trying the .deb, get the same errors compiling the source.
    uploaded new packages. as it turns out, i forgot to rename 2 functions.

    ciao,
    Mario

  2. #192
    Join Date
    Aug 2008
    Beans
    115

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    Great, now it builds, but the Kernel won't boot after installing this module. I'll try to find something relevant in my logs

    R.

    Edit: Well, it's going to be tough to find the reason. The thing is that none of the Mactel PPA packages builds on this Kernel.
    Last edited by heluani; June 10th, 2009 at 01:01 AM.

  3. #193
    Join Date
    Sep 2007
    Location
    Alnilam
    Beans
    311
    Distro
    Kubuntu

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    Quote Originally Posted by ercoppa View Post
    Hi, I write a script to save & restore backlight level with nvclock at boot/shutdown. It's not a big hack, but works.

    Create a script:
    Code:
    gksudo gedit /etc/init.d/backlight-set
    and copy this:
    Code:
    #! /bin/sh
    
    case "$1" in
        start)
    	HOME=/root /usr/local/bin/nvclock -S `cat /root/.backlight`
            ;;
        restart|reload|force-reload)
            echo "Error: argument '$1' not supported" >&2
            exit 3
            ;;
        stop)
    	HOME=/root /usr/local/bin/nvclock -i | grep Backlight | awk '{print $3}' > /root/.backlight
            ;;
        *)
            echo "Usage: $0 start|stop" >&2
            exit 3
            ;;
    esac
    Make it executable with:
    Code:
    sudo chmod +x /etc/init.d/backlight-set
    Finally insert in runlevel with:
    Code:
    sudo update-rc.d backlight-set defaults
    And enjoy (I hope).

    Greets, ercoppa.
    Hi ercoppa. Have you come up with a script like this for Jaunty? I wouldn't know how to adjust this since nvclock is not neccessary anymore.
    Last edited by undoIT; June 19th, 2009 at 10:46 PM.

  4. #194
    Join Date
    Jun 2009
    Beans
    1

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    I finally got mine working. Thanks for all the tips!

  5. #195
    Join Date
    Oct 2008
    Beans
    63

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    undoIT, I am already with Intrepid (no yet ADSL in my new house ) but without nvclock I think that the script is:
    Code:
    #! /bin/sh
    
    case "$1" in
        start)
            echo `cat /root/.backlight` > /sys/class/backlight/nvidia_backlight/brightness
            ;;
        restart|reload|force-reload)
            echo "Error: argument '$1' not supported" >&2
            exit 3
            ;;
        stop)
            cat /sys/class/backlight/nvidia_backlight/actual_brightness > /root/.backlight
            ;;
        *)
            echo "Usage: $0 start|stop" >&2
            exit 3
            ;;
    esac
    Please, test it for me

    Greets, ercoppa.
    Excuse me for my bad english - MacBook 5,1 2.0 Ghz

  6. #196
    Join Date
    Sep 2007
    Location
    Alnilam
    Beans
    311
    Distro
    Kubuntu

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    Quote Originally Posted by ercoppa View Post
    undoIT, I am already with Intrepid (no yet ADSL in my new house ) but without nvclock I think that the script is:
    Code:
    #! /bin/sh
    
    case "$1" in
        start)
            echo `cat /root/.backlight` > /sys/class/backlight/nvidia_backlight/brightness
            ;;
        restart|reload|force-reload)
            echo "Error: argument '$1' not supported" >&2
            exit 3
            ;;
        stop)
            cat /sys/class/backlight/nvidia_backlight/actual_brightness > /root/.backlight
            ;;
        *)
            echo "Usage: $0 start|stop" >&2
            exit 3
            ;;
    esac
    Please, test it for me

    Greets, ercoppa.
    It works! Thank you much

    Do you think something similar could be done for the keyboard backlight? It also starts at max brightness each reboot.

  7. #197
    Join Date
    Oct 2008
    Beans
    63

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    I think (I don't have the PRO):
    Code:
    #! /bin/sh
    
    case "$1" in
        start)
            echo `cat /root/.keybacklight` > /sys/class/leds/smc::kbd_backlight/brightness
            ;;
        restart|reload|force-reload)
            echo "Error: argument '$1' not supported" >&2
            exit 3
            ;;
        stop)
            cat /sys/class/leds/smc::kbd_backlight/actual_brightness > /root/.keybacklight
            ;;
        *)
            echo "Usage: $0 start|stop" >&2
            exit 3
            ;;
    esac
    Please check the path in bold, I have some doubts that is correct.

    Greets, ercoppa.
    Excuse me for my bad english - MacBook 5,1 2.0 Ghz

  8. #198
    Join Date
    Sep 2007
    Location
    Alnilam
    Beans
    311
    Distro
    Kubuntu

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    There is no actual_brightness, only brightness in that path. I tried creating the script with that but it doesn't seem to work.

  9. #199
    Join Date
    Aug 2008
    Beans
    115

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    Only usbhid-dkms and hid-dkms (from all packages in the PPA) don't compile on 2.6.29.4 so that shouldn't affect mbp-nvidia-bl. Has anyone tried succesfully booting this Kernel with mbp-nvidia-bl? my booting process dies at loading the modules and there's nothing interesting (to me) in the logs.

    R.

  10. #200
    Join Date
    Aug 2008
    Beans
    115

    Re: MacBook(Pro) with Nvidia graphics adapter display backlight fix call for testing

    Blacklisting the module and then loading it manually, the Kernel boots (last stable vanilla Kernel) but the console where one runs modprobe hangs (modprobe never exits)

    The module loads and creates the backlight/mbp_backlight/ filesystem, but the process hangs trying to either read "actual_brightness" or write to "brightness"

    R.


    Edit: using Mario's nvidia_bl module works changing the brightness through nvidia_backlight/brightness and within X!!! I'm just surprised I didn't try this before trying mbp_nvidia_bl!.
    Last edited by heluani; June 12th, 2009 at 04:40 PM.

Page 20 of 21 FirstFirst ... 1018192021 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
  •