Fedora Linux Support Community & Resources Center
  #1  
Old 22nd April 2008, 04:39 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
Asus EeePC + Fedora 8 or 9 + Fn Keys?

Hello:

I can't make some Fn Keys work on Fedora 8 or Fedora 9 (Preview Version). Suspend key and brightness Key work, but Display Key and Wireless on/off don't.

I've tried to load the asus_acpi module provided by Asus, but it makes no difference at all (Pretty hard to compile that one).

Any help is welcome!!!

Cheers
duli
Reply With Quote
  #2  
Old 25th April 2008, 01:26 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
This page has pretty good info about this issue: http://www.nathancoulson.com/proj_eee.shtml
Reply With Quote
  #3  
Old 25th April 2008, 01:54 AM
mbokil's Avatar
mbokil Offline
Registered User
 
Join Date: Nov 2004
Location: Boston
Posts: 503
Use the eeedora spin and save time since they have customized Fedora to work with the eee. http://wiki.eeeuser.com/howto:eeedora They have already compiled the modules needed and wifi works. I use on my eee. It uses the XFCE desktop to save memory.
__________________
Fedora 9 / XFCE 4.4.2
Athlon Thunderbird CPU 1.3 GigHz
750 MB RAM
Nvidia Gforce 6200
Mozilla Seamonkey 1.1.9 browser with MonkeyMenu Extension
Reply With Quote
  #4  
Old 27th April 2008, 12:01 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
mbokil: Yes, I ve already taken a look at eeedora, but I still prefer to set up my on F9. Actually, I've managed to make the Fn keys to work. I'll post here the results soon.

Now I have other annoying problem:

I've installed asus_acpi module and acpid is able to grab hotkey events and execute defined scripts in /etc/acpi/actions.

Everythings runs just fine, except from the fact the scripts in /etc/acpi/actions cannot open any graphical program, such as xrandr (to change lcd x vga etc.)

I get this on /var/log/Xorg.0.log:

Quote:
AUDIT: Sat Apr 26 19:31:46 2008: 1912 Xorg: client 30 rejected from local host ( uid=0 gid=0 pid=4563 )
I must say I do have "export DISPLAY=:0" at the beginning of the script I'm intending to run.

The only until now I could make it work was to type, as regular user:

Quote:
xhost +local:root
After that the script runs just fine and I don't get the errors in Xorg.0.log.

I can't see what I'm doing wrong... If someone could help, I'd appreciate a lot!

Thanks,
duli
Reply With Quote
  #5  
Old 4th May 2008, 03:45 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
Wireless Hotkey working

Ok, this is what I did to get the wireless hotkey (Fn+F2) working on F9:

Code:
su --login

yum install -y acpid

chkconfig acpid on

service acpid start

modprobe eeepc

echo "modprobe eeepc" >> /etc/rc.local
Create the following files:

gedit /etc/acpi/events/hotkeys.conf

Code:
event=hotkey ATKD .*
action=/etc/acpi/actions/hotkeys.sh %e
gedit /etc/acpi/actions/hotkeys.sh
Code:
#!/bin/bash

export DISPLAY=:0

case "$3" in

    #Fn+F2
    00000010)
        # Wlan On
        /etc/acpi/actions/wlan.sh poweron
        ;;
    00000011)
        # Wlan Off
        /etc/acpi/actions/wlan.sh poweroff
        ;;

    #Fn+F6
    00000012)
        # TaskManager
	/usr/bin/gnome-system-monitor
	;;

    #Fn+F7
    00000013)
        # Volume mute
	/usr/bin/amixer set -D hw:0 Master toggle
	;;

    #Fn+F8
    00000014)
        # Volume down
        /usr/bin/amixer set -D hw:0 Master 10%- unmute
        ;;

    #Fn+F9
    00000015)
        # Volume up
        /usr/bin/amixer set -D hw:0 Master 10%+ unmute
        ;;

    #Fn+F5
    00000030)

	/usr/bin/xrandr --output VGA  --mode 1024x768 \
			--output LVDS --off

	if [[ "$?" != "0" ]]; then

	/usr/bin/xrandr --output VGA  --preferred \
			--output LVDS --off

	fi
	;;

    00000031)

	/usr/bin/xrandr --output LVDS --mode 800x480 \
		        --output VGA  --mode 800x600

        ;;
    
    00000032)

	/usr/bin/xrandr --output VGA  --off       \
           		--output LVDS --preferred

        ;;
    *)
        logger "ACPI hotkey $3 action is not defined"
        ;;
esac
gedit /etc/acpi/actions/wlan.sh
Code:
#!/bin/bash

PWR=$(cat /sys/devices/platform/eeepc/wlan)

UnloadModules() {
    rmmod ath_pci
    rmmod ath_rate_sample
    rmmod wlan_scan_sta
    rmmod wlan_tkip
    rmmod wlan_wep
    rmmod wlan
}

LoadModules() {
    modprobe ath_pci
}

case $1 in
    poweron)
        if [[ "$PWR" = "0" ]]; then
            modprobe pciehp pciehp_force=1

	    echo 1 > /sys/devices/platform/eeepc/wlan

	    rmmod pciehp

        fi
        ;;
           
    poweroff)
        if [[ "$PWR" = "1" ]]; then

            modprobe pciehp pciehp_force=1

            ifconfig ath0 down

            wlanconfig ath0 destroy

            UnloadModules

            echo 0 > /sys/devices/platform/eeepc/wlan

            rmmod pciehp

        fi
        ;;
esac
Make scripts executable:

Code:
chmod -v +x /etc/acpi/actions/*
Now restart acpid to reload events configurations:

Code:
service acpid restart
It is working like a charm!
duli

PS: If you want the Fn+F5 key also working, you're gonna have to grant permission from xhost like this:

Code:
echo "xhost +local:root " >> ~/.bash_profile
and to reset it on logout:

Code:
echo "xhost +local:root " >> ~/.bash_logout

Last edited by Duli; 13th June 2008 at 01:52 AM.
Reply With Quote
  #6  
Old 19th May 2008, 11:26 AM
schnullerbacke Offline
Registered User
 
Join Date: Feb 2007
Posts: 20
@Duli,

if you run F9 on the eeepc, how did you manage the microfone to work? As I checked back at the Ubuntuforum the Mic is not working out of the box. They fixed the problem with "module-assistant" from Debian. This is for me one issue not to change for F9. Any help will be greatly appreciated.

Thanx Schnullerbacke
Reply With Quote
  #7  
Old 19th May 2008, 12:44 PM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
schnullerbacke: Hello.

I didn´t use the Mic yet. At night I´ll do a test and report here.

Cheers,
duli
Reply With Quote
  #8  
Old 21st May 2008, 02:19 PM
schnullerbacke Offline
Registered User
 
Join Date: Feb 2007
Posts: 20
Hello Duli,

did you achieve something with the mic?

best regards Schnullerbacke
Reply With Quote
  #9  
Old 21st May 2008, 02:29 PM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
schnullerbacke: I´m sorry. I completely forgot. Tonight I´ll run some tests!!!!!

Duli
Reply With Quote
  #10  
Old 22nd May 2008, 01:03 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
Quote:
Originally Posted by schnullerbacke
Hello Duli,

did you achieve something with the mic?

best regards Schnullerbacke
No, the mic didn't work. I just tried the built-in mic, because I don't have an external one...

I tried to check several options on volume controller and pulse audio, but no success...

duli
Reply With Quote
  #11  
Old 22nd May 2008, 01:20 AM
schnullerbacke Offline
Registered User
 
Join Date: Feb 2007
Posts: 20
@Duli

Thank you for the test, that means I should file a bugreport to F9

Schnullerbacke
Reply With Quote
  #12  
Old 13th June 2008, 02:06 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
Power consuption hint:

Code:
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
Reply With Quote
Reply

Tags
asus, eeepc, fedora, keys

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio volume fix for Asus EeePC-1000HA + bios update jonathonp Guides & Solutions (No Questions) 0 10th October 2009 03:55 PM
Asus eeePC 701 with Atheros AR242x PCI-E Adapter - can I install it as access point? Tiger22B Servers & Networking 0 4th September 2009 04:46 PM
ASUS eeepc 701 SDHC problem tpersons Hardware & Laptops 0 15th September 2008 03:22 PM
Fedora 8 Install on Asus eeePC howto fwelland Hardware & Laptops 4 22nd April 2008 02:25 PM
Fedora 8 Install on Asus eeePC howto fwelland Hardware & Laptops 0 26th December 2007 03:43 PM


Current GMT-time: 14:52 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat