Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2008-01-31 12:14:04 am

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Scriptpack for FN-KEYS with OSD

THE MOST RECENT VERSION IS VERSION 2.1.
YOU CAN DOWNLOAD THAT VERSION AND ALL PREVIOUS VERSIONS FROM


http://code.google.com/p/eee-osd/downlo … nloadCount

Code:

*CHANGELOG*

v2.1    - added configfile functionality
    - position of the osd can be altered
    - osd-imagetheme can be changed
    - improved wifi-on-off script
    - added command to fn+f6 hotkey
    - various minor bugfixes

v2.0    - scriptpack now uses a customized version
      of the asusosd application, so it does
      not have to be built around the asusosd
      application anymore but can make real
      use of it
    - a lot of the external scripts could be
      removed since their functionality was
      moved into the custom asusosd executable
    - the issue with slow or leaping display
      of volume level should be improved a lot
      with this release
    - the installer script was modified so it
      can be used to upgrade an older version
      without any precautions necessary (this
      behaviour will be kept for any future
      version)

v1.1     - removed unnecessary debug-output in 
      volume_control.sh 
    - create a lot more sophisticated install
      script which will make sure directories
      exist and files and directories get the
      needed permissions
    - added logging to the install script so
      that progress and errors are logged to
      logfiles for easier debugging

v1.0     - the initial version of the scriptpack

Okay, i had a day off from university today and put together a small scriptpack that will enable the asus osd that is used in xandros in our eeeXubuntu.

Because i already wrote a README file for the pack i am just copying the contents in here so you can read yourselves what it can do.

I have only tested this on my eeeXubuntu r3 install and it runs flawless with compiz and without this does not mean it will run on your install of eeeXubuntu as well. Thats why i need your feedback and info whether it works for you or not so i can further improve the scripts.

you can download the scriptpack from:

http://code.google.com/p/eee-osd/downlo … nloadCount

to install simply save the file, then open a console and move to the directory where you stored the file and execute these commands

Code:

tar xvfz eeexubuntu-osd.tar.gz
cd eeexubuntu-osd
sudo ./install.sh

after the installation has finished you need to reboot to make everything work.


here comes the content of the readme file:

Code:

.------------------------------------------------.
|                                                |
|      eeeXubuntu ASUS OSD Scriptpack v1.0       |
|                   by Graves                    |
|                                                |
.------------------------------------------------.

*INFO*

This scriptpack will enable the standard asus osd 
(from preinstalled xadros) for acpi events under 
eeeXubuntu.

This scriptpack was written and tested with
eeeXubuntu r3.


*FEATURES*

- Support for switching wifi on and off with 
  On screen display (OSD) of wifi status
- Changing Brightness with OSD of current
  Brightness
- Changing Volume and muting sound with OSD 
  of sound status


*INSTALL*

To install simply go to the folder where you 
extracted the zipfile and invoke the install.sh
script as root:

sudo ./install.sh

After installation has finished you have to reboot
to make the scriptpack work.


*DISCLAIMER*

The author takes no responsibility for any damage
or harm these scripts might cause to your system.
Use this scriptpack at your own risk and make sure
to backup your files before installation.


*CHANGELOG*

v1.0 - the initial version of the scriptpack


*CONTACT*

For questions and feedback you can mail to
eee-osd@graves666.de

Last edited by Graves (2008-02-27 9:27:33 pm)


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#2 2008-01-31 12:19:04 am

StirfryNinja
Senior Member
From: Melbourne
Registered: 2008-01-19
Posts: 134

Re: Scriptpack for FN-KEYS with OSD

Sounds good. I'll test it when I get home smile

Edit: Just looking through the scripts now. The volume control script in usr/local/bin seems to have references to your own home directory in it?

Last edited by StirfryNinja (2008-01-31 12:28:04 am)

Offline

 

#3 2008-01-31 2:47:56 am

kevin_stevens
Member
Registered: 2008-01-17
Posts: 10

Re: Scriptpack for FN-KEYS with OSD

The script to turn the wifi off/on seems to work properly, but after an off/on cycle the ath0 and wifi0 interfaces are not recreated.  I'm not an expert, but I think you need to call the network reconfiguration script after turning it back on?

Everything else seems to work great.  I had a minor issue because I didn't follow instructions exactly - I invoked root as sudo -i and ran the install script, so it tried to install to root's $HOME directory instead of my user.  My fault, just noting it.

KeS

Offline

 

#4 2008-01-31 3:54:52 am

StirfryNinja
Senior Member
From: Melbourne
Registered: 2008-01-19
Posts: 134

Re: Scriptpack for FN-KEYS with OSD

Everything works for me. I used my own wireless on-off script which i had installed previously though as I knew it worked. But the OSD and everything works. The volume OSD slider jumps around a bit though, sometimes going down when I'm increasing the volume then jumping back up. The actual volume seems to go up so it looks like a gui thing?

Offline

 

#5 2008-01-31 7:00:50 am

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

about the wifi-script working or not, this seems to be a strange issue. for me personally the script i have included in the package works quite well, even after 10 on/off cycles the wifi gets back on and after ~10-15 seconds connects me to my wlan again.

@StirfryNinja

regarding the sound. i used to have that behaviour as well when i still in/decreased volume in stepts of 10%. i then changed that to 5% in /etc/acpi/volupbtn.sh and voldownbtn.sh and with those settings it worked a lot smoother for me. when are those "leaps" happening? if you quickly change the volume to one direction or if you change it back and forth back and forth?

@kevin

yes i maybe should have pointed out that running the script while actually being logged in as root wont work. the autostart-file has to be moved in the users folder and i found no better way then using $HOME and invoking the script with sudo ./  but good that you figured that out yourself wink


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#6 2008-01-31 7:30:42 am

khanjal
New member
Registered: 2007-11-29
Posts: 3
Website

Re: Scriptpack for FN-KEYS with OSD

Great work! Seems to be functioning like normal again. I had noticed that if you turn the volume up or down too fast it does jump but it stays accurate with the volume in the taskbar.

Offline

 

#7 2008-01-31 8:21:03 am

Deckard
Member
Registered: 2008-01-26
Posts: 14

Re: Scriptpack for FN-KEYS with OSD

Seems to be ok, thank you.
Just a small thing : I didn't have any dir named autostart in .config. So the first time I try, it failed.
I've created the dir manually and it's ok now.

Offline

 

#8 2008-01-31 8:54:57 am

StirfryNinja
Senior Member
From: Melbourne
Registered: 2008-01-19
Posts: 134

Re: Scriptpack for FN-KEYS with OSD

Graves wrote:

regarding the sound. i used to have that behaviour as well when i still in/decreased volume in stepts of 10%. i then changed that to 5% in /etc/acpi/volupbtn.sh and voldownbtn.sh and with those settings it worked a lot smoother for me. when are those "leaps" happening? if you quickly change the volume to one direction or if you change it back and forth back and forth?

It happens in both the instances you described there. Changing the volume up or down too fast will cause it to jump about. Changing it back and forth will also cause that to happen

Offline

 

#9 2008-01-31 11:20:12 am

cstross
Member
Registered: 2007-11-07
Posts: 14

Re: Scriptpack for FN-KEYS with OSD

I had the same issue as Deckard (no ~/.config/autostart). So I created it and re-ran the script via sudo.

When I rebooted, nothing showed up on screen when I used the brightness/volume keys (although the brightness and volume were stepping up/down correctly). So I ran /usr/local/bin/asusosd from the command line and tried the volume up/down keys: it reported "image_open error."

Where are the image files supposed to live, and what permissions/ownership do they need?

Last edited by cstross (2008-01-31 11:20:39 am)

Offline

 

#10 2008-01-31 12:15:23 pm

dvm
Senior Member
Registered: 2007-12-18
Posts: 124

Re: Scriptpack for FN-KEYS with OSD

cstross wrote:

So I ran /usr/local/bin/asusosd from the command line and tried the volume up/down keys: it reported "image_open error."

The script installs well but I also got the same error. No OSD shown and running this command shows the same error.
Thanks for the work!

BTW my 701 is running the patched kernel (2.6.24) from this forum.

Offline

 

#11 2008-01-31 1:19:57 pm

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

the images reside in

/usr/local/share/asus-osd/

permission necessary is rw+r+r (chmod 644) although r+r+r (444) would be sufficient.


i will look into the issue with the installer and the not present autostart dir. i thought the dir was always there but it seems that it is only created after you install the first command as autorun via the settings entry.


to those guys who get the problem with the images. can you please have a look in the folder named above and tell me if the files are present and who is owner and what are the file permissions? if its a permission problem i will include forced setting of file permissions in the installer script, though i thought that would not be necessary as the files keep their permission when archived/extracted

