Page 53 of 195 FirstFirst ... 343515253545563103153 ... LastLast
Results 521 to 530 of 1950

Thread: Ubuntu and the asus zenbook (UX31)

  1. #521
    Join Date
    Aug 2005
    Beans
    37

    Re: Ubunutu and the asus zenbook (UX31)

    So with kernel 3.2.1 I'm getting hard shut downs. Nothing in the logs that gives me any hints. All on battery and the bottom of the notebook feels warm to touch.

  2. #522
    Join Date
    Nov 2011
    Beans
    130

    Re: Ubunutu and the asus zenbook (UX31)

    Quote Originally Posted by techfreak View Post
    So with kernel 3.2.1 I'm getting hard shut downs. Nothing in the logs that gives me any hints. All on battery and the bottom of the notebook feels warm to touch.
    Hmm.. makes me a little nervous to unplug the AC..

    I upgraded to 3.2.1 and noticed that with my original kernel parameters...
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force"
    ... the screen would no longer power off after 5 minutes of being idle. That is, the screen would go black, but the display was still obviously on.

    I added the rc6 parameters as follows...
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.semaphores=1"
    ...and the screen powers off properly.

    Okay.. now to unplug the AC and wait for a shutdown :S

  3. #523
    Join Date
    Aug 2007
    Beans
    53

    Re: Ubunutu and the asus zenbook (UX31)

    Quote Originally Posted by tjajab View Post
    Have you made the script executable? My (executable) script in /etc/pm/power.d/ runs at boot.
    That's the trick! A noob Linux user mistake. Cheers bud.

    And thanks GzM again for your help.

    Milkey

  4. #524
    Join Date
    Aug 2007
    Beans
    53

    Re: Ubunutu and the asus zenbook (UX31)

    Damn, just had my very first shutdown problem.

    Ho-hum, that's the trade-off of 6-7 hr battery life.

  5. #525
    Join Date
    Jan 2012
    Beans
    18

    Re: Ubunutu and the asus zenbook (UX31)

    This version of /etc/acpi/asus-touchpad.sh works for me with an UX21E and a Sentelic touchpad:

    Code:
    #!/bin/sh
    
    set -e
    
    pff=/usr/share/acpi-support/power-funcs
    [ -f $pff ] || exit 0
    
    atp_error() {
            logger -t${0##*/} -perr -- $*
            exit 1
    }
    
    . $pff || atp_error "Sourcing $pff failed"
    
    [ -x /usr/bin/xinput ] || atp_error "Please install package xinput to enable toggling of touchpad devices."
    
    # if this is the right behavior, then this should be moved out of acpi-support
    # to hal (or whatever is replacing hal for such events)
    # getXconsole
    
    # XXX:  according to man page 'list', 'list-props' and 'set-int-prop' are
    #       options, not arguments.
    XINPUTNUM=$(xinput --list | sed -rne 's#^.*Sentelic FingerSensingPad[[:blank:]]+id=([0-9]+)[[:blank:]]+.*$#\1#p')
    [ "$XINPUTNUM" ] || atp_error "Invalid Synaptics TouchPad id '$XINPUTNUM'"
    
    soff="Device Enabled"
    
    # get the current state of the touchpad
    TPSTATUS=`xinput --list-props $XINPUTNUM | awk "/$soff/"'{ print $NF }'`
    case $TPSTATUS in
            [!01])
                #!/bin/sh
    
    set -e
    
    pff=/usr/share/acpi-support/power-funcs
    [ -f $pff ] || exit 0
    
    atp_error() {
            logger -t${0##*/} -perr -- $*
            exit 1
    }
    
    . $pff || atp_error "Sourcing $pff failed"
    
    [ -x /usr/bin/xinput ] || atp_error "Please install package xinput to enable toggling of touchpad devices."
    
    # if this is the right behavior, then this should be moved out of acpi-support
    # to hal (or whatever is replacing hal for such events)
    # getXconsole
    
    # XXX:  according to man page 'list', 'list-props' and 'set-int-prop' are
    #       options, not arguments.
    XINPUTNUM=$(xinput --list | sed -rne 's#^.*Sentelic FingerSensingPad[[:blank:]]+id=([0-9]+)[[:blank:]]+.*$#\1#p')
    [ "$XINPUTNUM" ] || atp_error "Invalid Synaptics TouchPad id '$XINPUTNUM'"
    
    soff="Device Enabled"
    
    # get the current state of the touchpad
    TPSTATUS=`xinput --list-props $XINPUTNUM | awk "/$soff/"'{ print $NF }'`
    case $TPSTATUS in
            [!01])
                    atp_error "Invalid Synaptics TouchPad status '$TPSTATUS'"
                    ;;
    esac
    
    # XXX: '--set-int-prop' deprecated
    xcmd="xinput --set-prop $XINPUTNUM 126"
    ledf=/sys/class/leds/asus::touchpad/brightness
    if [ $TPSTATUS -eq 0 ]; then
            eval $xcmd 1 || atp_error "Command '$xcmd 1' failed"
            [ ! -w $ledf ] || echo 0 >$ledf ||
                    atp_error "Writing 0 to $ledf failed"
    else
            eval $xcmd 0 || atp_error "Command '$xcmd 0' failed"
            [ ! -w $ledf ] || echo 1 >$ledf ||
                    atp_error "Writing 0 to $ledf failed"    atp_error "Invalid Synaptics TouchPad status '$TPSTATUS'"
                    ;;
    esac
    
    # XXX: '--set-int-prop' deprecated
    xcmd="xinput --set-prop $XINPUTNUM 126"
    ledf=/sys/class/leds/asus::touchpad/brightness
    if [ $TPSTATUS -eq 0 ]; then
            eval $xcmd 1 || atp_error "Command '$xcmd 1' failed"
            [ ! -w $ledf ] || echo 0 >$ledf ||
                    atp_error "Writing 0 to $ledf failed"
    else
            eval $xcmd 0 || atp_error "Command '$xcmd 0' failed"
            [ ! -w $ledf ] || echo 1 >$ledf ||
                    atp_error "Writing 0 to $ledf failed"
    fi
    This is really dirty, at the very least it should attempt to find the "126" programatically.

    Then I simply had to add the following in my .xbindkeysrc:
    Code:
    # Toggle touchpad
    "/etc/acpi/asus-touchpad.sh"
    m:0x0 + c:199
    Last edited by maze2; January 15th, 2012 at 07:30 PM.

  6. #526
    Join Date
    Aug 2005
    Beans
    37

    Re: Ubunutu and the asus zenbook (UX31)

    Got my first shutdown plugged into to AC

  7. #527
    Join Date
    Oct 2011
    Beans
    3

    Re: Ubunutu and the asus zenbook (UX31)

    I also have a UX21 with sentelic touchpad. Does this script fix the issues?
    How can i turn off the pad while typing on the keyboard?

  8. #528
    Join Date
    Feb 2006
    Location
    Paris (France)
    Beans
    26
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Smile Re: Ubunutu and the asus zenbook (UX31)

    Hey everyone !

    I don't remember if sentelic drivers were talked about earlier in the thread, but as they aren't in the WIKI, some would be interested by this thread from ArchLinux forums https://bbs.archlinux.org/viewtopic.php?id=125262&p=2.

    -- To resume --
    * The sentelic driver efforts :
    https://github.com/saaros/sentelic
    https://github.com/thaelim/sentelic (fork from the saaros version )

    * And here is the hardware documentation, given by a sentelic engineer :
    http://fsp-lnxdrv.svn.sourceforge.ne...43&view=markup


  9. #529

    Re: Ubunutu and the asus zenbook (UX31)

    Quote Originally Posted by debianguy View Post
    I'm running a Debian system with the Ubuntu 3.2.0 kernel with almost the same results. As far as the suspend script is concerned I only have the bind/unbind for ehci left. I need either the xhci stuff, not the display part of that script. Would you mind trying? The smaller the script the better the system is imo.

    Also I completely removed the power saving script and instead installed and configured laprop-mode-tools accordingly. I find that approach very much preferable.
    Hi how did you configure it? I get
    Code:
    Unhandled kernel version: 3.2 ('uname -r' = '3.2.0-030200-generic')
    Couldn't acquire lock. Retrying....
    Unhandled kernel version: 3.2 ('uname -r' = '3.2.0-030200-generic')
    when launching sudo laptop_mode

    ciao

  10. #530
    Join Date
    Jan 2012
    Beans
    18

    Re: Ubunutu and the asus zenbook (UX31)

    Quote Originally Posted by yaronv99 View Post
    I also have a UX21 with sentelic touchpad. Does this script fix the issues?

    It depends what you call issues, but probably not. I only modified the script existing in /etc/acpi/aus-touchpad.sh. All this script does is toggle the touchpad on/off when hitting Fn+F9, or anny other combination you may want to define through xbindkeys. Only works when X is started.

Page 53 of 195 FirstFirst ... 343515253545563103153 ... 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
  •