Page 10 of 38 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 378

Thread: Asus T91 linux installation

  1. #91
    Join Date
    Aug 2009
    Beans
    64

    Re: Asus T91 linux installation

    Great how-to. Thx.
    There is 2 Ubuntu Moblin editions (actually 3)
    * by Dell, based on jaunty, with a different kernel
    * By Ubuntu, based on karmic (no need to say warning : "beta")

    I think, you'll be able to make the last one work properly, with this how-to. I'll try it myself.

  2. #92
    Join Date
    Sep 2009
    Beans
    18

    Re: Asus T91 linux installation

    The brightness scripts aren't working for me in Karmic, here's what I did, maybe I'm making a mistake somewhere:
    -created an /etc/acpi/brightness.sh
    -pasted in bill's script:
    Quote Originally Posted by billl View Post
    Code:
    #!/bin/bash
    
    getXdisplay() {
      console=`fgconsole 2> /dev/null`
      DISPLAY=`ps ax | grep -m1 -e "[X] .* vt${console}" | sed -re "s,.*/X .*:([0-9]+).*,:\1,"`
      export DISPLAY
    }
    
    getXuser() {
      getXdisplay
      USER=`finger | grep -m1 "${DISPLAY}" | awk '{print $1}'`
      export USER
    }
    
    getBrightness() {
      getXuser
      sudo -u ${USER} dbus-send --session --type=method_call --print-reply --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Backlight org.freedesktop.PowerManagement.Backlight.GetBrightness | tail -n 1 | grep -ow "[[:digit:]]\+"
    }
    
    setBrightness() {
      brn=${1}
      [ ${brn} -ge   0 ] || brn=0
      [ ${brn} -le 100 ] || brn=100
      getXuser
      sudo -u ${USER} dbus-send --session --type=method_call --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Backlight org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:${brn}
    }
    
    incBrightness() {
      level=`getBrightness`
      if [ ${level} -lt 100 ]; then
        setBrightness $((${level} + 5))
      fi
    }
    
    decBrightness() {
      level=`getBrightness`
      if [ ${level} -gt 0 ]; then
        setBrightness $((${level} - 5))
      fi
    }
    
    BRIGHTNESS_FILE="/var/lib/acpi-support/brightness"
    if [ -f "${BRIGHTNESS_FILE}" ]; then
      BRIGHTNESS_OLD=`cat "${BRIGHTNESS_FILE}"`
    fi
    
    BRIGHTNESS_NEW=`echo "${3}" | tr "[a-f]" "[A-F]"`
    
    if [ x"${BRIGHTNESS_OLD}" != x"" ]; then
      if [ x"${BRIGHTNESS_NEW}" = x"${BRIGHTNESS_OLD}" ]; then
        if [ x"${BRIGHTNESS_NEW}" = x"0000002F" ]; then
          incBrightness
        elif [ x"${BRIGHTNESS_NEW}" = x"00000020" ]; then
          decBrightness
        fi
      else
        res=`echo "ibase=16; ${BRIGHTNESS_NEW} > ${BRIGHTNESS_OLD}" | bc`
        [ ${res} -eq 1 ] && incBrightness || decBrightness
      fi
    fi
    
    echo "${BRIGHTNESS_NEW}" > "${BRIGHTNESS_FILE}"
    -saved and exited
    -made executable:
    Code:
    sudo chmod +x /etc/acpi/brightness.sh
    -created a /etc/acpi/events/brightness
    -paste in:
    Code:
    event=hotkey ATKD 0000002[0-9a-f]
    action=/etc/acpi/brightness.sh
    -save and exit
    -reboot

    I did the exact same thing with Leed's, (after deleting /etc/acpi/brightness.sh and /ect/acpi/events/brightness)

    I tried:
    Code:
    dbus-send --session --type=method_call --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Backlight org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:x
    putting numbers between 0 and 100 in place of x, I also tried putting in the hexidecimals 00000020 and 0000002F as they were mentioned in bill's script, when testing leed's both a number that showed in the script (0,30,35...) and the corresponding hexidecimal.

    also, I tried executing the following commands:
    Quote Originally Posted by billl View Post
    To increase the brightness:
    Code:
    sudo brightness.sh hotkey ATKD 0000002f
    To decrease the brightness:
    Code:
    sudo brightness.sh hotkey ATKD 00000020
    but both always returned "command not found " even if i was in the same directory.

    There were two other events (with there corresponding .sh files) which I thought might conflict, the events were:
    asus-brightness-up:
    Code:
    event=hotkey (ATKD|HOTK) 0000001[0123456789abcdef]
    action=/etc/acpi/asus-brn-up.sh
    and
    asus-brightness-down:
    Code:
    event=hotkey (ATKD|HOTK) 0000002[0123456789abcdef]
    action=/etc/acpi/asus-brn-down.sh
    the .sh files (asus-brn-down.sh and asus-brn-up.sh):
    Code:
    #!/bin/sh
    
    test -f /usr/share/acpi-support/key-constants || exit 0 
    . /usr/share/acpi-support/key-constants
    acpi_fakekey $KEY_BRIGHTNESSDOWN
    and

    Code:
    #!/bin/sh
    
    test -f /usr/share/acpi-support/key-constants || exit 0 
    . /usr/share/acpi-support/key-constants
    acpi_fakekey $KEY_BRIGHTNESSUP
    executing:
    Code:
    acpi_fakekey 224
    or
    Code:
    acpi_fakekey 225
    had no noticeable effect
    So I deleted them, but it still didn't work...

    Anyone got any ideas? Is this a Karmic thing, or am I doing it incorrectly?

  3. #93
    Join Date
    May 2005
    Beans
    6

    Re: Asus T91 linux installation

    Guys, have a look at http://www.ced-network.net/blog/2009...ntu-904jaunty/. It might worth it - but I can't try it:
    - Installation Tips (Swap,...)
    - Configure simulated right-click
    - Configure laptop-mode with Asus's Super Hybrid Engine

    I'm using WinXP again, because I wanted to have full-screen writing capabilities, a good virtual keyboard and some other things and could'nt get them quite as good as WinXP with Touch-It Virtual Keyboard and ritePen Pro (all commercial).

    I'll switch back to linux when it has the same features...

  4. #94
    Join Date
    Sep 2009
    Beans
    18

    Re: Asus T91 linux installation

    Hey guys, the davidjany's link (to Cedric's aka cdufour's) blog contained a command which worked to change my brightness:
    Code:
    xrandr --output LVDS0 --set BACKLIGHT x
    where x is a number between 100 and 0
    ...now to make a script that can use it... I tried before to see if the script was triggered by setting the action in the /etc/acpi/events/brightness to launch a script that displayed one of those cool notification things, and the script worked when I executed it directly, but i never got it to launch when a key was pressed, even when trying keys that I knew worked (the rotate button). I don't know any shell so I wasn't surprised. So, could someone who knows what there doing give me a way to test if the event is being triggered? From there concocting a script should be trivial.

  5. #95
    Join Date
    Nov 2006
    Location
    Switzerland
    Beans
    183
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Asus T91 linux installation

    Nice work guys, guess I'll check back on that once I switch to Karmic by the End of the month. I read something in the updates, that brightness will be using xrandr. It already works in Jaunty by the way.


    Jonathanius
    You can type "acpi_listen" in the console to see what the keys trigger

    as for the launched script, make sure you have the full path in the command line. The script must also be set as executable... or why not just post your event file

    as to see if the script is launched, just place a notify-send command inside the script you want to launch, you don't need to make a new script for it.

  6. #96
    Join Date
    Aug 2009
    Beans
    64

    Re: Asus T91 linux installation

    Just finished the installation of karmic beta, moblin remix.
    Using your instructions. (Thx again!!)

    It seems ok but :
    Section "DRI"
    Mode 0666
    EndSection
    This section makes Xorg crashes when mutter (moblin interace) starts
    I think the problem is that one :
    (EE) PSB(0): [dri] DRIScreenInit failed. Disabling DRI.
    Without if, Xorg is o, but really really slow.

    Any ideas, guys ?
    Last edited by Mizukusai; October 10th, 2009 at 06:53 PM.

  7. #97
    Join Date
    Sep 2009
    Beans
    18

    Re: Asus T91 linux installation

    Mizukusai
    Personally, I've only ever had crashes when compiz/compositing is on. The Moblin interface is built on Gnome, I believe that in standard Ubuntu Gnome interface, the Extra setting (in the Visual Effects tab of Appearance) uses Compiz - I installed Compiz Settings Manager and played with it a bit to see if I could get it to crash - it did. So, if the Moblin interface uses any fancy graphics it's probably using Compiz as well.
    If you have a /usr/bin/compiz file, you need to whitelist psb by adding "psb" to the WHITELIST line.
    When I was using Xfce I didn't even have a /usr/bin/compiz, but now that I've switched to Gnome I do. I had the Visual Effects set to "Normal" for a long time and I didn't ever have crash, currently I'm using "None" because when I rotate the screen the refresh rate was horrible.
    One more thing, you can try to change the acceleration method from EXA to UXA, it's supposed to be faster and I remember reading that Karmic uses UXA by default now, but I have not tried it yet.

    Leed
    Thanks for the tip, the acpi_listen thing worked giving me:
    Code:
    hotkey ATKD 00000021 00000005
    for brightness down, and
    Code:
    hotkey ATKD 00000022 00000005
    for brightness up, note that the number 00000005 corresponds to how many times I have pressed each key. I tried replacing the asus-brightness-up and asus-brightness-down events that posted in last post, with:
    Code:
    event=hotkey ATKD 00000021
    action=/etc/acpi/asus-brn-down.sh
    in the /etc/acpi/asus-brn-down.sh I simple put:
    Code:
    #!/bin/sh
    
    notify-send -i "/usr/share/icons/gnome/scalable/actions/down.svg", "Brightness" "down"
    with identical files for brightness up, only with a different key(in the event) and icon and "up" instead of down(in the script).
    But, like last time, if I double click the file or execute it, it does what it supposed to, but doesn't work when the key is pressed.
    Any ideas? Thanks so much for all your help so far.

  8. #98
    Join Date
    Aug 2009
    Beans
    64

    Re: Asus T91 linux installation

    So, if the Moblin interface uses any fancy graphics it's probably using Compiz as well.
    I guess not.
    I check in "system->pref->appearances". It is written "compiz is not installed".
    Maybe I should try this one, and modify the WHITELIST variable.
    I's worth the try.

  9. #99
    Join Date
    Aug 2009
    Beans
    64

    Re: Asus T91 linux installation

    No luck.
    Thinking about it, compiz and Mutter may use the same functions (3D accel), but they are different softwares.

  10. #100
    Join Date
    Sep 2009
    Beans
    18

    Re: Asus T91 linux installation

    @Mizukusai
    I started getting quite a few crashes, I'm testing a new config, not sure how stable it is, but will post when I have results. Basically, I disabled compositing in /etc/X11/x.org
    Code:
    Section "Extensions"
            Option "Composite" "off"
    EndSection
    Still, don't know if it will help...

Page 10 of 38 FirstFirst ... 8910111220 ... 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
  •