@Deckard can you confirm that after creating the autostart dir in .config the autostart of the asusosd binary actually works? for the others who created it, it does not seem to work with manual dir creation so i thought maybe the system will not look for the autostart dir if you create it manually

@cstross & dvm what permissions did you give the autostart folder you created? it does at least need read/write/execute (chmod 700) for the owner of the directory.

@StirfryNinja its not possible that you make a video of that issue i suppose? the problem is somewhat not repeatable for me. what about the others? do you have similar issues with the volume up/down?


A GENERAL NOTE TO EVERYONE:

if you report bugs it would be great if you can give some informations about your system. if you run the stock kernel or upgraded kernel, did you install any kernel modules that were not part of the basic eeeXubuntu install and what else you altered from the basic eeeXubuntu install.


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#12 2008-01-31 1:57:34 pm

Anthrix
New member
From: Lithuania
Registered: 2008-01-31
Posts: 4

Re: Scriptpack for FN-KEYS with OSD

Hello linux i am using not for so long but then i try to install this script i had one problem. Folder autostar  didn't exist i thin need to put one line smile before coping the file this line looks
mkdir -v $home/.config/autostart/

For me this think works.
Sorry for bad English

Offline

 

#13 2008-01-31 2:05:49 pm

dvm
Senior Member
Registered: 2007-12-18
Posts: 124

Re: Scriptpack for FN-KEYS with OSD

Hey, after installing there is no /usr/local/share/asus-osd/ ...  smile

Offline

 

#14 2008-01-31 2:08:23 pm

Anthrix
New member
From: Lithuania
Registered: 2008-01-31
Posts: 4

Re: Scriptpack for FN-KEYS with OSD

Strange hmm

Offline

 

#15 2008-01-31 3:19:50 pm

Deckard
Member
Registered: 2008-01-26
Posts: 14

Re: Scriptpack for FN-KEYS with OSD

Graves wrote:

@Deckard can you confirm that after creating the autostart dir in .config the autostart of the asusosd binary actually works? for the others who created it, it does not seem to work with manual dir creation so i thought maybe the system will not look for the autostart dir if you create it manually

Confirmed wink It works just fine after reboot.

Offline

 

#16 2008-01-31 4:54:13 pm

marco.s
Member
From: Germany
Registered: 2008-01-20
Posts: 18

Re: Scriptpack for FN-KEYS with OSD

Great script, thanks a lot smile

Works fine for me, also the wireless - but i can confirm the sluggish response to the volume keys, it takes a bit till the OSD comes up and sometimes it goes two steps forward and one back, making it kinda hard to change it how you want it to have.

The volume controls were kinda sluggish as well though on the original Xandros for me, responded rather slow on my eeepc...

Offline

 

#17 2008-01-31 6:08:19 pm

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

@dwm can you have a look in folder where you unzipped the file and check if in the subfolder usr/local/share/  there is the asus-osd folder? maybe the unzipping did not work correctly?

i will now start and improve the installer script a bit. include the issue with directory creating and force setting of file permissions. maybe that will help with the problem s some seem to encounter here...

for those who encounter sluggish response from the volume buttons, i need a little further input. is that the case for all of you or can some report the volume up/down osd as responding well as it is the case on my computer?

what those who have sluggish response can try is do:

Code:

sudo mousepad /usr/local/bin/volume_control.sh

there is a line that reads

Code:

sleep 0.1

and try to alter that value. 0.0, 0.2, 0.3, 0.4 and 0.5 for example. then save the script and try hitting the volume buttons and see how that improves the responsiveness.

oh and before i forget, i just noticed that i left in 2 outputs there that should not be there anymore in release version, these are in the same file and read

Code:

echo status >> /home/graves/out.txt

