You are not logged in.
Thanks everyone. I'm very happy to hear that it works. Today I released the version 1.1. These things are new:
* Username will be detected automatically, no need to add it manually (from Niceeepc)
* OSDs for Wifi, BT and VGA added (from Niceeepc)
* Fn+F7 from the EeePC 1000/1000H added (does the same as the first hotkey at the moment)
* Added alternatives for Xubuntu, etc. if acpi_listen fails (you need to comment the lines out in "/etc/acpi/eeepc-actions.sh")
* Conflicting scripts will now be moved to /etc/acpi/backup instead of being deleted
* Comments updated
The installation works the same way. For the german users here: http://eeewiki.de/index.php/Ubuntu_8.04 … _ativieren
@ Rod Hull
Yes this problem sucks but I don`t know a way to fix this. If someone knows that please let me know...
Offline
Does anyone else get a brightness OSD popup on Xubuntu when the AC is connected? (NOT when the brightness up F6 is pressed, though.) What is generating that OSD image? It would be nice to use whatever it is to make an OSD for Xubuntu, as I gather that the usual Ubuntu OSD is generated via Gnome. Or remove it if it cannot make the other keys' popups.
Thanks,
m a r
ps: yup, repeating -- it got lost in the silkscreen discussion... And I'll be trying elmurato's script this weekend.
Offline
The new version with OSD is virtually perfect IMO!
If we can figure out enabling the larger virtual X space, then the VGA could be easily customised to fit any sized screen. The video card in the EEE is definitely able to output to much higher resolutions than 1024x768...
Offline
newb note:
you can't just repeat the directions to install the new script. when you wget the new version ubuntu appends ".1" to the name if you haven't deleted the old download yet. you need to either delete the original .gz file or change the tar command to reference the new filename.
Offline
rogue_ronin wrote:
(...) It would be nice to use whatever it is to make an OSD for Xubuntu, as I gather that the usual Ubuntu OSD is generated via Gnome. Or remove it if it cannot make the other keys' popups.
Good question. I did a little investigating myself and discovered that the following:
1. The acpi daemon (acpid) reports events to the socket /var/run/acpid.socket
2. The following processes are listening to /var/run/acpid.socket:
/usr/bin/x-session-manager
/usr/bin/xfce-mcs-manager
/usr/lib/libgconf2-4/gconfd-2
/usr/bin/gnome-keyring-daemon
/usr/bin/xfwm4
/usr/bin/Thunar
/usr/lib/gamin/gam_server
/usr/bin/xfdesktop
/usr/bin/dbus-daemon
/usr/bin/xfce4-panel
/usr/lib/xfce4/panel-plugins/xfce4-menu-plugin
/usr/lib/xfce4-places-plugin/xfce4/panel-plugins/xfce4-places-plugin
/usr/bin/update-notifier
/usr/bin/gnome-power-manager
/usr/bin/nm-applet
/usr/bin/python (running /usr/share/system-config-printer/applet.py)
/usr/lib/thunar/xfce4/panel-plugins/thunar-tpa
/usr/bin/gnome-keyring-daemon
/usr/lib/notification-daemon/notification-daemon
Whew, if this is Xubuntu, I can only imagine how many more daemons must be running on a full-blown Ubuntu installation.
After perusing some man pages, and doing a little bit of online research, it looks like the most relevant daemon for us Xubuntu users is the notification daemon.
"The Desktop Notifications framework provides a standard way of doing passive pop-up notifications on the Linux desktop. These are designed to notify the user of something without interrupting their work with a dialog box that they must close. Passive popups can automatically disappear after a short period of time." -- from the Ubuntu package description
The specification for the Notification Daemon can be found at http://www.galago-project.org/specs/not … /index.php
Looks to me that with a bit of work, Elmurato's script (via the DBUS communication architecture) can tell the notification daemon to display OSD popups, of failing that, I can modify the C program I uploaded earlier to do it. I will look into this over the weekend, but wanted to share this in case anyone else is interested.
Thomas
Offline
thomasb!
You always come back with the best information. Props to you, man. It would take me years to find out that stuff.
Any hints or howtos on modding the scripts to use the notification-daemon would be awesome.
It sounds like your c program would be useful; can it be configured for each ACPI event?
m a r
Offline
Well, I applied a little google-fu, and I found notify-send. It comes in the libnotify-bin package.
notify-send -i /usr/share/icons/hicolor/48x48/apps/gnome-brightness-applet.png -t 300 -u normal BRIGHTNESS "Increasing brightness..."
Seems to pop up just long enough to read -- because everytime you hit the hotkey, it will pop up a new message window. Too long a delay, and you're looking at a screenful of windows.
As an aside, I'm not sure that this client can do the nice little image popups. It'll display the images, but has no options to suppress the background window. Nor can you move the position.
Off to search for another notification-daemon client.
m a r
Offline
Wrong, wrong, wrong. I was wrong.
You totally CAN position the popup. And if you declare the same position, re-hitting the keys will simply lay a popup on top of the previous one -- they'll die off from underneath, so it won't look wierd.
Some basic HTML formatting is allowed, including images (although I haven't been able images to make it work -- anyone?)
While notification-daemon may be the source of the random ac-plug popup, I don't think notify-send is doing the work. Something else is likely pinging the daemon.
(Also, there is a notification-daemon-xfce, but I have to uninstall update-notifier...)
m a r
ps: here's an example of how to position a popup:
notify-send -i face-plain -t 1500 -u normal --hint=int:'x':340 -h int:'y':680 Brightness "Brightness <i>UP</i>"
Last edited by rogue_ronin (2008-08-23 2:52:08 pm)
Offline
Just tried this out over a clean install of Hardy on my 1000h and i must say everything pretty much works nicely ... so double thanks to you elmurato and the people who have helped in some way or other! =p
just a few issues with the vga toggle hotkey:
- it adjusts my volume as well. Upon turning on the external display, it will decrease the volume slightly (OSD pops up as well). Turning it off again will mute the sound entirely
- also if the the vga cable is not plugged in, the external display can be turned on but NOT off. or at least OSD will only show that it's on
- and also the aspect ratio thingy that Rod Hull mentioned
Haven't tried out the wifi since i ain't got any at home. Will try it out at school tmr and see if i have any problems connecting to the network
Anyway, these are just minor annoyances to me atm. I'm just a week old on Linux, so probably would be because i did something dumb. haha
Offline
@lardandweed
Does the file /etc/acpi/events/asus-volume-up exists? If yes remove it. Or try the new version 1.2.
@ all
Version 1.2 now online:
* OSD for brightness (special thanks to Carlos Jenkins alias Havok!)
* CPU frequency control (3. new hotkey)
* Webcam toggle (4. new hotkey)
* Fan control (must be enabled manually and the modules i2c-i801 and eee must be loaded)
* Fixed OSD-Bug for Fn+F5
Last edited by elmurato (2008-08-24 7:51:46 pm)
Offline
Wow! fast!!
Tried v1.2 on a clean install. and it's perfect ![]()
The only thing left is the problem with the screen real-estate of the external display. But I don't really need to do presentations with this machine. I haven't seen how it looks like using a projector (Only tested on my LCD). I'll try to find a room in school tmr and see if it's really irksome =p
Oh, and tried wifi today too. Low signal and getting disconnects every now and then, but its probably the location since my friend got a worse signal with his thinkpad. He managed to maintain connection despite the poor reception tho. Think i'll have to test it out more over the next few days. Anyway, i should probably ask about this in a separate thread.
Well, thank u!!
Offline
Hmm, I just installed your scripts. Otherwise everything seems to work, except for the external display Fn+F5.
There's no OSD for it, should there be? I haven't actually plugged in an external display, but I expected something to happen when I pressed Fn+F5. Do I need to tweak xorg.conf or something?
However, great work, I especially like that you got the four hotkeys working!
Offline
Could you enter
tail -f /var/log/acpid
in your terminal and post the output after pressing Fn+F5?
Last edited by elmurato (2008-08-25 1:45:39 pm)
Offline
Here's the acpi log:
[Mon Aug 25 20:50:12 2008] received event "hotkey ATKD 00000030 0000000d" [Mon Aug 25 20:50:12 2008] notifying client 5005[111:123] [Mon Aug 25 20:50:12 2008] notifying client 5517[1000:1000] [Mon Aug 25 20:50:12 2008] notifying client 5144[0:0] [Mon Aug 25 20:50:12 2008] executing action "/etc/acpi/eeepc-actions.sh hotkey ATKD 00000030 0000000d" [Mon Aug 25 20:50:12 2008] BEGIN HANDLER MESSAGES [Mon Aug 25 20:50:13 2008] END HANDLER MESSAGES [Mon Aug 25 20:50:13 2008] action exited with status 0 [Mon Aug 25 20:50:13 2008] completed event "hotkey ATKD 00000030 0000000d"
Thanks.
Offline
Hmm there are no errors... And I just tried it with my 17'' monitor and it works. Could you try it manually?
sudo /etc/acpi/eeepc-vga-toggle.sh
Offline
OK, VGA toggle problem solved. It turned out that if I have an external monitor attached, the Fn-F5 works just fine. However, if I don't have anything attached to the VGA port, nothing is displayed.
I still think something should be displayed even without external display to avoid this kind of confusion, but that's my personal opinion.
But thanks!
Offline
I think if the external display is not plugged in, the hot-key will not work at all (rather than just no OSD notification). The external VGA remains off
Offline
lardandweed wrote:
I think if the external display is not plugged in, the hot-key will not work at all (rather than just no OSD notification). The external VGA remains off
Exactly. I think a "No display connected" notification is unnecessary... But if you want I could add it.
Offline
Very nice work elmurato, everything works perfectly on my 901. ![]()
Offline
Hello
I'm a semi-newbie and have been following this thread with interest. Seems like elmurato's script is ready for my 901, on which I've installed adamm's kernel. One hitch, after installing the kernel I couldn't get wifi to work until after installing Ralink's linux driver.
So, all I have to do is run the "ACPI scripts v1.2 by me" script in the very first post, then reboot? No modifications required for my login/user name? Is it conceivable that future updates from the Ubuntu repositories could possibly break something down the road?
Anything else I should do?
Thank you!
Offline
Hi!!! First sorry about my English, I"m from Argentina and I'm learning it.
I bought a eeepc 1000h last week and I'm completely fell in love with it. ![]()
After searching a lot in too sites I found the excelent job of elmurato!!! It works ok all in my pc but only the bluetooth toggle on-off don't work and the notifier also.
What can I do??? I have "elmurato 1.2v acpi" and Ubuntu eee 8.04.
The log when I press the 2nd button show me this:
juampi@juampi-laptop:~$ tail /var/log/acpid
[Wed Aug 27 10:36:12 2008] completed event "hotkey ATKD 0000001b 00000017"
[Wed Aug 27 10:36:13 2008] received event "hotkey ATKD 0000001b 00000018"
[Wed Aug 27 10:36:13 2008] notifying client 5058[111:123]
[Wed Aug 27 10:36:13 2008] notifying client 5204[0:0]
[Wed Aug 27 10:36:13 2008] executing action "/etc/acpi/eeepc-actions.sh hotkey ATKD 0000001b 00000018"
[Wed Aug 27 10:36:13 2008] BEGIN HANDLER MESSAGES
cat: /proc/acpi/asus/bt: No such file or directory
[Wed Aug 27 10:36:13 2008] END HANDLER MESSAGES
[Wed Aug 27 10:36:13 2008] action exited with status 0
[Wed Aug 27 10:36:13 2008] completed event "hotkey ATKD 0000001b 00000018"
I'm be glad if you can help me. Thanks a lot
JP
Offline
juampick wrote:
cat: /proc/acpi/asus/bt: No such file or directory
Check whether Bluetooth is really enabled in your BIOS.
Offline
@ capatt
Why did your wireless adapter din`t work? Strange... After the installation of the ACPI scripts you do not even need to reboot (normally). Updates performed by Ubuntu shouldn`t break it, but I can`t guarantee it ![]()
@ juampick
Seems like your eeepc-acpi module is not loaded. Could you post the result of
lsmod | grep eeepc
?
Offline
I have no idea why my wifi didn't work after I upgraded the kernel. I followed instructions to the letter, and the hardware capability was enabled in the bios. I fell back on the instructions here to install the Ralink linux driver: http://ubuntu-eee.com/index.php5?title= … on_the_901
I'm going to install your script within the next day or two. All I need to know is just run the script, right?
Thank you (and the others here) for all that hard work!
Offline
@LadyBug and @elmurato
Yes it is enable because I'm using a Microsoft Wireless Bluetooth 5000 mouse in windows correctly and here in Ubuntu also I can configure it and it works perfectly.
The on-of toggle button is what does't works (and his notifier OSD).
So, what can we do??
Here is the result of the command:
lsmod | grep eeepc:
eeepc_acpi 8720 0
Thanks a lot!!!!
Bye
Offline