Let's hope that the slot for gps+3g is there.
Do you know where I can buy such device, for T91 ?
Let's hope that the slot for gps+3g is there.
Do you know where I can buy such device, for T91 ?
I've been able to control the brightness with the following command:
where x is the brigthness you want to set.Code:dbus-send --session --type=method_call --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Backlight org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:x
In an acpi script, the command must be run as the current user.
Here is the full script (/etc/acpi/brightness.sh):
And here is the event (/etc/acpi/events/brightness):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}"
Code:event=hotkey ATKD 0000002[0-9a-f] action=/etc/acpi/brightness.sh
Last edited by billl; September 13th, 2009 at 01:08 PM.
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.........
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
/etc/acpi/brightness.shCode:# /etc/acpi/events/brightness # called when used brightness keys event=hotkey ATKD 0000002[0-9a-f] action=/etc/acpi/brightness.sh %e
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.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
Last edited by Leed; September 14th, 2009 at 05:05 PM.
I've edited my post and fixed a few things. The script should now work (as root).
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
@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.
Is everyone still experiencing random lockups? How long has it been since the last one?
@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.
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.
Bookmarks