you can remove those two lines and remove the folder /home/graves with all its content (should only be the file called out.txt...
i will fix that in the next release as well...


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#18 2008-01-31 6:19:54 pm

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

dvm wrote:

Hey, after installing there is no /usr/local/share/asus-osd/ ...  smile

i had a slight typo earlier, the dir actually is

/usr/local/share/asus_osd/


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#19 2008-01-31 6:46:10 pm

filo1234
Senior Member
Registered: 2008-01-28
Posts: 283

Re: Scriptpack for FN-KEYS with OSD

on eeexubuntu not running F7 F8 F9  for volume control why??  ihave installed the script

Offline

 

#20 2008-01-31 7:39:26 pm

reve_etrange
Member
From: 831 or 510
Registered: 2008-01-03
Posts: 14

Re: Scriptpack for FN-KEYS with OSD

@Graves: Much obliged, thank you.

Offline

 

#21 2008-01-31 9:11:55 pm

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

okay folks, i got busy again and put together version 1.1 of the scriptpack.

there are no changes regarding to features of the scriptpack itself but i hope the changes will help a bit to get the scriptpack running for those who encountered problems when installing.

the changelog for v1.1 reads as follows:

Code:

*CHANGELOG*

v1.1    - removed unnecessary debug-output in 
      volume_control.sh 
    - create a lot more sophisticated install
      script which will make sure directories
      exist and files and directories get the
      needed permissions
    - added logging to the install script so
      that progress and errors are logged to
      logfiles for easier debugging

the direct link to the new version is:

http://www.informatik.uni-oldenburg.de/ … 1.1.tar.gz

all versions of the scriptpack will from now on be available through

http://www.informatik.uni-oldenburg.de/ … buntu-osd/

and i will always edit the initial post in this topic to reflect the current version.

i am looking forward to feedback especially from those who had trouble installing before.

the install script creates 2 files... install.log and error.log you can include those files in your posts when reporting bugs so i might have a clue whats going wrong already.


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#22 2008-01-31 9:56:02 pm

marco.s
Member
From: Germany
Registered: 2008-01-20
Posts: 18

Re: Scriptpack for FN-KEYS with OSD

Graves wrote:

try to alter that value. 0.0, 0.2, 0.3, 0.4 and 0.5 for example. then save the script and try hitting the volume buttons and see how that improves the responsiveness.

I tried changing the values, and it wasn't really better - just different. With higher values the 'two steps forward one back' didn't seem to appear though, but the OSD stayed very long on screen and it seemed to excute the keystrokes for several seconds after i stopped pushing the button. In general the volume script seems a lot more sluggish than the brightness for example, which is instant - the volume OSD takes almost a second till it shows up.

I had the impression the script can't handle that much keystrokes at once and buffered them, sometimes going out of order (like raising a volume value that was active some seconds ago, but which was already raised, therefore 'jumping back'). I have no clue about scripts though, i just pressed the button!

Maybe this helps a bit, thanks for your work smile

Edit: Some other observeration - i commented out the amixer line, where it reads the current volume out (as far as i can see, with all the greps), and the OSD came instantly up, just didnt change volume of course. So seems to be an issue with the actual volume reading out with amixer...

Last edited by marco.s (2008-01-31 10:28:37 pm)

Offline

 

#23 2008-01-31 10:29:26 pm

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

i will further look into that issue... the biggest problem with this script-pack is that it is built around the original asusosd binary which is used in xandros and i do not have the sourcecode and for that reason no ability to alter it. so i have to wrap the funtionality around that application. this is a real bottleneck. maybe i will come up with my own self built osd daemon in one of the upcoming releases... that would solve a lot of problems wink


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#24 2008-01-31 10:38:57 pm

Graves
Senior Member
From: Oldenburg, Germany
Registered: 2007-12-17
Posts: 386

Re: Scriptpack for FN-KEYS with OSD

update on that:

i just went through some threads concerning acpi and i found out that the source for the asusosd binary as well as the acpi module have in fact been released by asus, so i guess i will have a look at the sources and come up with a modified version of the asusosd application in one of the next releases... this is indeed good news... victory will be ours wink


Get the brand new Version 2.1 of my eeeXubuntu-OSD Scriptpack.
----
Black EEE 8G imported from Taiwan, running eeeXubuntu r3

Offline

 

#25 2008-01-31 10:41:50 pm

mikochu
Member
From: Orlando, Florida
Registered: 2008-01-02
Posts: 76
Website

Re: Scriptpack for FN-KEYS with OSD

Hey Graves,

I have that wifi on/off script that you posted in the "eeeXubuntu Fn+F2 not working" thread.  I was wondering if I have to uninstall that script before installing this pack.  If so, how? tongue


Michael Reyes
www.mikochu.com

Pearlescent White Eee 8g w/ A-Data 16gb SDHC Class 6 running eeeXubuntu r3 RETURNED TO AND TRASHED BY COSTCO sad

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson