Page 7 of 38 FirstFirst ... 5678917 ... LastLast
Results 61 to 70 of 378

Thread: Asus T91 linux installation

  1. #61
    Join Date
    Aug 2009
    Beans
    64

    Re: Asus T91 linux installation

    Let's hope that the slot for gps+3g is there.
    Do you know where I can buy such device, for T91 ?

  2. #62
    Join Date
    Jul 2006
    Beans
    24

    Re: Asus T91 linux installation

    I've been able to control the brightness with the following command:

    Code:
    dbus-send --session --type=method_call --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Backlight org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:x
    where x is the brigthness you want to set.

    In an acpi script, the command must be run as the current user.

    Here is the full script (/etc/acpi/brightness.sh):

    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}"
    And here is the event (/etc/acpi/events/brightness):
    Code:
    event=hotkey ATKD 0000002[0-9a-f]
    action=/etc/acpi/brightness.sh
    Last edited by billl; September 13th, 2009 at 01:08 PM.

  3. #63
    Join Date
    Sep 2009
    Beans
    1

    Re: Asus T91 linux installation

    Quote Originally Posted by Leed View Post
    Yes I had some random crashes too, not that many, it's annoying but hey it reboots fast. Hope that goes away after a few updates. I generally have the impression the crashes have something to do with the touchscreen.

    Compiz-fusion does work, I wouldn't recommend it on the standard UNR Interface/menu, when using scale to change windows the windows flickers while zooming into place. However if you change the settings to classic Ubuntu it works great.
    It's easy to get it working, System->Appearance>Visual Effects .. and set it to extra. I also recommend using compizconfig-settings-manager.

    of course it will only work if you got the display drivers working correctly, check the link I posted before.


    Could you please give me some details on the screen rotation feature? Maybe we can get that button working somehow.

    Also anything on how to get that webcam working.



    solution: display totally depand upon h/w which is situated in your system .....if it is not supported then black screen such type of problem are created when u use extra feature in graphic.
    so check firstly display h/w then allow extra feature......
    u search webcam s/w of linux and use it.........

  4. #64
    Join Date
    Nov 2006
    Location
    Switzerland
    Beans
    183
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Asus T91 linux installation

    Thanks for the input billl. I'm afraid your script didn't work on my machine, but it gave me the input to solve the problem using a more simple (or primitive) code. I just changed the following:

    /etc/acpi/events/brightness
    Code:
    # /etc/acpi/events/brightness
    # called when used brightness keys
    
    event=hotkey ATKD 0000002[0-9a-f]
    action=/etc/acpi/brightness.sh %e
    /etc/acpi/brightness.sh
    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
    }
    
      case $3 in 
        00000020)
        brn=0
        ;;
        00000021)
        brn=30
        ;;
        00000022)
        brn=35
        ;;
        00000023)
        brn=40
        ;;
        00000024)
        brn=45
        ;;
        00000025)
        brn=50
        ;;
        00000026)
        brn=55
        ;;
        00000027)
        brn=60
        ;;
        00000028)
        brn=65
        ;;
        00000029)
        brn=70
        ;;
        0000002a)
        brn=75
        ;;
        0000002b)
        brn=80
        ;;
        0000002c)
        brn=85
        ;;
        0000002d)
        brn=90
        ;;
        0000002e)
        brn=95
        ;;
        *)
        brn=100
        ;;
      esac
      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
    The only snag is, the power management icon appears a second time in the top bar, I suppose this has something to do with me not getting the user, but the suggested sudo -u ${user} in combination with getXuser and getXdisplay doesn't work on my system.
    Last edited by Leed; September 14th, 2009 at 05:05 PM.

  5. #65
    Join Date
    Jul 2006
    Beans
    24

    Re: Asus T91 linux installation

    I've edited my post and fixed a few things. The script should now work (as root).

  6. #66
    Join Date
    Sep 2009
    Beans
    8

    Re: Asus T91 linux installation

    I'm still having the issue of wireless dropping connection after 10 minutes after boot and even asking for the WPA-PSK password again.

    I have a Asus T91 with Ubuntu 9.04 installed (kernel 2.6.28-15) and the linux-backports-modules-jaunty installed.

    Any help will be greatly apreciated.

    Thanks
    Daniel

  7. #67
    Join Date
    Nov 2006
    Location
    Switzerland
    Beans
    183
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Asus T91 linux installation

    @dfauvarq

    I still have the same issue, but also a temporary workaround. First of all, make sure you have the Wireless fn key working (you'll find info's on that in this thread).

    Ubuntu only asks for the password, because the reconnect attempt fails. So you'll want to get it reconnected before that happens.

    Once the connection breaks, simply switch wireless of using the fn key, wait 1-2 seconds and switch it on again (LED doesn't react). In some cases you'll have to tell the network manager to connect to your wlan again.

    Do that once and the connection should be stable. Maybe it'll disconnect again in a few hours, but then you can just do it again.

  8. #68
    Join Date
    Sep 2009
    Beans
    18

    Re: Asus T91 linux installation

    Is everyone still experiencing random lockups? How long has it been since the last one?

  9. #69
    Join Date
    Nov 2006
    Location
    Switzerland
    Beans
    183
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Asus T91 linux installation

    @bill
    Thanks for the update, I've allowed myself to take a part of your code and edit it into my example, hope that's ok. Your example is definitely a more intelligent code, but I prefer keeping it simple, 16 brightness possibilities is more than I'll ever need and I also have the impression, that brightness values between 0 and 25 are the same anyway.

    @jonathan
    Unfortunately I had my last lockup yesterday, before that I had a really long run without any problems... hope it stays that way.

  10. #70
    Join Date
    Sep 2009
    Beans
    1

    Re: Asus T91 linux installation

    Hi,

    I'm new to UNR and would like to get the touch screen (Asus T91) on UNR Karmic into Asus T91. What's the best way to get working?

    Thank you.

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